add-agent

add-agent is a command for Claude Code from ShipWithAI/shipwithai-plugins. It costs 40 tokens per session (498 once invoked), scanned A, original, MIT.

A command that creates a new AI agent definition in the .claude/agents/ folder. An agent is a configured helper with a purpose, model, tools, context, and phrases that can trigger it.

In plain words
What is it for?
Use it to add specialised helpers for tasks such as code review, file inspection, research, or other repeatable work in a project.
Why use it?
It removes the need to design and format agent configuration files by hand. It can use a matching preset or ask for the details needed to define a new one.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the shipwithai-starter plugin — 13 skills, 4 commands, 1 agent shipped together

Good fit Use it to add specialised helpers for tasks such as code review, file inspection, research, or other repeatable work in a project.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/shipwithai/shipwithai-plugins/add-agent
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/ShipWithAI/shipwithai-plugins

Made for: Claude Code.

Or install shipwithai-starter, the plugin that ships this one along with the rest of its 13 skills, 4 commands, 1 agent.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/shipwithai/shipwithai-plugins/add-agent"><img src="https://agentmods.dev/badge/commands/shipwithai/shipwithai-plugins/add-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 498 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.00040 $0.00498
Opus 5.5 $0.00016 $0.00199
Sonnet 5.5 $0.00008 $0.00100
Haiku 4.5 $0.00004 $0.00050

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

Security

Grade A, and why

add-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 2mo 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/starter/commands/add-agent.md · 67 lines

What it actually says

/add-agent

Create a new agent in .claude/agents/. Stateless.

Steps

  1. Check the plugin's agents-catalog.json (located at skills/setup-agents/agents-catalog.json in the plugin directory) for a match with the user's intent.

    • Match: show preset, confirm or customize.
    • No match: ask:
      • Agent name and purpose?
      • Context type: autonomous (self-orients by reading files) or task-specific (needs input from caller)?
      • Model: haiku (fast, read-only tasks) / sonnet (analysis, code review) / opus (complex reasoning)?
      • Tools needed: Read, Bash, Glob, Grep, WebFetch?
      • For autonomous: which files does it read on startup?
      • For task-specific: what parameters must the caller pass in the prompt?
      • Trigger phrases to invoke this agent?
  2. Draft agent file using the standard format:

    ---
    name: [name]
    description: >
      [purpose + trigger phrases]
    model: [haiku|sonnet|opus]
    tools: ["Read", "Bash", "Glob", "Grep"]
    ---
    
    # [Agent Name]
    
    ## Purpose
    
    [Why this agent exists. What problem it solves.]
    
    ## Context
    
    **Reads on startup:**
    - [files this agent reads to orient itself]
    
    **Expects in prompt:** *(task-specific agents only)*
    - [PARAM_NAME]: [description and how to pass it]
    
    ## Steps
    
    ### Step 1 — [Action]
    [Description]
    
    ## Boundaries
    
    - Does not modify files directly
    - Does not self-schedule
    
  3. Show preview → confirm → write .claude/agents/[name].md. If file already exists: offer skip or overwrite, do not silently replace.

  4. Note: "Claude Code agents do not self-schedule. Set up a crontab manually if needed."

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. 2mo ago First seen · 67 lines · 40 tokens per session scan A d13abdb7debe

Subscribe to this mod's changes

add-agent is a command published in the GitHub repository ShipWithAI/shipwithai-plugins (9 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 498 once invoked, about $0.0002 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-31.

Related

add-agent compared with commands from other repositories

add-agent next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-agentShipWithAI/shipwithai-pluginsCommand92mo agoMITA40Claude Code
debugprimeline-ai/evolving-liteCommand501mo agoMITA8Claude Code
ccc-orchestrateKevinZai/commanderCommand6todayMITA53Claude Code
ccc-themeKevinZai/commanderCommand6todayMITA47Claude Code
ccc-auditKevinZai/commanderCommand6todayMITA45Claude Code
specmanager-buildjoanseg/specmanagerCommand276d agoMITB25Claude Code
executeskullninja/coco-workflowCommand726d agoMITA28Claude Code