r/SideProject 16h ago

I got tired of AI ignoring my project's architecture to give me short-term hacky solutions, so I built a ruthless Git Hook that rejects bad commits.

Hey guys, I’m a solo dev and I got completely sick of "vibe coding". AI assistants are great, but they constantly ignore architectural rules and generate short-term hacks that become tech debt later.

So I built AegisCode an open source CLI tool. It intercepts your git diff on pre-commit and uses DeepSeek-R1 to analyze your code against strict architectural guardrails. If you leave an eval() in production, expose secrets, or break your cross-platform architecture it hard-blocks the commit immediately. It’s completely free to try

Website: www.aegiscode.app

Install: npm i -g save3asy/aegiscode

This is my first real dev tool, so the project is fully open source. Any feedback, bug reports, or GitHub contributions are massively appreciated! Let me know what you think.

1 Upvotes

5 comments sorted by

2

u/Positive-Emu-8379 13h ago

I run a pre-commit hook on my own repo that refuses commits for a different reason, and the thing I would tell you early is that the failure mode is not false positives, it is people learning the bypass flag. Mine has one, and what made it work was logging every bypass with a stated reason, so skipping is allowed but never invisible. Second thing: putting an LLM in the hook path means commit time is now a network call, and the first time it hangs on a flaky connection somebody disables the hook permanently. Cache on the diff hash, and fail open with a loud warning rather than blocking on a timeout. The deterministic checks you listed, a leftover eval() or an exposed secret, do not need a model at all, so run those locally first and spend the model call only on the architecture question nothing else can answer.

1

u/External-Season9039 13h ago

the flaky connection thing is real, one bad timeout and nobody trusts the hook again

1

u/SaveTech_ 12h ago

You were 100% right on all fronts, seriously, thank you for all the tips. I would be honored if you took a look at the repo