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.
npx agentmods add agents/itdojp/ae-framework/code-generation-agentgit clone --depth 1 https://github.com/itdojp/ae-frameworkWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.03022 |
| Opus 5 | $0.00000 | $0.01511 |
| Sonnet 5 | $0.00000 | $0.00604 |
| Haiku 4.5 | $0.00000 | $0.00302 |
Grade A, and why
code-generation-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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 444 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Generation Agent
English
Overview
The Code Generation Agent is a Phase 4 component of the ae-framework that automatically generates implementation code from tests and specifications. It follows the TDD principle of writing minimal code to make tests pass, then refactoring for quality.
Features
Core Capabilities
-
Test-Driven Code Generation
- Analyzes test files to understand requirements
- Generates minimal implementation to pass tests
- Supports multiple languages (TypeScript, JavaScript, Python, Go, Rust)
-
API Generation from OpenAPI
- Creates complete API implementations from OpenAPI specs
- Generates route handlers, models, and middleware
- Supports multiple frameworks (Fastify, Express, Koa)
-
Design Pattern Application
- Applies common design patterns (Singleton, Factory, Observer, etc.)
- Refactors existing code to use patterns
- Maintains code consistency
-
Performance Optimization
- Identifies performance bottlenecks
- Applies optimizations automatically
- Provides before/after benchmarks
-
Security Enhancement
- Adds authentication (JWT, OAuth, Basic)
- Implements authorization (RBAC, ABAC)
- Includes encryption and rate limiting
-
Database Layer Generation
- Creates entities and repositories
- Generates migrations
- Supports multiple ORMs (TypeORM, Prisma, Sequelize)
Usage
As a Standalone Agent
import { CodeGenerationAgent } from './src/agents/code-generation-agent';
const agent = new CodeGenerationAgent();
// Generate code from tests
const result = await agent.generateCodeFromTests({
tests: [
{
path: 'tests/calculator.test.ts',
content: '...',
type: 'unit'
}
],
language: 'typescript',
architecture: {
pattern: 'hexagonal'
}
});
console.log('Generated files:', result.files);
console.log('Test coverage:', result.coverage);
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.
- yesterday First seen · 444 lines · 0 tokens per session scan A 210f997f14bf
code-generation-agent is an agent published in the GitHub repository itdojp/ae-framework (2 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 3,022 tokens. 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.
Other agents, from other repositories
playwright-test-generator
Use this agent to convert a SigNoz E2E test plan into Playwright spec files under tests/e2e/tests/ /. Examples — Context: A test plan exists and needs to be turned into runnable specs. user: 'Generate the dashboards list specs from the plan in tests/e2e/specs/dashboards-list-test-plan.md' assistant: 'Using the…
playwright-test-healer
Use this agent to debug and fix failing SigNoz E2E Playwright tests. Examples — Context: A spec is red. user: 'tests/e2e/tests/dashboards/list.spec.ts is failing, fix it' assistant: 'Using the healer agent to debug each failing scenario and adjust the spec.' Context: After a frontend change a previously-green spec…
playwright-test-planner
Use this agent to create a comprehensive E2E test plan for a SigNoz frontend feature. Examples — Context: A new feature has shipped and we need test coverage. user: 'Plan E2E tests for the alerts list page' assistant: 'I'll use the planner agent to read the relevant frontend source, navigate the page in a real…
codex
Production OpenAI-Codex-capable rootfs/initramfs.
claude
Production Claude-capable rootfs/initramfs.
doc-style
Markdown documentation prose — RFCs, ADRs, files under docs/, and READMEs — follows the same one-paragraph-per-line rule as commit messages. Write each paragraph on a single line; do not hard-wrap prose to a fixed column. The renderer reflows it to the reader's display width, whereas manual mid-paragraph line breaks…