ā” 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:
| Intent | What It Does | Example |
|---|---|---|
var-to-const | Convert var/let to const | var x = 1 ā const x = 1 |
add-types | Add TypeScript type annotations | function foo(x) ā function foo(x: string) |
add-error-handling | Wrap in try/catch | Adds proper error handling |
async-await | Convert promises to async/await | .then() chains ā await |
add-logging | Add console.log statements | Adds debug logging |
remove-console | Strip console.* calls | Removes 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:
| Metric | Agent Booster | LLM Call |
|---|---|---|
| Latency | <1ms | 2-5s |
| Cost | $0 | $0.0002-$0.015 |
| Speedup | instant (regex-based, no LLM call) | baseline |