Run delegated children on the Devin CLI `--child-model devin` runs a fan-out on the Devin CLI instead of on opencode. `devin:<mode>` picks a permission mode other than the default `dangerous`. A harness rather than a shell command, because that is the whole difference. A Devin child started this way is a fleet child: it reports through the registry the interface renders, it shows pending, running and finished with its elapsed time, it stops with `ctrl+x`, it does not block the turn that started it, and several run at once under the same concurrency cap. Run through `shell`, the same work is one opaque call that freezes the session and shows nothing until it ends. Nothing about a blocking spawn of an arbitrary command can be detected and drawn, which is why this belongs behind the tool rather than in a skill telling the model to craft a command. A Devin child brings its own credentials and its own model rather than spending this session's thread grant, so it needs neither the grant nor the child gateway, and it is a different trust and billing boundary from an opencode child. The fleet names the agent for that reason. Its print mode has no structured output, so a child reports its answer once at the end rather than streaming tool calls the way `opencode --format json` does; the fleet still shows it start, run and finish, which is the part a reader waits on. `--respect-workspace-trust false` is passed, because print mode cannot show the trust prompt and a child in a directory nobody has opened Devin in would exit before doing anything. A correction with it: the skill said `respect_workspace_trust` was a config key and not a flag. It is a flag, and `devin --help` says so. A session had reached for it and been told by this skill that it did not exist. Verified against the real binary: one child answers, three run concurrently in 6s where they would take 16s in turn, and through the `delegate` tool each is told its own number and answers with it. Eight tests use a stand-in binary, so they cost nothing and never call out.
Run delegated children on the Devin CLI
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
docs/assure-repo/false-green-candidates.v1.json -
modified
docs/assure-repo/surface-inventory.v1.json -
modified
packages/openagents-cli/skills/delegating-work/SKILL.md -
modified
packages/openagents-cli/src/cli.ts -
modified
packages/openagents-cli/src/coder-delegate.ts -
added
packages/openagents-cli/test/coder-delegate-devin.test.ts
Diff
6 files changed, +297 -13
docs/assure-repo/false-green-candidates.v1.json modified +1 -1
@@ -4,7 +4,7 @@
| 4 | 4 |
|
| 5 | 5 |
|
| 6 | 6 |
|
| 7 |
|
|
| 7 |
|
|
| 8 | 8 |
|
| 9 | 9 |
|
| 10 | 10 |
|
docs/assure-repo/surface-inventory.v1.json modified +2 -2
@@ -1,7 +1,7 @@
| 1 | 1 |
|
| 2 | 2 |
|
| 3 | 3 |
|
| 4 |
|
|
| 4 |
|
|
| 5 | 5 |
|
| 6 | 6 |
|
| 7 | 7 |
|
packages/openagents-cli/skills/delegating-work/SKILL.md modified +27 -9
@@ -29,7 +29,27 @@ questions, so the prompt has to carry everything. Every child gets the same
| 29 | 29 |
|
| 30 | 30 |
|
| 31 | 31 |
|
| 32 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 33 | 53 |
|
| 34 | 54 |
|
| 35 | 55 |
|
@@ -64,14 +84,12 @@ calls the equivalent mode "bypass". Passing `--permission-mode bypass` is not
| 64 | 84 |
|
| 65 | 85 |
|
| 66 | 86 |
|
| 67 |
|
|
| 68 |
|
|
| 69 |
|
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
|
| 73 |
|
|
| 74 |
|
|
| 87 |
|
|
| 88 |
|
|
| 89 |
|
|
| 90 |
|
|
| 91 |
|
|
| 92 |
|
|
| 75 | 93 |
|
| 76 | 94 |
|
| 77 | 95 |
|
packages/openagents-cli/src/cli.ts modified +19 -1
@@ -19,7 +19,7 @@ import type { ChildGrant } from "./coder-child-gateway.js";
| 19 | 19 |
|
| 20 | 20 |
|
| 21 | 21 |
|
| 22 |
|
|
| 22 |
|
|
| 23 | 23 |
|
| 24 | 24 |
|
| 25 | 25 |
|
@@ -1581,6 +1581,24 @@ async function buildDelegation(options: {
| 1581 | 1581 |
|
| 1582 | 1582 |
|
| 1583 | 1583 |
|
| 1584 |
|
|
| 1585 |
|
|
| 1586 |
|
|
| 1587 |
|
|
| 1588 |
|
|
| 1589 |
|
|
| 1590 |
|
|
| 1591 |
|
|
| 1592 |
|
|
| 1593 |
|
|
| 1594 |
|
|
| 1595 |
|
|
| 1596 |
|
|
| 1597 |
|
|
| 1598 |
|
|
| 1599 |
|
|
| 1600 |
|
|
| 1601 |
|
|
| 1584 | 1602 |
|
| 1585 | 1603 |
|
| 1586 | 1604 |
|
packages/openagents-cli/src/coder-delegate.ts modified +141
@@ -351,6 +351,147 @@ function killTree(child: ChildProcess, signal: "SIGTERM" | "SIGKILL"): void {
| 351 | 351 |
|
| 352 | 352 |
|
| 353 | 353 |
|
| 354 |
|
|
| 355 |
|
|
| 356 |
|
|
| 357 |
|
|
| 358 |
|
|
| 359 |
|
|
| 360 |
|
|
| 361 |
|
|
| 362 |
|
|
| 363 |
|
|
| 364 |
|
|
| 365 |
|
|
| 366 |
|
|
| 367 |
|
|
| 368 |
|
|
| 369 |
|
|
| 370 |
|
|
| 371 |
|
|
| 372 |
|
|
| 373 |
|
|
| 374 |
|
|
| 375 |
|
|
| 376 |
|
|
| 377 |
|
|
| 378 |
|
|
| 379 |
|
|
| 380 |
|
|
| 381 |
|
|
| 382 |
|
|
| 383 |
|
|
| 384 |
|
|
| 385 |
|
|
| 386 |
|
|
| 387 |
|
|
| 388 |
|
|
| 389 |
|
|
| 390 |
|
|
| 391 |
|
|
| 392 |
|
|
| 393 |
|
|
| 394 |
|
|
| 395 |
|
|
| 396 |
|
|
| 397 |
|
|
| 398 |
|
|
| 399 |
|
|
| 400 |
|
|
| 401 |
|
|
| 402 |
|
|
| 403 |
|
|
| 404 |
|
|
| 405 |
|
|
| 406 |
|
|
| 407 |
|
|
| 408 |
|
|
| 409 |
|
|
| 410 |
|
|
| 411 |
|
|
| 412 |
|
|
| 413 |
|
|
| 414 |
|
|
| 415 |
|
|
| 416 |
|
|
| 417 |
|
|
| 418 |
|
|
| 419 |
|
|
| 420 |
|
|
| 421 |
|
|
| 422 |
|
|
| 423 |
|
|
| 424 |
|
|
| 425 |
|
|
| 426 |
|
|
| 427 |
|
|
| 428 |
|
|
| 429 |
|
|
| 430 |
|
|
| 431 |
|
|
| 432 |
|
|
| 433 |
|
|
| 434 |
|
|
| 435 |
|
|
| 436 |
|
|
| 437 |
|
|
| 438 |
|
|
| 439 |
|
|
| 440 |
|
|
| 441 |
|
|
| 442 |
|
|
| 443 |
|
|
| 444 |
|
|
| 445 |
|
|
| 446 |
|
|
| 447 |
|
|
| 448 |
|
|
| 449 |
|
|
| 450 |
|
|
| 451 |
|
|
| 452 |
|
|
| 453 |
|
|
| 454 |
|
|
| 455 |
|
|
| 456 |
|
|
| 457 |
|
|
| 458 |
|
|
| 459 |
|
|
| 460 |
|
|
| 461 |
|
|
| 462 |
|
|
| 463 |
|
|
| 464 |
|
|
| 465 |
|
|
| 466 |
|
|
| 467 |
|
|
| 468 |
|
|
| 469 |
|
|
| 470 |
|
|
| 471 |
|
|
| 472 |
|
|
| 473 |
|
|
| 474 |
|
|
| 475 |
|
|
| 476 |
|
|
| 477 |
|
|
| 478 |
|
|
| 479 |
|
|
| 480 |
|
|
| 481 |
|
|
| 482 |
|
|
| 483 |
|
|
| 484 |
|
|
| 485 |
|
|
| 486 |
|
|
| 487 |
|
|
| 488 |
|
|
| 489 |
|
|
| 490 |
|
|
| 491 |
|
|
| 492 |
|
|
| 493 |
|
|
| 494 |
|
|
| 354 | 495 |
|
| 355 | 496 |
|
| 356 | 497 |
|
packages/openagents-cli/test/coder-delegate-devin.test.ts added +107
@@ -0,0 +1,107 @@
| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 67 |
|
|
| 68 |
|
|
| 69 |
|
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
|
| 73 |
|
|
| 74 |
|
|
| 75 |
|
|
| 76 |
|
|
| 77 |
|
|
| 78 |
|
|
| 79 |
|
|
| 80 |
|
|
| 81 |
|
|
| 82 |
|
|
| 83 |
|
|
| 84 |
|
|
| 85 |
|
|
| 86 |
|
|
| 87 |
|
|
| 88 |
|
|
| 89 |
|
|
| 90 |
|
|
| 91 |
|
|
| 92 |
|
|
| 93 |
|
|
| 94 |
|
|
| 95 |
|
|
| 96 |
|
|
| 97 |
|
|
| 98 |
|
|
| 99 |
|
|
| 100 |
|
|
| 101 |
|
|
| 102 |
|
|
| 103 |
|
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|