Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pt-act/pi-mono/llms.txt
Use this file to discover all available pages before exploring further.
Interactive Mode
Pi’s interactive mode provides a powerful terminal interface for working with AI agents. The interface consists of four main areas: startup header, message history, input editor, and status footer.Interface Overview
Starting Interactive Mode
Editor Features
File References
Type
@ to open a fuzzy search for project files. Navigate with arrow keys and press Enter to insert the file path.Multi-line Input
Press Shift+Enter (or Ctrl+Enter on Windows Terminal) to add newlines without submitting.
Built-in Commands
Type/ in the editor to trigger commands:
Authentication & Models
| Command | Description |
|---|---|
/login | OAuth authentication for providers |
/logout | Sign out from OAuth providers |
/model | Open model selector |
/scoped-models | Enable/disable models for Ctrl+P cycling |
Session Management
| Command | Description |
|---|---|
/resume | Browse and select from previous sessions |
/new | Start a new session |
/name <name> | Set display name for current session |
/session | Show session info (path, tokens, cost) |
/tree | Navigate session tree and branch points |
/fork | Create new session from current branch |
/compact [prompt] | Manually compact context with optional instructions |
Export & Sharing
| Command | Description |
|---|---|
/copy | Copy last assistant message to clipboard |
/export [file] | Export session to HTML file |
/share | Upload as private GitHub gist with shareable link |
Configuration
| Command | Description |
|---|---|
/settings | Open settings UI (thinking level, theme, message delivery) |
/reload | Reload extensions, skills, prompts (themes auto-reload) |
/hotkeys | Display all keyboard shortcuts |
/changelog | Show version history |
Exit
| Command | Description |
|---|---|
/quit, /exit | Exit Pi |
Keyboard Shortcuts
Press/hotkeys to see all shortcuts. Customize in ~/.pi/agent/keybindings.json.
Essential Shortcuts
- General
- Models & Thinking
- Display
- Editor
| Key | Action |
|---|---|
| Ctrl+C | Clear editor |
| Ctrl+C (twice) | Quit Pi |
| Escape | Cancel/abort current operation |
| Escape (twice) | Open session tree |
| Ctrl+D | Exit Pi |
| Ctrl+Z | Suspend (returns to shell) |
Advanced Keyboard Shortcuts
For full editing shortcuts (delete word, undo, etc.), see the keybindings documentation.Message Queue
Send messages while the agent is working:Steering Messages
Press Enter to queue a steering message. It’s delivered after the current tool execution, interrupting remaining tools.Use this to redirect the agent mid-turn:
Follow-up Messages
Press Alt+Enter to queue a follow-up message. It’s delivered only after all work is complete.Use this for new requests:
Queue Configuration
In/settings or ~/.pi/agent/settings.json:
- one-at-a-time (default): Waits for response between messages
- all: Delivers all queued messages at once
- transport: Connection type for providers with multiple options
Session Tree Navigation
Press Escape twice or use/tree to navigate your conversation history:
Tree Controls
- Type: Search/filter messages
- ←/→: Page through results
- Ctrl+O: Toggle filter modes (default → no-tools → user-only → labeled → all)
- L: Label entry as bookmark
- Enter: Continue from selected point
Example Workflows
Starting a New Project
Starting a New Project
Continuing Work
Continuing Work
Branching for Experiments
Branching for Experiments