Skip to content

Commit 1b50a2b

Browse files
Add Devin CLI backend to agents-consilium (opt-in, swe-2-high)
New devin-cli backend driven over `devin acp` (JSON-RPC stdio) for both one-shot and steerable paths — print mode cannot enforce read-only review: a denied or confirmation-required tool call cancels the session with no final text. Review uses --agent-type review (no write/edit tools at all); delegate uses session/set_mode bypass. auto/queue steer merges into the running turn (verified same-turn ACP behavior), interrupt is session/cancel + prompt. Profile `devin` ships disabled — explicit `-a devin` only, never in the default pool. ACP-speaking fake covers one-shot and steerable e2e; verified against real devin 3000.10.27. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 68a302a commit 1b50a2b

24 files changed

Lines changed: 1474 additions & 20 deletions

‎.claude-plugin/marketplace.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
},
88
"metadata": {
99
"description": "Practices, protocols, and skills for AI-driven software development — for any agent that supports the Agent Skills standard (Claude Code, Codex CLI, OpenCode, Cursor, Gemini CLI, Antigravity, and more).",
10-
"version": "9.12.4"
10+
"version": "9.13.0"
1111
},
1212
"plugins": [
1313
{
1414
"name": "ai-driven-development",
1515
"description": "An umbrella collection of 24 skills + 1 hook for AI-driven development: agent self-configuration (MCP / hooks / settings / skills / plugins / cross-agent repository readiness / safe CLI installation), engineering practices (maintainable complexity, prompt engineering, FPF problem solving, bug-fix protocol, planning gate, repository-history investigation, repository activity summary, C# refactoring), AI infrastructure (OpenRouter endpoint ranking and routing), research & docs (Semantic Scholar deep research, URL-to-Markdown, ubiquitous-language thesaurus), multi-agent orchestration (consilium: review and stateful delegation), macOS & Windows health & cleanup, and niche utilities (clipboard, Windows QA). Plus a Claude Code Bash safety hook.",
16-
"version": "9.12.4",
16+
"version": "9.13.0",
1717
"author": {
1818
"name": "CodeAlive-AI",
1919
"email": "contact@codealive.ai"

‎.claude-plugin/plugin.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ai-driven-development",
33
"description": "An umbrella collection of 24 skills + 1 hook for AI-driven development: agent self-configuration (MCP / hooks / settings / skills / plugins / cross-agent repository readiness / safe CLI installation), engineering practices (maintainable complexity, prompt engineering, FPF problem solving, bug-fix protocol, planning gate, repository-history investigation, repository activity summary, C# refactoring), AI infrastructure (OpenRouter endpoint ranking and routing), research & docs (Semantic Scholar deep research, URL-to-Markdown, ubiquitous-language thesaurus), multi-agent orchestration (consilium: review and stateful delegation), macOS & Windows health & cleanup, and niche utilities (clipboard, Windows QA). Plus a Claude Code Bash safety hook.",
4-
"version": "9.12.4",
4+
"version": "9.13.0",
55
"author": {
66
"name": "CodeAlive-AI",
77
"email": "contact@codealive.ai"
@@ -16,6 +16,7 @@
1616
"cursor",
1717
"gemini-cli",
1818
"antigravity",
19+
"devin-cli",
1920
"multi-agent",
2021
"skills",
2122
"meta-skills",

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Disciplined approaches that improve how agents and humans collaborate on code.
9898

9999
| Skill | What It Does |
100100
|-------|--------------|
101-
| [agents-consilium](skills/agents-consilium/) | Multi-agent **review** (read-only ask / multi-depth code) and single-agent **delegate** (full YOLO, steerable or detached, with `wait` / `watch` / `list` to block on, follow, or rediscover a run) via `scripts/consilium`. Stateful Grok 4.5 workers handle repository research; Codex Sol is an explicit second opinion for difficult spec verification or optimization planning. Codex, Claude Code, OpenCode, native Grok Build, Gemini (review-only). Independent opinions, structured specialists, super/ultra judge pipelines |
101+
| [agents-consilium](skills/agents-consilium/) | Multi-agent **review** (read-only ask / multi-depth code) and single-agent **delegate** (full YOLO, steerable or detached, with `wait` / `watch` / `list` to block on, follow, or rediscover a run) via `scripts/consilium`. Stateful Grok 4.5 workers handle repository research; Codex Sol is an explicit second opinion for difficult spec verification or optimization planning. Codex, Claude Code, OpenCode, native Grok Build, Gemini (review-only), Devin CLI (opt-in). Independent opinions, structured specialists, super/ultra judge pipelines |
102102

103103
### macOS & Windows system health (2)
104104

‎skills/agents-consilium/README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For example:
1010

1111
- send repository research to a stateful Grok 4.6 worker that can be steered and continued, with Grok 4.5 available as a fast context-research profile;
1212
- ask Claude Fable to produce an independent plan;
13-
- delegate an implementation to Codex, Claude, Grok, or OpenCode;
13+
- delegate an implementation to Codex, Claude, Grok, OpenCode, or Devin;
1414
- review the same change with several unrelated model families and compare what they find.
1515

1616
Each worker runs through its real coding-agent harness, with access to the tools and repository context appropriate for the selected mode. This is not role-play inside one model.
@@ -67,6 +67,7 @@ You also need Python 3 and at least one supported coding-agent CLI:
6767
| [Claude Code](https://docs.claude.com/claude-code) | `claude` | review, delegate |
6868
| [OpenCode](https://opencode.ai) | `opencode` | review, delegate |
6969
| [Grok Build](https://grok.x.ai) | `grok` | review, delegate |
70+
| [Devin CLI](https://devin.ai) | `devin` | review, delegate |
7071
| [Gemini CLI](https://github.com/google-gemini/gemini-cli) | `gemini` | review only |
7172

7273
Authentication stays with each CLI. If it already works in your terminal, Consilium can use it.
@@ -273,7 +274,7 @@ CLAUDE_EFFORT=medium scripts/consilium review ask \
273274
-a claude-fable --prompt-file prompt.md
274275
```
275276

276-
Available overrides: `CODEX_MODEL` / `CODEX_EFFORT`, `CLAUDE_MODEL` / `CLAUDE_EFFORT`, `OPENCODE_MODEL` / `OPENCODE_EFFORT`, `GROK_MODEL` / `GROK_EFFORT`, and `GEMINI_MODEL`.
277+
Available overrides: `CODEX_MODEL` / `CODEX_EFFORT`, `CLAUDE_MODEL` / `CLAUDE_EFFORT`, `OPENCODE_MODEL` / `OPENCODE_EFFORT`, `GROK_MODEL` / `GROK_EFFORT`, `GEMINI_MODEL`, and `DEVIN_MODEL`.
277278

278279
## Safety and output
279280

‎skills/agents-consilium/SKILL.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: agents-consilium
3-
description: "Run external coding agents (Codex, Claude Code, OpenCode, native Grok Build, Gemini) as independent reviewers, stateful repository researchers, or single-agent implementers. Use for multi-model opinions and code review, steerable Grok research, full-access delegation, long-running work, or reattaching to delegated runs. Not for simple questions answerable directly from docs or the current codebase."
3+
description: "Run external coding agents (Codex, Claude Code, OpenCode, native Grok Build, Gemini, Devin CLI) as independent reviewers, stateful repository researchers, or single-agent implementers. Use for multi-model opinions and code review, steerable Grok research, full-access delegation, long-running work, or reattaching to delegated runs. Not for simple questions answerable directly from docs or the current codebase."
44
---
55

66
# Agents Consilium
@@ -51,6 +51,7 @@ Use these unless the user asks for a different tradeoff:
5151
- The `grok` profile is Grok 4.6 and is the default native Grok Build worker. Use the disabled-by-default `grok-fast` profile explicitly for fast context research with Grok 4.5.
5252
- GPT-6 Astra is an explicit Codex second opinion for difficult specification verification or optimization planning. Select it with `-a codex`; do not add it to routine research or the default review pool.
5353
- The `claude-fable` profile runs Claude Fable 5.1 for demanding long-horizon review or delegation. Its default `low` effort is cost-conscious; override it with `CLAUDE_EFFORT=high`, `xhigh`, or `max` when capability matters more than latency and cost.
54+
- The `devin` profile runs Devin CLI SWE-2-high (`devin` on PATH, `devin auth login`) for review and delegate over `devin acp`. It is disabled by default and never joins the default review pool: select it with `-a devin` or enable the profile. Effort is versioned into the model id, so there is no effort override; `auto`/`queue` steer merges into the running turn and `interrupt` cancels and sends.
5455

5556
Choose one review depth; do not run `basic`, `specialists`, `super`, and `ultra` sequentially. Do not call `--list-agents` routinely: enabled profiles are already the default pool for `review ask`, and code-review pass count is fixed by depth.
5657

@@ -384,7 +385,9 @@ See [delegate details](references/delegate.md#changing-approach-and-preserving-w
384385

385386
Steering is asynchronous on every backend, and on Grok it always runs as a new
386387
turn: `auto`/`queue` guidance waits for the current turn unless the agent is
387-
blocked in a tool call, so it can look ignored for minutes. Write each steer as
388+
blocked in a tool call, so it can look ignored for minutes. On Devin CLI
389+
`auto`/`queue` instead merge into the running turn, and `interrupt` cancels
390+
the in-flight prompt before sending. Write each steer as
388391
a self-contained instruction, avoid duplicate delivery, and verify the effect through
389392
task artifacts — see [references/delegate.md](references/delegate.md).
390393

‎skills/agents-consilium/config.example.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@
6565
"role": "analyst",
6666
"label": "Grok 4.5 (fast context research, disabled)"
6767
},
68+
"devin": {
69+
"enabled": false,
70+
"backend": "devin-cli",
71+
"model": "swe-2-high",
72+
"role": "analyst",
73+
"label": "Devin SWE-2"
74+
},
6875
"opencode-xai-grok45": {
6976
"enabled": false,
7077
"backend": "opencode",

‎skills/agents-consilium/config.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@
6464
"role": "analyst",
6565
"label": "Grok 4.5 (fast context research)"
6666
},
67+
"devin": {
68+
"enabled": false,
69+
"backend": "devin-cli",
70+
"model": "swe-2-high",
71+
"role": "analyst",
72+
"label": "Devin SWE-2"
73+
},
6774
"opencode-xai-grok45": {
6875
"enabled": false,
6976
"backend": "opencode",

‎skills/agents-consilium/references/configuration.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Python 3
66
- At least one supported harness: Codex CLI, OpenCode, Claude Code, or native Grok Build
77
- Gemini CLI is optional and review-only
8+
- Devin CLI is optional and opt-in: `devin` v3000.x on PATH, authenticated via `devin auth login`
89

910
Authentication stays with each harness.
1011

@@ -15,7 +16,7 @@ Profiles live in `config.json`; set `CONSILIUM_CONFIG` to use another file.
1516
| Field | Purpose |
1617
|---|---|
1718
| `enabled` | Default participation in `review ask` and the basic review pool |
18-
| `backend` | `codex-cli`, `claude-code`, `opencode`, `grok-build`, or `gemini-cli` |
19+
| `backend` | `codex-cli`, `claude-code`, `opencode`, `grok-build`, `gemini-cli`, or `devin-cli` |
1920
| `model` | Backend model id |
2021
| `role` | Analyst, lateral, or specialist role |
2122
| `effort` | Backend reasoning effort/variant |
@@ -36,6 +37,7 @@ Non-empty environment values override profile model/effort for one invocation:
3637
- `OPENCODE_MODEL`, `OPENCODE_EFFORT` (`none` omits the variant)
3738
- `GROK_MODEL`, `GROK_EFFORT`
3839
- `GEMINI_MODEL`
40+
- `DEVIN_MODEL`; `CONSILIUM_BIN_DEVIN` overrides the `devin` binary
3941

4042
The built-in `codex` profile uses `gpt-6-astra` at `high` effort. Astra accepts
4143
`low`, `medium`, `high`, `xhigh`, and `max`; it does not accept `none`. The
@@ -53,6 +55,15 @@ used for model training, the service is not zero-data-retention, and availabilit
5355
is region-limited. Check the current OpenCode Go terms before reviewing sensitive
5456
repositories because catalog and privacy terms can change.
5557

58+
The disabled-by-default `devin` profile uses Devin CLI's `swe-2-high` model;
59+
Devin versions effort into the model id, so there is no effort override. Both
60+
one-shot and steerable paths run over `devin acp` (JSON-RPC 2.0 NDJSON on
61+
stdio) — print mode `devin -p` is not used because a denied or
62+
confirmation-required tool call silently cancels the session without final
63+
text. Review runs `devin acp --agent-type review`, an agent with no write/edit
64+
tools; yolo delegate runs the default agent type under `session/set_mode
65+
bypass`. The helper strips inherited `ACP_BACKEND` from the child environment.
66+
5667
## Shell-safe prompts
5768

5869
Prefer `--prompt-file`, stdin, or a single-quoted heredoc for prompts containing backticks, `$`, `!`, or quotes. Double-quoted positional prompts are shell-expanded and may accidentally execute substitutions or leave a backend waiting on stdin.

‎skills/agents-consilium/references/delegate.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,14 @@ Practical consequences for the calling agent:
510510
- Make guidance self-contained. The steer runs as its own turn, so state it as an instruction that stands on its own ("from now on … ; continue the remaining steps"), not as a fragment that only makes sense inline.
511511
- Verify semantics through task artifacts, never through the steer status alone.
512512

513+
### What Devin actually does with a steer
514+
515+
Verified against devin 3000.10.27 over real ACP runs:
516+
517+
- `auto`/`queue` are `same_turn`: a second `session/prompt` merges into the running turn instead of entering a next-turn queue, so guidance can take effect without waiting for `end_turn`.
518+
- `interrupt` is `cancel_and_send`: `session/cancel` resolves in-flight prompts with stopReason `cancelled`; the session stays usable and the steer prompt takes over.
519+
- The ack ladder is the shared one — `request_sent` → `completed`/`cancelled`/`failed` by the request's own stopReason; it is never `applied`.
520+
513521
## Mailbox lifecycle
514522

515523
| `mailbox_status` | Meaning |
@@ -559,6 +567,7 @@ Steerable runs always retain the private service registry and protocol artifacts
559567
| Codex CLI | `same_turn` through `turn/steer` and expected turn id | Abort active turn, wait for its completion acknowledgement, then start a prompt |
560568
| OpenCode | `step_inject` through loopback HTTP/SSE `prompt_async` | Abort session then prompt |
561569
| Grok Build | `queue_next_turn` through concurrent ACP prompt FIFO | Cancel-and-send using `sendNow` and its own prompt id |
570+
| Devin CLI | `same_turn` through concurrent ACP `session/prompt` merge | Cancel-and-send through `session/cancel` (stopReason `cancelled`) |
562571

563572
OpenCode replacement requires both a successful abort and confirmation of idle
564573
through `/session/status`. An unsuccessful or unresolved stop fails the run and

‎skills/agents-consilium/references/testing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The default suite uses fake backend CLIs, is offline, and spends no model tokens
66
scripts/tests/run.sh
77
```
88

9-
It covers backend argv safety, exact profile selection, model/effort resolution, stdout/stderr separation, artifacts, Grok streaming success/failure, live progress, credential redaction, prompt purity, all review progress styles, invocation-specific keys, human-readable ids, steerable adapters/mailbox lifecycle, concurrent Grok queue/sendNow behavior, cancel/idempotency/cleanup, and shared runtime contracts.
9+
It covers backend argv safety, exact profile selection, model/effort resolution, stdout/stderr separation, artifacts, Grok streaming success/failure, live progress, credential redaction, prompt purity, all review progress styles, invocation-specific keys, human-readable ids, steerable adapters/mailbox lifecycle, concurrent Grok queue/sendNow behavior, a Devin ACP fake covering one-shot and steerable paths (same-turn merge, cancel), cancel/idempotency/cleanup, and shared runtime contracts.
1010

1111
Quota parsing is tested offline for Codex multi-bucket limits, Grok `/usage`
1212
fields, fail-closed display drift, shell-safe remote paths, and one bounded retry

0 commit comments

Comments
 (0)