gan-generator

gan-generator is an agent for Claude Code from Fmarzochi/EGC. It costs 29 tokens per session (1,144 once invoked), scanned A, original, Apache-2.0.

A generator agent for a GAN-style software project. It reads a product specification, builds the application, and iterates using feedback from an evaluator agent.

In plain words
What is it for?
Use it to scaffold an application, implement specified features, run a development server, inspect evaluator feedback, and commit iterations.
Why use it?
It gives an implementation agent a defined workflow for turning requirements into a working app and addressing test feedback.

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 specified features, run a development server, inspect evaluator feedback, and commit iterations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fmarzochi/egc/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/Fmarzochi/EGC

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/fmarzochi/egc/gan-generator.svg)](https://agentmods.dev/agents/fmarzochi/egc/gan-generator)
Your own site
<a href="https://agentmods.dev/agents/fmarzochi/egc/gan-generator"><img src="https://agentmods.dev/badge/agents/fmarzochi/egc/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,144 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.00029 $0.01144
Opus 5 $0.00015 $0.00572
Sonnet 5 $0.00006 $0.00229
Haiku 4.5 $0.00003 $0.00114

Measured 4d ago against content hash 29efbc9067ab, 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 4d 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

Copies of this mod

2 near-identical copies found in the catalogue:

agents/gan-generator.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 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 .

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 · 133 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. 4d ago First seen · 133 lines · 29 tokens per session scan A 29efbc9067ab

Subscribe to this mod's changes

gan-generator is an agent published in the GitHub repository Fmarzochi/EGC (49 stars, last pushed today), licensed Apache-2.0. It adds 29 tokens to every session and 1,144 once invoked, about $0.0001 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-09-03.