qwen-code-dev-bot/oh-my-cli ? reverse-engineered prompt

Reverse engineered prompt

Build me a small command line code agent in TypeScript for Node 22 that can talk to an OpenAI compatible model and use simple file and shell tools to help with coding tasks.

I want it to work both as a one off command where I pass a prompt, and as an interactive REPL when I just run the CLI. It should support a user settings file in my home folder for model config, plus environment variables that always win, and it should let me switch between named profiles like a local model or a hosted one. Please include safe checks like a preflight command, a way to list profiles, and session resume so I can pick up old conversations later. Sessions should be saved locally, and if possible add a compacted summary flow so long runs can continue without losing the important state.

If you need to look up current docs online for any API details, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab