Skip to content

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.

1

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).

2

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.

3

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.

4

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.

5

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.

6

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

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.