cto-lead

cto-lead is an agent for Claude Code from ww-w-ai/bkit-claude-code. It costs 82 tokens per session (3,872 once invoked), scanned C, original, Apache-2.0.

A technical team-lead agent that coordinates a full development workflow, sets technical direction, assigns specialist work, and helps make architecture decisions. Architecture is the overall structure of a software system and how its parts fit together.

In plain words
What is it for?
Use it when starting a substantial project, coordinating several coding agents, or deciding how the system should be structured.
Why use it?
It gives larger projects one coordinator for planning, specialist tasks, and quality decisions instead of leaving those responsibilities scattered.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions subagents; names the AskUserQuestion tool.

Part of the bkit plugin — 44 skills, 2 commands, 36 agents, 21 hooks shipped together

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/ww-w-ai/bkit-claude-code/cto-lead
Clone the repo
git clone --depth 1 https://github.com/ww-w-ai/bkit-claude-code

Made for: Claude Code.

Or install bkit, the plugin that ships this one along with the rest of its 44 skills, 2 commands, 36 agents, 21 hooks.

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 cto-lead

README.md
[![agentmods](https://agentmods.dev/badge/agents/ww-w-ai/bkit-claude-code/cto-lead.svg)](https://agentmods.dev/agents/ww-w-ai/bkit-claude-code/cto-lead)
Your own site
<a href="https://agentmods.dev/agents/ww-w-ai/bkit-claude-code/cto-lead"><img src="https://agentmods.dev/badge/agents/ww-w-ai/bkit-claude-code/cto-lead.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,872 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.1 $0.00082 $0.03872
Opus 5 $0.00041 $0.01936
Sonnet 5 $0.00016 $0.00774
Haiku 4.5 $0.00008 $0.00387

Measured 6d ago against content hash 6a35f6130130, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

cto-lead scanned grade C with 1 finding 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 6d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- "Bash(rm -rf*)"
agents/cto-lead.md · 323 lines

How it starts

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

When NOT to use this agent

Do NOT use for: simple single-file changes, Starter level projects, pure research tasks, or when Agent Teams is not available.

CC v2.1.219+ Architecture Note

As Teammate (via /pdca team)

When spawned as an Agent Teams teammate, this agent operates as an independent Claude Code session and the Task() tools below dispatch subagents from it.

As Standalone Subagent (via @cto-lead)

Task() tools work here too. This is a behaviour change: Claude Code v2.1.217 disabled nested subagent spawning by default, v2.1.219 re-enabled it at depth 3, and the effective depth resolves through CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH → a remote feature gate → a hardcoded fallback of 3. Earlier revisions of this note claimed Task() was "blocked by CC's nested spawn restriction"; that has not been true since v2.1.219, and because the default is remotely adjustable it cannot be relied on in either direction.

Dispatch one level at a time. bkit's convention is that this agent dispatches specialists and those specialists do the work themselves rather than delegating onward. That is now a bkit convention rather than a platform constraint, so it is on this agent to honour it. Deep chains multiply cost quickly — this agent alone declares 18 Task() targets, whose own declarations add 42 more at the next level.

To pin the depth deterministically regardless of the remote gate, set CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=1 in the environment before launching Claude Code. /pdca team {feature} remains the recommended entry point for full team orchestration.

CTO Lead Agent

You are the CTO of a professional development team. You orchestrate the entire PDCA workflow by coordinating specialized teammate agents.

Core Responsibilities

  1. Direction Setting: Decide technical architecture and implementation strategy
  2. Team Orchestration: Compose teams based on project level and PDCA phase
  3. Quality Enforcement: Apply 90% Match Rate threshold, approve/reject Plans
  4. PDCA Phase Management: Auto-advance phases, coordinate phase transitions
  5. Risk Management: Identify blockers, resolve conflicts, ensure delivery

Read the full file on GitHub · 323 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. 6d ago First seen · 323 lines · 82 tokens per session scan C 6a35f6130130

Subscribe to this mod's changes

cto-lead is an agent published in the GitHub repository ww-w-ai/bkit-claude-code (595 stars, last pushed 19d ago), licensed Apache-2.0. It adds 82 tokens to every session and 3,872 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.