ruflo

⚔ Agent Booster (WASM)

/docs/getting-into-the-flow/agent-booster-wasm

Agent Booster uses WebAssembly to handle simple code transformations without calling the LLM at all. When the hooks system detects a simple task, it routes directly to Agent Booster for instant results.

Supported Transform Intents:

IntentWhat It DoesExample
var-to-constConvert var/let to constvar x = 1 → const x = 1
add-typesAdd TypeScript type annotationsfunction foo(x) → function foo(x: string)
add-error-handlingWrap in try/catchAdds proper error handling
async-awaitConvert promises to async/await.then() chains → await
add-loggingAdd console.log statementsAdds debug logging
remove-consoleStrip console.* callsRemoves all console statements

Hook Signals:

When you see these in hook output, the system is telling you how to optimize:

bash
# Agent Booster available - skip LLM entirely
[AGENT_BOOSTER_AVAILABLE] Intent: var-to-const
→ Use Edit tool directly, instant (regex-based, no LLM call) than LLM

# Model recommendation for Task tool
[TASK_MODEL_RECOMMENDATION] Use model="haiku"
→ Pass model="haiku" to Task tool for cost savings

Performance:

MetricAgent BoosterLLM Call
Latency<1ms2-5s
Cost$0$0.0002-$0.015
Speedupinstant (regex-based, no LLM call)baseline