Everyday usage
Run one-shot prompts, use task commands, pipe input, attach files and line ranges, and script the CLI with JSON output.
Interactive chat
Run coaade with no prompt to open interactive chat in the current folder:
coaade
coaade --dir /path/to/project--dir sets the folder the agent works in. File tools can't reach outside it. See Interactive chat.
One-shot prompts
Pass a prompt to run a single task and exit:
coaade "Find and fix the authentication bug"
coaade --mode plan "Explain this repository"Task commands
Shortcuts for common jobs. Each accepts an optional prompt and works with --file, --lines and --error.
| Command | Use it to |
|---|---|
coaade ask "…" | Ask a question |
coaade explain | Explain code |
coaade debug | Diagnose an error |
coaade refactor | Improve code without changing behavior |
coaade test | Write tests |
coaade review | Review code or a diff |
coaade explain --file src/main.rs --lines 20-45
coaade debug --file src/api.py --error "KeyError: user_id"
coaade test --file src/auth.pyPipe input
Anything you pipe in is used verbatim, up to 100 KB:
git diff | coaade review
cat error.log | coaade debugAttach files and images
coaade --file src/main.rs --file src/lib.rs "How do these two interact?"
coaade --image screenshots/error.png "Explain this error"Preview the context without a model call
--dry-run shows the context the CLI would send, without calling the model or needing to be signed in:
coaade --dry-run --file src/main.rs "Review this file"Automation
| Flag | Effect |
|---|---|
--json | Write one result object to stdout, including usage and elapsed time. Diagnostics go to stderr. |
--raw | Plain text, no styling |
-y, --yes | Approve file edits without prompting. Shell commands still need approval. |
--allow-shell | Approve shell commands the model requests |
--max-turns N | Limit model calls per prompt (default 20, maximum 100) |
Failures return a nonzero exit code. Without --yes or --allow-shell, edits and commands in a non-interactive run are denied rather than waiting for input.
coaade --json --mode plan "List the main components" > components.json
coaade -y --allow-shell "Run the tests and fix any failures"--yes and --allow-shell remove the approval step. Saved deny and ask rules still apply, but use these flags
only in environments you trust, such as a disposable CI container.
Resume a conversation
coaade sessions # list saved sessions
coaade -r # pick one from a searchable history
coaade -r SESSION_UUID # resume a specific sessionSee Memory and sessions.