Lindy replaces homegrown harness with Mastra
AI employee platform Lindy migrated its agent infrastructure from a custom state-graph harness to Mastra's TypeScript framework, deleting roughly 500,000 lines of legacy code. The switch freed up two full-time engineers, cut task costs up to 4x, and doubled execution speed.
Lindy abandoning years of bespoke harness code for Mastra marks a turning point where maintaining in-house agent plumbing is officially becoming tech debt rather than a competitive moat.
- –Replacing a complex state graph with Mastra's lighter agent loop allowed Lindy to strip out 500,000 lines of code, making the core codebase small enough to fit cleanly inside coding agent context windows.
- –Off-the-shelf TypeScript agent frameworks have matured to handle enterprise workloads, multi-user Slack threads, and granular permission boundaries without requiring custom orchestrators.
- –The migration cut infrastructure costs and made tasks 3x to 4x cheaper for users, demonstrating that framework-level caching and optimized tool search directly impact customer unit economics.
- –Freeing two full-time engineers from maintaining internal orchestration primitives validates that startups should invest engineering bandwidth into domain-specific evals and product features instead of reinventing runtimes.
DISCOVERED
1d ago
2026-11-24
PUBLISHED
1d ago
2026-11-24
RELEVANCE
AUTHOR
mastra