Modes and tools
What the agent can do in plan and build mode, how edits are applied safely, and how the CLI picks context from your project.
Plan and build
| Mode | Tools | Use it to |
|---|---|---|
| Plan | list_files, search, read_file | Explore, explain and plan. Nothing on disk changes. |
| Build (default) | Plan tools plus edit_file, write_file, shell | Make changes, with your approval |
Switch with Shift+Tab, /plan, /build, or --mode plan|build. MCP tools aren't available in plan mode.
Run /tools to see every tool and its current permission.
How edits are applied
- An edit needs a fresh read of the file first, so the agent never edits a version it hasn't seen.
- Every edit shows a diff before you approve it.
- Ambiguous replacements (text that matches more than once) are rejected.
- Windows line endings (CRLF) are preserved.
- Files open in VS Code with unsaved changes are marked, so the agent doesn't overwrite your edits.
Shell commands
- Commands need approval unless a permission rule allows them.
- Foreground commands time out after 120 seconds. Press Ctrl+B to move one to the background.
- Provider and AWS credentials are removed from the command's environment.
- Commands otherwise run with your normal user access. Turn on
/sandbox on(macOS) to restrict them.
What the agent can't touch
File tools refuse:
- Paths outside the working folder (
--dir), and path traversal - Symlinks and, on Unix, hard links
- Common credential locations and the shared Coaade account database
- Binary files and files larger than 256 KB
- The project's
.coaade/settings folder
These are practical guards, not a full secret scanner.
Context the CLI adds for you
Each prompt includes:
AGENTS.mdandCOAADE.mdfrom the project root- Files you attach with
--file - An ignore-aware file listing and
git status - A bounded set of source files picked by keyword
- Your active editor file and selection, if the VS Code extension is connected
Folders like node_modules and build output are skipped. --no-context turns off automatic selection and editor context; files you attach explicitly and the root instruction files still apply. Use --dry-run to see exactly what would be sent.
Turn limits
Each prompt can make up to 20 model calls by default. Change it with --max-turns (1 to 100).