agent-control-plane-core weekly downloads statistics
By AlexanderMattTurner · npm · Claude Code
Vendor-neutral control-plane contract for coding agents: a normalized ToolCallEvent/Verdict schema with per-agent adapters (Claude Code, Codex, Amp, Gemini CLI) and a conformance suite.
agent-control-plane-core has 37,037 recorded weekly downloads on npm, an increase of 10.1% over the past 30 days, ranking #870 of 3,247 tracked listings.
About agent-control-plane-core
agent-control-plane-core
One shape for "a coding agent is about to run a tool" and "here's what my guardrail decided" — so you write your tool once and it works across every agent.
The problem this solves
Coding agents — Claude Code, Codex, Gemini CLI, opencode, Amp, and friends — all let you hook into their tool-call loop: before a shell command runs, after a file is written, when a prompt is submitted. That's where you'd plug in a security guardrail, an audit log, a secret redactor, a policy engine.
But every agent speaks its own protocol. One sends you tool_name +
tool_input on stdin and wants {"permissionDecision":"deny"} back plus exit
code 2. Another names the fields differently, blocks by throwing inside a plugin,
or can only observe and not veto. The field names differ, the "block this"
signal differs, and each one drifts on its own release cadence.
So if you build a tool that touches more than one agent, you end up writing and maintaining N copies of the same logic — one per agent — and re-testing all of them every time an agent ships a new field. That's the tax this package removes.
What it gives you
ToolCallEvent— one normalized, agent-agnostic view of "an agent event" (a tool about to run, a tool that just ran, a prompt, a session start).Verdict— one normalized way to say what your guardrail decided:allow/deny/ask, optionally with a rewritten input or extra context.- Adapters — a thin
{ parse, render }translator per agent, plus the declaration of what that agent's transport cannot carry.parseturns that agent's raw hook payload into aToolCallEvent;renderturns yourVerdictback into the real native signal that agent enforces (the right JSON body, exit code and stderr reason — not just a print).
You write your logic once against the normalized types. Adding support for a new agent is a new adapter (~one file + fixtures), not a rewrite of your tool. The agent-specific field names live only inside that agent's adapter.
Who wants this
Anyone building a tool that sits in the tool-call loop of more than one coding agent, and doesn't want to fork it per agent:
- Security guardrails — deny-listers, command/path sanitizers, permission gates.
- Observability & audit — log or replay every tool call in a uniform shape.
- Redaction / DLP — strip secrets from tool inputs or outputs before they move.
- Policy engines — one rule set enforced identically no matter which agent runs.
If you only ever target a single agent, you don't need this — just use that agent's native hooks. The value is entirely in the N-agents case.
Not a security boundary. A
Verdictis advisory: a useful first filter, never the last line of defense. Some agents can't enforce adenyat all (the adapter marks thoseobserve_only), so a real deployment still needs a sandbox underneath. Treat the control plane as a policy layer on top of isolation, not a replacement for it.
Install
pnpm add agent-control-plane-core
The model
// ToolCallEvent — a normalized, agent-agnostic view of one agent event.
{
schema_version: 1,
event: "pre_tool" | "post_tool" | "prompt_submit" | "session_start" | "unknown",
tool: string | null, // "Bash" | "Edit" | "Write" | "Read" | "WebFetch" | <passthrough> | null
input: object, // tool input; a submitted prompt folds into input.prompt
response?: unknown, // post_tool only
this_call_vetoable: boolean, // false ⇒ a deny here is advisory only; the guardrail cannot block THIS call
meta: {
agent: string, // "claude" | "codex" | …
native_event: string, // original native event name, preserved verbatim
session_id?, cwd?, permission_mode?, transcript_path?,
passthrough: object, // every unmodelled native top-level field, verbatim
}
}
// Verdict — a normalized guardrail decision.
{
decision: "allow" | "deny" | "ask",
mutated_input?: object, // replacement tool input (pre_tool)
mutated_output?: unknown, // replacement tool output the model sees (post_tool)
additional_context?: string, // extra context to splice into the agent's stream
reason?: string, // shown on deny/ask
}
An Adapter is
{ AGENT, COVERAGE, UNRENDERED_FIELDS, NATIVE_ASK_TIER, parse, render }:
parse(nativeEvent) -> ToolCallEvent // never throws on unknown input
render(verdict, event) -> nativeResponse // the agent's native shape
// Which Verdict content fields this host has NO native channel for, per event
// kind. Every EventKind needs a row: an omission would read as "every field
// reaches a channel here", which is the reverse of the truth on a transport
// that carries none.
UNRENDERED_FIELDS = Object.freeze({
[EventKind.PRE_TOOL]: readonlySet(["mutated_output"]),
[EventKind.POST_TOOL]: readonlySet(["mutated_output"]),
[EventKind.PROMPT_SUBMIT]: UNRENDERED_ON_UNKNOWN,
[EventKind.SESSION_START]: UNRENDERED_ON_UNKNOWN,
[EventKind.UNKNOWN]: UNRENDERED_ON_UNKNOWN,
})
// Does this host carry a distinct "ask the human" tier that it honours?
// true ⇒ a rendered `ask` suspends the call in front of a person
// (Claude Code's permissionDecision: "ask", Amp's exit 1).
// false ⇒ the host has no such tier, so `render` collapses `ask` onto another
// signal (Gemini CLI's advisory decision: "deny") and an un-escalated
// ask lets the tool run.
NATIVE_ASK_TIER = false;
```…
Description from the npm listing.
- claude
- claude-code
- codex
- agent
- control-plane
- hooks
- adapter
- guardrail
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Claude Code plugins
All 20 agent-control-plane-core alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/agent-control-plane-core. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.