AWS Builder Center
Running Devin CLI inside Kiro Crew: the hard part wasn't ACP, it was Bots and permissions

Running Devin CLI inside Kiro Crew: the hard part wasn't ACP, it was Bots and permissions

Devin CLI (SWE-2) can run inside Kiro Crew through an unofficial, experimental patch that connects over ACP.The harder parts were supporting Bots and workers, and routing Devin's tool approvals through Crew's own approval, sandbox and audit path so the agent fails closed.

I wanted to use Devin CLI's SWE-2 model from my own Kiro Crew. Devin CLI also supports models from Anthropic, OpenAI, Google, and open-weight models, but SWE-2 is what got me started. So I wrote a patch that adds Devin CLI to Crew as an experimental agent backend. It is running in my setup now.

Read this first

  • It is an independent, unofficial patch. I am not planning to propose it upstream.
  • Tested only with Devin CLI  3000.12.17  on Linux. Other versions are refused at run time.
  • Crew starts the local  devin acp  process. It does not use Devin Cloud sessions ( devin --cloud ). You still need to sign in to Devin.
  • Not supported: shared runtimes, read-only Side Chat, manual compaction, full native slash-command parity.

Try it

The repository contains only patches and tools, not a copy of Crew.
devin auth login # sign in to Devin separately
python3 manage.py check /path/to/KiroCrew
python3 manage.py apply /path/to/KiroCrew
Then build Crew as usual and restart the gateway. In the Dashboard, choose Devin in the Agent Harness setting, or in a Bot's settings, and start a new conversation. Existing conversations may keep using their original runtime.
The patch is based on a specific Kiro Crew commit. I cannot promise it applies to the latest upstream. After an upstream update, reverse the patch, update Crew, and re-apply. If it conflicts, you will have to fix it by hand.

select:
Devin selet


chat:



How it fits together


Devin CLI to KiroCrew approval_flow


Crew already drives agents over the Agent Client Protocol (ACP), and Devin CLI speaks it. So connecting the two was the easy part. Handshake, model list, prompts, and session resume worked without much trouble.

Hard part 1: Bots and workers

Crew tracks which features each backend supports. Adding a backend does not give you Bots. Bot settings, Bot operation tools, panels, and workers each have to be supported separately.
I did not build all of this at once. I added it step by step, testing each part with a real Devin and learning how it behaves.
One problem was credentials. Bot and panel MCP servers need credentials for the Crew gateway, and I did not want to weaken the OS sandbox or the credential mask. The MCP child processes receive their credentials over process-bound IPC instead of from files or the environment.

Hard part 2: Devin's approvals vs. Crew's approvals

Crew has its own approval, governance, and audit path. Devin has its own permission prompts. If I only launched Devin over ACP, Devin's prompts could bypass Crew's controls.
So a small Crew hook is attached to Devin's lifecycle hooks ( SessionStart  and  PreToolUse ). The hook talks to a local bridge, which turns each tool call into a standard ACP  session/request_permission  request and sends it into Crew's existing approval path. Some decisions that came out of this:
  • Fail closed. Devin's hooks fail open on error. The bridge's deadline is shorter than Devin's hook timeout, so a broken channel ends in a block.
  • Allow-once or reject-once only. Devin's "always allow" and "switch to bypass" choices are never offered or selected.
  • Sealed code. The hook and bridge are pinned by SHA-256 and written as read-only files.
  • No session without the hook. A session is not acknowledged until the hook's  SessionStart  callback arrives.

Hard part 3: a hook that looks like a tool

Crew checks that every completed tool call was approved. Devin also reports its own hook runs as tool-like updates, tagged with  cognition.ai/eventType: hook_execution . If you only check for "completed", these look like a tool that ran without approval. The bridge ignores hook executions and still fails closed on a real tool that completed without approval.

When it stops instead of guessing

Situation
What happens
Unverified Devin CLI version
Refuses to start
The hook is not loaded
Refuses the session
Crew's approval channel is unreachable
Blocks the tool call
A tool completes without approval
Treated as an error
Native  .devin  config or hooks in the workspace
Refuses to start
Per-tool MCP limits can't be reproduced
The whole server is withheld
Withholding the whole server is less convenient, but safer than running with broader permissions than configured.

Verification

  • 1,016 backend tests and 149 Dashboard/translation tests pass. The frontend build passes.
  • With a real Devin, I checked the handshake, model list, prompts, resume after a process restart, per-call approval and rejection, and a worker in an isolated test Bot. A rejected shell command created no file, and an allowed one did.
  • That it works in my own environment is my own report. The isolated checks are recorded in   result.md  .

Takeaway

Connecting an ACP agent is not the hard part. The hard part is making sure the agent works under your existing approval, sandbox, and audit rules, and that it stops safely when something goes wrong.
The patch's own code is MIT. Parts derived from Kiro Crew remain Apache-2.0.
Based on an experimental implementation as of November 2026. Not an official integration of Kiro Crew or Devin.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article