agegr/pi-web — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a local web interface for the pi coding agent.

I want to open it in the browser and see all my saved agent chats grouped by project folder. I should be able to click a session, read the conversation, continue chatting with the agent in real time, and see streaming responses as they happen.

Please include the useful chat controls from the existing pi workflow, like forking a chat from an earlier user message, going back to a previous point and continuing on a different branch, switching between branches visually, changing the model during a chat, choosing what tools the agent can use, summarizing long chats to save context, and either interrupting the agent or adding another message after it finishes.

It should read sessions from the normal pi data folder, with an environment variable to point at a different folder. It also needs a sidebar where I can edit the available models config and browse files in the current project folder in tabs.

Make it easy to run locally with a default port, and allow changing the port or hostname from the command line.

Want more depth? Deep Reverse