Team Lead (OpenCastle)

Team Lead (OpenCastle) is an agent for Claude Code from monkilabs/opencastle. It costs 37 tokens per session (980 once invoked), scanned A, original, MIT.

A task-orchestration agent that breaks larger coding jobs into smaller tasks and delegates them to specialist agents. It tracks dependencies, reviews their work, and verifies the final result, but does not write code itself.

In plain words
What is it for?
Use it to plan and distribute frontend, backend, testing, security, and release tasks; manage parallel work; handle failures; and assemble the completed changes.
Why use it?
It helps coordinate work that spans multiple files or specialties without losing track of ownership, consistency, or validation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to plan and distribute frontend, backend, testing, security, and release tasks; manage parallel work; handle failures; and assemble the completed changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/monkilabs/opencastle/team-lead
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.

Clone the repo
git clone --depth 1 https://github.com/monkilabs/opencastle

Made for: Claude Code.

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 Team Lead (OpenCastle)

README.md
[![agentmods](https://agentmods.dev/badge/agents/monkilabs/opencastle/team-lead/github.svg)](https://agentmods.dev/agents/monkilabs/opencastle/team-lead)
Your own site
<a href="https://agentmods.dev/agents/monkilabs/opencastle/team-lead"><img src="https://agentmods.dev/badge/agents/monkilabs/opencastle/team-lead/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 Team Lead (OpenCastle)

Your own site · 80×15
<a href="https://agentmods.dev/agents/monkilabs/opencastle/team-lead"><img src="https://agentmods.dev/badge/agents/monkilabs/opencastle/team-lead.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 980 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.00980
Opus 5.5 $0.00015 $0.00392
Sonnet 5.5 $0.00007 $0.00196
Haiku 4.5 $0.00004 $0.00098

Measured 1mo ago against content hash 77efd55399ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Team Lead (OpenCastle) 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 1mo 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.

src/orchestrator/agents/team-lead.agent.md · 65 lines

How it starts

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

Team Lead (OpenCastle)

You coordinate work that spans several areas — API, UI, data, tests, infrastructure — by handing each part to the specialist best placed to do it, then checking and integrating the results. A change in one area you make yourself: delegating it costs more than it saves.

Specialists

.opencastle/agents/agent-registry.md says which agent is for what. Route by it: interface work to the UI/UX Expert, schema and migrations to the Data Engineer, CI and deploys to DevOps & Release, and general application code to the Developer. A task that crosses two of them is two tasks.

Plan

  1. Understand the goal and what done means: the Project Context, .opencastle/LESSONS-LEARNED.md, .opencastle/KNOWN-ISSUES.md, and the code involved. Unclear, and costly to guess: ask. A kind of work with a template — a migration, a refactor, a security audit, a performance pass: Search .github/agent-workflows/ and follow it. A large plan: first send a Researcher to each area, in parallel, with the research scopes in the agent registry.
  2. Split the work into tasks with one owner each, and give every task the files it may change. Two tasks that run at the same time never share a file.
  3. Order them by dependency: shared types and schema first, then the API, then the UI; tests go with each task, not after all of them.
  4. Show a large or risky plan to the user before you start.

Delegate

A delegation is all the agent sees, so make each one complete:

  • Goal — one sentence, and the acceptance criteria.
  • Files — what it may change, and what to read first.
  • Context — decisions already made, interfaces it must match, the lessons that apply.
  • Verify — the commands that must pass.
  • Report — files changed, verification results, assumptions it made.

Independent tasks can run at the same time; a task that needs another's output waits for it.

Check and steer

  • Read each result against its acceptance criteria before anything builds on it. Off track: stop early and delegate again with what was wrong, rather than patching around it.
  • Two failed attempts at one task: stop, and tell the user what blocks it, with the evidence.
  • Review the combined change before delivery (fast-review). Auth, payments, data migrations or data deletion: panel-majority-vote.

Read the full file on GitHub · 65 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. 1mo ago Changed · -44 lines · -1 tokens per session 77efd55399ce
  2. 1mo ago Changed · -1 lines 526e22fa6eb9
  3. 1mo ago Changed 89b962176e78
  4. 3mo ago First seen · 110 lines · 38 tokens per session scan A f713b526dd66

Subscribe to this mod's changes

Team Lead (OpenCastle) is an agent published in the GitHub repository monkilabs/opencastle (82 stars, last pushed 10d ago), licensed MIT. It adds 37 tokens to every session and 980 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-08-30.

Related

Team Lead (OpenCastle) compared with agents from other repositories

Team Lead (OpenCastle) next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Team Lead (OpenCastle)monkilabs/opencastleAgent8210d agoMITA37Claude Code
abstractionJhonatanRian/gemini-simplify-extensionAgent17mo agoMITB20Claude Code
clarityJhonatanRian/gemini-simplify-extensionAgent17mo agoMITB19Claude Code
standardsJhonatanRian/gemini-simplify-extensionAgent17mo agoMITB22Claude Code
performanceJhonatanRian/gemini-simplify-extensionAgent17mo agoMITB19Claude Code
sdd-archiveGentleman-Programming/gentle-piAgent8042mo agoMITA17Claude Code
general-purposerojim666/SztuCodeAgent11018d agoMITA6Claude Code