Commands
Built-in slash commands and how to define custom ones in OpenCorvus.
OpenCorvus provides a slash-command system for session prompts, including ACP session/prompt, with a /command prefix.
Built-in slash commands
| Command | Purpose |
|---|---|
/init | Initialize an AGENTS.md from the current repo |
/share | Generate a share link for the current session |
/undo | Roll back the last agent change when snapshots are explicitly enabled |
/help | Show the command map |
The exact set is version-dependent — /help is authoritative.
Custom commands
Define commands in config under command:
{ "command": { "test": { "template": "Run the full test suite with coverage report and show any failures.", "description": "Run tests with coverage", "agent": "build", "model": "anthropic/claude-haiku-4-5", }, "component": { "template": "Create a new React component named $ARGUMENTS with TypeScript.", "description": "Create a new component", }, },}$ARGUMENTS inserts the user’s argument text literally. The template can also use numbered arguments such as $1. The last numbered placeholder takes the remaining arguments.
An @file reference declared in a local template includes the named file. To include a file with an individual request, attach it explicitly.
Markdown-defined commands
You can also define commands as markdown files under <runtime-root>/config/commands/<name>.md or .opencorvus/commands/<name>.md. The frontmatter holds metadata (description, agent, model); the body is the prompt template. The runtime root follows Environment variables.
Model Context Protocol prompts
Connected Model Context Protocol (MCP) servers can provide project commands. Supply arguments in the order declared by the prompt. Quote a value that contains spaces, as in /archive:daily_report 2026-11-12 "research summary". The last declared argument receives the remaining input, and optional trailing arguments can be omitted.
GET /command lists the declared arguments of remote prompts. Parameterless remote prompts also provide template. The server validates the actual values when the command runs. Missing required values and rejected values return CommandArgumentsError.
Permissions in commands
Command templates and remote prompt responses provide text to the assistant. Inline shell notation stays in that text. Use the explicit shell action to run a command directly, or ask the assistant to use a tool under the current permissions.
Snapshots & /undo
/undo requires snapshot: true in config. Snapshot capture is disabled by default; without that explicit setting, /undo is a no-op.