agent-decomposer

agent-decomposer is an agent for Claude Code from closedloop-ai/claude-plugins. It costs 17 tokens per session (4,859 once invoked), scanned A, original, Apache-2.0.

An agent that decides whether broad expert roles should remain single agents or be divided into more focused specialist agents.

In plain words
What is it for?
Use it to split candidate roles based on project domains and configure which agents review particular kinds of work.
Why use it?
It helps avoid agents that are too broad while preventing unnecessary complexity from creating too many agents.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the bootstrap plugin — 1 command, 9 agents shipped together

Good fit Use it to split candidate roles based on project domains and configure which agents review particular kinds of work.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/closedloop-ai/claude-plugins/agent-decomposer
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/closedloop-ai/claude-plugins

Made for: Claude Code.

Or install bootstrap, the plugin that ships this one along with the rest of its 1 command, 9 agents.

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 agent-decomposer

README.md
[![agentmods](https://agentmods.dev/badge/agents/closedloop-ai/claude-plugins/agent-decomposer/github.svg)](https://agentmods.dev/agents/closedloop-ai/claude-plugins/agent-decomposer)
Your own site
<a href="https://agentmods.dev/agents/closedloop-ai/claude-plugins/agent-decomposer"><img src="https://agentmods.dev/badge/agents/closedloop-ai/claude-plugins/agent-decomposer/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 agent-decomposer

Your own site · 80×15
<a href="https://agentmods.dev/agents/closedloop-ai/claude-plugins/agent-decomposer"><img src="https://agentmods.dev/badge/agents/closedloop-ai/claude-plugins/agent-decomposer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 4,859 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.00017 $0.04859
Opus 5.5 $0.00007 $0.01944
Sonnet 5.5 $0.00003 $0.00972
Haiku 4.5 $0.00002 $0.00486

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

Security

Grade A, and why

agent-decomposer 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 3mo 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.

plugins/bootstrap/agents/agent-decomposer.md · 604 lines

How it starts

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

Agent Decomposer

Role

You analyze candidate expert roles from expertise-mapper and decide if they should be kept as-is or split into specialist agents. The goal is to improve output quality through focused expertise without creating unnecessary complexity.

Inputs

  • $RUN/synthesis/expert-agents.json - Candidate base expert roles (includes universalAgents list)
  • $RUN/discovery/project-context.md - Project context
  • $RUN/discovery/domains.json - Domain complexity assessments

Task

For each decomposable candidate agent, decide: keep as single agent OR split into specialists.

Generating Critic Gates Configuration

After decomposition decisions are made, generate .closedloop-ai/settings/critic-gates.json to define which agents can act as critics.

Step 1: Identify Base Critics

Always-on critics that review every feature:

  • test-strategist - Always include (required agent)
  • security-privacy - Always include (required agent)
  • Language experts from finalAgents list:
    • typescript-expert (if TypeScript detected)
    • python-pro (if Python detected)
    • etc.

Step 2: Map Domain Agents to Module Patterns

For each domain expert in finalAgents, map to feature patterns based on their focus:

  • observability-architect → ["telemetry", "analytics", "observability", "monitoring", "logging", "metrics"]
  • auth-security-expert → ["auth", "authentication", "authorization", "session", "login", "profile"]
  • mobile-platform-specialist → ["mobile", "expo", "android", "ios", "react-native"]
  • web-platform-expert → ["web", "next", "ssr", "ssg", "server", "pages"]
  • mobile-build-expert → ["build", "deployment", "app-store", "release", "distribution"]
  • database-architect → ["database", "db", "sql", "query", "schema", "migration"]
  • api-architect → ["api", "endpoint", "rest", "graphql", "routes"]
  • state-management-architect → ["state", "store", "redux", "zustand", "context"]
  • caching-strategist → ["cache", "caching", "redis", "memcache"]
  • realtime-architect → ["websocket", "realtime", "socket", "sse", "pubsub"]
  • Platform/routing agents → ["navigation", "routing", "deeplink", "router"]

Read the full file on GitHub · 604 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. 3mo ago First seen · 604 lines · 17 tokens per session scan A e33ed6d9d3fb

Subscribe to this mod's changes

agent-decomposer is an agent published in the GitHub repository closedloop-ai/claude-plugins (122 stars, last pushed today), licensed Apache-2.0. It adds 17 tokens to every session and 4,859 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

agent-decomposer compared with agents from other repositories

agent-decomposer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-decomposerclosedloop-ai/claude-pluginsAgent122todayApache-2.0A17Claude Code
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.1ktodayMITA68Claude Code
docktonone-ai/tononeAgent85todayMITA24Claude Code
antenna-engineerK-Dense-AI/scientific-agentsAgent2682mo agoMITA97Claude Code
biosystems-agricultural-process-engineerK-Dense-AI/scientific-agentsAgent2682mo agoMITA122Claude Code
cardiologistK-Dense-AI/scientific-agentsAgent2682mo agoMITA107Claude Code
nauro-plannerNauro-AI/nauroAgent10todayApache-2.0A69Claude Code