The Veridex Agent Fabric
The only TypeScript agent runtime that gives you safe, stateful, long-context autonomy without the framework magic.
Veridex is a TypeScript-first agent runtime designed around a single thesis: every consequential thing an agent does must be typed, gated, observable, and resumable. We didn't add safety as a feature; we built the loop around it.
Why another agent framework?
Every team building agents in production hits the same wall:
| Pain | Where it bites | What competitors do | What Veridex does |
|---|---|---|---|
| The framework rewrites prompts behind your back | Debugging is impossible | LangChain/LangGraph mutate state in reducers | Event-sourced loop β every transition is a typed event you can read (ADR-0049) |
| Long conversations degrade | Quality cliff after ~30k tokens | Buffer + summarise on overflow | Strict effective window with per-section budgets and homeostatic compression (ADR-0050) |
| "Memory" is just transcript replay | Cost bloat, staleness, drift | Vector store as a tool | Four tiers + reconciler β promotion, decay, conflict resolution (ADR-0051) |
| Tools are functions with API keys | TPA, prompt injection, traversal | "Trust the developer" | Typed contracts + sandbox + safety classes (ADR-0052) |
| No human-in-the-loop without rewriting | Treasury, healthcare, legal | External workflow engine | Approvals + checkpoint/resume as a first-class loop primitive (ADR-0054) |
| "Ship on vibes" | Production regressions | Manual prompt eval | Stateful eval harness with golden traces and red-team corpus (ADR-0062) |
What you get
@veridex/agentsβ the core runtime: tools, policy, memory, checkpoints, transports, evals. Zero magic; one well-documented loop.@veridex/agents-reactβ focused hooks:useRun,useApprovals,useTrace,useContextHealth,useMemory,useSkills,useBudget.@veridex/agents-adaptersβ incremental migration from LangChain, LangGraph, OpenAI Agents SDK, OpenAPI, PydanticAI.@veridex/agents-openclawβ OpenClaw / Pi-style context files and skills.@veridex/agents-control-planeβ multi-tenancy, policy packs, approval workflows, durable trace storage.@veridex/agent-securityβ framework-agnostic security gateway, packs (injection, tool poisoning, secrets, endpoint allowlist, budget, shell safety, handoff), and adapters for LangChain and CrewAI.@veridex/agents-treasuryβ money-movement capability layer: idempotency, ceilings, time-lock, sanctions, signed evidence bundles, red-team eval suite.
Quick comparison
| Dimension | Veridex | LangChain / LangGraph | OpenAI Agents SDK | Mastra |
|---|---|---|---|---|
| Event-sourced loop | β first-class | β opaque reducers | β black box | partial |
| Strict context budget | β enforced per-turn | β overflow β summarise | β raw window | β |
| Tiered memory + reconciler | β 4 tiers, lifecycle | partial (vector add-on) | β minimal | partial |
| Tool sandbox + safety classes | β default | β | β | partial |
| Policy engine | β priority-ordered rules | β ad-hoc | β | partial |
| Human approvals + checkpoint/resume | β first-class | bolt-on | β | partial |
| Signed audit / evidence bundles | β HMAC + Ed25519 | β | β | β |
| Stateful eval + red-team corpus | β built-in | external | external | partial |
| Multi-tenant control plane | β opt-in package | external | β | β |
Start here
- Quick Start β five minutes to a production-shaped agent.
- Context Compilation β the engine that keeps long-running agents coherent.
- Tools β typed contracts and safety classes.
- Policy β priority-ordered, replayable rules.
- Approvals β humans in the loop, durably.
First principles, not framework magic
Every choice in this docs site is derived from a concrete failure mode of existing frameworks and a concrete piece of research. We cite both. If you ever wonder "why is Veridex doing it this way?", click through to the relevant ADR.