How to Start
Use/agent or /run, followed by your task in natural language:
The Agent Cycle
Action Plan Interface
After planning, you will see a dedicated screen with two views (toggle withp):
- Compact View (Default)
- Full View
Ideal for an overview of the flow, showing status and the first line of each command.
Interactive Menu
The menu allows you to manage execution with precision:| Action | Description |
|---|---|
[N] | Execute Command N — runs a single step of the plan (e.g., 1) |
a | Execute All — runs all pending commands in sequence |
eN | Edit Command N — opens the command in an editor for modification |
tN | Test (Dry-Run) — simulates execution without making changes |
cN | Continue from N — sends the output to the AI and asks for next steps |
pcN | Pre-Execution Context — adds information for the AI to refine the command |
acN | Post-Execution Context — sends the output with new context |
vN | View Output — opens the full output in a pager (less) |
wN | Save Output — saves the command output to a temporary file |
p | Toggle Plan — switches between compact and full view |
r | Redraw Screen — clears the screen |
q | Quit — exits Agent Mode and returns to chat |
Security
You always have the final say. No command is executed without your approval.Unified History and Context
Agent mode shares the same conversation history as chat and coder. This means you can:- Start a conversation in chat, enter
/agent, and the AI will have all the previous context - Use
/compactto reduce history when it gets large - Use
/rewind(or Esc+Esc) to go back to an earlier point in the conversation