Mastra agents
First-class TypeScript agents with tools, memory, and model routing as primitives. Durable workflows coordinate them with checkpointing and human-in-the-loop pauses.
An 8-layer SaaS platform for multi-tenant agent products. TypeScript-first with Mastra, every operation triple-exposed as library + MCP + CLI, outcome-based billing wired through Metronome and Stripe, EU AI Act audit chain on every action.
Memory, evals, billing, compliance, observability. Wired, tested, and on a CI gate so you can spend your time on the agent, not the plumbing.
First-class TypeScript agents with tools, memory, and model routing as primitives. Durable workflows coordinate them with checkpointing and human-in-the-loop pauses.
Every external integration is one library function exposed three ways — in-process import, MCP server, CLI binary. Orchestrators import; external agents speak MCP; humans run the CLI.
Neon Serverless branches per developer. HNSW vector indexes, append-only event log with hash chain, RLS on every multi-tenant table.
Emit a typed outcome event on every billable success. Metronome rates them, Stripe invoices them. No reconciliation drift.
Hash-chained audit log (Article 12), human-handoff nodes on every workflow (Article 14), kill switches per-agent and per-tool, PII redaction at the boundary.
Promptfoo regression suite blocks deploys when any prompt drops more than 3 points. Langfuse traces every step. Hamming for voice.
Each layer has a defined contract, a working reference implementation, and an ADR explaining the call.
The full control plane — instances, workflows, memory, HITL queue, catalog, upgrades — is one click away.