plugin/: a mod installable from this repo's marketplace (claude plugin marketplace add
RiskAverseTech/toolgate; claude plugin install toolgate@riskaverse). The engine stays in the
CLI; the mod hooks tool.check for the verdict (allow runs the tool, ask goes to the mode's
decider, deny refuses with the reason) and tool.call afterwards to settle the action ledger.
/toolgate shows the audit summary. Keys in Claude Code's secure plugin settings; shadow mode
records without enforcing; a missing CLI is announced and the mod steps aside, never more
permissive than Claude Code alone. Warns when the settings.json hook is installed too. Nine
hook tests under claude plugin test (npm run test:mod).
CLI: toolgate decide (whole decision as JSON, allow included; same audit and ledger side
effects as hook); task_context on the hook input so a host that holds the transcript supplies
the prompts directly; toolgate version. vitest scoped to test/; plugin/ shipped in the package.
README: mod install section, three delivery surfaces, roadmap items 9 (payload vs latency)
and 10 (Pi codemode, backburnered). CHANGELOG 0.16.0.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N6SmW9a9ipJ2ggpdLzGFxm