Why AGBoss?
Modern engineering teams already know two truths: complex problems require networks of specialized agents, and engineers no longer write orchestration boilerplate by hand — AI coding agents (Codex, Cursor, Windsurf, Copilot, Gemini CLI, Claude Code) write the code under an engineer’s architectural direction. AGBoss (Agent Graph Builder Open Source System) is the TypeScript framework, static graph compiler (agboss check), and production runtime on LangGraph (npm i @agboss/core), and HarnessDSL (HDSL) is the declarative graph grammar and verification specification built into AGBoss — giving coding agents hard distributed-systems guardrails so graphs with hundreds of nodes stay deterministic, cache-invariant, and refactorable.
Computational Role Segregation & Canonical Topology
In raw graph SDKs, coding agents create “god nodes” and format the same topology ten different ways. AGBoss segregates @Agent, @Router, @Arbiter, and @Action, and enforces a 1-to-1 isomorphism between graph topology and code layout (in-degree = 1 inline, in-degree ≥ 2 top-level entry, 1 chained call per line).
Path-Scoped SSA Dataflow & Provenance
Shared mutable state bags (Annotation.Root) collapse at 50+ nodes when coding agents hallucinate nullable fields or consume stale loop state. agboss check runs static Path-Scope dominance analysis and emits .agboss/types.d.ts with narrowed Produced<Dto, Producer> inputs, rejecting missing ([input.missing-on-path]) or stale ([input.outdated-on-path]) values before runtime.
Prompt Prefix Cache Invariance & Boundary PII
Interpolating dynamic inputs into system prompts or masking PII with random UUIDs destroys LLM KV-cache hit rates (up to 10x higher token cost). AGBoss enforces [prompt.input-in-instructions] at compile time and uses deterministic HMAC pseudonymization (PiiAction.replaceWithToken()) so identical values produce identical tokens across turns while restoring real values inside @Tool calls.
Transactional LIFO Sagas & Idempotent Execution
When a parallel branch fails, a quorum cancels slow siblings as Surplus, or a budget trips, external side effects cannot be left dangling. Side-effecting @Action nodes declare compensateWith and committedBy (verified by [flow.uncompensated-action]) and receive a deterministic step.idempotencyKey for safe retry and LIFO rollback.
Zero-Leakage DI & 4-Stage Infrastructure Scaling
Every component is wired inside a single @Application root using class-inheritance DI (override(Base, Fake)) and deterministic lifecycle hooks (OnInit → OnStart → OnStop → OnDestroy). Scale from zero-setup InMemory* stores in tests to Sqlite* WAL single-node durability and multi-pod 30s lease handoff without changing a single line of business logic.
Progressive Crystallization & Universal Coding Skills
Start with flexible DecidedBy.Model routers and multi-tool agents, then join agboss describe –json (configHash, promptHash, schemaHash) with production traces to crystallize settled paths into zero-cost DecidedBy.Code routers and @Action nodes — guided by AGENTS.md and 13 offline-synced skill modules.
Deep-dive into the architecture
Distributed-Systems Architecture
How AGBoss turns raw LLM orchestration into a compiler-verified distributed system across all 7 architectural invariants.
Read the Architecture Guide →AGENTS.md · SkillsAI-Assisted Engineering & Skills
How AGENTS.md and the 13 offline-synced skill reference modules keep Codex, Cursor, Windsurf, Copilot, and Claude Code 100% aligned with your compiler.
Read AI Coding Skills →describe –jsonProgressive Crystallization
Join content-addressed configHash, promptHash, and schemaHash with traces to evolve LLM steps into deterministic TypeScript code.
Read Progressive Crystallization →.agboss/types.d.tsPath Scope & Dataflow
Static Single Assignment (SSA) dominance, .returns(Dto, { about }) provenance, historyOf() windows, and narrowed Produced<Dto, P> inputs.
Read Path Scope & Dataflow →01..07 Proofs7 Verified Examples
Run 01-hello-agboss through 07-langgraph-migration in agbossjs/agboss-examples offline for $0 to see every compile-time and runtime invariant in action.
Ready to build with compile-time guarantees?
Scaffold a new project with built-in AI coding skills and Path Scope verification in under a minute.