Cupcake — AI skill for Claude Code
A native policy enforcement layer for AI coding agents.
How to install Cupcake
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open eqtylab/cupcake and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cupcake does
A native policy enforcement layer for AI coding agents. Built on OPA/Rego.
Alternatives in AI
- Osaurus — Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cry 5.1k ★
- Claude Usage Tracker — Native macOS menu bar app for tracking Claude AI usage limits in real-time 2.2k ★
- Paca — AI-native, free, open-source alternative to Jira, Trello, ClickUp & Monday 1.8k ★
README
Cupcake
Make AI agents follow the rules.
[](https://cupcake.eqtylab.io/) [](LICENSE) [](https://github.com/eqtylab/cupcake/actions/workflows/ci.yml) [](https://github.com/eqtylab/cupcake/actions/runs/19737865145/job/56558251812)
**Policy enforcement** layer for AI agents; yielding better performance and security **without consuming model context**.
- Deterministic rule-following for your agents. Interactive Examples
- Better performance by moving rules out of context and into policy-as-code.
- Trigger alerts and put bad agents in timeout when they repeatedly violate rules.
Cupcake intercepts agent events and evaluates them against **user-defined rules** written in **[Open Policy Agent (OPA)](https://www.openpolicyagent.org/) [Rego](https://www.openpolicyagent.org/docs/policy-language).** 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).
Updates
**`2025-12-10`**: Official open source release. Roadmap will be produced in Q1 2026.
**`2025-04-04`**: We produce the [feature request](https://github.com/anthropics/claude-code/issues/712) for Claude Code Hooks. Runtime alignment requires integration into the agent harnesses, and we pivot away fro
Related Skills
Aeon Agent Harness
Self-hosted agent harness platform: durable Temporal execution, typed context/evidence, policy enforcement out
Cupcake Catalog
The official registry of rulebooks for Cupcake, the policy engine for AI coding agents.
Gensee Crate
Run AI harnesses like Claude Code, Codex, Copilot, Antigravity, and Omnigent in disposable workspace forks. Re
AIGuardX
Loss prevention and policy enforcement for generative AI tools (ChatGPT, Gemini, Cursor, Claude, Copilot). Lig
Coverctl
Coverage feedback for AI coding agents — every language, every change. Domain-aware policy enforcement via MCP
AI Coding Rules Scaffold
Two-layer enforcement (pre-commit hook + CI mirror) for small teams using AI agents. Catches debug leaks, file
Related Agents
Devcouncil Implementer
Implements a DevCouncil task end-to-end under policy enforcement. Use
Harness Runtime Architect
Reviews the harness library/CLI surface — plan/policy/approval/execute/audit/rollback semantics, evidence bund
Audit Policy Compliance
Platform policy specialist. Returns schema-valid findings covering platform eligibility, regulated categories,