add-agent

add-agent is a command for coding agents 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

Part of the shipwithai-starter plugin — 13 skills, 4 commands, 1 agent 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 commands/shipwithai/shipwithai-plugins/add-agent
Clone the repo
git clone --depth 1 https://github.com/ShipWithAI/shipwithai-plugins

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.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.svg" alt="Measured on agentmods" 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. 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.00040 $0.00498
Opus 5 $0.00020 $0.00249
Sonnet 5 $0.00008 $0.00100
Haiku 4.5 $0.00004 $0.00050

Measured 3d ago against content hash d13abdb7debe, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (10 stars, last pushed 21d ago), licensed MIT. It adds 40 tokens to every session and 498 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-31.