Devin CLI

Devin (Cognition) is a cloud dev agent you drive through a CLI. It has no documented MCP server support, so there’s nothing to wire a config into. KYA still gates it, through kya wrap, which evaluates a command before it runs and records the decision in the record (trail).

Setup

Nothing to install beyond the KYA CLI itself:

npm i -g @shield-agent/kya

Then put wrap in front of however you invoke Devin: a shell alias, a script, a CI step:

kya wrap --tool-id devin.session.create -- devin create "Fix the failing payment test"

Wrap exits 0 on Allow, 4 on Hold (a person must approve), 1 on Deny, so kya wrap … && ./next-step.sh can’t skip the gate.

What KYA reports

Every wrapped invocation leaves a record row: tool id, decision, timestamp, duration. kya receipt --open shows them; --offline rows stay local.

Files written

None. Wrap writes record rows under .kya/ in the project where you run it; Devin’s own config is untouched.

Verify

kya wrap --offline --tool-id Write --irreversible --args '{"path":"x.ts","content":"hi"}'

Expect a REQUIRE_APPROVE row. An irreversible write with no policy never auto-allows. Then wrap a trivial Allow-path call and see both rows on the receipt. This exact record-row check runs in CI against the recipe.

Uninstall

Nothing was wired. Delete the wrap from your scripts/aliases and remove .kya/ if you don’t want the local record.

Troubleshooting

Honesty note

Wrap gates the commands you route through it. Devin sessions started any other way (the web UI, the API directly, an unwrapped script) never touch KYA. And wrap evaluates the launch command, not what the cloud agent does inside its own environment afterward. Coverage is exactly the set of invocations you wrap, no more.

If Devin ships MCP support

This page gets promoted to a kya connect recipe when a verified MCP config path exists. The bar for promotion is the checklist in docs/host-recipe.md.