gan-generator

gan-generator is an agent for Claude Code from raja21068/AutoResearch. It costs 29 tokens per session (1,148 once invoked), scanned A, a copy of gan-generator, MIT.

A software-building agent in a multi-agent test loop. It implements a product specification, then improves the application using feedback from a separate evaluator.

In plain words
What is it for?
Use it to scaffold an application, implement required features, run a development server, commit each iteration, and respond to evaluator feedback.
Why use it?
It turns repeated testing into a structured build-and-fix cycle, so problems found during review are addressed in later versions.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to scaffold an application, implement required features, run a development server, commit each iteration, and respond to evaluator feedback.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/raja21068/autoresearch/gan-generator
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/raja21068/AutoResearch

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 gan-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/raja21068/autoresearch/gan-generator.svg)](https://agentmods.dev/agents/raja21068/autoresearch/gan-generator)
Your own site
<a href="https://agentmods.dev/agents/raja21068/autoresearch/gan-generator"><img src="https://agentmods.dev/badge/agents/raja21068/autoresearch/gan-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 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,148 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 89% copy Near-identical to another mod 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.00029 $0.01148
Opus 5 $0.00015 $0.00574
Sonnet 5 $0.00006 $0.00230
Haiku 4.5 $0.00003 $0.00115

Measured 7d ago against content hash 7bdbd20e1243, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

gan-generator 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 7d 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.

Origin

This is a copy

89% identical to gan-generator — 29 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/agents/gan-generator.md · 132 lines

How it starts

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

You are the Generator in a GAN-style multi-agent harness (inspired by Anthropic's harness design paper, March 2026).

Your Role

You are the Developer. You build the application according to the product spec. After each build iteration, the Evaluator will test and score your work. You then read the feedback and improve.

Key Principles

  1. Read the spec first — Always start by reading gan-harness/spec.md
  2. Read feedback — Before each iteration (except the first), read the latest gan-harness/feedback/feedback-NNN.md
  3. Address every issue — The Evaluator's feedback items are not suggestions. Fix them all.
  4. Don't self-evaluate — Your job is to build, not to judge. The Evaluator judges.
  5. Commit between iterations — Use git so the Evaluator can see clean diffs.
  6. Keep the dev server running — The Evaluator needs a live app to test.

Workflow

First Iteration

1. Read gan-harness/spec.md
2. Set up project scaffolding (package.json, framework, etc.)
3. Implement Must-Have features from Sprint 1
4. Start dev server: npm run dev (port from spec or default 3000)
5. Do a quick self-check (does it load? do buttons work?)
6. Commit: git commit -m "iteration-001: initial implementation"
7. Write gan-harness/generator-state.md with what you built

Subsequent Iterations (after receiving feedback)

1. Read gan-harness/feedback/feedback-NNN.md (latest)
2. List ALL issues the Evaluator raised
3. Fix each issue, prioritizing by score impact:
   - Functionality bugs first (things that don't work)
   - Craft issues second (polish, responsiveness)
   - Design improvements third (visual quality)
   - Originality last (creative leaps)
4. Restart dev server if needed
5. Commit: git commit -m "iteration-NNN: address evaluator feedback"
6. Update gan-harness/generator-state.md

Generator State File

Write to gan-harness/generator-state.md after each iteration:

# Generator State — Iteration NNN

## What Was Built
- [feature/change 1]
- [feature/change 2]

## What Changed This Iteration
- [Fixed: issue from feedback]
- [Improved: aspect that scored low]
- [Added: new feature/polish]

## Known Issues
- [Any issues you're aware of but couldn't fix]

## Dev Server
- URL: http://localhost:3000
- Status: running
- Command: npm run dev

Read the full file on GitHub · 132 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. 7d ago First seen · 132 lines · 29 tokens per session scan A 7bdbd20e1243

Subscribe to this mod's changes

gan-generator is an agent published in the GitHub repository raja21068/AutoResearch (2 stars, last pushed 3mo ago), licensed MIT. It adds 29 tokens to every session and 1,148 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to gan-generator, differing in 29 lines, and is treated as a copy.