Built-in commands
0x0 ships with two built-in commands:| Command | Description |
|---|---|
init | Initialize a project with recommended config and structure |
review | Run a code review on the current changes |
Where commands are loaded from
0x0 loads commands from multiple sources (in priority order):- Built-in commands —
initandreview - Config-defined commands — the
commandkey inconfig.yaml - Command markdown files —
.zeroxzero/command/**/*.mdand.zeroxzero/commands/**/*.md - Global command directories —
~/.zeroxzero/command/**/*.mdand~/.zeroxzero/commands/**/*.md - MCP prompts — prompts exposed by configured MCP servers
- Skills — discovered skills are available as commands
Running a command
- In TUI: type
/your-commandin the input field - In non-interactive mode:
0x0 run --command your-command [message..] - From the command palette: press
ctrl+pand select the command
Command markdown file
Command files use YAML frontmatter with a markdown body:.md) becomes the command name.
Config-defined commands
Define commands inconfig.yaml under the command key:
Command config fields
| Field | Type | Description |
|---|---|---|
template | string | The prompt template text |
description | string | Description shown in the command palette |
agent | string | Agent to use when running this command |
model | string | Model to use (in provider/model format) |
subtask | boolean | Run the command as a background subtask |
Tips
- Keep command names stable so teammates can share workflows.
- Put project-specific commands in repo
.zeroxzero/commands. - Keep global commands focused on reusable personal workflows.
- Use
subtask: truefor commands that should run in the background without blocking.