forge
AGENTS.md13 starsChanged 44 days agoMITView on GitHub
Forge is an agent-invoked delivery skill with professional instructions, human-readable templates, deterministic local mechanics, and behavioral evals. Its CLI also serves a selected artifact directory through a foreground localhost preview. Browser interaction and screenshots remain host capabilities. It is not an application server, semantic command router, workflow daemon, or agent-process launcher. When developing or running Forge inside a host repository, that repository's applicable AGENTS.md hierarchy and linked standards govern implementation. They are not runtime dependencies of the portable skill. Enter…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- forge-buildSkill
- forge-code-reviewSkill
- forge-planSkill
- forge-reviewSkill
- forge-shipSkill
- forge-simplifySkill
- forgeSkill
- forge-specSkill
- forge-verifySkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
When developing or running Forge inside a host repository, that repository's applicable AGENTS.md hierarchy and linked standards govern …
- Distinctive: line 41
Start with Launch: Workflow is Project, Issue, Bug, or Work.
- Distinctive: line 57
Use professional instructions and the concrete workflow assignments.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Forge
Forge is an agent-invoked delivery skill with professional instructions, human-readable templates, deterministic local mechanics, and behavioral evals. Its CLI also serves a selected artifact directory through a foreground localhost preview. Browser interaction and screenshots remain host capabilities. It is not an application server, semantic command router, workflow daemon, or agent-process launcher.
Development and runtime
When developing or running Forge inside a host repository, that repository's
applicable AGENTS.md hierarchy and linked standards govern implementation. They
are not runtime dependencies of the portable skill.
Enter runtime behavior through skills/forge/SKILL.md and load only the relevant phase references, professional instructions, and templates.
Forge Review is the ordinary integrated review route. It selects applicable dimensions from the judge selection and rubrics. Use workflow staffing to assign Reviewer and required Judges, and preserve their reports. The sibling forge-code-review skill is the portable standalone leaf for an explicitly requested code-only review; it ends at its own read-only Code Review verdict and never starts Forge Review or Verify.
Runtime contract
Full delivery follows Spec -> [Build <-> Review] -> Simplify -> Verify -> Ship.
Spec owns intake. Plan remains a job, with brief Engineer notes for Quick work and
an available direct skill. Build owns implementation, integration, internal review,
independent Review, and correction. After that loop passes, a separate Engineer
owns Simplify before QA; changes receive affected proof and independent delta
Review bound to the resulting complete candidate, while no-op retains prior
Review. The Verify skill owns actual outcome proof. Each phase can be
invoked directly and stop. Direct Build/Review stops before Simplify unless also
authorized. Explore, Review, Explain, Finish, Spec apply, the
legacy natural wording Spec merge, and KB maintenance are direct operations
without implied full-delivery status.
Start with Launch: Workflow is Project, Issue, Bug, or Work; Depth is Quick or Full; Control is Guided or explicitly Auto. Guided waits before dispatch, then at new Spec/consequential Plan gates, except the direct bounded read-only Review exception in Launch: brief scope/team/boundary and proceed to the requested report without another Launch acceptance ask. Auto exercises its grant without inventing approval or overriding protected-Spec rules. An Issue's complexity governs depth. A clear current request can supply ready intent; PM fills missing product intent only. Bounded guidance-only changes default to Quick, and material simplification triggers a depth/staffing reassessment. Plan remains a job and can be brief notes. All behavioral Spec changes preserve explicit Given/When/Then scenarios.
One accountable Engineer integrates software work. A separate clean-context Reviewer in the same host owns the read-only verdict over the integrated candidate. QA owns distinct Verify evidence; instruction-only work with no separate outcome to exercise reuses Review and deterministic checks by reference. Use professional instructions and the concrete workflow assignments; do not require provider/model diversity, unused specialists, or one gate per Worker.
Boundaries
- Current human instruction and recorded decisions own intent.
- Standing Spec plus approved delta owns durable behavior.
- Repository harness and accepted design/technical decisions govern execution.
- Findings, code, tests, logs, prototypes, and knowledge evidence cannot create requirements.
- Direct Explore, Spec, Plan, Review, Simplify, Verify, Explain, Finish, Spec apply/merge, and KB work stop at the requested boundary.
- Importing a ticket or producing a mock does not authorize Build.
- Review PASS and local checks do not establish Verify.
- UI acceptance uses actual browser interaction and accepted visual comparison.
- Synthetic users stay within accepted scope and do not simulate research authority.
- Spec records approved meaning without routine canonical writes. Explicit Spec apply owns one proportional adversarial read plus existing guarded memory mechanics; routine Finish invokes that operation once at actual work completion.
- Ship executes only authorized publication and concise complete-candidate closure.
Fix aligned P0 and pragmatic P1 findings through coherent whole-outcome repair. P2 does not extend the loop. Apply the shared three-cycle/three-substantive-repair rethink trigger across Review and Verify, then stop automatic repair if the same failure recurs after independent challenge.
Ownership
skills/forge/SKILL.md: public routing and lifecycle composition.skills/forge-{spec,plan,build,review,simplify,verify,ship}/: owning phase skills, references, and deliberate templates.skills/forge-code-review/SKILL.md: standalone Code Review leaf and portable direct-review boundary.skills/forge-review/references/judges.md: applicable judge dimensions, selection, replacement, disable, waiver, and report integration guidance.skills/forge-shared/: focusedauthority.md,pragmatism.md,severity.md,repair.md, andtarget-harness.mdcontracts, plus returns, workflows, runtime, records, and memory support; it is not a discoverable skill or one combined standards manual. Target harness routing supplies actual applicable app standards and check paths to every assigned agent.- Phase-owned
assets/plusskills/forge-shared/assets/: managed-document templates with stable CLI keys. skills/forge-spec/references/design-studies.mdandskills/forge-spec/assets/design-study.html: codebase-grounded single-page studies; HTML is an ordinary linked visual asset, with revision and authority in the existing visual record.agents/: professional perspectives and temporary helper instructions.src/and compileddist/forge: strict TypeScript/Bun mechanics with embedded templates.src/serve.ts: read-only artifact serving through the embedded Bun runtime.commands/claude/forge/: native/forge:<phase>adapters to owning skills.tests/: deterministic behavior; no prompt-sentence assertions.evals/: semantic routing, authority, judgment, and lifecycle behavior.
The CLI may initialize records; create, update, append, and validate documents; record canonical D-number decisions from disclosed local authorization context; calculate candidate identity; apply approved prepared Spec changes; verify/apply generic memory changes; query, validate, update, and read receipt-derived history for the canonical KB. It never launches agents or chooses phases, personas, findings, remedies, or verdicts.
New loops default to the target application's gitignored .forge/loops/<loop>/.
Its optional root forge.yml can set storage.path and storage.loops.path;
legacy loopsPath remains an alias. --repo identifies the application and
--loop selects its records. Installation, application, and loop storage are
separate locations; explicit external installation does not replace application
authority. Existing local and known former home history stays in place under
the configuration/discovery contract.
Native assignments consume optional active-engine role model/effort defaults
through runtime selection.
Loop identities and loop-local codes come from readable Markdown
frontmatter scans under the mutation lock, without a JSON Issue registry.
Preserve Forge id, code, and record-kind fields through CLI updates. The loop
scan does not detect a raw identity edit against original registration. Canonical
Spec/KB identities retain their separate .forge/identities.json safeguards;
report them separately from an OKF concept's path ID and open type.
Generic document writes cannot modify protected decisions or
canonical docs/specs and docs/knowledge. That guard binds the CLI rather
than the filesystem: an agent with write access can edit a decision record
directly, and docs validate checks structure, identity, and links rather than
authenticity, so it will not report the edit. Git history is the authority
record for what a human actually approved. kb ask does report canonical
knowledge whose working-copy bytes diverge from their last receipt. Candidate
checks exclude loop mechanics by default and include selected source and
accepted authority paths. Semantic reconciliation belongs to an accountable
specialist and independent review; mechanical success proves structure and
stale-base safety only.
Verification
From the Forge package directory (Bun, Git, and POSIX tools required):
bun run check
bun run build:cli
FORGE_TEST_BINARY="$PWD/dist/forge" bun test ./tests
git diff --checkInstruction behavior needs behavioral evaluation. Deterministic tests cover only
mechanics, metadata, templates, path safety, and candidate facts. The behavioral
suite under evals/ is not published with this package, so a public clone can
run the mechanics but not the evidence for instruction quality.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

