Hi HN, so I use Claude Code for most of my projects and it's really fast, the app works. But when I opened the code later, I kept finding the same stuff. A helper written again because Claude never saw the one already there. Functions that nothing calls anymore. And sometimes a route where anyone can get in without login. First I tried asking Claude to review its own code. It helped a little, but it costs tokens every time, and it still missed things it wrote earlier in the same session. So I thought, why not check the code without AI at all, and only tell Claude when something is actually wrong. That's what Attentry does. Claude Code has hooks, so you can run your own script when you send a prompt, before an edit and after an edit. When you send a prompt, Attentry tells Claude which functions and routes in your repo already match what you asked, so it reuses them. If Claude is about to write a function the repo already has, it tells Claude where that one is. And after every edit it checks only what changed. If that edit added a problem, like no auth check, no owner check, no rate limit on login, a secret in the code, async errors not handled, or copied and dead code, Claude gets a short note and fixes it. Max 5 lines, each problem only once. If the edit is clean it says nothing, so nothing extra goes into the context. For the checking it uses tree-sitter to read JS, TS and Python, and keeps the repo in memory in a background process. So checking again after an edit takes around 0.1 sec on a 150 file repo. It reads routes for Express, Fastify, Hono, NestJS, Next.js, FastAPI, Flask and Django, and also Socket.io, tRPC, GraphQL resolvers and Next.js server actions. One example from my testing. I asked Claude to make a chat app with login, and its first version had const SECRET = process.env.JWT_SECRET || "superSecret"; and no rate limit on /login. Attentry reported both right after that edit and Claude fixed them in the next one. I didn't do anything. Now the honest part. It only works with Claude Code for now, and only JS, TS and Python. It's static analysis, so there will be false positives. I fixed the ones I found testing on public repos, but I'm sure there are more. And if your project uses a backend it can't read yet, it tells you it couldn't check it, instead of saying everything is fine. It runs on your machine, nothing goes out, and it's MIT. There's a VS Code extension (also on Open VSX) that sets it up in one click, or you can set up the hooks yourself from the README. What I'd really like to know is where it gets things wrong on real codebases, and what it misses. Site: https://attentry.js.org
Open attentry.js.orgattentry.js.org
Attentry
Local static analyzer that checks every edit Claude Code makes for security holes, crash risks, and dead code. Runs locally, no AI. Works with Claude Code and Codex.
Visit project- First shared
- Nov 9, 2026
- HN activity
- 31
Show HN@aarvsinghchauhaNov 9, 2026
Show HN: Attentry – a local checker that reviews each edit Claude Code makes
Community