Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By nicsuzorv1.0-rc5MITIn 1 marketplace
Advisory in-session rule enforcement: a small language model judges each tool call against the three-layer rule set (axioms, project rules, user rules) over the Reflexes evaluator contract.
Claude hands work to one, or you mention it with @.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
In-session rule checking on two operational layers:
Stop event, holds completion once so the agent explicitly checks its work against governing rules and cites verifiable evidence.| Component | File | Purpose |
|---|---|---|
PreToolUse / PreInvocation | hooks/dispatch.py | Runs turn/tool checks (Claude Code) or injects rule roster (agy). |
Stop / SubagentStop | hooks/dispatch.py | Prompts rule verification before final handback. |
| Evaluation Handler | hooks/handlers.py | Evaluates tool calls against rules and injects advisories. |
| Stop Handler | hooks/handlers.py | Dispatches rule-check.md once per turn chain. |
| Evaluator Client | hooks/evaluator.py | HTTP client for cope and openai wire protocols. |
| Rule Loader | hooks/rules.py | Merges three rule layers (trigger: always_on). |
| Messages | hooks/messages/*.md | Templates for advisories, prompts, and stop checks. |
Rules are loaded and merged across three layers (earlier layers cannot be overridden):
axioms skill's files, skills/axioms/ (inviolable baseline).$CWD/.agents/rules/*.md (project-local).$ACA_DATA/.agents/rules/*.md (user-scoped).Only markdown files declaring trigger: always_on are sent to the evaluator or roster.
Set via environment variables:
| Variable | Protocol / Hook | Default | Purpose |
|---|---|---|---|
COPE_EVALUATOR_URL | All | none | Evaluator endpoint URL (omitted = clean no-op). |
COPE_EVALUATOR_PROTOCOL | cope or openai | none | Protocol format spoken by endpoint. |
COPE_EVALUATOR_MODEL | All | none | Model identifier sent in requests. |
COPE_EVALUATOR_API_KEY | Optional | none | Bearer token for authenticated endpoints. |
COPE_EVALUATOR_TIMEOUT | All | 5.0 | Max seconds allowed for per-tool check sweep. |
COPE_EVALUATOR_TRACE_PATH | Tracing | none | Path to append JSONL rule evaluation logs. |
COPE_EVALUATOR_OTEL_TRACE_PATH | Tracing | none | Path to append OTLP JSON file spans. |
ACA_DATA | Roster / Loader | none | Root directory for layer 3 user rules. |
Run a local open-weights classifier (zentropi-ai/cope-b-a4b via llama.cpp + shim):
python3 scripts/cope_eval_stack.py start \
--server-bin <llama.cpp>/build/bin/llama-server \
--model <path>/cope-b-a4b.Q4_K_M.gguf \
--log-dir <state-dir> \
--warmup .agents/rules
Point the agent environment at COPE_EVALUATOR_URL=http://127.0.0.1:8099/v1/label and COPE_EVALUATOR_PROTOCOL=cope.
hooks/dispatch.py: Hook dispatcher runtime.agents/rbg.md: the rbg agent (the Judge).skills/axioms/: the axioms skill; its files are the Layer 1 baseline rules.Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.