linear.app · Free post · Building AI products · Execution, roadmaps & process

Inside Mercury’s six-month journey building with AI agents

LinearJul 16, 20257 min
Sourcelinear.app
KindFree post
PublishedJul 16, 2025
Originallinear.app ↗
N:

Mercury, a fintech company, spent six months systematically integrating AI agents into engineering workflows after a March hackathon. Staff engineer Matt Russell shares how they moved from one-shot simple tasks to step-by-step guided workflows, empowered ops teams with self-serve agent-assisted development, and maintained quality standards while shipping AI features. The company sees agents reducing tech debt, accelerating refactors, and potentially reshaping senior engineering roles toward project leadership over agent coordination.

01Key takeaways

  • Break agent tasks into small, repeatable steps with human checkpoints rather than attempting large projects in one go.
  • Create structured templates (e.g., Linear Asks) with clear instructions and example patterns to guide agents reliably.
  • Maintain human code review and engineer ownership even when agents generate code; quality standards shouldn't be sacrificed for speed.
  • Agents excel at tech debt and large refactors; use them to unblock work that didn't previously meet ROI thresholds.
  • Empower non-engineering teams with agent workflows to reduce dependency on engineering and enable self-serve capabilities.
  • Dedicate regular time to experimenting with new AI tools and techniques to stay current in a rapidly evolving landscape.

02Key sections

Finding the Right Tasks for Agents
Simple, repeatable tasks with clear patterns work best. Agents perform well when broken into small steps with human guidance at each stage, rather than attempting large projects in one go. Step-by-step planning keeps agents focused and prevents context loss.
Empowering Non-Engineering Teams
Mercury created a Linear template workflow where ops teams could submit tickets via Slack that automatically route to agents. This enabled self-serve UI configuration work without engineering involvement, with agents producing PRs for human review—demonstrating how agents can extend technical capabilities beyond engineering.
Maintaining Quality with AI-Generated Code
Mercury holds a high quality bar for AI features, using reinforcement systems, fallback mechanisms, and careful testing. They require human code review approval and self-review by engineers, treating AI-generated code as the engineer's responsibility despite agent involvement.
Accelerating Backlog and Tech Debt Work
Agents enable previously deprioritized work to ship, including polish tasks and tech debt reduction. Large refactors like framework migrations that took months now complete in days, freeing engineers from repetitive work and improving system quality.
The Future of Engineering Roles
Russell envisions senior engineers evolving into project leads who scope work, align with product, and delegate to agents for execution. Overnight agent runs could compress development cycles dramatically, shifting focus from coding to coordination and feedback.
Staying Current with AI Tools
Russell emphasizes continuous experimentation and allocating dedicated time—roughly an hour weekly—to explore new tools and techniques. Keeping pace with rapid AI development requires intentional effort to avoid falling behind.
“If you're really trying to one-shot, it's hard to add much complexity. The task needs to be repeatable or follow some common pattern.”Matt Russell · linear.app
“Maybe there's a world in a few years where senior engineers act more like project leads over a bunch of agents.”Matt Russell · linear.app

03Frameworks mentioned

Summary and takeaways written by PM Atlas; quotes are short excerpts. © the original author.