Files
ruflo/plugins/ruflo-mods/hooks/hooks.json
T
ruv d48897fb34 feat(mods): ruflo-mods plugin — ruflo as a Claude Code mod (ADR-404)
An opt-in hooks module (Claude Code function hooks, early access) with
in-process equivalents of the classic per-event hooks:

- prompt.submit: router.cjs routing + ranked-memory context, text identical
  to hook-handler.cjs route; #3567 no-match semantics
- tool.check: tighten-only (stricter of chain and ruflo), pre-bash list and
  the claude-code.* rules of ruflo policy; fails closed by one step
- tool.call/turn.complete/session.end: edit records in recordEdit's format
- session.measure/agent.spawn: cost-tracker budget ladder (opt-in)
- session.start: ownership handshake (RUFLO_MODS_OWNS), /ruflo-mods

Owns route/post-edit only where the classic hook-handler hands them over.
Kit tests (claude plugin test, 7/7 in the real engine), static security
smoke (9/9), marketplace entry.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-01 17:51:02 -04:00

5 lines
502 B
JSON

{
"description": "ruflo as a mod (ADR-404, early access): routes each prompt in-process and hands the route to the model as prompt context; records edits for the intelligence consolidator; tightens tool.check with ruflo's dangerous-command list and the Claude Code rules of ruflo policy, never loosening a verdict; applies the cost-tracker budget ladder to live session cost. Owns an event only where the classic hook-handler hands it over, so nothing fires twice.",
"modules": ["./register.ts"]
}