Skip to content

Apache-2.0 · TypeScript · Built on LangGraph · v0.1.0 (latest)Build complex AI agents.
Catch broken workflows before they run.

AGBoss brings Spring-style dependency injection and declarative TypeScript components to LangGraph. Its static compiler catches structural workflow bugs before execution, and deterministic test runners let you verify components and workflows offline without live LLM calls.

$npm install @agboss/core @agboss/cli

Starting from scratch? Run npx -p @agboss/cli agboss create my-app

Readable workflows. Verified before runtime.

Section titled “Readable workflows. Verified before runtime.”

In raw shared-state graphs, a router branch that skips a required producer compiles cleanly under tsc and fails only in production when that branch is taken. AGBoss tracks typed @Dto handoffs across every route and catches structural workflow mistakes before execution with npx agboss check:

✓ Valid workflowPasses agboss check
  • Readable, declarative flow with explicit typed @Dto handoffs.
  • VIP orders route through ApplyVipCouponAction (CouponDiscountDto) before RenderInvoiceAction; standard orders route to RenderStandardInvoiceAction.
✗ Invalid workflowCaught before runtime
  • Second branch skips ApplyVipCouponAction and routes straight to RenderInvoiceAction (which requires CouponDiscountDto).
  • TypeScript alone does not catch the missing upstream input; agboss check reports the exact missing input and path.

Run 02-path-scope-proof on GitHub →  ·  Read Path Scope & Provenance docs →

AGBoss layers structured application architecture on top of LangGraph’s durable execution runtime:

Every example in agbossjs/agboss-examples is verified offline with npm run check, npm test, and npx tsx src/demo.ts:

Browse all 7 verified examples (including 03-support-refund-desk, 05-cluster-work-stealing, 06-enterprise-agent-mesh, and 07-langgraph-migration) →  ·  Explore the Distributed Agent Recovery showcase (agbossjs/distributed-agent-recovery) →

AGBoss is open source under the Apache-2.0 license and runs inside your own Node.js infrastructure with zero vendor lock-in.