by eqtylab
A native policy enforcement layer for AI coding agents. Built on OPA/Rego.
# Add to your Claude Code skills
git clone https://github.com/eqtylab/cupcakeMake AI agents follow the rules.
Policy enforcement layer for AI agents; yielding better performance and security without consuming model context.
Cupcake intercepts agent events and evaluates them against user-defined rules written in Open Policy Agent (OPA) Rego. Agent actions can be blocked, modified, and auto-corrected by providing the agent helpful feedback. Additional benefits include reactive automation for tasks you dont need to rely on the agent to conduct (like linting after a file edit).
2025-12-10: Official open source release. Roadmap will be produced in Q1 2026.
2025-04-04: We produce the feature request for Claude Code Hooks. Runtime alignment requires integration into the agent harnesses, and we pivot away from filesystem and os-level monitoring of agent behavior (early cupcake PoC).
Cupcake provides lightweight native integrations for multiple AI coding agents:
| Harness | Status | Integration Guide | | --------------------------------------------------------------------------------- | ------------------ | ---------------------------------------------------------------------------- | | Claude Code | ✅ Fully Supported | Setup Guide | | Cursor | ✅ Fully Supported | Setup Guide | | Factory AI ...