A lean Git repository template for disciplined AI-agent development with Claude Code, Codex and OpenCode.
  • Shell 94.3%
  • Python 4.6%
  • JavaScript 1.1%
Find a file Use this template
Motoko Kusanagi 1f87e6502c
All checks were successful
Maintenance / checks (push) Has been skipped
Maintenance / checks (pull_request) Successful in 6m35s
Maintenance / publish (pull_request) Has been skipped
Maintenance / publish (push) Successful in 49s
docs: point the install guide at the source's own architecture
2026-12-03 18:22:25 +00:00
.agents refactor!: drop the umbrella and the template state 2026-12-03 18:22:25 +00:00
.claude
.codex
.forgejo
.opencode
docs docs: point the install guide at the source's own architecture 2026-12-03 18:22:25 +00:00
evals refactor!: drop the umbrella and the template state 2026-12-03 18:22:25 +00:00
scripts refactor!: drop the umbrella and the template state 2026-12-03 18:22:25 +00:00
tests refactor!: drop the umbrella and the template state 2026-12-03 18:22:25 +00:00
.env.opencode
.gitignore
.prettierrc
AGENTS.md refactor!: drop the umbrella and the template state 2026-12-03 18:22:25 +00:00
LICENSE
README.md refactor!: drop the umbrella and the template state 2026-12-03 18:22:25 +00:00

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 gh or Forgejo's fj, 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 sandbox review-pr, check-issue, and diagnose run code in

Quick start

Install Agent Foundry for your client from this source; the repositories then hold only their own facts:

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.