forge
AGENTS.md2 starsChanged 3 days agoMITView on GitHub
Read and follow framework/work-principle.md before taking up work. Resolve this reference against the framework root; retain the consumer CWD. Reread it after compaction. Forge's shared git hooks run when installed in the active repository: pre-commit.sh (pre-commit, pre-merge-commit and commit-msg; PLAN-VALIDATE / CG-CONV / SKILL-FM-VALIDATE BLOCK; SECRET-SCAN / SOURCE-VERIFICATION WARN). The two SessionStart scripts are Claude-specific and conditional, not universal Codex boot hooks. Codex uses the managed AGENTS entry installed by scripts/setup-codex.sh; its loading must be checked in a fresh session.…
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 3
Read and follow framework/work-principle.md before taking up work.
- Distinctive: line 11
After compaction, reread before continuing every file in the boot entry's post-compaction reread list.
- Distinctive: line 22
Default language for all new work is English.
- Distinctive: line 23
Write code comments, specs, ADRs, task content, and review artifacts in English.
- Distinctive: line 24
Use German only when quoting existing German source text verbatim or when the user explicitly requests German output.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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
Buddy — Codex / OpenCode Adapter
Read and follow framework/work-principle.md before taking up work.
Resolve this reference against the framework root; retain the consumer CWD.
Reread it after compaction.
Boot
Load and follow: the resolved soul (framework/user-scope.md; default
agents/buddy/soul.md), framework/invariants.md, agents/buddy/operational.md,
agents/buddy/boot.md.
After compaction, reread before continuing every file in the boot entry's
post-compaction reread list.
Framework-wide rules
Workflow selection, intent-driven work, the invariants (numbered as cited
elsewhere: "Inv 4" and so on) and observability hold in every project and live
in framework/invariants.md; read and follow it before taking up work (the boot
entry names it). This file adds the host's load list and the rules that apply
only when the active project is the forge repository itself.
Language Policy
- Default language for all new work is English.
- Write code comments, specs, ADRs, task content, and review artifacts in English.
- Use German only when quoting existing German source text verbatim or when the user explicitly requests German output.
Frozen Zones + Consistency
SoT: docs/STRUCTURE.md. Consistency cascade: context-rules.md.
Commit
Format and types are enforced by the pre-commit hook (CG-CONV).
Active Hooks
Forge's shared git hooks run when installed in the active repository:
pre-commit.sh (pre-commit, pre-merge-commit and commit-msg; PLAN-VALIDATE / CG-CONV /
SKILL-FM-VALIDATE BLOCK; SECRET-SCAN / SOURCE-VERIFICATION WARN). The two
SessionStart scripts are Claude-specific and conditional, not universal Codex
boot hooks. Codex uses the managed AGENTS entry installed by
scripts/setup-codex.sh; its loading must be checked in a fresh session. The framework runs no tool-event hooks
(PreToolUse / PostToolUse / UserPromptSubmit); write-time discipline is
protocol-anchored via protocols + operational.md.
OC Constraints
The consumer repo is the CWD; the framework is mounted via the OpenCode
launcher ($FRAMEWORK_DIR/orchestrators/opencode/bin/oc, with
OPENCODE_CONFIG_DIR=$FRAMEWORK_DIR/orchestrators/opencode/.opencode).
A consumer's project-level AGENTS.md (in the consumer repo root) adds
to this framework AGENTS.md, it doesn't replace it. Commands are
trigger words without a prefix (wakeup, save, checkpoint, think!).
OpenCode follows the same protocol-based method. Its launcher, instruction
loading, permissions and actually installed Git checks must be verified for
that host. Shared methodology does not establish identical execution or
enforcement. There is no tool-event (PreToolUse/PostToolUse) hook layer on
either harness.
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 28,693 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 repository85 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adversary-test-planSkill
- api-and-interface-designSkill
- architecture-coherence-reviewSkill
- bedrock-drillSkill
- cavemanSkill
- code-review-boardSkill
- consistency-checkSkill
- councilSkill
- cross-spec-consistency-checkSkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- frameSkill
- frontend-design-ttySkill
- frontend-ui-engineeringSkill
- get-api-docsSkill
- impl-plan-reviewSkill
- improve-codebase-architectureSkill
- knowledge-captureSkill
- knowledge-processorSkill
- pre-build-spec-auditSkill
- retroactive-spec-updateSkill
- root-cause-fixSkill
- scopingSkill
- sectional-deep-reviewSkill
- security-and-hardeningSkill
- session-diagnosisSkill
- shipping-and-launchSkill
- show-open-tasksSkill
- source-spec-reduceSkill
- spec-authoringSkill
- spec-boardSkill
- task-creationSkill
- task-status-updateSkill
- testingSkill
- transparency-headerSkill
- ux-authoringSkill
- workflow-routerSkill
- youtube-subtitlesSkill
- adversary-test-planSkill
- api-and-interface-designSkill
- architecture-coherence-reviewSkill
- bedrock-drillSkill
- cavemanSkill
- close-retroSkill
- code-review-boardSkill
- consistency-checkSkill
- convergence-loopSkill
- councilSkill
- cross-spec-consistency-checkSkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- frameSkill
- frontend-design-ttySkill
- frontend-ui-engineeringSkill
- get-api-docsSkill
- impl-plan-reviewSkill
- improve-codebase-architectureSkill
- knowledge-captureSkill
- knowledge-processorSkill
- The first 60 shown.
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.

