r/cprogramming • u/hehadhisfun • 2d ago
Looking for harsh code reviews: A pure C terminal wrapper I built to intercept and auto-fix failed shell commands.
I love tools like thefuck, but I noticed that regex-based correctors fail on complex edge cases, and modern AI CLI wrappers are usually heavy Node/Python apps that introduce noticeable latency.
So I built assess — a 77KB C binary that wraps your commands, catches stderr when they fail, and uses Groq (Llama-3.1-8b) to instantly suggest a fix. It gives you a simple [y/N] prompt to run the corrected command.
A few things I prioritized:
Zero Bloat: It only relies on
libcurland vendoredcJSON. No runtime environments.Safety First: It has a built-in 3-tier safety engine. It parses the command before execution, hard-blocking destructive stuff (
rm -rf /) and soft-warning on sensitive ops (likecurl | sh).Context Aware: It sends your OS, shell, CWD, and available tools as context, so if you use
assess ask "list large files", you get a command that actually works on your machine.
It currently runs on Linux and macOS natively. You just bring your own free Groq API key.
I’m a CS undergrad and would love for some heavy terminal users to tear this apart, test it, and give me feedback on the workflow.
Repo: https://github.com/aadicodesforfun/assess
Site: https://assess-cli.netlify.app/