Shortcuts Blocked Before They Land
When the AI tries to add @ts-ignore, as any or # type: ignore, the edit is stopped and it is told to fix the type.
See what is blockedHatchLock makes Claude Code fix the real problem. Shortcuts like @ts-ignore and as any are blocked before they reach your code, and every edit is checked with your own compilers.
/ Works with the compilers you already have
When an AI hits a type error, the quick way out is to tell the type checker to look away. HatchLock closes that way out and checks the result.
When the AI tries to add @ts-ignore, as any or # type: ignore, the edit is stopped and it is told to fix the type.
See what is blockedThe file that just changed is checked with your own tools. The whole project is checked once when the AI finishes.
See the three checksOnly new shortcuts are stopped. Files that already have them keep working, and the AI can still edit around them.
How that worksIt uses the compilers you already have. There is no account, and nothing is sent anywhere.
Read the details01Block
HatchLock reads each change before it touches your file. If the change adds a comment or cast that hides a type error, the write is refused and the AI gets a one-line instruction to fix the real problem.
See what is blocked02Check
Right after a file changes, HatchLock runs a fast check on that one file with tools such as pyright, shellcheck or gofmt. Mistakes are caught while the AI is still working on them.
What runs for each language✕ [HatchLock Compiler Loop] Check failed after editing scripts/deploy.sh. Fix this before moving on: line 14: syntax error: unexpected end of file
03Verify
When the AI says it has finished, your project's compiler runs once. If it finds errors, the AI goes back and fixes them. It gets one extra round, so it can never loop forever.
How the end-of-turn check works04Allow
Sometimes a suppression is the right call, such as a test that expects a type error. Add hatchlock-allow: and a short reason on the same line and it goes through. Without a reason it is still blocked.
Read about hatchlock-allow$ cat tests/types.test.ts // the call below must not compile // @ts-expect-error hatchlock-allow: asserting this call is a type error sum('not a number');
05Skills
tight-diff runs by itself and keeps changes small. Four commands are there when you want them: optimize, architect, clean and doctor.
See all five skills> /hatchlock:doctor HatchLock LSP & Compiler Toolchain Health Audit [OK] tsc [OK] pyright [--] cargo
Paste them into your terminal. HatchLock starts working in your next Claude Code session. No account, nothing to configure.
Using Copilot, Cursor, Grok or ChatGPT? See every supported tool.
These comments and casts tell the type checker to look away. HatchLock keeps new ones out of five languages.
Existing code is left alone. Declaration files are skipped. hatchlock-allow with a reason lets one through.
HatchLock is a set of small scripts that run the tools already on your machine. It has no server to send anything to.
Read the privacy notePaste the two install commands into your terminal. HatchLock starts working in your next Claude Code session. There is no account and nothing to configure.
No. HatchLock only stops new suppressions. If a file already has one, your AI can keep editing around it.
Add hatchlock-allow: followed by a short reason on the same line, and it goes through. The reason is required, so the next person knows why it is there.
No. HatchLock runs the compilers you already have installed. It makes no network calls and collects nothing.
The check before a write is a quick text scan. After each edit only that one file is checked. Full project checks run once, when the AI finishes its turn.
That check is skipped. A missing tool is never treated as a failure.
Partly. ChatGPT and Codex get the skills as guidance. The blocking and the compiler checks need Claude Code, because only it lets a plugin step in before a file is written.