⚠️ Alpha. APIs, skill names, and the plan format may change without notice. Use on throwaway branches until it stabilizes.Currently biased toward TypeScript projects (typecheck defaults, suggested skills, assumed tooling). PRs welcome to make it language-agnostic.
A skill-driven dev workflow for Claude Code, OpenCode, and Codex: describe → plan → pick mode → execute → test. No orchestrator. Skills trigger on intent and hand off to each other.
Built by developers, for developers.
- Skills, not orchestration. Each skill knows what comes next. No top-level router.
- Plan on disk, not in context. Survives compaction; reviewable in your editor.
- Choice of isolation. In-session for feedback fidelity, subagent-driven for big plans — you pick per task.
- Shared debugger. Any executor loads it when stuck.
- No destructive ops without explicit ask. No commits, pushes, or PRs from skills or subagents.
- Short reports. Subagent output capped (~150–500 words). Raw dumps kill context.
- Per-subagent model selection by capability. Match model tier to task complexity: fast/cheap for mechanical steps, standard for multi-file edits, most capable for architectural judgment. Platform-managed where not configurable.
- 🚀 GitNexus over grep. Code exploration goes through the GitNexus knowledge graph — faster, more precise, and far cheaper in tokens than repeated file scans.
- 🦴 Caveman for agent-to-agent. Selected skills and sub-agents emit machine-consumed sections in caveman style — cuts the payload roughly in half while preserving signal.
flowchart LR
User([💬 describe task]) ==> Plan[📝 <b>plan</b><br/><i>writing-plans</i>]
Plan ==> File[(📄 .forge/plan/*.md)]
File ==> Mode{{🎛️ mode?}}
Mode ==>|in-session| Exec[⚡ <b>execute</b><br/><i>executing-plans</i>]
Mode ==>|subagents| Sub[🧩 <b>delegate</b><br/><i>subagent-execution</i>]
Exec ==> Done([✅ test & done])
Sub ==> Done
Plan -.-> Ctx[[🔎 ticket + repo context]]
Exec -.stuck.-> Dbg[[🐞 debugger]]
Sub -.stuck.-> Dbg
classDef main fill:#dcfce7,stroke:#16a34a,stroke-width:2px,color:#111
classDef side fill:#f3e8ff,stroke:#9333ea,stroke-dasharray:3 3,color:#111
classDef pick fill:#fde68a,stroke:#d97706,color:#111
classDef file fill:#e0f2fe,stroke:#0284c7,color:#111
class Plan,Exec,Sub main
class Ctx,Dbg side
class Mode pick
class File file
One path, two execution flavors. Context gathering and the debugger show up only when needed.
| Skill | Role |
|---|---|
using-forge |
Entry gate — routes dev tasks into the flow. |
brainstorm |
On-demand grill — only runs when explicitly requested. |
writing-plans |
Gathers context, writes .forge/plan/{slug}.md. |
executing-plans |
Runs the plan in-session. |
subagent-execution |
Runs the plan via one subagent per STEP. |
debugger |
Diagnostic playbook, loaded on failure. |
| Agent | Role |
|---|---|
ticket-fetcher |
Pulls a Linear ticket summary. |
codebase-explorer |
Maps relevant files via GitNexus. |
test-runner |
Typecheck + optional browser check. |
A single markdown file at .forge/plan/{slug}.md.
{slug}= lowercased Linear ticket id (e.g.eng-123) if present, else a short kebab-case slug (≤ 40 chars, no dates).- Sections:
GOAL,APPROACH,SKILLS TO APPLY,FILES TO CHANGE,STEPS(checklist),TESTS TO UPDATE/ADD,RISKS,OUT OF SCOPE. - Every STEP starts with
- [ ]— the executor builds its todo from these. - On change requests,
writing-plansoverwrites the same file. Nov2. - Backward compatibility: if
.forge/doesn't exist, fall back to.claude/plan/(Claude) or.opencode/plan/(OpenCode).
There is no orchestrator. The skills chain themselves:
- You describe a dev task → the skill matcher fires
using-forge(meta) which checks whetherwriting-plansor an executor applies. writing-plansruns → writes the plan → prints the handoff block.- You pick
1or2→ that skill fires and executes. - Executor ends by offering
test-runner.
brainstorm is available as a direct, on-demand skill when you explicitly want to grill an idea before planning. It is not part of the automatic default path.
You can also invoke any skill directly:
Claude Code:
/write-plan add rate limiter to login endpoint
/execute-plan .forge/plan/eng-482.md
OpenCode:
/skill using-forge add rate limiter to login endpoint
These must be set up manually. The plugin installer does not handle them.
- Linear MCP — for
ticket-fetcher(optional, only if you use Linear refs) - GitNexus MCP + indexed repo —
codebase-explorerrequires it; runnpx gitnexus analyzein the project first - caveman skill — agent-to-agent payloads (e.g.
codebase-explorer→writing-plans) compress through it - chrome-devtools skill — used by
test-runnerand referenced bydebuggerfor frontend checks - TypeScript project —
test-runnerdefaults totsc --noEmit
Plugin (recommended):
The repo ships Codex marketplace metadata at .agents/plugins/marketplace.json and plugin metadata at .codex-plugin/plugin.json. Install it from the Forge marketplace:
codex plugin marketplace add anthonyespirat/forge
codex plugin add forge@forge-marketplaceIn the Codex app's Add marketplace dialog, use anthonyespirat/forge as the Source.
forge-marketplace is the marketplace name from .agents/plugins/marketplace.json, used when installing the plugin as forge@forge-marketplace.
After pulling updates from GitHub, refresh the marketplace snapshot and reinstall. Agent packaging requires Forge 0.1.2 or later:
codex plugin marketplace upgrade forge-marketplace
codex plugin add forge@forge-marketplaceUninstall:
codex plugin remove forge@forge-marketplacePlugin (recommended):
The repo ships its own single-repo marketplace (.claude-plugin/marketplace.json):
claude plugin marketplace add anthonyespirat/forge
claude plugin install forge@forge-marketplaceOr from inside a Claude Code session:
/plugin marketplace add anthonyespirat/forge
/plugin install forge@forge-marketplace
If Claude still shows Forge 0.1.1, reinstall or update the plugin; agent packaging requires Forge 0.1.2 or later.
Uninstall:
claude plugin uninstall forgeManual copy:
cp -r skills/* ~/.claude/skills/
cp agents/*.md ~/.claude/agents/Plugin (recommended):
Add forge to the plugin array in your opencode.json (global or project-level):
{
"plugin": ["forge@git+https://github.com/anthonyespirat/forge.git"]
}Restart OpenCode. The plugin auto-installs via Bun and registers all skills and subagents automatically. Agent registration requires Forge 0.1.2 or later.
Verify by asking: "Tell me about your forge skills"
What the plugin does:
- Auto-discovers skills — the
confighook injects theskills/directory into OpenCode's skill paths. No manualcpor symlinks needed. - Injects bootstrap context — the
experimental.chat.messages.transformhook loadsusing-forgeinto every new session automatically. You don't need to invoke/skill using-forgemanually. - Preserves plan state — the
experimental.session.compactinghook saves forge workflow context across session compaction.
As an npm plugin (alternative):
npm install forge-opencode{
"plugin": ["forge-opencode"]
}Manual copy (fallback):
cp -r skills/* ~/.config/opencode/skills/
cp agents/*.md ~/.config/opencode/agents/OpenCode agents are registered by the Forge plugin in config.agent and dispatched via the Task tool. The agents/*.md files are packaged with the plugin and converted to subagent configs at startup.
Forge ships a .codex-plugin/plugin.json manifest that exposes the skills/ and agents/ directories to Codex.
The repository keeps the existing Markdown agent prompts for Claude Code and OpenCode, and also ships Codex custom-agent TOML files in the same agents/ directory:
agents/ticket-fetcher.tomlagents/codebase-explorer.tomlagents/test-runner.toml
After the Codex plugin is installed, Forge skills can dispatch those by name with Codex spawn_agent (agent_type: "ticket-fetcher", "codebase-explorer", or "test-runner").
Just describe the task — using-forge + writing-plans trigger automatically:
add a rate limiter to the login endpoint
or with a ticket:
ENG-482
The flow: plan is written, you're shown a summary + the path + two mode options. Reply 1 or 2.
forge/
├── .agents/
│ └── plugins/
│ └── marketplace.json # Codex marketplace metadata
├── .codex-plugin/ # Codex plugin metadata
│ └── plugin.json
├── plugins/
│ └── forge/ # Codex marketplace entrypoint
├── .claude-plugin/ # Claude Code plugin metadata
│ ├── plugin.json
│ └── marketplace.json
├── .opencode/ # OpenCode plugin (auto-discovery + bootstrap)
│ └── plugins/
│ └── forge.js
├── opencode-plugin/ # OpenCode npm package source
│ ├── package.json
│ ├── index.js
│ └── forge-plugin.js
├── README.md
├── skills/
│ ├── using-forge/SKILL.md
│ ├── brainstorm/SKILL.md
│ ├── writing-plans/SKILL.md
│ ├── executing-plans/SKILL.md
│ ├── subagent-execution/
│ │ ├── SKILL.md
│ │ ├── implementer-prompt.md
│ │ └── references/
│ │ ├── model-selection.md
│ │ ├── dispatch-loop.md
│ │ └── handling-status.md
│ └── debugger/
│ ├── SKILL.md
│ └── references/
│ ├── typecheck.md
│ ├── lint.md
│ ├── lsp.md
│ ├── runtime-errors.md
│ ├── console-logging.md
│ └── chrome-mcp.md
└── agents/
├── ticket-fetcher.md
├── ticket-fetcher.toml
├── codebase-explorer.md
├── codebase-explorer.toml
├── test-runner.md
└── test-runner.toml
- superpowers — the original skill-driven workflow this project riffs on.