bubbuild/bub ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python app called Bub that lets me talk to an AI agent in a shared space, either from the command line or through a messaging channel like Telegram. I want it to feel simple and trustworthy, with every turn saved in an append only history so I can see what happened, replay it, and hand it off without hidden memory or weird state.

It should support a chat mode for back and forth conversation, a one shot run mode for a single request, and a gateway mode for listening to incoming messages. Please make it easy to customize the agent’s behavior with plug in hooks, so I can swap out parts like how the prompt is built, how the model runs, and how responses get sent. Include sensible defaults, but keep it small and easy to extend. If you need current docs for any library or model setup, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab