sondera-ai/sondera-coding-agent-hooks

208 stars · Last commit 2026-05-07

Hooking implementations and supporting tools for various coding agents (Claude, Cursor, Gemini, etc)

README preview

# Coding Agent Hooks by Sondera

> Released as part of the *Hooking Coding Agents with the Cedar Policy Language*
> talk at [Unprompted 2026](https://unpromptedcon.org/).

A reference monitor for AI coding agents. Rust hook binaries and [Cedar](https://docs.cedarpolicy.com/) policies
intercept every shell command, file operation, and web request to forbid
exfiltration and destructive behaviors, and enforce information flow control.
YARA signatures and Cedar policy evaluation are deterministic; the optional
LLM-based classifiers (data sensitivity, secure code policy) are probabilistic.

Works with [Claude Code](https://code.claude.com/docs/en/hooks),
[Cursor](https://cursor.com/docs/agent/hooks),
[GitHub Copilot](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/use-hooks),
and [Gemini CLI](https://geminicli.com/docs/hooks/).

## Getting Started

### Prerequisites

View full repository on GitHub →