# Lean Routing

> Help AI coding agents avoid unnecessary exploration, prioritize focused tools, and verify engineering tasks efficiently.

Lean Routing is a free AI agent skill on Agensi by Daichi Kimura, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Daichi Kimura](https://www.agensi.io/creators/creator-581)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 2
- Version: 1.1
- Last updated: 2026-10-14
- Security: scan passed (2026-10-14); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/lean-routing
- Tags: ai-agents, llm-ops, automation, code-review, python

## About this skill

### Lean Routing — Less Exploration. More Engineering.

**Help AI coding agents choose the smallest reliable workflow for each engineering task.**

Lean Routing provides practical rules for reducing unnecessary repository exploration, using deterministic tools first, and reserving deeper reasoning for problems that need it.

#### What you get

- **Task routing:** Choose between direct tools, bounded delegation when available, and deeper reasoning.
- **Focused exploration:** Use `rg`, Git, and targeted file inspection instead of reading an entire repository.
- **Escalation rules:** Recognize ambiguity, cross-system impact, and changes that require additional review.
- **Mechanical verification:** Check results with focused tests and deterministic tools.
- **Cross-platform helpers:** Optional Python, PowerShell, and Bash routing scripts.
- **Reusable templates:** Record routing decisions and verification evidence.

#### Practical use cases

##### Explore an unfamiliar codebase
Identify entry points, trace relevant dependencies, and avoid reading unrelated files.

##### Fix a small bug
Inspect the affected code, make a focused change, and run targeted tests.

##### Handle a complex change
Assess potential impact, identify unknowns, and decide whether deeper analysis or specialist assistance is needed.

#### What's included

- Agent-readable `SKILL.md`
- Routing and escalation policies
- Decision-manifest template
- Python, PowerShell, and Bash helper scripts

#### Compatibility

Designed for Claude Code, OpenAI Codex CLI, and Gemini CLI.

Python is not required for the core workflow. Helper scripts are optional, and execution depends on the tools available in your environment.

#### Important notes

Lean Routing provides engineering workflow guidance. It does not automatically switch AI models or guarantee token or time savings.

**Free and open-source under the MIT License.**

## Known limitations

Routing scripts are keyword-based hints. Requires standard CLI tools like rg or git for deterministic paths. Fallback to parent occurs if named workers are not installed.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Lean Routing skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill help reduce my AI token spend during engineering tasks?

Lean Routing reduces operational costs by enforcing a 'deterministic-first' workflow, ensuring expensive high-intelligence models are only used for complex reasoning while simple tasks are offloaded to CLI tools and cheaper sub-agents.

### What specific files and assets are included in the Lean Routing package?

The skill includes specialized keyword triage scripts for Python, Bash, and PowerShell, along with a structured R0-R4 ruleset for task classification and worker role definitions.

### What are the technical requirements for running the deterministic routing scripts?

The routing scripts require a Python 3, Bash, or PowerShell runtime, and your environment should have standard CLI utilities like `rg` (ripgrep) and `git` installed for the deterministic search features to function.

### Can I customize the routing logic to fit my specific repository's structure?

While the core logic is based on keyword triage and mechanical verification, users can easily modify the routing scripts' configuration to better align with their specific codebase patterns or preferred linter tools.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
