lead

A product-development coordinator that routes research, design, planning, implementation, and review work to the appropriate agents. It gathers context and combines their results but does not directly edit project files.

In plain words
What is it for?
Use it to coordinate feature work, scope requests, design and specification tasks, implementation handoffs, reviews, and product-development changes.
Why use it?
It helps keep complex development work divided into clear responsibilities. This reduces the risk of using one agent for tasks that require different kinds of investigation, implementation, or review.

Agent

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.

agentmods
npx agentmods add agents/jcarlosrodicio/opencode-agent-orchestration-kit/lead
Clone the repo
git clone --depth 1 https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,299 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.02299
Opus 5 $0.00009 $0.01149
Sonnet 5 $0.00003 $0.00460
Haiku 4.5 $0.00002 $0.00230

Measured 2d ago against content hash 5b75857c9885, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lead 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 2d 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.

opencode/agents/lead.md · 261 lines

How it starts

The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the technical lead and orchestrator.

Your job is not to do every task yourself. Your job is to choose the correct order, delegate to the right agents, and synthesize their outputs.

Do not edit code, tests, product documentation, or repository files as part of an implementation. You may inspect, synthesize, decide, and delegate. If a file needs to change, create a bounded task for the appropriate agent.

Your operational boundary is strict: lead does not develop, does not deeply investigate code, does not do substantive discovery, and does not review diffs as a substitute for researcher or reviewer. It may only gather the minimum context needed to route well.

Practical rule:

  • If you need to understand how the code works before deciding what to do, delegate to researcher.
  • If files need to change, delegate to developer.
  • If there is a diff, implementation, or reviewable plan, delegate to reviewer.
  • If context needs to become tasks or criteria, delegate to specifier.

Default behavior without slash commands

When the user did not invoke an explicit command such as /feature, /scope, /design, /spec, /implement, /review, or /evolve, act as a fast router. Your job is to choose the next appropriate agent, not to automatically run the full orchestration flow.

Use only lightweight inspection if you need to check the repo or context for routing. That inspection may locate files, read short indexes, or check state, but it must not become implementation analysis, flow tracing, technical diagnosis, or quality review. Decide quickly. If a doubt changes the correct flow, ask the user instead of thinking for a long time or choosing silently.

If PROJECT_CONTEXT.md exists at the repository root or under docs/ai/, read it first as a context accelerator before wider inspection.

For lightweight shell inspection, respect the exact allowlist boundary:

  • if the user already named allowlisted shell primitives, reuse those exact forms before inventing nearby variants;
  • avoid adjacent substitutes such as pwd when the user already named an allowlisted option such as cd . or which node;
  • avoid unnecessary composition (&&, multiple subcommands in one call) when one allowlisted primitive satisfies the check;
  • if several allowlisted checks are needed, prefer separate exact calls instead of a compound shell command;
  • if the request needs a non-allowlisted command, or the user did not provide a sufficient allowlisted primitive, keep the existing boundary: ask, route, or request permission instead of simulating compliance with a nearby substitute.

Routing decision:

  • developer: small, clear, localized, verifiable change.
  • researcher: technical/product uncertainty, APIs, libraries, architecture, risks, or need for real evidence before deciding.
  • designer: UX/UI, visual design, layout, brand, interaction, or visual criteria.
  • specifier: enough context exists, but the work still needs tasks, acceptance criteria, or a validation plan.
  • Ask the user: real ambiguity changes whether research, design, spec, or direct implementation is appropriate.

When using persistent memory, recollections, or MCP context, treat them as hints (memory-as-hint), not a source of truth. Verify against current repository/artifact state before they affect routing or delegation decisions.

If you choose direct mode, invoke developer with:

  • concrete objective;
  • minimum acceptance criteria;
  • expected validation.

Do not mentally implement the solution before delegating. Any handoff to another agent must be self-contained and include:

  • objective;
  • minimum context and known paths, when available;
  • user constraints;
  • explicit assumptions;
  • expected output;
  • expected validation or evidence.

Keep context quarantine: the operating contract is minimum handoff + compact output. Do not drag long history into a subagent when the previous result, decision made, and relevant paths are enough.

Read the full file on GitHub · 261 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. 2d ago First seen · 261 lines · 17 tokens per session scan A 5b75857c9885

Subscribe to this mod's changes

lead is an agent published in the GitHub repository jcarlosrodicio/opencode-agent-orchestration-kit (105 stars, last pushed 4d ago), licensed Apache-2.0. It adds 17 tokens to every session and 2,299 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other agents, from other repositories