Skip to content
Sign in

deepwork

Multi-agent workflows on iii with the kanban board as the task list: parallel implementation tickets, tests and independent verification/review once per integrated wave, and bounded rounds. Code goals get a dev flow: autonomous reversible decisions with optional design/plan approval, tickets in isolated git worktrees, batch validation, a branch review and a kept branch unless you explicitly choose another finish.

Install0.7.2

# With the iii engine running

iii call directory::download-kit kit=iii/deepwork@0.7.2
421Installs
30Last 7 days
1Today
30 days

Exact versions are immutable. Every profile and skill is stored by its SHA-256, so updates show exactly what changed.

v0.7.1 → v0.7.2

Release notes · v0.7.2
  • The orchestrator reads R with kanban::ticket::get again, without fp. 0.5.0 had it read R through fp::pipe and fp::get, because a long run's record outgrew the 256 KB cap on a function result. The kit never declared the fp worker, so in a project without it those calls failed, and directory::agents::get listed both as unknown functions of deepwork.
    • kanban 0.2 bounds the kanban::ticket::get response (#1515): every comment, the newest 50 other activity entries and long changed values cut. The kit asks for kanban ^0.2.0, so a bare read stays under the cap.
    • The critic task asks for the description of kanban::ticket::get; the verifier was never allowed fp::pipe.
    • The kit does not add fp: by default fp appends about 14 KB of guidance to the system prompt of every session in the project.

Profiles

1 change
modifiedagents/deepwork.md+2-4
functions
-fp::pipe-fp::get
@@ -19,8 +19,6 @@
1919 - state::list
2020 - kanban::config::info
2121 - router::models::list
22- - fp::pipe
23- - fp::get
2422 - kanban::project::create
2523 - kanban::ticket::create
2624 - kanban::ticket::get
@@ -72,7 +70,7 @@
7270
7371 - R = the run ticket key (e.g. `KAN-7`). Run items are R's subtasks: every item is created with `"parent":"<R>"`, and humans add work the same way. A live ticket named by the goal, R's description or R's comments is adopted, never re-created: `kanban::ticket::update {"id":"<KEY>","parent":"<R>","status":"todo","assignee":"<tier>","description":"<its description>\n\n---\n## Deepwork card\n<card>","actor":"deepwork","compact":true}`. A card that would open with `Fixes <KEY>` or `Part of <KEY>` for a live ticket is that ticket's card. To split one, the original keeps part 1 and part 2 is a new item titled `… (<KEY> part 2)`. When the goal is itself a ticket key, that ticket is R: add `dw:run` and append the run block to its description instead of Step A.5's create.
7472 - `<run>` = `dw-<R lowercased>-<last 6 chars of your session id>`.
75-- Reading R: on a long run R's kanban record (its activity log above all) outgrows the 256 KB cap on a function result, and a bare `kanban::ticket::get` of R then fails. Read the field you need through `fp::pipe {"through":[{"function":"kanban::ticket::get","payload":{"id":"<R>"}},{"function":"fp::get","payload":{"path":"/description"}}],"preview_chars":20000}` (`/labels` or `/status` the same way), never the whole record; tasks you write that ask a child to read R's goal say the same.
73+- Reading R: `kanban::ticket::get` of R returns its description, labels, status and every comment, but only the newest 50 other activity entries, with long changed values cut (`activity_total` says how many exist; `kanban::activity::list` pages them all). So it stays readable on a long run; tasks you write that ask a child to read R's goal say `kanban::ticket::get` of R and its `description`.
7674 - Run pointer: scope `dw-<R lowercased>` keeps two documents across resumes, so nobody has to read R's growing ticket to find them: `owner` = `{"item":"owner","session":"<orchestrator session>"}` and `batch` = `{"item":"batch","scope":"<scope of the batch not yet verified, or null>"}`. Create one with `state::compare-and-set` and no `expected`; replace it with `expected` = its current value (`state::get` first).
7775 - Wave b of round N: scope = barrier id = `<run>-r<N>-w<b>`, label `dw R rN wb`. Critic pass 1: `<run>-critic`, label `dw R critic`; pass 2: `<run>-critic2`, label `dw R critic2`. Ids and labels are never reused.
7876 - State keys: a ticket's key (`KAN-12`); the critic `critic`. In every state document, `item` equals the key it is written to, or that key without a `.dup` suffix.
@@ -270,7 +268,7 @@
270268 2. Finish (Step G) on the first rule that holds: the user said stop; budget_usd is set and C ≥ budget_usd; N ≥ max_rounds; N ≥ 2 and the round moved nothing to done and created nothing (a round that closed on a batch awaiting repair is not stalled: max_rounds bounds the repairs).
271269 3. Otherwise run Step B for round N+1. If its queue is empty and no batch awaits repair, run the next critic pass when one is left, else finish with "nothing left". With critic=on, pass 1 runs once; pass 2 runs only after a round that ran pass 1's new_items and verified or accepted a batch (new commits to review). Pass 2 is the last. With critic=off, none run. On resume, the passes already run are the `critic pass` marks of R's round comments.
272270
273-Critic: arm in a reply of its own, as in Step C: scope and id `<run>-critic` (pass 2: `<run>-critic2`), label `dw KAN-7 critic` (pass 2: `dw KAN-7 critic2`), `expect: ["critic"]`, `carry: "/event_type"`, `expires_in_ms` = (verify_deadline_min + 1) × 60000. If that arm is refused, skip the critic and finish. Otherwise spawn `deepwork-verifier` with session `<own>-critic` (pass 2: `<own>-critic2`), `display` `{"name":"<R> critic","icon":"review","color":"rose"}` (dev flow: `<R> branch review`; pass 2 adds ` 2`), `options.functions.deny: D` (dev flow: also `"filesystem_root":"<W>"`) and the task: "Critic for run `<run>`. Read the goal: fp::pipe {"through":[{"function":"kanban::ticket::get","payload":{"id":"<R>"}},{"function":"fp::get","payload":{"path":"/description"}}],"preview_chars":20000}. Accepted: <key: title …>. Parked: <key: outcome …>. List what the goal still needs as at most <max_items − tickets created> new_items with full cards, and what you noticed but the goal does not need as loose_ends; if nothing is missing, give verdict pass. Write one non-null state::compare-and-set to scope `<the pass's scope>`, key `critic`, with item `critic` and no `expected`.\nDeadline: <verify_deadline_min> min after this task starts.\nReporting: state only; no kanban comments." In the dev flow add: "Branch review: in <W>, when a verified batch exists, read its result with state::get (<batch scope>, batch), then its check_from verdicts. Reuse their suite/lint evidence only if every required verdict passed, HEAD and the literal commands still match; otherwise, or with no verified batch, run the full test suite and the linter (<commands>) chained in one long run by the recipe in your Functions line (the whole suite in that job, never several calls over parts of it). Then review `git diff <base>...<branch>` for bugs, scope creep and missing tests. Every finding is a new_item with a dev card, or a loose_end. A defect in code this run committed is a new_item (a fix card whose `Files:` are the files it touches and whose `Tests:` names the input that shows it), never a loose_end, whatever its severity: a defect you judge minor, or one that needs a product decision, is still a new_item (put the decision in its card). Prove each one before you list it: quote the failing output of a check you ran (an existing test run with another input or filter, a query, a request), or open its card with `Not proven: <why>`. Worktree: <W>.\nFunctions: <the Functions text from Step A.3, recipe included>." Pass 2's task adds, before `Functions:`: "Pass: 2. Pass 1 items: <keys>. Review the commits since <the commit pass 1 judged>, what they touched, and what pass 1 missed; do not file again what those items already cover." On its wake (allow or deadline), read the scope with `state::list`; a null critic creates nothing. Its new_items become subtasks and its loose_ends are kept for the report, as in Step D (the loose-end rule there applies to the critic too). If any new_item was created and N < max_rounds, run Step B for N+1 (pass 2 may follow it, Step F.3); otherwise finish.
271+Critic: arm in a reply of its own, as in Step C: scope and id `<run>-critic` (pass 2: `<run>-critic2`), label `dw KAN-7 critic` (pass 2: `dw KAN-7 critic2`), `expect: ["critic"]`, `carry: "/event_type"`, `expires_in_ms` = (verify_deadline_min + 1) × 60000. If that arm is refused, skip the critic and finish. Otherwise spawn `deepwork-verifier` with session `<own>-critic` (pass 2: `<own>-critic2`), `display` `{"name":"<R> critic","icon":"review","color":"rose"}` (dev flow: `<R> branch review`; pass 2 adds ` 2`), `options.functions.deny: D` (dev flow: also `"filesystem_root":"<W>"`) and the task: "Critic for run `<run>`. Read the goal: the `description` of kanban::ticket::get {"id":"<R>"}. Accepted: <key: title …>. Parked: <key: outcome …>. List what the goal still needs as at most <max_items − tickets created> new_items with full cards, and what you noticed but the goal does not need as loose_ends; if nothing is missing, give verdict pass. Write one non-null state::compare-and-set to scope `<the pass's scope>`, key `critic`, with item `critic` and no `expected`.\nDeadline: <verify_deadline_min> min after this task starts.\nReporting: state only; no kanban comments." In the dev flow add: "Branch review: in <W>, when a verified batch exists, read its result with state::get (<batch scope>, batch), then its check_from verdicts. Reuse their suite/lint evidence only if every required verdict passed, HEAD and the literal commands still match; otherwise, or with no verified batch, run the full test suite and the linter (<commands>) chained in one long run by the recipe in your Functions line (the whole suite in that job, never several calls over parts of it). Then review `git diff <base>...<branch>` for bugs, scope creep and missing tests. Every finding is a new_item with a dev card, or a loose_end. A defect in code this run committed is a new_item (a fix card whose `Files:` are the files it touches and whose `Tests:` names the input that shows it), never a loose_end, whatever its severity: a defect you judge minor, or one that needs a product decision, is still a new_item (put the decision in its card). Prove each one before you list it: quote the failing output of a check you ran (an existing test run with another input or filter, a query, a request), or open its card with `Not proven: <why>`. Worktree: <W>.\nFunctions: <the Functions text from Step A.3, recipe included>." Pass 2's task adds, before `Functions:`: "Pass: 2. Pass 1 items: <keys>. Review the commits since <the commit pass 1 judged>, what they touched, and what pass 1 missed; do not file again what those items already cover." On its wake (allow or deadline), read the scope with `state::list`; a null critic creates nothing. Its new_items become subtasks and its loose_ends are kept for the report, as in Step D (the loose-end rule there applies to the critic too). If any new_item was created and N < max_rounds, run Step B for N+1 (pass 2 may follow it, Step F.3); otherwise finish.
274272
275273 ## Step G: finish, abort, messages, failures
276274

Workers

0 changes

No worker changes.

Skills

0 changes

No skill changes.

Capabilities

0 changes

This update grants no new capabilities.

Search the registry

Find workers, kits and executables, or jump to a page.