Skip to content

Commands

Type / in the message input to see available commands.

Available Commands

CommandDescription
/compactCompress conversation history to free up context space
/clearClear current chat and start fresh
/undoRevert all file changes made in this session
/planEnter plan mode — Agent Nine plans before acting
/helpShow available commands and usage tips

Details

/compact

When your conversation gets long, the AI context fills up. /compact compresses the history into a summary, freeing up space while preserving important context.

When to use: When you notice Agent Nine "forgetting" earlier parts of the conversation or when the context indicator shows it's nearly full.

/clear

Starts a completely fresh conversation. All chat history is removed from the current session.

When to use: When switching to a completely different task or when the conversation context is no longer relevant.

/undo

Reverts all file changes Agent Nine made during the current session. This is your safety net — if Agent Nine made changes you don't like, /undo puts everything back.

When to use: When Agent Nine modified files in a way you didn't expect.

/plan

Enters plan mode — Agent Nine will analyze the task and create a structured plan before writing any code. The plan is saved to .agent-nine/plan.md in your project.

When to use: For complex tasks where you want to review and approve the approach before implementation.

/help

Shows a quick reference of available commands and tips for using Agent Nine effectively.

Agent Nine — AI coding assistant