Use fixlock with your AI assistant
fixlock plugs into AI coding assistants in up to three ways:
| What it does | Works in | |
|---|---|---|
| MCP server | The assistant asks fixlock before editing: "may I change these lines?" and gets a verdict (ok, warn, ask, block) with the reason and owner. | Claude Code, Cursor, GitHub Copilot (VS Code), Codex, Gemini CLI, Windsurf, any MCP client |
| Rules file | The assistant's own instructions file tells it to check before rewriting working code, and lists the current locks. | 12 assistants (see AI tools) |
| Pre-edit hook | The edit is intercepted before it happens, even if the assistant forgets to check. | Claude Code |
Behind all of them, the git hooks warn at commit time and CI blocks reverting PRs until the owner approves, whatever tool wrote the code.
Set up
bash
npx fixlock setup claude-code # or: cursor, copilot, codex, gemini, windsurf, allPrefer clicks? The VS Code extension shows locks in the editor, warns as you type, and connects Copilot agent mode automatically.
| Assistant | Guide |
|---|---|
| Claude Code | Claude Code |
| Cursor | Cursor |
| GitHub Copilot | GitHub Copilot |
| OpenAI Codex | Codex |
| Anything else with MCP | MCP server reference |