- Shell 94.3%
- Python 4.6%
- JavaScript 1.1%
| .agents | ||
| .claude | ||
| .codex | ||
| .forgejo | ||
| .opencode | ||
| docs | ||
| evals | ||
| scripts | ||
| tests | ||
| .env.opencode | ||
| .gitignore | ||
| .prettierrc | ||
| AGENTS.md | ||
| LICENSE | ||
| README.md | ||
Agent Foundry
Agent Foundry gives coding agents policies they follow to turn a request into delivered and verified work.
Description
AGENTS.md routes each request to the workflow for its kind of change.
Each workflow is a skill that chains action skills, such as a design, a
plan, or a verification, which the user can also ask for alone. Every
change workflow grows one work file, from its Brief to the evidence of
its verification. The workflows guide charts
the workflows, their actions and work documents, and where the work
stops for the user.
The workflows and skills run in Claude Code, Codex, and OpenCode. Each install also brings two hooks, and Claude Code a settings file, which act on every session as Hooks and settings describes. The OpenCode adapters set no model, so its subagents run on the session's; the project may give one to each, as Subagent models describes.
Dependencies
Every environment needs:
- Git 2.48 or later
- Bash
- ShellCheck 0.7.0 or later
jq
Optional, but suggested:
- GitHub's
ghor Forgejo'sfj, logged in to the repository's host, so agents open pull requests, issues, and review comments themselves instead of handing over the text to paste - bubblewrap (
bwrap, tested with 0.11.1), the sandboxreview-pr,check-issue, anddiagnoserun code in
Quick start
Install Agent Foundry for your client from this source; the repositories then hold only their own facts:
- Claude Code 2.1.277 or later: Plugin for Claude Code.
- Codex 0.173.0 or later: Plugin for Codex.
- OpenCode 2.x: Folder for OpenCode's system directory.
Then give each project the facts What each project holds lists, and run Checking an install.
Hooks and settings
Two hooks run in each client: one refuses an edit in a main checkout on
its main branch, and one runs ShellCheck on each shell script an agent
writes. In Claude Code you also merge a settings file into your
~/.claude/settings.json; in all your sessions it denies some tools and
built-in skills, keeps secret files from Claude's file tools and the
file commands Claude Code recognizes, with no sandbox, asks before edits
to agent configuration, and turns off auto memory and commit
attribution. The settings guide gives each hook and
setting, and the permissions Codex needs set by hand.
Upgrading Agent Foundry
Each install takes a newer source by the last step of its section in
docs/INSTALL.md.
Maintenance
To change this source, follow
docs/MAINTENANCE.md.
License
Agent Foundry is released under the MIT No Attribution License in
LICENSE.