local-agent-delegation

local-agent-delegation is a skill for Claude Code, Codex from B-A-M-N/Kontrol. It costs 37 tokens per session (1,160 once invoked), scanned A, original, MIT.

A workflow for handing coding tasks to another local coding agent, such as Codex or Claude Code, while a supervisor agent reviews the result. It supports explicit delegation, second opinions, comparisons, and parallel work.

In plain words
What is it for?
Use it to ask another agent to implement a change, compare approaches, inspect architecture or security concerns, or run work in the background.
Why use it?
It prevents work from being delegated silently and adds a review step for code changes, tests, and risks before reporting completion.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code; runs codex exec.

Good fit Use it to ask another agent to implement a change, compare approaches, inspect architecture or security concerns, or run work in the background.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/b-a-m-n/kontrol/local-agent-delegation
Install

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.

Any agent
npx skills add B-A-M-N/Kontrol --skill local-agent-delegation
Clone the repo
git clone --depth 1 https://github.com/B-A-M-N/Kontrol

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for local-agent-delegation

README.md
[![agentmods](https://agentmods.dev/badge/skills/b-a-m-n/kontrol/local-agent-delegation/github.svg)](https://agentmods.dev/skills/b-a-m-n/kontrol/local-agent-delegation)
Your own site
<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.

agentmods 80×15 button for local-agent-delegation

Your own site · 80×15
<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>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,160 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 8d ago against content hash 9e09f358c4ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skills/local-agent-delegation/SKILL.md · 188 lines

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:

  1. Understand the user's goal.
  2. Decide whether delegation is useful.
  3. Choose the right local agent or CLI.
  4. Give the worker a focused prompt.
  5. Inspect the result yourself.
  6. 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.

Read the full file on GitHub · 188 lines

Changes

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.

  1. 8d ago First seen · 188 lines · 37 tokens per session scan A 9e09f358c4ca

Subscribe to this mod's changes

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.

Related

local-agent-delegation compared with skills from other repositories

local-agent-delegation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
local-agent-delegationB-A-M-N/KontrolSkill02d agoMITA37Claude Code, Codex
git-workflowmodelcontextprotocol/typescript-sdkSkill14k2d agononeA10Claude Code, Codex
architecture-auditorg2AI/ORG2Skill2.6k4d agoAGPL-3.0A70Claude Code, Codex
supermux-coreUstaLabs/supermuxSkill31todayMITA46Claude Code, Codex
effect-developmentThreadlines/threadlinesSkill44yesterdayMITA29Claude Code, Codex
review-deepShreyPaharia/octomuxSkill251mo agoMITA52Claude Code
review-orchestratorShreyPaharia/octomuxSkill251mo agoMITA41Claude Code