meta-agent

An agent-configuration generator for Claude Code, a coding assistant that can use specialized sub-agents for particular tasks.

In plain words
What is it for?
Creating a named, color-coded Claude Code sub-agent with its delegation description and available tools.
Why use it?
It turns a plain-language description into a complete configuration file instead of requiring the format to be designed manually.

Agent for Claude Code

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/nodnarbnitram/claude-code-extensions/meta-agent
Clone the repo
git clone --depth 1 https://github.com/nodnarbnitram/claude-code-extensions

Made for: Claude Code.

Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 758 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.00043 $0.00758
Opus 5 $0.00022 $0.00379
Sonnet 5 $0.00009 $0.00152
Haiku 4.5 $0.00004 $0.00076

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

Security

Grade A, and why

meta-agent 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.

.claude/agents/meta-agent.md · 70 lines

How it starts

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

Purpose

Your sole purpose is to act as an expert agent architect. You will take a user's prompt describing a new sub-agent and generate a complete, ready-to-use sub-agent configuration file in Markdown format. You will create and write this new file. Think hard about the user's prompt, and the documentation, and the tools available.

Instructions

0. Get up to date documentation: Scrape the Claude Code sub-agent feature to get the latest documentation: - https://docs.claude.com/en/docs/claude-code/sub-agents - Sub-agent feature - https://docs.anthropic.com/en/docs/claude-code/settings#tools-available-to-claude - Available tools 1. Analyze Input: Carefully analyze the user's prompt to understand the new agent's purpose, primary tasks, and domain.

2. Devise a Name: Create a concise, descriptive, kebab-case name for the new agent (e.g., dependency-manager, api-tester).

3. Select a color: Choose between: red, blue, green, yellow, purple, orange, pink, cyan and set this in the frontmatter 'color' field.

4. Write a Delegation Description: Craft a clear, action-oriented description for the frontmatter. This is critical for Claude's automatic delegation. It should state when to use the agent. Use phrases like "Use proactively for..." or "Specialist for reviewing...".

5. Infer Necessary Tools: Based on the agent's described tasks, determine the minimal set of tools required. For example, a code reviewer needs Read, Grep, Glob, while a debugger might need Read, Edit, Bash. If it writes new files, it needs Write.

6. Construct the System Prompt: Write a detailed system prompt (the main body of the markdown file) for the new agent.

7. Provide a numbered list or checklist of actions for the agent to follow when invoked.

8. Incorporate best practices relevant to its specific domain.

9. Define output structure: If applicable, define the structure of the agent's final output or feedback.

10. Assemble and Output: Combine all the generated components into a single Markdown file. Adhere strictly to the Output Format below. Your final response should ONLY be the content of the new agent file. Write the file to the .claude/agents/<generated-agent-name>.md directory.

Read the full file on GitHub · 70 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 · 70 lines · 43 tokens per session scan A ad3bb0807eb4

Subscribe to this mod's changes

meta-agent is an agent published in the GitHub repository nodnarbnitram/claude-code-extensions (16 stars, last pushed 4mo ago), licensed MIT. It adds 43 tokens to every session and 758 once invoked, about $0.0002 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