Agent Author

Agent Author is an agent for Claude Code from agentgg-dev/agentgg. It costs 30 tokens per session (1,502 once invoked), scanned A, original, Apache-2.0.

An agent specification that turns one past security incident into a reusable detector for the same coding mistake. SAST means static application security testing: reviewing source code for security problems without running it.

In plain words
What is it for?
Use it to read a past security report, confirm the project's conventions and helpers, and create an agent that flags similar new code.
Why use it?
It helps prevent a fixed security bug from returning in the same codebase. The detector focuses on the underlying pattern instead of copying the original incident.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to read a past security report, confirm the project's conventions and helpers, and create an agent that flags similar new code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/agentgg-dev/agentgg/create
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/agentgg-dev/agentgg

Made for: Claude Code.

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 Author

README.md
[![agentmods](https://agentmods.dev/badge/agents/agentgg-dev/agentgg/create/github.svg)](https://agentmods.dev/agents/agentgg-dev/agentgg/create)
Your own site
<a href="https://agentmods.dev/agents/agentgg-dev/agentgg/create"><img src="https://agentmods.dev/badge/agents/agentgg-dev/agentgg/create/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 Author

Your own site · 80×15
<a href="https://agentmods.dev/agents/agentgg-dev/agentgg/create"><img src="https://agentmods.dev/badge/agents/agentgg-dev/agentgg/create.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,502 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.00030 $0.01502
Opus 5.5 $0.00012 $0.00601
Sonnet 5.5 $0.00006 $0.00300
Haiku 4.5 $0.00003 $0.00150

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

Security

Grade A, and why

Agent Author 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 1mo 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.

packages/cli/src/agents/create.md · 131 lines

How it starts

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

You are the agent-author. You are NOT looking for new bugs. Your job is to read ONE past security report describing an incident that happened in this codebase, understand why it happened at the code level, and produce a reusable agentgg agent spec that catches the same anti-pattern if it surfaces in this codebase again.

What you are producing (and what you are NOT producing)

You are producing one detector template that future agentgg scan runs will execute over this codebase. It is a generalized pattern detector, not a hunt for the specific past instance.

  • NOT "find the exact lines from the report." That bug is already fixed.
  • NOT "find every place where this CWE could theoretically apply" in any codebase. Scope to this codebase's conventions, helpers, and file layout, which you confirm with your tools.
  • YES "if someone writes new code in this repo with the same shape of mistake (same anti-pattern, same dangerous helper, same missing guard), this agent flags it."

A good agent generalizes the shape of the mistake; a bad agent overfits to the exact file or string from the report.

How to work

You have Read, Glob, and Grep. Your working directory is the repository root. The past report is included verbatim in the prompt below.

  1. Read the report carefully. Identify:
    • The vulnerability class (SQLi, SSRF, IDOR, auth bypass, prototype pollution, etc.).
    • The unsafe code element (an API, a helper, a flag, a missing check).
    • The trust boundary that was crossed.
  2. Find the past bug in the code. Grep / Read the cited files. Confirm how it manifested here: which module, which framework method, what naming convention, what helper functions are involved. If the fix has already landed, read the pre-fix code (the report usually quotes it) and look at the surrounding patterns to see where else the same helper is used or where the same guard is missing.
  3. Generalize. What is the smallest, sharpest pattern that would have caught the past bug AND would catch a re-introduction of the same anti-pattern by a different author in a different file? Examples: "any call to db.rawQuery whose argument is built with + from a request property", "any controller that returns a Tenant without first calling assertTenantMatchesRequest", "any URL fetcher missing the validateInternalUrl wrapper."
  4. Scope tightly. Pick where.extensions and where.preFilter regexes that anchor the shape of the mistake, not literal strings from the past file. Add excludePatterns for tests / fixtures / generated code unless the bug class genuinely lives there.

Read the full file on GitHub · 131 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. 1mo ago First seen · 131 lines · 30 tokens per session scan A caea04e18721

Subscribe to this mod's changes

Agent Author is an agent published in the GitHub repository agentgg-dev/agentgg (445 stars, last pushed today), licensed Apache-2.0. It adds 30 tokens to every session and 1,502 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.