I Added ACP to My Mastra Agent So It Can Work in Repos

· 13:53
agent-architecture mastra claude-code tool-use human-in-the-loop

ACP is the layer that lets my Mastra agent hand real repo work to Claude Code instead of stopping at advice.

I walk through adding ACP to Emma so she can propose work in Slack, wait for approval, delegate inside an isolated worktree, and open a PR. You’ll see where ACP fits in Mastra, why it matters for repo-native agents, and the permission boundary I use to keep the loop safe.

Building an AI agent?

I help teams design and ship agentic systems — from architecture to production.

See how I can help

Get new videos and posts by email

Weekly videos on AI engineering, plus deeper dives in the newsletter.

Occasional emails, no fluff.

Powered by Buttondown