droid-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDroid CLI Target
Droid CLI 目标
The orchestrator routed you here. Layer these target-specific patterns on top of the driver skill you already loaded.
Droid-specific shortcuts, modes, and launch patterns.
编排器将您引导至此。请在已加载的驱动skill基础上,叠加这些特定于目标的模式。
以下是Droid专属的快捷键、模式及启动模式。
Shortcuts
快捷键
| Action | Key chord | Result |
|---|---|---|
| Toggle Spec mode | | toggles Spec mode on/off |
| Cycle autonomy | | Off > Low > Med > High > Off |
| Cycle models | | cycles available models |
| Cycle reasoning | | High > none > Low > Medium > High |
| Cancel / close / stop | | stops streaming, closes overlays |
| Clear input | | clears current line |
| Toggle bash mode | | switches prompt between |
| Help / shortcuts | | opens keybinding help |
| Multiline input | | inserts newline without submitting |
| 操作 | 快捷键组合 | 效果 |
|---|---|---|
| 切换Spec模式 | | 开启/关闭Spec模式 |
| 切换自主程度 | | 关闭 > 低 > 中 > 高 > 关闭 循环切换 |
| 切换模型 | | 循环切换可用模型 |
| 切换推理级别 | | 高 > 无 > 低 > 中 > 高 循环切换 |
| 取消/关闭/停止 | | 停止流传输,关闭覆盖层 |
| 清空输入 | | 清空当前行内容 |
| 切换bash模式 | 空输入时输入 | 在提示符 |
| 帮助/快捷键 | | 打开快捷键绑定帮助 |
| 多行输入 | | 插入换行但不提交 |
Dialogs
对话框
When a dialog shows : / moves the highlight, selects, closes.
Use up/down to navigate...updownenteresc当对话框显示时:按/移动高亮,选择,关闭。
Use up/down to navigate...updownenterescSlash commands
斜杠命令
| Command | Purpose |
|---|---|
| Show commands |
| Open settings menu |
| Open model selector |
| Start a new session |
| Browse previous sessions |
| Start AI code review |
| Show current config |
| Show usage / cost |
| Summarize and move to fresh session |
| 命令 | 用途 |
|---|---|
| 显示命令列表 |
| 打开设置菜单 |
| 打开模型选择器 |
| 启动新会话 |
| 浏览历史会话 |
| 启动AI代码评审 |
| 显示当前配置 |
| 显示使用情况/成本 |
| 总结内容并切换到新会话 |
File mentions
文件提及
Type to open file suggestions, filter by typing, to accept, to cancel:
@tabescbash
$TCTL -s demo type "review @"
$TCTL -s demo type "package.json"
$TCTL -s demo press tab输入打开文件建议,输入内容进行筛选,按确认,取消:
@tabescbash
$TCTL -s demo type "review @"
$TCTL -s demo type "package.json"
$TCTL -s demo press tabVisual cues
视觉提示
| State | What to look for |
|---|---|
| Spec mode on | input border shows |
| Bash mode on | prompt is |
| Idle / ready | prompt is |
| Dialog open | boxed menu + navigation hint |
| File suggestions | dropdown under input |
| Thinking | |
| 状态 | 识别特征 |
|---|---|
| Spec模式开启 | 输入框边框显示 |
| Bash模式开启 | 提示符为 |
| 空闲/就绪 | 提示符为 |
| 对话框打开 | 带框菜单+导航提示 |
| 文件建议 | 输入框下方显示下拉列表 |
| 思考中 | 显示 |
Launching Droid
启动Droid
How droid-dev
works
droid-devdroid-dev
工作原理
droid-devdroid-dev~/.local/bin/droid-devbunDROID_DEV_REPO_ROOT- No per-branch builds. One (in any checkout) installs the shim. Switching branches is instant via
npm run setup.--repo-root - Prerequisite: The target worktree must have installed (
node_modulesat the repo root). If missing, the bun launch fails.npm install - sets
tctl --repo-rootautomatically and pins the session to that worktree.DROID_DEV_REPO_ROOT
droid-dev~/.local/bin/droid-devDROID_DEV_REPO_ROOTbun- 无需按分支构建。在任意代码仓库中执行一次即可安装该脚本。通过
npm run setup可即时切换分支。--repo-root - 前提条件:目标工作树必须已安装(在仓库根目录执行
node_modules)。如果缺失,bun启动会失败。npm install - ****会自动设置
tctl --repo-root,并将会话固定到该工作树。DROID_DEV_REPO_ROOT
droid-dev
droid-devdroid-dev
启动方式
droid-devdroid-dev--repo-root--env DROID_DEV_REPO_ROOT=...tctlbash
undefined启动需要指定(或)。会强制执行此要求——未指定的启动会失败:
droid-dev--repo-root--env DROID_DEV_REPO_ROOT=...tctlbash
undefinedtuistory (default — virtual PTY)
tuistory(默认——虚拟PTY)
$TCTL launch "droid-dev" -s demo --backend tuistory
--repo-root /path/to/worktree
--cols 120 --rows 36
--repo-root /path/to/worktree
--cols 120 --rows 36
$TCTL launch "droid-dev" -s demo --backend tuistory
--repo-root /path/to/worktree
--cols 120 --rows 36
--repo-root /path/to/worktree
--cols 120 --rows 36
true-input (real terminal proof — headless Wayland compositor)
true-input(真实终端验证——无头Wayland合成器)
$TCTL launch "droid-dev" -s demo --backend true-input
--repo-root /path/to/worktree
--repo-root /path/to/worktree
undefined$TCTL launch "droid-dev" -s demo --backend true-input
--repo-root /path/to/worktree
--repo-root /path/to/worktree
undefinedFeature branch / worktree
功能分支/工作树
For comparisons, launch separate sessions pointing at different worktrees:
bash
$TCTL launch "droid-dev" -s before --backend tuistory \
--repo-root /path/to/baseline-worktree \
--cols 120 --rows 36 --record /tmp/before.cast \
--env FORCE_COLOR=3 --env COLORTERM=truecolor
$TCTL launch "droid-dev" -s after --backend tuistory \
--repo-root /path/to/candidate-worktree \
--cols 120 --rows 36 --record /tmp/after.cast \
--env FORCE_COLOR=3 --env COLORTERM=truecolor如需对比,可启动指向不同工作树的独立会话:
bash
$TCTL launch "droid-dev" -s before --backend tuistory \
--repo-root /path/to/baseline-worktree \
--cols 120 --rows 36 --record /tmp/before.cast \
--env FORCE_COLOR=3 --env COLORTERM=truecolor
$TCTL launch "droid-dev" -s after --backend tuistory \
--repo-root /path/to/candidate-worktree \
--cols 120 --rows 36 --record /tmp/after.cast \
--env FORCE_COLOR=3 --env COLORTERM=truecolorComparison setup (before/after demos)
对比设置(前后版本演示)
For before/after comparisons, you need two worktree paths — one for the baseline and one for the candidate.
- Find existing worktrees: in any checkout. The main clone (often on
git worktree listordev) is a valid baseline.main - Create if needed: (or the relevant base branch).
git worktree add /tmp/baseline-worktree dev - Ensure : Run
node_modulesin any worktree that lacks it. This is the only setup needed — nonpm installor CLI build per branch.npm run setup - Launch with : Each
--repo-rootpins to one worktree.tctl launch
如需进行前后版本对比,您需要两个工作树路径——一个用于基线版本,一个用于候选版本。
- 查找现有工作树:在任意代码仓库中执行。主克隆(通常在
git worktree list或dev分支)可作为有效的基线版本。main - 按需创建工作树:执行(或相关基础分支)。
git worktree add /tmp/baseline-worktree dev - 确保已安装:在缺少
node_modules的工作树中执行node_modules。这是唯一需要的设置——无需按分支执行npm install或CLI构建。npm run setup - 通过启动:每个
--repo-root命令都会固定到一个工作树。tctl launch
Environment safety
环境安全性
tctldroid-devbash -lcFACTORY_*--envtctlbash -lcdroid-devFACTORY_*--envExec mode
执行模式
Non-interactive single-shot execution:
bash
droid exec "analyze this file"
droid exec --auto medium "run the tests"非交互式单次执行:
bash
droid exec "analyze this file"
droid exec --auto medium "run the tests"Logging
日志
Enable debug logging by passing the log file path via :
--envbash
$TCTL launch "droid-dev" -s demo --backend tuistory \
--repo-root /path/to/worktree \
--env FACTORY_LOG_FILE=/tmp/droid-test.log
tail -f /tmp/droid-test.log通过传递日志文件路径来启用调试日志:
--envbash
$TCTL launch "droid-dev" -s demo --backend tuistory \
--repo-root /path/to/worktree \
--env FACTORY_LOG_FILE=/tmp/droid-test.log
tail -f /tmp/droid-test.log