earendil-works/pi ? reverse-engineered prompt
Reverse engineered prompt
Build me an AI coding agent toolkit like Pi. I want a command line coding assistant that can work interactively in a repo, call tools, keep track of its state, and use different AI providers like OpenAI, Anthropic, and Google through one clean API.
Please include the core agent runtime, the CLI experience, and reusable UI pieces for chat style interfaces in both terminal and web contexts. It should feel useful for open source coding work, with sensible commands to install, build, check, and test everything from the repo.
Keep it organized as a TypeScript monorepo with separate packages for the AI provider wrapper, the agent core, the coding agent CLI, terminal UI utilities, and web UI components. Add clear docs so a developer can understand how to run it locally and how the packages fit together.
Look up current provider docs online if you need to, but keep the first pass practical and working.
Are you gonna build this?
make sure you review the code using coderabbit