Skip to main content

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

1

File References

Type @ to open a fuzzy search for project files. Navigate with arrow keys and press Enter to insert the file path.
2

Path Completion

Press Tab to autocomplete file paths as you type.
3

Multi-line Input

Press Shift+Enter (or Ctrl+Enter on Windows Terminal) to add newlines without submitting.
4

Image Input

  • Ctrl+V: Paste images from clipboard
  • Drag & Drop: Drag image files onto the terminal
5

Bash Commands

Execute bash commands directly from the editor:
  • !command - Runs command and sends output to the LLM
  • !!command - Runs command without sending output

Built-in Commands

Type / in the editor to trigger commands:

Authentication & Models

Session Management

Export & Sharing

Configuration

Exit

Keyboard Shortcuts

Press /hotkeys to see all shortcuts. Customize in ~/.pi/agent/keybindings.json.

Essential Shortcuts

Advanced Keyboard Shortcuts

For full editing shortcuts (delete word, undo, etc.), see the keybindings documentation.

Message Queue

Send messages while the agent is working:
1

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:
2

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:
3

Managing Queued Messages

  • Escape: Abort and restore queued messages to editor
  • Alt+Up: Retrieve queued messages back to editor

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

Tips & Tricks

Use Ctrl+P for quick model switching. Configure your favorite models with --models flag:
Paste large code blocks. Pi automatically detects large pastes and offers to collapse them to save tokens.
Label important points in /tree view with the L key to create bookmarks for easy navigation.
Use thinking levels strategically:
  • off/minimal: Quick tasks, file operations
  • medium: Standard coding tasks
  • high/xhigh: Complex debugging, architecture decisions