kthxbyte/sasha ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python command line app that feels like a normal bash session, but with a helpful AI tucked underneath it.

I want to type shell commands as usual and have them run exactly like bash, with the current folder and recent history remembered. If I mistype a command, hit a syntax error, or type something that is clearly not a shell command, it should quietly ask an AI for help using my real terminal context. If a command fails, it should show a gentle prompt and let me decide whether to ask for help. Nothing the AI suggests should run automatically, I always want to confirm first.

Make it easy to configure with a local config file, support a few different AI profiles, and let me switch between them. On first launch, create any missing config and personality file for me with sensible defaults. Keep it lightweight, Python only, no extra runtime dependencies, and make the interface feel polished in the terminal. If you need current docs for anything, look them up online.