DrustZ/GitChat — reverse-engineered prompt

Reverse engineered prompt

Build me a local web app called GitChat that makes AI conversations work more like a git tree instead of one long chat. I want to see messages as connected boxes on a canvas, so I can branch from any earlier message, compare different replies, merge ideas, and control which parts of the conversation count as context for the next response.

It should let me add user and AI message nodes, drag connections between them, zoom and pan around the canvas, and show a small minimap. I want to be able to double click a node to edit it, delete nodes or connections, and use a simple right click menu to replicate a node or create a connected node. The big thing is that if I edit an earlier user message, any later AI replies that depend on it should regenerate automatically so the thread stays coherent.

Please make it run locally with a small server and use my OpenAI API key from an env file. If you need details, look up current docs online and make it feel clean and usable.

Want more depth? Deep Reverse