/vigiles:debug-my-harnessfrom vigiles
Reads the local flight-recorder ledger (.vigiles/runs.jsonl) to diagnose harness misbehavior: skill hijacking, hook failures, subagent tool-contract violations, and trigger-rate drift. Use when a skill stopped firing, a hook didn't block, or the wrong skill ran.
Ships in vigiles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Diagnose harness misbehavior from the flight recorder — the local, append-only ledger
at .vigiles/runs.jsonl that vigiles writes as your harness runs. It records what actually
happened, so you debug from evidence instead of guessing.
One JSON record per line, each with a kind:
hook — a compiled-hook gate decision: {event, decision: allow|deny|ask, mode: enforce|observe, rule, cmd, reason}.agent — a subagent tool-contract decision: {name, tool, allowed, reason} (a false = the agent went outside its lane).skill — a skill activation: {name, fired}.eval — a measured metric: {name, metric, value} (e.g. trigger-rate recall/precision).capability-diff — a blast-radius change: {pr, added, removed, widened}.Read .vigiles/runs.jsonl (JSONL — one record per line; tolerate a torn last line). If it's
absent or empty, say so — there's nothing recorded yet; suggest running the harness (or
vigiles audit) first. Do NOT fabricate records.
Match the user's question to the ledger:
skill fires by
name over time. If X's fire-rate dropped, look for a sibling that fired on the same kinds
of prompts (a selection collision) and check their descriptions for overlap. Recommend
differentiating or merging the descriptions.hook records for the event. A decision: allow on something that should be denied, or mode: observe (shadow, never blocks), or
the absence of any record, tells you which. Recommend flipping observe→enforce or
fixing the gate logic.agent records with allowed: false: the agent
reached for a tool outside its declared contract. Point at the contract to tighten or widen.eval metric values (recall/precision) across runs;
a downward trend is drift (often after a harness/model upgrade).Prefer promoting an ignored-but-decidable rule from prose to a deterministic gate: a
repeated agent violation or a rule the agent keeps breaking → a compiled hook or a tighter
tool-contract (the strengthen skill can help). A description collision → differentiate the
skill descriptions. Always cite the specific records you based the diagnosis on.
If the fix is a spec change, hand off to edit-spec. If it's promoting guidance to a linter
rule, hand off to strengthen. If a behavioral claim needs measuring (does the skill fire
now?), hand off to test-harness (measureTriggerRate).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zernie/vigiles --plugin vigiles6 skills in this plugin
/adopt-specAdopt a typed .spec.ts for an existing hand-written CLAUDE.md — start from the file you already have, non-destructively/edit-specEdit a vigiles .spec.ts to change a compiled instruction file (CLAUDE.md / AGENTS.md) — add, modify, or remove a rule, section, command, or file pointer (including a request to add a "key file" — the keyFiles field is deprecated). Use whenever you need to change a CLAUDE.md/AGENTS.md that carries a vigiles hash (edit the spec, never the artifact), including adding a new enforce()/check()/guidance() rule./linter-docsDeep linter reference for authoring or debugging a vigiles enforce() rule — plugin tables, AST selectors, type-aware rules, auto-fix, and edge cases for ESLint, Ruff, Pylint, RuboCop, Stylelint, and Clippy. Use when you need the exact rule name or config for a specific linter, not for running a linter. (JVM/Go linters — detekt, ktlint, Checkstyle, golangci-lint — and Cedar have no deep-dive file yet; their reference lives in docs/linter-support.md.)/strengthenUpgrade a vigiles spec's guidance() rules to enforce() — scan the guidance rules in a CLAUDE.md/AGENTS.md spec and find existing linter rules (ESLint, Ruff, Clippy, Pylint, RuboCop, Stylelint) that back them. Use when asked to strengthen, harden, or make vigiles rules enforceable; NOT for general linting or fixing lint errors./test-harnessInstall vigiles and test a Claude Code harness — hooks, skills, agents, settings, CLAUDE.md — by picking the right tier (unit / deterministic / eval) and writing a test that passes. Use to check that a hook fires or blocks, that a skill triggers, that injected context lands; or to observe a run — which tools it called, whether it stayed inside its declared allowed-tools, what files and side effects it produced, how to intercept a call without executing it.Other plugins' skills for the same job