Swarmforge: Instructions file for Codex

AGENTS.md

Swarmforge AGENTS.md is an instructions file for Codex, OpenCode from CrypticSwarm/Swarmforge. It costs 1,846 tokens per session, scanned A, original, MIT.

Repository instructions for Swarmforge, a tool that runs coding agents in containers and provides shared project setup. They define the files, coding rules, and commands agents must follow.

In plain words
What is it for?
Use them when modifying Swarmforge source, scripts, Docker files, or skills, and when building, testing, or running its container-based tools.
Why use it?
They give an agent the project context and working rules before it changes code, reducing incorrect edits and inconsistent builds or tests.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; mentions AGENTS.md; mentions OpenCode.

This is CrypticSwarm/Swarmforge's own configuration. It tells Codex and OpenCode how to work on Swarmforge itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Swarmforge configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CrypticSwarm/Swarmforge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CrypticSwarm/Swarmforge/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/CrypticSwarm/Swarmforge

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Swarmforge AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/crypticswarm/swarmforge/agents-md/github.svg)](https://agentmods.dev/instructions/crypticswarm/swarmforge/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/crypticswarm/swarmforge/agents-md"><img src="https://agentmods.dev/badge/instructions/crypticswarm/swarmforge/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Swarmforge AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/crypticswarm/swarmforge/agents-md"><img src="https://agentmods.dev/badge/instructions/crypticswarm/swarmforge/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,846 This file is loaded in full into every session.
When invoked 1,846 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01846 $0.01846
Opus 5.5 $0.00738 $0.00738
Sonnet 5.5 $0.00369 $0.00369
Haiku 4.5 $0.00185 $0.00185

Measured 28d ago against content hash 3e7a31c366d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Swarmforge AGENTS.md 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 28d ago.

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.

AGENTS.md · 44 lines

How it starts

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

AGENTS.md

Scope

  • These instructions apply to the entire repository until a nested AGENTS.md overrides them.
  • Follow this file whenever you add or modify source, scripts, Docker assets, or skills anywhere in the repo.

Repo Overview

  • Makefile orchestrates the local containers (build_opencode, run_opencode, etc.) and is the preferred entry point for automation.
  • install.sh appends an oc helper alias that shells out to make -f <repo>/Makefile run_opencode PROJECT_DIR=$(pwd); keep it POSIX-compliant because it is sourced in user shells.
  • anvil/ holds the container-side assets shared by every harness image: the Dockerfile and the container entrypoint. Per-harness image assets — each harness's binary install script, and Claude's status line (statusline.sh) with the image config layer that turns it on (claude-settings.json) — live in swarmforge/harness/<name>/ and ride into the image with the package. The images build from the repo root (-f anvil/Dockerfile) so swarmforge/ can be copied in; .dockerignore keeps everything else out of the context.
  • swarmforge/ is the Python for both sides of the container boundary: the host launcher (anvil, tongs, gitguard, names, cli, worktrees), and the container lifecycle drivers the entrypoint runs with python3 -m (swarmforge.harness.init as root, then swarmforge.harness.execute as the anvil user), where the config merging, the agent translation, and the asset install happen. It is stdlib-only: the image installs no third-party Python and the launcher runs on the host's python3.
  • bin/ holds the launcher entry points (run-anvil, tongs, git-guard, project-name, swarmforge). Each is a shim that puts the checkout on sys.path and calls its module's main() — the only files that resolve a path, so nothing under swarmforge/ needs to know where it sits on disk.
  • opencode/ holds the OpenCode-native repo config layer (opencode.json, plus untracked plugin state); harness-neutral assets live at the top level in skills/, commands/, and agents/.
  • docs/ holds the prose, one file per subject, indexed by docs/README.md; embedded images live in docs/images/; README.md keeps the pitch, the install and run steps, and a map of that tree. Every page is reachable from the index and every relative link resolves, which tests/test_docs_links.py holds to.

Read the full file on GitHub · 44 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. 28d ago Changed · -2 lines · -72 tokens per session 3e7a31c366d1
  2. 1mo ago Changed · +17 tokens per session 47e5c9ea6c1e
  3. 1mo ago Changed · +1 lines · +121 tokens per session 8ef0dc272fe0
  4. 1mo ago Changed · +1 lines · +124 tokens per session 970a66f8004d
  5. 1mo ago Changed · +1 lines · +227 tokens per session 0a601839e6d9
  6. 2mo ago First seen · 43 lines · 1,429 tokens per session scan A 4ec486741c25

Subscribe to this mod's changes

Swarmforge AGENTS.md is an instructions file published in the GitHub repository CrypticSwarm/Swarmforge (4 stars, last pushed 2d ago), licensed MIT. It adds 1,846 tokens to every session, about $0.0074 per session on Opus 5.5. 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.

Related

Swarmforge AGENTS.md compared with instructions from other repositories

Swarmforge AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Swarmforge AGENTS.mdCrypticSwarm/SwarmforgeInstructions file42d agoMITA1,846Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot