Command Reference
Complete reference for all 21 CodeSpar agent commands, including syntax, risk levels, and usage examples.
Command Reference
CodeSpar agents respond to commands via @codespar <command> in any connected channel (WhatsApp, Slack, Discord, Telegram). Commands can also be sent through natural language — see Natural Language Understanding for details.
Command Syntax
All commands follow the pattern:
The @codespar mention prefix is required in group chats. In direct messages, you can omit it.
Risk Levels
Every command has an assigned risk level that determines whether it requires approval at a given autonomy level:
| Risk Level | Color | Meaning |
|---|---|---|
| low | 🟢 Green | Read-only or informational. Never requires approval. |
| medium | 🟡 Amber | Modifies state or triggers work. May require approval depending on autonomy level. |
| high | 🟠 Orange | Deploys or changes infrastructure. Requires approval at L0–L2. |
| critical | 🔴 Red | Destructive or irreversible. Always requires approval (except L5 for non-production). |
All Commands
| Command | Syntax | Risk | Description |
|---|---|---|---|
status | status [build|agent|all] | low | Query current status of builds, agents, or both |
help | help | low | Show available commands and usage |
logs | logs [n] | low | Show recent activity log (default: 10 entries) |
instruct | instruct <task> | medium | Execute a coding task via Task Agent |
fix | fix <issue> | medium | Investigate an issue and propose a fix |
review | review PR #<n> | low | Review a specific pull request |
prs | prs [open|closed|all] | low | List pull requests for the linked repo |
deploy | deploy [staging|production] | high | Trigger a deployment pipeline |
rollback | rollback [staging|production] | critical | Rollback the last deployment |
approve | approve [token] | medium | Approve a pending action |
autonomy | autonomy L<0-5> | medium | Set the agent autonomy level |
link | link <repo-url> | medium | Link a GitHub repository to this project |
unlink | unlink | medium | Remove the current project link |
context / memory | context or memory | low | Show agent memory and vector store stats |
whoami | whoami | low | Show your identity and connected channels |
register | register <name> | low | Register or update your display name |
merge | merge PR #<n> [squash|rebase] | medium | Merge a pull request |
plan | plan <feature> | medium | Break down a feature into sequential sub-tasks via Planning Agent |
lens | lens <question> | low | Query data and get insights |
demo | demo [mcp-generator|query <question>] | low | Interactive feature demos |
kill | kill | critical | Emergency kill switch -- stops all agent activity |
Command Details and Examples
status
Query the current status of the linked project, builds, and agents.
Example output:
With arguments:
help
Display all available commands with brief descriptions.
Example output:
logs
Show recent activity entries from the audit log.
Shows the last 10 entries by default. Pass a number to customize:
Example output:
instruct
Tell the Task Agent to execute a coding task. The agent clones the repo, makes changes in a Docker container, and opens a PR.
Example output:
After completion:
fix
Investigate an issue and propose (or apply) a fix.
Example output:
review
Trigger a code review of a specific pull request.
Example output:
prs
List pull requests for the linked repository.
Example output:
deploy
Trigger a deployment to staging or production. Production deploys always require approval.
Example output:
After approval:
rollback
Rollback the last deployment. This is a critical-risk command and always requires approval.
Example output:
approve
Approve a pending action. You can approve by referencing the token shown in the approval request, or approve the most recent pending action.
Example output:
Without a token (approves the most recent pending action):
autonomy
Set the agent's autonomy level from L0 (passive) to L5 (full auto). See Graduated Autonomy for full details on each level.
Example output:
link
Link a GitHub repository to the current project agent.
Example output:
See the Link a Repository guide for prerequisites and details.
unlink
Remove the current repository link from the project agent.
Example output:
context / memory
Show the agent's memory statistics, including vector store usage and conversation history.
Both commands are aliases and produce the same output.
Example output:
whoami
Show your resolved identity across all connected channels.
Example output:
register
Register or update your display name for cross-channel identity.
Example output:
kill
Emergency kill switch. Immediately stops all running agents and pending actions. This is a critical-risk command and always requires approval (except from emergency_admin role).
Example output:
Next Steps
- Natural Language Understanding — Send commands in plain language
- Graduated Autonomy — Control what agents do automatically
- Link a Repository — Connect your GitHub repo