DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to let an agent route its next work phase via skill with Agent Router

Link the model-router skill so an agent can route the next phase of your work through the router.

Short answer: Complete the setup steps for installing, building, and configuring the router; then run ln -s "$PWD/skills/model-router" ~/.claude/skills/model-router for Claude Code, and the matching links for Codex or Cursor; start a new session in the agent and ask it to route the next phase of a plan. All steps.

Who it is forA developer already working inside Claude Code, Codex, or Cursor who wants the agent to hand off the next phase, such as implementation, to a better-suited agent.

The problemAn agent working on a plan has no built-in way to send the next phase to a different agent or model that fits the work and quota.

The outcomeThe agent can route the next phase by using the linked model-router skill, with the choice made by the router.

What you need first

  • Node.js 20 or newer
  • A TypeSafe API key, since routing always calls TypeSafe
  • At least one agent CLI you are logged in to: agent (Cursor), claude (Claude Code), codex, or opencode
  • Herdr, for launching agents without --dry-run
  • A config file with your accounts in the model-router home folder

Steps

  1. Complete the setup steps for installing, building, and configuring the router.
  2. Run ln -s "$PWD/skills/model-router" ~/.claude/skills/model-router for Claude Code, and the matching links for Codex or Cursor.
  3. Start a new session in the agent and ask it to route the next phase of a plan.
  4. Check that the agent runs the router rather than doing the phase itself.

Prompt for your agent

Using the model-router skill from the agent-router repo, route the next phase of the plan at <plan path> and report which agent, model, and effort the router selected. Verify that the router decision card appears in the output before any work starts.

Caveat. The README says the router routes one phase per task and does not answer the question itself, so the launched agent still does the work.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for nidhi-singh02/agent-router and "Let an agent route its next work phase via skill"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer