@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…

X AI KOLs Timeline Tools

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.

After trying it out, flipping through sessions and switching branches in the terminal is a real pain. pi coding agent released a web version, pi-web, where you can directly do these things in the browser: View session list, grouped by working directory, at a glance Chat with the agent in real-time, switch models mid-conversation Fork from any message, or rollback to a node and continue chatting, with visual branch navigation Long sessions taking up context? Compress them into a summary The best part is no installation required—just run `npx @agegr/pi-web@latest` and it's up. Honestly, it's much more comfortable than blindly operating in the terminal. https://github.com/agegr/pi-web
Original Article
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

@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…

X AI KOLs Timeline

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.

@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...

X AI KOLs Timeline

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.