nicobailon/pi-interactive-shell

Pi coding agent extension that allows Pi to autonomously control interactive CLIs in an observable overlay. Full PTY emulation, no tmux, token efficient. User can take over anytime.

What it solves

This tool allows the Pi coding agent to run interactive terminal applications (like text editors, database shells, or long-running servers) within an observable overlay. It bridges the gap between autonomous agent tasks and the need for human visibility or manual intervention in complex, interactive command-line environments.

How it works

It provides an interactive_shell tool that launches processes in one of four modes: Interactive (for direct control), Hands-free (for monitoring long tasks), Dispatch (for delegating to sub-agents), and Monitor (for event-driven alerts). The agent manages the process, while you can watch the output in a TUI overlay or take control at any time by typing directly.

Who it’s for

Developers who use the Pi coding agent and need to run interactive CLI tools—such as vim, htop, psql, or npm run dev—without losing the ability to monitor progress or intervene manually.

Highlights

  • Real-time visibility: Watch exactly what the agent is doing in a terminal overlay.
  • Human-in-the-loop: Take control of any session instantly by typing, or use keyboard shortcuts to return control to the agent.
  • Flexible execution modes: Choose between interactive sessions, hands-free monitoring, background dispatching, or event-based triggers.
  • Broad compatibility: Works with any standard CLI tool, including editors, build servers, and database interfaces.
  • Structured automation: Supports spawning sub-agents or specific CLI tasks with configurable parameters.

Related

  • Project
  • Project
  • Project
  • Project
  • Project