Fairlead — AI skill for Claude Code
Open-source policy gate for AI coding agents.
How to install Fairlead
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open OliverKlug/fairlead and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Fairlead does
Open-source policy gate for AI coding agents. Checks every command, file operation and tool call from Cursor, Claude Code, Windsurf and OpenHands against Cedar rules before it runs. Rust, Apache-2.0.
Alternatives in AI
- Codeseek — Rust-powered code intelligence CLI for AI coding agents 764 ★
- Nexpath — Local-first AI coding workflow for vibe coders, indie hackers, technical founders and product managers — catch 41 ★
- Harness Autonomy — Run the decidable checks an auto-merge policy can trust: block and policy rules only, no heuristics, no LLM 32 ★
README
Fairlead
Open-source policy gate for AI coding agents
AI coding agents such as Cursor and Claude Code can run commands, edit files and call tools on your computer on their own. That is what makes them useful, and it is also the risk: a hidden instruction in a ticket, a web page or a tool result can talk an agent into running something you never asked for, like planting a file that Git runs on your next commit or sending a secret to a server. Fairlead is an open-source policy gate for AI coding agents. It sits between the agent and your machine, checks every command, file operation and tool call against a plain-text rule file before it runs, and blocks what the rules forbid. The decision comes from the rules you can read, not from a second AI model, so the same input gets the same answer every time.
The agent can still read the bad text. Fairlead stops the action that follows it.
It enables developers to:
- Check: intercept shell commands, file reads and writes, fetches, MCP tool calls and subagent starts from Cursor, Claude Code, Windsurf and OpenHands before they run.
- Decide: evaluate each action against a Cedar policy pack with default deny and forbid-wins semantics. No model sits on the allow path.
- Remember: carry session state, such as "a secret was read" or "untrusted web text was seen", so that a later
curlis refused even when it looks harmless on its own. - Record: write a signed Ed25519 receipt for every decision to a local file that leaves the machine only if you export it.
- Verify: refuse to arm when the policy fixtures fail, when the host's fail-closed setting is missing, or when the policy pack, the binary or the hooks file no longer match the pinned hashes.
Benchmarks
Fairlead ships an attack suite instead of a leaderboard. It maps 16 numbered
Related Skills
Airlock
Runtime firewall for AI coding agents. Gate every tool, MCP and skill call against a least-privilege policy.
Provio
A safety floor your AI agents can't get under: one policy for Claude Code, Codex, Gemini CLI, Cursor, Windsurf
Memnox Runtime
Let AI agents work autonomously. Memnox rules on every tool call Claude Code, Codex, Cursor, Gemini CLI and Wi
Stepwarden
Every tool call your agent makes, checked before it runs. A Claude Code plugin that uses TypeSafe AI's Jev to
Radius
AI agents run shell commands on your machine. One hallucination = rm -rf or leaked ~/.ssh. RADIUS intercepts e
Taste To Evals
Agents propose, owners' rules decide, every decision leaves evidence. An interview turns a business owner's ru
Related Agents
10x Tool Calls
Cursor and Windsurf meter usage by requests and tool calls rather than tokens, which means a finished or stall
🦀 Claw CR
Der Open-Source-Coding-Agent, in Rust gebaut. Alternative zu ClaudeCode Status Language
Hcs Policy Reviewer
Reviews HCS policy changes (tiers, gateway rules, approval-grant semantics) for duplication, escalation holes,