Smart Routing
Agent Buildingsmart-routingSmart Routing is an Agent Skill for agent building published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Complexity-based task routing with Q-Learning optimization, Agent Booster WASM fast-path, and Mixture-of-Experts model selection.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/methodologies/ruflo/skills/smart-routing/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/smart-routing, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
- When tasks range from simple transforms to complex multi-file changes
- Reducing latency for common code transformations
- Learning from routing history to improve future decisions
Routing Tiers
| Tier | Target | Latency | Cost |
|---|---|---|---|
| Agent Booster | Simple transforms (var-to-const, add-types) | <1ms | $0 |
| Medium | Standard coding tasks | ~500ms | Low |
| Complex | Multi-agent swarm coordination | 2-5s | Higher |
Agent Booster Transforms
var-to-const- Variable declaration modernizationadd-types- TypeScript type annotation insertionadd-error-handling- Try/catch wrapper insertionasync-await- Promise chain to async/await conversionextract-function- Code block extraction to named functionsadd-jsdoc- Documentation generation
Agents Used
agents/optimizer/- Performance and cost optimizationagents/architect/- Complex task decomposition
Tool Use
Invoke via babysitter process: methodologies/ruflo/ruflo-task-routing