Emacs frontend for the pi coding agent (https://pi.dev). Provides a two-window interface for AI-assisted coding: chat history with rendered markdown, and a separate prompt composition buffer. Requirements: - pi coding agent 0.51.3 or later, installed and in PATH Optional Dependencies: - phscroll: Markdown tables that exceed the window width wrap awkwardly. phscroll enables horizontal scrolling so tables stay readable. Install from: https://github.com/misohena/phscroll Usage: M-x pi-coding-agent Start or focus session in current project C-u M-x pi-coding-agent Start a named session M-x pi-coding-agent-toggle Hide/show session windows in current frame Many users define an alias: (defalias 'pi 'pi-coding-agent) Key Bindings: Input buffer: C-c C-c Send prompt (queues as follow-up if busy) C-c C-s Queue steering (interrupts after current tool; busy only) C-c C-k Abort streaming C-c C-p Open menu C-c C-r Resume session M-p / M-n History navigation C-r Incremental history search (like readline) TAB Path/file completion @ File reference (search project files) Chat buffer: n / p Navigate messages TAB Toggle tool output RET Visit file at point (from tool blocks) C-c C-p Open menu Editor Features: - File reference (@): Type @ to search project files (respects .gitignore) - Path completion (Tab): Complete relative paths, ../, ~/, etc. - Message queuing: Submit messages while agent is working: C-c C-c queues follow-up (delivered after agent completes) C-c C-s queues steering (interrupts after current tool) Press C-c C-p for the full transient menu with model selection, thinking level, session management, and custom commands. See README.org for more documentation.