Directory · Hooks
Sondera Coding Agent Hooks
Rust hook binaries and Cedar policies that act as a reference monitor, blocking exfiltration and destructive actions by coding agents.
★ 230 stars · last updated 2026-10-25 · Free, open source · View on GitHub
Best for
- Enforcing security policies on Claude Code, Cursor, Copilot, or Gemini CLI tool calls
- Blocking data exfiltration and destructive shell or file operations
- Teams wanting deterministic, auditable policy rules via Cedar and YARA
- Reviewing adjudicated agent runs in a terminal UI
Install
cargo run -p sondera -- serve -v
cargo run -p sondera -- hook claude install
cargo run -p sondera -- tui
Our take
Hook adapters forward normalized events over gRPC to a local harness that returns Allow, Deny, or Escalate, and enforcement hooks fail closed if the harness is unreachable. It ships a 110-policy Cedar corpus and needs no API key, with optional LLM classifiers that are probabilistic. Enforcement capabilities vary by agent, and prebuilt releases cover only Linux x86-64 and Apple silicon.
Similar hooks
- Claude Code Ultimate Guide: Large open guide to Claude Code covering agent workflows, hooks, skills, MCP, security, and team adoption, with reusable templates.
- dcg (Destructive Command Guard): Rust pre-execution hook that blocks destructive shell, git, filesystem, database, and cloud commands run by AI coding agents.
- Claude Code Showcase: Example Claude Code project config with hooks, skills, agents, slash commands, MCP setup, and GitHub Actions workflows to copy from.
- Claude Code Hooks Mastery: Reference project implementing all 13 Claude Code hook events as UV Python scripts, plus sub-agents, status lines, and output styles.
- Continuous Claude v3: Hooks, skills, and agents that keep Claude Code context across sessions via YAML handoffs, ledgers, and a PostgreSQL memory store.
- Build with Claude: Plugin marketplace and discovery hub of agents, commands, hooks, and skills for Claude Code users extending their workflows.