Want Droid to work faster, smarter, and with fewer iterations? The techniques on this page transform good results into exceptional ones. Each one saves tokens, reduces tool calls, and ships better code — start with the four foundational features, then layer on the workflow boosters below.Documentation Index
Fetch the complete documentation index at: https://factory-apigettingstarted.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Fewer Tool Calls
IDE plugin provides real-time context so Droid sees what you see
Better First Attempts
Spec Mode explores before coding, preventing false starts
Consistent Quality
AGENTS.md captures your standards once, applies them always
Self-Correcting Code
Linters and tests let Droid fix issues before you even see them
Factory IDE Plugin — Real-time context awareness
Make sure to install Factory IDE plugin for Droid. The Factory IDE plugin acts as an MCP server that gives Droid immediate awareness of your development environment. No more explaining what file you’re looking at or copying error messages—Droid sees exactly what you see. What Droid gets automatically:- Open files and selected lines
- VSCode error highlighting and diagnostics
- Project structure and active terminal output
- Your cursor position and recent edits
Spec Mode — Explore and plan first, code second
Complex features need exploration before implementation. Spec Mode prevents costly false starts by letting Droid investigate your codebase thoroughly before writing a single line of code.Describe your goal
Write 1-2 sentences about what you want or provide fully-featured existing technical specs.
- Features touching 2+ files
- Architectural changes
- Unfamiliar codebases
- Security-sensitive work
Spec Mode isn’t just for features—use it for complex debugging, refactoring, or any task where understanding comes before doing.
AGENTS.md — Your preferences, remembered
AGENTS.md captures your coding standards, project conventions, and personal preferences in one place. Droid reads it automatically for every task. What to document:| Category | Examples |
|---|---|
| Code style | ”Use arrow functions, not function declarations” “Prefer early returns over nested conditionals” |
| Testing | ”Every new endpoint needs integration tests” “Use factories, not fixtures for test data” |
| Architecture | ”Services go in src/services with matching interfaces” “All database queries use the repository pattern” |
| Tooling | ”Run npm run verify before marking any task complete” “Deploy with scripts/deploy.sh, never manual commands” |
| Mistakes to avoid | ”Never commit .env files” “Don’t use any! type annotations” |
AGENTS.md in your project root:
Agent Readiness — Let your tools do the teaching
Make your project self-correcting. When Droid can run the same verification tools as your CI/CD pipeline, it fixes problems immediately instead of waiting for you to point them out.Linters
ESLint, Pylint catch style issues instantly
Type Checkers
TypeScript, mypy prevent type errors before runtime
Fast Tests
Unit tests that run in seconds provide immediate feedback
Pre-commit Hooks
Husky, pre-commit ensure consistency before commits
Keyboard shortcuts — Navigate the TUI like a pro
The TUI ships with shortcuts for nearly every common action. Learn a handful and you’ll stop reaching for the mouse or scrolling endlessly.| Shortcut | Action |
|---|---|
Ctrl+O | Toggle the detailed transcript view (full message details) |
Ctrl+T | Toggle Mission Control overlay (orchestrator sessions) |
Ctrl+N | Cycle through available models |
Ctrl+L | Cycle autonomy level (low / medium / high) |
Ctrl+Y | Toggle /btw side-question scroll view |
Ctrl+E | Toggle approval details |
Tab | Cycle reasoning effort (low → medium → high → off) |
Shift+Tab | Cycle interaction modes (Auto → Spec → Mission) |
@ | File path autocomplete — typing @ triggers fuzzy file search |
Up / Down | Navigate input history — cycle through previously submitted messages |
Double Escape | Second press clears the input draft; a third Escape opens the rewind menu |
Ctrl+V | Paste an image from the clipboard as an attachment |
? | Toggle the help popup (when the input is empty) |
Ctrl+/ | Toggle the help popup (works even with content in the input) |
Ctrl+A | Move the cursor to the start of the line |
Ctrl+W | Delete the word before the cursor |
Ctrl+K | Delete from the cursor to the end of the line |
Ctrl+U | Delete from the cursor to the start of the line |
Ctrl+D | Clear attached images, or forward-delete a character if none are attached |
Ctrl+R | Rename the highlighted session (in the /sessions list view) |
Ctrl+X | Archive the highlighted session (in the /sessions list view) |
Alt+Up / Alt+Down | Scroll the transcript turn-by-turn |
Alt+PageUp / Alt+PageDown | Jump between user turns only |
Shift+Enter | Insert a newline in the prompt input |
Escape | Close any active overlay or menu |
! | Toggle bash mode when the input is empty |
Bash mode — Quick shell access without leaving the TUI
Press! on an empty input to drop into bash mode. Anything you type runs in your shell, and the output stays in the transcript so Droid can see it on the next turn — no copy/paste required.
Escape or send an empty input to exit bash mode.
Worktrees — Run parallel sessions on the same repo
The--worktree flag launches Droid inside a fresh git worktree so multiple sessions can edit the same repository without stepping on each other. Combine it with --worktree-dir (or the worktreeDirectory setting) to keep all worktrees in one place.
Session management — /sessions, /fork, /compress
Long-running work doesn’t have to live in a single session. Use these commands to navigate, branch, and trim conversations as you go:
/sessions— list and resume any previous session/fork— branch the current session so you can explore an alternative without losing your place/compress— compact the transcript when you start hitting context limits (also available as/compactor/handoff)
Speed and iteration — /fast
/fast flips the current model into its fast variant for snappier turns when you’re iterating on small edits or exploration. Toggle it back with /fast off.
Context management — /context and /btw
/context shows a live breakdown of your context window: how many tokens are spent on system prompts, files, tool results, and conversation. Use it to spot bloat before compaction kicks in.
/btw lets you ask a side question — Droid answers in a separate scroll buffer (Ctrl+Y to view) without polluting the main transcript or shifting focus from the task.
Custom slash commands — /commands
Save your most-used prompts as reusable shortcuts. /commands opens the manager where you can create, edit, and scope custom slash commands at the project or user level.
/ship command that runs your release checklist, a /triage command that scans new bugs, or anything else you find yourself typing repeatedly. Custom commands accept arguments, so they compose well with the rest of your workflow.
Hooks — Automate around tool calls
/hooks lets you register lifecycle scripts that fire before or after Droid runs tools — think pre-commit checks, audit logging, automatic formatters, or guardrails that reject risky shell commands.
MCP integrations — /mcp
The Model Context Protocol lets Droid talk to external tools — databases, issue trackers, design tools, internal services — through a standard interface. Manage servers with /mcp in the TUI or droid mcp add/remove from the command line.
Missions — Coordinate large multi-agent projects
For work that spans many features or files, switch to Missions with/missions. Droid plans the work, spawns specialist worker agents, and validates each milestone — closing the gap between “agent in a chat” and “team of agents executing a plan.”
missionModelSettings and run them headlessly with droid exec --mission. See Missions for the full guide.
Custom droids — Specialized agents on demand
/droids manages your library of custom droids: subagents with their own system prompts, tool sets, and models. Use them to encapsulate expertise — a “frontend reviewer” droid, a “SQL migration writer” droid, a “release notes” droid — and invoke them from any session.
Customization — Sounds, themes, and statusline
Make the TUI feel like home./themes switches color schemes, /statusline configures a custom status bar, and the completionSound, soundFocusMode, and subagentSounds settings let you wire audio cues to important events (completion, awaiting input, subagent activity).
Putting it all together
These features compound. The IDE plugin and AGENTS.md feed Droid the context and conventions it needs; Spec Mode and Agent Readiness keep its first attempts on target; keyboard shortcuts, bash mode, and/btw keep your hands on the keyboard; /fast, worktrees, missions, and custom droids scale the work itself.
Getting started? Install the IDE plugin first—it’s the fastest path to better results. Add AGENTS.md with your test commands, learn three or four shortcuts, and grow from there.
