Back to directory

Coding Agent Hooks by Sondera

A reference monitor for AI coding agents that intercepts every shell command, file operation, and web request through Rust hook binaries and Cedar policies, blocking exfiltration and destructive actions across Claude Code, Cursor, Copilot, and other agent tools.

Coding Agent Hooks by Sondera

This project enforces information-flow-control policies on AI coding agents by intercepting their shell commands, file operations, and web requests through per-agent hook adapters and a central policy service. Deterministic signature scanning and Cedar policy evaluation combine to return an allow, deny, or escalate decision for each event, and hooks fail closed if the policy service cannot be reached. Optional LLM-based classifiers for data sensitivity or secure-code policy are available but are explicitly probabilistic and configurable separately from the deterministic checks.

Each hook adapter supports a different subset of enforcement actions, including blocking, asking for approval, steering context, redacting tool output, or terminating a run, depending on what its host agent exposes; adapters exist for Claude Code, Cursor, GitHub Copilot, Gemini CLI, and several others including VS Code, Antigravity, Codex, and OpenHands.

It ships as Rust hook binaries with a local harness, and was presented at security conferences alongside an accompanying research paper.

More in Agent skills

See all 581
  • Provenance gate

    github.com

    A deterministic authorization gateway that sits between an AI agent and its tools, tracing where each parameter of a side-effect call came from, and blocking the call or asking a human when the source does not check out.

  • A markdown framework of system rules that restates Isaac Asimov's Four Laws of Robotics as a set of prioritized loss calculations for large-language-model agents to follow, published as a discovery file for agents and crawlers to read.

  • Vitruvius

    github.com

    An engineering research agent that runs a discover, read, synthesize, verify and review loop over technical questions, reading sources directly rather than inferring from titles, and publishing its own scored verifier benchmark, weaknesses included.