Skip to Content
coaadedocs

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.

CommandUse it to
coaade ask "…"Ask a question
coaade explainExplain code
coaade debugDiagnose an error
coaade refactorImprove code without changing behavior
coaade testWrite tests
coaade reviewReview 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.py

Pipe input

Anything you pipe in is used verbatim, up to 100 KB:

git diff | coaade review
cat error.log | coaade debug

Attach 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

FlagEffect
--jsonWrite one result object to stdout, including usage and elapsed time. Diagnostics go to stderr.
--rawPlain text, no styling
-y, --yesApprove file edits without prompting. Shell commands still need approval.
--allow-shellApprove shell commands the model requests
--max-turns NLimit 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 session

See Memory and sessions.

On this page