About AGBoss
AGBoss (Agent Graph Builder Open Source System) is an Apache 2.0 licensed TypeScript framework, static graph compiler (agboss check), and production runtime layered on top of LangGraph (npm i @agboss/core). Inside AGBoss, HarnessDSL (HDSL) is the declarative graph grammar and verification specification (much like JSX in React or PSL in Prisma) that defines how *.workflow.ts flow chains and contract decorators specify narrow @Dto handoffs, Path Scope, in-degree = 1 vs in-degree >= 2 canonical topology, { about } staleness tracking, quorums, and compensateWith / committedBy sagas.
It is designed for Senior, Staff, and Principal engineers and CTOs who build multi-agent systems scaling to hundreds of nodes with AI coding agents (Codex, Cursor, Windsurf, Copilot, Gemini CLI, Claude Code) and require compile-time guarantees, predictable token economics, and zero vendor lock-in.
Why AGBoss & HarnessDSL (HDSL) exist
Section titled “Why AGBoss & HarnessDSL (HDSL) exist”Engineering teams building production multi-agent systems face a fundamental architectural gap:
- Raw graph libraries are too unconstrained for AI coding agents at scale. When a coding agent modifies a 50-node graph built around a shared mutable state bag (
Annotation.Root) and arbitrary(state) => stringedges, it cannot statically prove which upstream fields are populated, whether a review loop is reading stale state from a previous iteration, or whether an error branch bypassed a mandatory rollback action. - Hosted agent SaaS platforms break enterprise data perimeters. Routing proprietary prompts, customer PII, and durable execution state through a third-party cloud creates compliance blockers and vendor lock-in.
AGBoss (the framework, static compiler, and runtime) and its built-in HarnessDSL (HDSL) grammar solve both problems by bringing the compiler rigor of distributed-systems engineering and structured frameworks (Spring, Angular, NestJS) directly into your Node.js 22+ backend through 7 architectural principles:
- Computational Role Segregation: Distinct, single-responsibility decorators (
@Agent,@Router,@Arbiter,@Action,@Tool,@ToolInterceptor) replace monolithic “god agents”. - Path-Scoped SSA Dataflow: Every workflow path (
*.workflow.ts) is verified byagboss check, which generates.agboss/types.d.tswith narrowedProduced<Dto, Producer>inputs and rejects missing ([input.missing-on-path]), dead ([flow.unused-output]), or stale ([input.outdated-on-path]) state at build time. - Canonical Topology Isomorphism: A strict 1-to-1 mapping between graph topology and code formatting (
in-degree = 1inline chain,in-degree >= 2top-levelagent()/router()/action()entry, one chained call per line) eliminates merge conflicts and structural entropy. - Prompt Prefix Cache Invariance: Static system prompt verification (
[prompt.input-in-instructions]) and deterministic HMAC pseudonymization (PiiAction.replaceWithToken()) preserve LLM KV-cache hit rates across turns while keeping raw PII out of external model providers. - Transactional LIFO Sagas & Idempotency: Compensatable
@Actionnodes (compensateWith,committedBy) and deterministicstep.idempotencyKeypropagation guarantee clean rollback across errors, quorumSurplusaborts, and budget cutoffs. - Zero-Leakage DI & 4-Stage Scaling: Class-inheritance DI inside a single
@Applicationroot scales seamlessly from in-memory unit/integration tests (testWith(App), 10 unit runners) to SQLite WAL durability and multi-pod 30-second execution lease handoff. - Progressive Crystallization & Built-in Coding Skills: Content-addressed revision snapshots (
agboss describe --jsonwithconfigHash,promptHash,schemaHash) let teams crystallize settledDecidedBy.Modelpaths into deterministicDecidedBy.Codeand@Actionnodes, while offline-syncedAGENTS.md+ 13 skill modules keep every coding agent aligned with the compiler.
How AGBoss relates to LangGraph
Section titled “How AGBoss relates to LangGraph”AGBoss complements LangGraph rather than replacing it. Every @Workflow compiles down to a standard @langchain/langgraph state graph, and each @Agent runs its tool-calling loop as a compiled subgraph. You can inspect any AGBoss workflow in LangGraph Studio while keeping strict TypeScript DTO boundaries, constructor dependency injection, and built-in FinOps accounting.
Open-source governance and licensing
Section titled “Open-source governance and licensing”The entire AGBoss framework (agboss), CLI (@agboss/cli), documentation verification suite, and built-in AI coding skills (AGENTS.md, CLAUDE.md, and .claude/skills/agboss/) are published under the Apache License 2.0.
| Component | Package / Location | License | Purpose |
|---|---|---|---|
| Core Framework | agboss |
Apache-2.0 | Decorators, HarnessDSL (HDSL) flow syntax, DI container, FinOps, PII, SQLite stores, @agboss/core/testing, offline skills (skills/agboss/) |
| Command-Line Interface | @agboss/cli |
Apache-2.0 | agboss create, generate, check, describe, chat, run, eval, replay, golden, compare |
| Reference Examples | examples/flow-patterns, 08-job-scout |
Apache-2.0 | End-to-end multi-agent workflows and flow pattern blueprints |
| Documentation Site | agboss.dev | Apache-2.0 | Compiler-checked guides, API reference, /llms.txt, and /llms-full.txt |