Success / failure
Separate hook events provide a stronger outcome signal than guessing from free text.
Claude Code
MARGINAL integrates with Claude Code in Observe-only mode: collect evidence, detect repetition and keep the execution path unchanged.
Claude Code integration
MARGINAL's Claude Code integration is intentionally labeled Observe. Native hooks normalize lifecycle evidence into the same provider-neutral governance model, but the adapter declares no blocking capability and does not deny tool calls.
marginal install claude-codeClaude Code exposes separate successful and failed post-tool events, so MARGINAL can record the outcome as an engine-declared fact instead of inferring it from response text. Per-tool token usage is not exposed through that hook surface and is reported as unavailable rather than zero.
An integration should not claim authority it does not possess. MARGINAL can detect repeated-work recommendations and governance overhead while preserving Claude Code's next action. That evidence can inform future work without pretending enforcement already exists.
What it records
Separate hook events provide a stronger outcome signal than guessing from free text.
Recommendations and evidence are recorded without turning the hook into an enforcement surface.
If the hook surface does not expose per-tool tokens, MARGINAL reports that honestly.
The adapter declares no control capability, so repeated-work candidates remain recommendations.
FAQ
No. The current Claude Code adapter is Observe-only and declares no blocking capability.
Yes. It can normalize action, outcome and workspace-state evidence and record repeated-work recommendations in the Decision Ledger.
The integration is designed around structured derived signals rather than persisting raw prompts, command text, source paths or transcripts as governance evidence.
Try it
Install MARGINAL in Shadow Mode, inspect what your agent actually repeats, and contribute traces that make the governor harder to fool.
The governance article explains why evidence and interception capability should determine authority rather than installation alone.