MCP & Plugin
Part 2 — The Claude Code Plugin
On this page
What it provides
| Command | Purpose | Network |
|---|---|---|
/evigauge:instrument | Detect the stack, instrument it, verify a span lands | Yes — verification only |
/evigauge:secure | Prompt-injection audit + mitigations under review | Zero egress |
/evigauge:log | Committed, agent-queryable relational dev-log | Zero egress |
/evigauge:compress | Set up, calibrate, and verify pxcore | None |
Plus the bundled pxcore MCP server (vendored — no pip install required) and a
Stop hook that enriches pending dev-log entries.
Current version: 0.6.0.
Installation
In Claude Code, add the marketplace and install the plugin:
/plugin marketplace add evigauge-org/evigauge-cli-plugin
/plugin install evigauge@evigauge
Local checkout (developing against a clone): add the directory as the marketplace instead, then install the same way —
/plugin marketplace add ./evigauge-cli-plugin
/plugin install evigauge@evigauge
Validate any layout with claude plugin validate ..
Verify it loaded:
/help
/evigauge:instrument, /evigauge:secure, /evigauge:log, and /evigauge:compress
should be listed.
/evigauge:instrument
Instruments the project for Evigauge observability. It detects the tech stack (Python, Next.js, Node, React, React Native), chooses the correct integration route, writes the code and env, and verifies a span lands with zero dead-letters.
/evigauge:instrument
/evigauge:instrument use direct http
/evigauge:instrument attribute per end user
Argument: an optional free-form instruction.
What it does
-
Detects the stack — reads manifests and entrypoints.
-
Picks a route:
Stack Route Python evigauge-traceSDK (init()+@observe)Next.js instrumentation.ts+ OTLP/JSON exporterNode / TS Generic OTel bootstrap + attribute helpers React / React Native Direct HTTP span emission -
Writes the code — bootstrap, attribute helpers, and
.enventries. -
Verifies — emits a real span and confirms it arrived with zero dead-letters. This is the step that matters: an instrumented app that silently dead-letters every span looks identical to a working one until you check.
Also use it for debugging
Run it on an already-instrumented project to diagnose empty dashboard panels or
dead-lettered spans. It knows the failure modes — protobuf 415, nested objects
in evigauge.decision / evigauge.sources, undocumented evigauge.* keys, missing
capture_text.
See SDK: verifying a span landed for the manual equivalent.
/evigauge:secure
Audits every system instruction in the project for prompt-injection susceptibility, then applies mitigations only after you explicitly say yes.
/evigauge:secure
/evigauge:secure audit only
/evigauge:secure prompts/**
Argument: optionally a path or glob to focus on, or audit only to skip
applying fixes.
How it works
- Runs
evigauge auditlocally — zero network, zero LLM. - Reads the local report.
- Presents each finding with its injection type and mitigation.
- Writes fixes only on your explicit go-ahead.
What it audits
Every system instruction it can find: CLAUDE.md, system prompts, agent
instructions, skill definitions, and in-code prompt templates.
Checks are applicability-gated — a check that cannot apply to your setup is skipped rather than reported as a false positive. A hardcoded secret is always a FAIL.
Findings are mapped to OWASP, NIST, MITRE, and NSA references, so a finding is defensible in a security review rather than a bare assertion.
Zero egress is a hard guarantee. No network call, no LLM call, no process spawned. Findings are a disclosure about your system's weaknesses — they must never leave the machine. When this runs inside
evigauge shipcheckas Gate 3, only the verdict and finding categories reach the shared PR comment; the evidence stays local.
/evigauge:log
Maintains a local, relational, agent-queryable dev-log — a committed knowledge graph of how the codebase was built.
/evigauge:log init
/evigauge:log # enrich pending commit entries (default)
/evigauge:log query "why did auth break"
/evigauge:log rebuild
| Argument | Effect |
|---|---|
init | Set up the dev-log and install the post-commit hook |
| (none) | Enrich pending commit entries — the default |
query "<question>" | Traverse the graph to answer a question |
rebuild | Rebuild graph.jsonl from the entry files |
The model
Every git commit becomes a node. Tasks, decisions, bugs, and components are also nodes. Typed edges connect them, so the history is traversable rather than a flat log.
This answers questions a commit log cannot: "what happened in auth and why did it break", "which commit introduced this, and what decision drove it". The commit message records what changed; the graph records why.
How it stays current
- A post-commit hook writes a stub entry for each commit — it never blocks or slows a commit.
- A
Stophook nudges Claude to enrich pending entries with the reasoning behind the change when it finishes a task. The hook is loop-guarded, and is a no-op unless the repo has run/evigauge:log init. graph.jsonlis the agent-queryable artifact.
Commit the dev-log. Its value is being there for the next person — and for the next agent session.
Local and zero-egress. Nothing about your codebase's history leaves the machine.
/evigauge:compress
Sets up and manages pxcore token compression in Claude Code.
/evigauge:compress
/evigauge:compress calibrate
/evigauge:compress status
/evigauge:compress proxy
| Argument | Effect |
|---|---|
| (none) | Set up compression |
calibrate | Run the calibration battery for the active model |
status | Report whether compression is active, and why or why not |
proxy | Set up pxcore-proxy instead of the MCP route |
Calibration
Compression stays off for a model until calibration proves it safe. The battery measures imaged-reading fidelity separately for gist and lookup content, then gates each class independently.
Pre-baked profiles ship inside the wheel (for example
pxcore/calibration/profiles/claude-fable-5.json). Run calibrate for a model
that has no profile yet.
status is the right command when compression is not saving what you expected —
it names the reason: uncalibrated model, content classified exact, or the
net-loss guard keeping text.
The Stop hook
The plugin registers one hook:
{
"hooks": {
"Stop": [
{ "hooks": [
{ "type": "command",
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/devlog-stop.sh\"" }
]}
]
}
}
It nudges Claude to enrich pending dev-log commit entries when a task finishes.
It is a no-op unless the repo has run /evigauge:log init, so installing the
plugin does not change behaviour in repos that do not use the dev-log.