13 min watch

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

  • 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.

Work with me

Building an AI agent?

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