# agent-forge kind .......... project status ........ active checked ....... 2026-10-20 stack ......... python · claude code · multi-agent · evals source ........ private repo page .......... https://brodymontag.com/projects/agent-forge One source file for each of my AI agent prompts, built into Claude Code and VS Code versions. An eval script checks the built agents, and an optional dashboard shows them as they run. My agents were copies in many repositories, and the copies drifted apart. agent-forge keeps one platform-neutral source for each agent. It builds the Claude Code and VS Code versions from that source. The build is Python with one dependency, PyYAML. It fails on any placeholder that it cannot resolve. Shared instructions, such as the brief format and stack discovery, load as skills only when an agent needs them. An eval script runs 12 checks on the built agents, for example model routing, file drift and delegations to agents that do not exist. When the Subagent Dashboard runs, agents can post events to it. The dashboard is a Next.js page with server-sent events. Guardrails are part of the source. The agent that operates venture must ask before any financial action. I used these agents to build realmbot, Prism and venture. ## highlights - One source for each agent, built for two platforms - The build fails on any unresolved placeholder - Shared blocks load on demand as skills - An eval script with 12 checks on the built agents - Measured: skill pointers and shorter descriptions cut 31,538 tokens to 20,564 (−35%) - The same 16 agents at b930aba: 25,683 tokens (counted 2026-10-19) ## detail updated 2026-10-20 ### how it works figure 1 · one source, two builds · schematic One agent source with a tier, verbs and an include goes through the build. The build writes a Claude Code file and a VS Code file, then 12 checks run on the result. Each agent has one source file: YAML frontmatter and a body that names no platform. The frontmatter gives a tier (fast, standard or deep), the tools as plain verbs, the skills, and the agents that it may call. The build maps the tier to a model, and each verb to the tool name on each platform. The build writes the Claude Code agents and the VS Code prompts. It backs up each file before it writes it, and it records a sha256 for each output in a manifest. Then it runs the eval script as a gate, and the build exits with an error when a check fails. figure 2 · from the sources to two platforms Agent sources, partials and the config go into build.py. It writes Claude Code agents, VS Code prompts and a manifest, and the eval script checks the result. ```mermaid flowchart TD A[agents source files] --> B[build.py] P[partials and skills] --> B C[factory.config.yaml] --> B B --> D[Claude Code agents] B --> E[VS Code prompts] B --> F[manifest.json] F --> G[agent_eval.py 12 checks] ``` a placeholder that does not resolve stops the build agent-forge@9db1c77 · build.py:88-103 · not public ```python def resolve_includes(body: str, target: str, agent_name: str) -> str: """Inline {{include:NAME}} partials. dashboard-logging resolves shell-variant.""" def sub(m: re.Match) -> str: inc = m.group(1) if inc == "dashboard-logging": inc = f"dashboard-logging.{SHELL_FOR_TARGET.get(target, 'bash')}" p = PARTIALS_DIR / f"{inc}.md" if not p.exists(): sys.exit(f"ERROR: {agent_name}: missing partial '{p.name}'") return p.read_text(encoding="utf-8").strip() result = re.sub(r"\{\{include:([\w.\-]+)\}\}", sub, body) leftover = re.search(r"\{\{[^}]*\}\}", result) if leftover: sys.exit(f"ERROR: {agent_name}: unresolved placeholder {leftover.group(0)}") return result ``` ### decisions decision: One source, built for two platforms (accepted, 2026-06-09) context: The agents lived as copies in several repositories and in the VS Code prompts folder. The copies drifted apart, and project paths leaked into agents that were meant to be generic. decision: agent-forge holds one source for each agent. A build makes the Claude Code and VS Code files, and nobody edits the output by hand. cost: An edit to an installed copy is lost at the next build. On 2026-10-20, a commit moved two such edits back into the sources. decision: Shared blocks load on demand, as skills (accepted, 2026-06-30) context: Each agent file held full copies of the shared blocks. The dashboard block alone, about 1,476 characters, sat in 12 agents. decision: Each shared block became a skill. The agent file holds a one-line pointer, and the agent reads the skill only when the task needs it. The same commit cut each description to 145 characters or fewer. cost: An agent that needs a block reads one more file at run time. decision: Code checks the built agents (accepted, 2026-06-30) context: A prompt library has no compiler. A call to an agent that does not exist fails only when an agent tries it. decision: agent_eval.py runs after each build. It started with 9 checks, and 3 more came on 2026-07-13. Some read the built files, for example model routing and delegations to agents that do not exist. Others read the telemetry log and the vault. cost: The check runs after the build writes its files. A failed check reports the problem, but it does not undo the write. check 4: every delegate is a real agent agent-forge@9db1c77 · scripts/agent_eval.py:136-144 · not public ```python def check_delegate_references(r: Report, agents: list): """Check 4: every delegates: reference resolves to a real agent.""" agent_names = {meta.get("name", "") for _, meta in agents} for path, meta in agents: for d in meta.get("delegates", []): if d not in agent_names: r.fail(f"[4] {path.name}: delegate '{d}' not found in agents/") else: r.ok(f"[4] {path.name}: delegate '{d}' exists") ``` ### results figure kind value 16 agents, before the skill pointers measured 31,538 tokens the same 16, at commit 06f4294 measured 20,564 tokens cut from skill pointers and shorter descriptions measured −35% the same 16 agents at commit b930aba measured 25,683 tokens method: the count_tokens API with claude-opus-5-5, on a build of each commit with a separate HOME. Commit 06f4294 is from 2026-06-30, and b930aba from 2026-10-15. · as of 2026-10-19 ### limits limits: - The token counts cover the agent files only, not the skills that an agent reads later. - The eval checks files, references and logs. It does not grade the work that an agent does. - Copilot ignores the model tiers. Its delegations run at the model of the parent session. -- end of page · this page as text: https://brodymontag.com/machine/projects/agent-forge · index: https://brodymontag.com/machine · summary: https://brodymontag.com/llms.txt