agentleFS
JayOfemiJayOfemi/claude-toolbox/skills/reroute-task/SKILL.md

reroute-task

Skill1 starsChanged 5 months agoMITView on GitHub

Run a task on a chosen model (haiku, sonnet, opus, or fable) by delegating to a subagent, so the main session keeps its model and only the delegated work runs on the chosen one. Invoke as /reroute-task <model> [task].

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a task on a specific model by delegating to a subagent.

    line 11
  2. Distinctive:

    Read the invoking message.

    line 19
  3. Distinctive:

    If the first word is not one of the four models, list the valid options and stop.

    line 21
  4. Distinctive:

    If only a model name was given, reply with "What task should I run on <model>?" and wait.

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Reroute a task to a chosen model

Run a task on a specific model by delegating to a subagent. The main session's model does not change; only the delegated work runs on the chosen model.

The model

The user names the target model when they invoke this, as /reroute-task <model> [task], where <model> is one of haiku, sonnet, opus, or fable. A future estimator could choose the model instead of the user; the delegation below is the same either way.

Procedure

Read the invoking message. The first word after the skill name is the target model, and anything after it is the task.

  1. If the first word is not one of the four models, list the valid options and stop.
  2. If a task follows the model name, delegate it now. Use the Task tool with model set to that model. The subagent does not see this conversation, so pass it the goal, the files, and the constraints it needs, plus the tools the task calls for. Report what it did and its result. This turn is the one acted on, and the next turn is back to normal.
  3. If only a model name was given, reply with "What task should I run on <model>?" and wait. Treat the next message as the task and delegate it the same way.

Notes

  • The saving comes from the subagent doing the volume of work on the cheaper model; the main session still reads the request and sets up the delegation.
  • For a long task you do not need to watch, delegate it in the background so you are notified when it finishes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.