@NFTCPS: After trying it out, flipping through sessions and switching branches in the terminal is a real pain. The pi coding agent released a web version, pi-web, where you can do these things directly in the browser: view session list, grouped by working directory, chat with the agent in real-time, switch models mid-conversation, fork from any message, or rollback…
Summary
The pi coding agent has launched a web version, pi-web, offering session management, real-time conversation, branch navigation, and more, which can be quickly run via npx.
View Cached Full Text
Cached at: 06/16/26, 05:40 PM
After using it for a while, flipping through sessions and switching branches in the terminal is really a hassle. The pi coding agent now has a web version called pi-web, which lets you do these things directly in the browser: see the session list, grouped by working directory, at a glance; chat with the agent in real time, and switch models on the fly in the middle of a conversation; fork from any message, or roll back to a certain node and continue the conversation, with visual navigation for switching branches; compress long sessions that take up too much context into a summary; the best part is that no installation is needed — just run one line: npx @agegr/pi-web@latest. Honestly, it’s way more comfortable than blindly operating in the terminal. https://github.com/agegr/pi-web — # agegr/pi-web Source: https://github.com/agegr/pi-web # pi-web Web interface for the pi coding agent (https://github.com/badlogic/pi-mono). Browse sessions, chat with the agent, fork conversations, and switch message branches in the browser. ## Quick Start No installation required, run directly: bash npx @agegr/pi-web@latest Or install globally and use: bash npm install -g @agegr/pi-web pi-web After starting, open http://localhost:30141. Optional parameters: bash pi-web --port 8080 # Custom port pi-web --hostname 127.0.0.1 # Local access only pi-web -p 8080 -H 127.0.0.1 # Combined usage PORT=8080 pi-web # Also supports environment variables ## Features - Session Browser — Displays all pi sessions grouped by working directory - Real-time Conversation — Interact with the agent via SSE streaming output - Session Forking — Create new independent session branches from any user message - In-Session Branching — Roll back to any node and continue the conversation, creating branches within the same file - Branch Navigator — Visually switch between branches within the same session - Model Switching — Switch models anytime during a conversation - Tool Panel — Control which tools the agent can use - Compress Session — Summarize long sessions to save context window - Interrupt / Append — Interrupt a running agent, or append a message after it finishes ## Notes - Data Directory — Reads session files from ~/.pi/agent/sessions by default. You can specify a different directory via the PI_CODING_AGENT_DIR environment variable. - Model Configuration — Reads available models from models.json in the agent data directory; can be edited in the “Models” panel in the sidebar. - File Browser — Built-in file browser in the sidebar; lets you view files in the current working directory in tabs. ## Development bash npm install npm run dev # Port 30141 ## Project Structure app/ api/ sessions/ # Read/write session files agent/ # Send commands, SSE event stream files/ # Read file contents models/ # Available models list and default model models-config/ # Read/write models.json components/ # UI components lib/ session-reader.ts # Parse .jsonl session files rpc-manager.ts # Manage AgentSession lifecycle normalize.ts # Normalize toolCall field names types.ts Session file storage path: ~/.pi/agent/sessions/<encoded working directory>/<timestamp>_.jsonl
Similar Articles
@laogui: The best Hermes WebUI I’ve used so far—sessions, file tree, automation, long-term memory, multiple profiles, all inside the browser. Pick up any TUI or Telegram thread right where you left off.
Hermes WebUI packs session control, workspace file tree, automation, persistent memory and multi-profile support into a browser chat that syncs with TUI and Telegram.
@oragnes: Recently discovered a hardcore open-source project from Harness: pi (recently moved under earendil-works from badlogic). It is an all-in-one AI Agent infrastructure suite plus a terminal programming assistant CLI designed to backstop developers. Stop reinventing the wheel: it provides a ready-made…
Pi is an open-source AI Agent infrastructure suite and terminal programming assistant CLI. It offers a unified API to bridge differences between multiple models, supports concurrent tool calling to reduce latency, and allows developers to control the thinking budget.
@geekbb: No more digging through terminal tabs when running multiple AI coding agents simultaneously. The kanban board gives you an instant overview of who is working, who is waiting, and who is done. https://github.com/lanes-sh/app
Lanes is a native macOS desktop application that serves as a mission control for managing multiple AI coding agents, featuring an issue board, live embedded terminals, and Git integration to streamline developer workflows.
@WWTLitee: Many coding agents easily get stuck when they touch real engineering environments like editors, browsers, and LSP. oh-my-pi takes a different path. Instead of keeping the agent in the terminal chatting, it directly integrates hash anchor editing, LSP, Python, browser, subagents...
oh-my-pi is an open-source coding agent that integrates hash anchor editing, LSP, Python, browser, subagents and other capabilities into a single workspace, providing out-of-the-box complete IDE integration. It currently has 5.8k stars.
@yibie: oh-my-pi: Someone turned Pi into the most powerful terminal coding agent --- Pi is a terminal coding agent made by Armin Ronacher (author of Flask). Someone forked it and created oh-my-pi. 4,796 stars...
oh-my-pi is an enhanced terminal coding agent based on Pi, supporting hash-anchored edits, dual engines, LSP integration, and more. It's open-source and highly customizable.