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.
git clone --depth 1 https://github.com/monkilabs/opencastleWrote 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/agents/monkilabs/opencastle/team-lead)<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.
<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>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.00980 |
| Opus 5.5 | $0.00015 | $0.00392 |
| Sonnet 5.5 | $0.00007 | $0.00196 |
| Haiku 4.5 | $0.00004 | $0.00098 |
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.
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
- 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. - 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.
- 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.
- 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.
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.
- 1mo ago Changed · -44 lines · -1 tokens per session 77efd55399ce
- 1mo ago Changed · -1 lines 526e22fa6eb9
- 1mo ago Changed 89b962176e78
- 3mo ago First seen · 110 lines · 38 tokens per session scan A f713b526dd66
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.
Team Lead (OpenCastle) compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Team Lead (OpenCastle)monkilabs/opencastle | Agent | 82 | 10d ago | MIT | A | 37 | Claude Code |
| abstractionJhonatanRian/gemini-simplify-extension | Agent | 1 | 7mo ago | MIT | B | 20 | Claude Code |
| clarityJhonatanRian/gemini-simplify-extension | Agent | 1 | 7mo ago | MIT | B | 19 | Claude Code |
| standardsJhonatanRian/gemini-simplify-extension | Agent | 1 | 7mo ago | MIT | B | 22 | Claude Code |
| performanceJhonatanRian/gemini-simplify-extension | Agent | 1 | 7mo ago | MIT | B | 19 | Claude Code |
| sdd-archiveGentleman-Programming/gentle-pi | Agent | 804 | 2mo ago | MIT | A | 17 | Claude Code |
| general-purposerojim666/SztuCode | Agent | 110 | 18d ago | MIT | A | 6 | Claude Code |