Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add B-A-M-N/Kontrol --skill local-agent-delegationgit clone --depth 1 https://github.com/B-A-M-N/KontrolWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/b-a-m-n/kontrol/local-agent-delegation)<a href="https://agentmods.dev/skills/b-a-m-n/kontrol/local-agent-delegation"><img src="https://agentmods.dev/badge/skills/b-a-m-n/kontrol/local-agent-delegation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/b-a-m-n/kontrol/local-agent-delegation"><img src="https://agentmods.dev/badge/skills/b-a-m-n/kontrol/local-agent-delegation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.01160 |
| Opus 5.5 | $0.00015 | $0.00464 |
| Sonnet 5.5 | $0.00007 | $0.00232 |
| Haiku 4.5 | $0.00004 | $0.00116 |
Grade A, and why
local-agent-delegation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Local Agent Delegation
Use this skill when the user explicitly asks to delegate work to another coding agent, use a named local agent, get a second opinion, compare implementations, run agents in parallel, or create a subagent-like workflow.
Do not use local agents silently. Tell the user when another local agent is being used.
Core idea
You are the supervisor. A local coding agent is the worker.
Your responsibilities are:
- Understand the user's goal.
- Decide whether delegation is useful.
- Choose the right local agent or CLI.
- Give the worker a focused prompt.
- Inspect the result yourself.
- Review diffs, tests, and risks before telling the user the work is done.
When to delegate
Good delegation requests include:
- "Ask another agent to look at this."
- "Have Claude/Codex/OpenCode/Pi implement this."
- "Run this in the background."
- "Compare two approaches."
- "Use a local subagent for this."
- "Get a second opinion on the architecture/test gaps/security risk."
Do not delegate just because the task is coding-related. Use the normal DevSpace tools directly unless the user asks for delegation, another agent's opinion, parallel work, or a named local coding agent.
CLI execution guidance
Prefer structured non-interactive CLI modes when available.
Examples of useful patterns:
codex exec --json -C "$WORKSPACE" "$PROMPT"
claude -p --output-format stream-json "$PROMPT"
opencode run --format json --dir "$WORKSPACE" "$PROMPT"
cursor-agent -p --output-format stream-json "$PROMPT"
pi -p --mode json "$PROMPT"
copilot -p "$PROMPT" --output-format json
Use exact command templates from user-configured DevSpace agent profiles when they are available. Do not invent provider-specific flags when a profile already defines them.
Configured local agent profiles may live in:
~/.devspace/agents/*.md
Treat those profiles as user-approved local worker definitions. If no profile exists for a requested agent, use the installed CLI's help output only when needed, then summarize what you found before running it.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 188 lines · 37 tokens per session scan A 9e09f358c4ca
local-agent-delegation is a skill published in the GitHub repository B-A-M-N/Kontrol (0 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 1,160 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-30.
local-agent-delegation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| local-agent-delegationB-A-M-N/Kontrol | Skill | 0 | 2d ago | MIT | A | 37 | Claude Code, Codex |
| git-workflowmodelcontextprotocol/typescript-sdk | Skill | 14k | 2d ago | none | A | 10 | Claude Code, Codex |
| architecture-auditorg2AI/ORG2 | Skill | 2.6k | 4d ago | AGPL-3.0 | A | 70 | Claude Code, Codex |
| supermux-coreUstaLabs/supermux | Skill | 31 | today | MIT | A | 46 | Claude Code, Codex |
| effect-developmentThreadlines/threadlines | Skill | 44 | yesterday | MIT | A | 29 | Claude Code, Codex |
| review-deepShreyPaharia/octomux | Skill | 25 | 1mo ago | MIT | A | 52 | Claude Code |
| review-orchestratorShreyPaharia/octomux | Skill | 25 | 1mo ago | MIT | A | 41 | Claude Code |