WorkflowAppears in · Background / Status line / ToastAdded

ruflo Mods

ruflo's prompt routing, tighten-only tool checks and budget ladder as an in-process mod.

ruflo Mods · Effect preview · IllustrationIllustrative
> Add pagination to the order list
⏺ I’ll look at the list component first.
ruflo · route coder · policy enforce · budget 62%
⚠ ruflo-mods: budget at 75% ($3.75 / $5.00)
› newly installed mod can run host commands and use the network

Runs in the background, with no interface. These are illustrative logs.

❯

Illustration. Actual results depend on the mod, terminal and environment.

Install

/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-mods@ruflo
/reload-plugins

Run these commands one at a time in a Claude Code session.

What it accesses

Based on the author’s documentation, checked when listed; use claude plugin validate to check for yourself.

Reads

Yes

Reads prompts, tool calls, session cost, and policy and memory files under .claude-flow.

Writes files

Yes

Writes a session heartbeat and edit-learning records in .claude-flow; optional user ledger.

Runs commands

Unspecified

Not stated in the README; no external commands seen in the hooks code.

Network

Unspecified

Not itemized in the README; no network calls seen in the hooks code.

Introduction

ruflo Mods is the function-hooks mod in the ruflo repo (plugins/ruflo-mods). It moves work the classic hook scripts did into Claude Code's own process:

  • Routing: in an initialized ruflo project (with .claude-flow/), prompt.submit routes each prompt and hands the route plus ranked memory to the model as context.
  • Edit learning: records finished edits for ruflo's intelligence consolidator.
  • Tighten-only tool checks: applies ruflo's dangerous-command list and policy rules to tool.check, never loosening a verdict.
  • Mod trust gate: names what later-installed mods can do (host commands, network, file writes and more); in refuse-risky mode it refuses ones not allow-listed.
  • Budget ladder: with costBudgetUsd set it announces 50/75/90/100% and can halt new subagents at 100%.
  • An optional status line and a $.ruflo segment API other mods can compose with.

The classic hook-handler stays as the fallback; the mod takes an event only where it is handed over, so nothing fires twice. The author says it is on by default from Claude Code 2.1.287, and from 2.1.277 with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1. It mainly serves ruflo projects; elsewhere only tool guards, the trust gate and configured budgets stay active. The preview is illustrative.

Who it is for

  • ruflo users replacing classic hook scripts with an in-process mod
  • People who want a cost budget on Claude Code sessions

Requirements

  • Claude Code ≥ 2.1.287
  • 2.1.277–2.1.286 need CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 (author's note).
  • Routing and edit learning only work in an initialized ruflo project (.claude-flow/).