code-with-antonio/nightcode — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a terminal AI coding assistant called NightCode. I want to open it inside a local project and chat with an AI that can help me understand the code, make a plan, and then switch into a build mode where it can edit files and run commands when I allow it.

It should have a nice terminal interface, streaming chat responses, saved conversations, and tools for reading files, searching folders, writing files, editing files, and running shell commands in the current project. Support OpenAI and Anthropic models if keys are available.

Please include account login through Clerk, store users, sessions, and messages in Postgres with Prisma, and gate usage with Polar credits before letting someone start or continue AI work. Use Bun for the CLI and server setup, with a small API for auth, chat, sessions, and billing. Add clear env examples and setup notes so I can run it locally. Look up current docs online if you need to.

Want more depth? Deep Reverse