agentleFS
ilya-kozyrevilya-kozyrev/claude-agent-hub/skills/delegation/SKILL.md

delegation

Skill5 starsChanged 38 days agoMITView on GitHub

Show or change the delegation level 0-5 (0 - do everything yourself, subagents blocked by a hook; 3 - the default; 5 - orchestrator). Invoked as /delegation, /delegation 3, /delegation global 4, /delegation clear. Needs the delegation dial switched on in the hub home's config.json.

12 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run bundled commands with the host's shell tool.

    line 9

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “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

Delegation level

Run bundled commands with the host's shell tool. Resolve the plugin root from PLUGIN_ROOT, CLAUDE_PLUGIN_ROOT, or this skill's installed path; use <plugin-root>/bin/<tool> when PATH is missing or shadowed. Session identity comes from the current host; use self where supported.

The level sets how much work this session hands to subagents; which model and effort they run at is decided by your subagent rules (AGENT_HUB_EFFORT_RULES). The plugin's hooks inject the level's policy into the context at session start and whenever the level changes; at level 0 a trusted hook denies the host's subagent-spawn tools.

Parse the user's arguments and run exactly one command (the plugin's bin/ is on PATH):

ArgumentsCommand
nonedelegation show
N (0-5)delegation set N — this session only
global Ndelegation set N --global — every session without its own level
cleardelegation clear — back to the global level
try <type> [<model>]delegation try <type> [<model>] — what the rules would say about such a native subagent call (no model: the definition's or inherited)

The output holds the effective level and its policy. Work by it from this turn on: the command prints it exactly so that a change applies now, not from the next message.

Answer in one or two lines: the effective level, where it comes from (session / global / default), and what it means in practice. If the output says the dial is off, say so and name the setting ("AGENT_HUB_DELEGATION": "on" in the hub home's config.json). On a non-zero exit show the error and do not change the level any other way.

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.