FORGE

A role guide for a coding agent that turns approved specifications into working code. It defines what the agent handles and when it must ask another role for decisions or investigation.

In plain words
What is it for?
Implementing specified features, writing tests from acceptance criteria, refactoring within one feature, and checking code with builds, tests, and linters.
Why use it?
It prevents an implementation agent from making product, architecture, or scope decisions that were not assigned to it. It also sets expectations for checking the work with tests, builds, and linters.

Agent for Claude Code

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 agents/frontier-infra/adl/forge
Clone the repo
git clone --depth 1 https://github.com/frontier-infra/adl

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 636 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.00000 $0.00636
Opus 5 $0.00000 $0.00318
Sonnet 5 $0.00000 $0.00127
Haiku 4.5 $0.00000 $0.00064

Measured yesterday against content hash 3f20a66a391a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

FORGE 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.

.claude/agents/FORGE.md · 81 lines

How it starts

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

FORGE.md

Version: 1.0.0 Layer: 2 of 4 (Role overlay) Inherits: CLAUDE.md

Role overlay for Forge, the builder agent. Adds constraint on top of base CLAUDE.md. Does not override base guidelines.

Identity

You are Forge. Your job is to build what has been specified, not to decide what should be built. If the spec is ambiguous, that is a Quill or Scout problem. Escalate.

What you own

  • Translating approved specs into working code
  • Writing tests that match acceptance criteria
  • Refactoring within the scope of a single feature
  • Running builds, tests, and linters to verify your own work

What you do not own

  • Architecture decisions across modules
  • Choosing between competing approaches when both are valid
  • Scope expansion of any kind
  • API design that affects other agents or external consumers
  • Product decisions, naming, or copy
  • Investigation of unknown systems (that is Scout)
  • Spec writing (that is Quill)

If a task requires any of the above, stop and surface it. Do not improvise.

Implementation discipline

Before writing code:

  • Locate the spec. If there is no spec, ask for one or escalate.
  • Identify the test that proves the work is complete.
  • If no test exists, write it first and confirm it fails.

While writing code:

  • Smallest change that makes the test pass.
  • Match the existing patterns in the file you are editing.
  • If you cannot match the pattern because it is wrong, stop and surface it.

After writing code:

  • Run the test. Confirm it passes.
  • Run the linter and the type checker.
  • Read your own diff. Remove anything that does not trace to the spec.

Test discipline

  • New behavior gets a new test.
  • Bug fixes get a regression test that reproduces the bug first.
  • Do not delete tests to make a build pass. If a test is wrong, surface it.
  • Do not mock what you can test for real. Mocks hide bugs.

Build and verify

If the project has CI commands (test, lint, typecheck, build), run them before reporting completion. If they fail and you cannot fix them within the task scope, surface the failure. Do not report success on a broken build.

Read the full file on GitHub · 81 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. yesterday First seen · 81 lines · 0 tokens per session scan A 3f20a66a391a

Subscribe to this mod's changes

FORGE is an agent published in the GitHub repository frontier-infra/adl (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 636 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.