01
Built-in commands keep the session moving.
| Command | Purpose |
|---|---|
| /init | Create or refresh project instructions |
| /undo | Undo the latest reversible change |
| /redo | Restore an undone change |
| /share | Create a shareable session link |
| /help | Open command and keybinding help |
02
Store the prompt once; call it whenever you need it.
Create Markdown commands under .brokencode/commands for a project or ~/.config/brokencode/commands for every project.
.brokencode/commands/component.md
---
description: Create a typed UI component
agent: build
---
Create a React component named $ARGUMENTS. Match this project's conventions and add focused tests.03
Commands can accept arguments and current context.
- $ARGUMENTS expands to the full text after the command.
- $1, $2, and later positions select individual arguments.
- Use file references and shell-output blocks when a command needs concrete project evidence.
Run it
/component Button