@eqtylab/cupcake
- Function: A policy engine for AI coding agents (like Claude Code, Cursor, OpenCode) that intercepts tool calls, evaluates them against user-defined OPA Rego policies, and returns Allow, Block, or Wa
Install
Add @eqtylab/cupcake to Claude Code with the PolySkill CLI: polyskill add @eqtylab/cupcake
Instructions
## Cupcake System Overview - **Function:** A policy engine for AI coding agents (like Claude Code, Cursor, OpenCode) that intercepts tool calls, evaluates them against user-defined **OPA Rego policies**, and returns `Allow`, `Block`, or `Warn` decisions. - **Core Flow:** $$\text{Event Input} \rightarrow \text{Route (O(1))} \rightarrow \text{Gather Signals} \rightarrow \text{Evaluate (WASM)} \rightarrow \text{Synthesize} \rightarrow \text{Response}$$ - **Hybrid Model:** **Rego (WASM)** declares rules/aggregates verbs; **Rust (Engine)** handles routing, signal gathering, and final decision synt…
Keywords: github, policy-engine, opa-rego, ai-coding-agents, tool-interception, access-control, policy-evaluation, security-compliance, coding-automation