droid-cli
Original:🇺🇸 English
Translated
Background knowledge for droid-control workflows -- not invoked directly. Droid CLI target patterns, shortcuts, modes, and launch helpers.
5installs
Added on
NPX Install
npx skill4agent add factory-ai/factory-plugins droid-cliTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Droid CLI Target
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.
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 |
Dialogs
When a dialog shows : / moves the highlight, selects, closes.
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 |
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 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 | |
Launching Droid
How droid-dev
works
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
droid-devdroid-dev--repo-root--env DROID_DEV_REPO_ROOT=...tctlbash
# tuistory (default — virtual PTY)
$TCTL launch "droid-dev" -s demo --backend tuistory \
--repo-root /path/to/worktree \
--cols 120 --rows 36
# true-input (real terminal proof — headless Wayland compositor)
$TCTL launch "droid-dev" -s demo --backend true-input \
--repo-root /path/to/worktreeFeature 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=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
Environment safety
tctldroid-devbash -lcFACTORY_*--envExec mode
Non-interactive single-shot execution:
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