Skip to content

Latest commit

 

History

History
406 lines (322 loc) · 29.1 KB

progress-and-communication.md

File metadata and controls

406 lines (322 loc) · 29.1 KB

Progress and communication

You should never have to ask an agent how it is going. This guide explains how devkit keeps you informed: live progress with an ETA computed from the real pace, estimates corrected by history, reminders when an agent goes quiet, desktop notifications, a wait that wakes an idle agent when something needs it, timing reports, written templates for every kind of message, and status reports for the team.

Progress and the status block: the agent records long work with dev progress, which shares steps, estimate, and ETA with the team through presence, dev team, and the dashboard; every final message starts with the status block; after each turn the Stop hook reads it, records the marker and the format score in the canary log, and stores the block as one compact line that dev status, dev overview, the dashboard, and the next session show.

Live progress with dev progress

Agents run these commands; you can too. The global instructions and the communicating skill tell agents when.

dev progress start "Export invoices as CSV" --plan "api=30m; ui=30m after api; tests=20m after ui; docs=15m"
dev progress step "the API endpoint streams CSV" --check "12 tests pass" --next "UI button"
dev progress block "need the export permission name" --next "a decision from Finance"
dev progress done "CSV export merged"
dev progress                      # every run on this Mac, and the runs of other machines

dev progress step prints the update to send, and the update is the status block itself, with the plan under it: each step's state, owner, and time. An update that ends a turn therefore always starts the way the global instructions require:

**[Firefly> DevKit]** billing · `feat/invoice-export` · Export invoices as CSV
- **Done:** the API endpoint streams CSV
- **Check:** ✓ 12 tests pass
- **Progress:** 1 of 4 steps · now 2. ui · 24m active of ~1h35m · ETA ~1h00m–1h35m
- **Next:** UI button

✓ 1. api · 24m of ~30m
▸ 2. ui · 0m of ~30m
○ 3. tests · ~20m
○ 4. docs · ~15m

--check fills the Check bullet with the evidence for the step (✓ is added when you give no glyph). A blocked run shows ✗ blocked and Next: unblock: ….

The Progress line

The Progress bullet is one line, in this order:

Part Example What it says
Steps 14 of 21 steps The steps done of the steps that count. A skipped step counts in neither number
Skipped 11 skipped How many steps were skipped, only when any were
Running now 28. lane findings, 33. welcome research The running steps by their number in the plan, as the checklist shows them: at most three, then +N. A blocked step shows as blocked 5. api
Time 2h10m active of ~3h00m The active time against the estimate, with the wall-clock time when it differs by 5 minutes or more
ETA ETA ~40m–1h00m The time left, from the real pace; blocked or done when the run is not running
Crew 2 agents working Crew members that still work or went stale, when any do

The same line shows in dev progress, dev crew, the dashboard, and the reminder the agent gets after a call that can end its turn.

While a run is active (running or blocked), the Progress bullet is required in every final message on Claude Code and on Codex. When a final message has no Progress bullet, or its step counts are not the run's, the Stop hook records it once per turn and never sends the turn back for it, since you have already read the message: the next prompt gives the agent the run's line as it is then. When the turn goes back for another reason, the line joins that message instead. Without an active run, no Progress bullet is needed. canary.enforce: false turns the check off.

Command What it records
start "<goal>" [--plan "a=30m; b=1h after a; c"] [--estimate 2h] [--steps N] A run for the current session: the goal and the plan. Each step can carry an estimate (=30m) and the steps it waits for (after a, b); steps without an estimate share what --estimate leaves. It prints how long similar work took here
step "<what finished>" --check "<evidence>" [--step <n or name>] [--next "…"] Closes the running step (or the one named), with its evidence; prints the update
add "<name>=<estimate> [after …]" [--why "…"] A step found during the work
assign <step> --to <member> [--scope "<globs>"] Hands a step to a crew member (The crew); its time is that member's time
begin <step> Starts a step in parallel with the running one (work you do yourself)
reopen <step> --why "…" · skip <step> --why "…" Undoes a wrong close, or skips a step on purpose
confirm <step> --why "…" Clears the recheck flag of a finished step whose reopened dependencies are closed again, when its work still holds
history Every step change: when, from → to, by whom, why
block "<why>" [--next "…"] The run is blocked; you get a desktop notification
done "<outcome>" The run is finished; the actual time is recorded against the estimate; you get a notification. Its decisions still pending close with it

A run belongs to the agent session that started it. Claude Code sessions export DEVKIT_SESSION at session start, so devkit knows exactly which session runs the command. For Codex, devkit uses the most recent devkit session in the same repository (within 12 hours); from a plain shell, the run belongs to that shell. When a session ends with its run still open, the run is orphaned; it runs again when that session resumes, or in the session /clear started after dev session carry (see Continuity). Work states explains every state of a run, a step, and a crew lane.

Keeping the plan true

The status, the dashboard, the handoff and the next session all read the plan, so devkit checks every change to it:

  • Evidence. Closing a step needs --check "<evidence>", or --no-check when there is nothing to verify (the update then shows ⚠).
  • The right step. The description must describe the step it closes: a close of "integrate dev test" with "time model built" is refused, and devkit names the step it sounds like or suggests dev progress add. When more than one step is running, name it with --step.
  • Not someone else's step, while the crew member who owns it is still working, and not before its dependencies are done.
  • Not over a member's running background work. On Claude Code, a member's dev progress step "…" --step <name> --check "…" is refused, with nothing recorded, while a background command the member started has not ended. The refusal names the commands: run it again once they end, or stop the ones that are not the step's work with TaskStop. dev progress note "…" --step <name> keeps partial evidence meanwhile.
  • Reviews close with the report. A review step ends with its reviewer's report, once the crew gates pass it, so a reviewer's lane may hold more than one review at once, and the report ends every review the lane holds.
  • Not finished with open steps: dev progress done refuses while steps are pending; close or skip each one.
  • Not finished over working members: dev progress done refuses while a crew member owns a running step, and names each member and step. Wait for the reports, or skip a step on purpose with dev progress skip; neither --force nor --why passes this check.
  • Not finished while a decision waits for you. A moot decision, whose asking member ended and that no step waits on, does not count, and every decision still pending closes with the run (see The crew › Guided or automatic).
  • Rechecked after a reopen: reopening a step flags the finished steps that used it, because their work used the old version. The flag clears when such a step finishes again after the reopened steps are closed; when its work still holds, dev progress confirm <step> --why "…" clears it with the reason. The run cannot end while a step is flagged, unless dev progress done --why "…" records why.
  • Fixable and visible: reopen and skip need a reason, and every change (by you, by a crew member, or by devkit) is in dev progress history. The output of step ends with the exact change it made, for example changed: 2. ui running → done.

--force skips the checks when the description really does mean that step.

Add a step when the work starts, not when it ends: dev progress add "<step>=30m", then dev progress begin <step>. Separate several steps with ; (dev progress add "a=5h; b=2h"), or quote each spec that has a space in it (dev progress add "lane lessons=5h" "test env=2h"). Words without quotes make one spec, so a name that still holds an estimate, such as a=5h b from dev progress add a=5h b=2h, is refused. Time is measured per step from its start, so a step added after the fact gets no time of its own, and its minutes count for the step that was running.

Time and estimates

devkit measures time the same way every time, so ETAs and calibration are comparable:

  • Active time, not wall-clock time. A run is worked on while the main agent's turn runs (from your prompt to its final message) or a subagent works (from its start to its report). The union of those intervals is the active time: waiting for you is not counted, and parallel agents are not counted twice. The update shows wall-clock time next to it when they differ by five minutes or more.
  • A step's time is the active time between its start and its end; for a step owned by a crew member, that member's own time.
  • Pace is actual ÷ estimate over the steps finished in this run, weighed against the project's history in proportion to the evidence (a single step does not swing it), and kept between 0.5× and 2.5×. A step closed in under a tenth of its estimate is bookkeeping and does not count.
  • ETA is the critical path through the plan: a step starts when the steps it waits for are done and its lane is free; the main agent and each crew member are separate lanes that run in parallel. The ETA is the time the last step ends, shown as a range: ±25% once finished steps set the pace, wider before.

Every number is computed from recorded timestamps, and the tests run the model with a fixed clock.

How estimates are calibrated

When a run with an estimate finishes, devkit records its active time, and each step records its own time against its estimate. For the next run in the same project, it takes the median ratio of actual to estimated time over the finished runs of the last 60 days, and uses it as the starting pace. dev progress start says so:

✓ run started · Export invoices as CSV · estimate 1h35m
  runs here take 1.4× their estimate → plan for ~2h13m · median turn 3m, p90 11m

Agents are told to use that number, to re-plan at 1.5 times the estimate, and to say so.

Where progress shows up

Where What you see
The agent's messages The status block that dev progress step prints, with the plan's checklist
The status block The Progress: bullet, required while a run is active (see The Progress line)
dev progress Runs on this Mac, and other machines' runs from their presence
dev team, the dashboard Each live session with its run, steps, ETA, and subagents
Desktop notifications A run blocks or finishes; a long turn finishes

Progress is published to the team in the background (at most once a minute) through a sync that updates this machine's presence file and session line.

Notifications

devkit sends macOS alerts for blocked or finished runs, long turns, and messages that need attention. dev install --only cli builds the ad-hoc-signed ~/Applications/DevKit.app with the DevKit name and icon. Its native helper requests macOS permission on first use. If alerts are denied, enable System Settings → Notifications → DevKit, then retry the notification.

Alerts contain fixed metadata, not message bodies. An operating-system display attempt never acknowledges a message, answers a question, or grants approval. Missing app bundles, denied permission, and timeouts leave durable messages pending; recover them through dev crew inbox/read or main-session dev session inbox/read. Unacknowledged messages are eligible for another notification after 60 seconds; failed attempts remain retryable.

The helper has a four-second permission window; the caller allows six seconds and the delivery lease allows 15 seconds. Build validation or --check does not prove actual OS display or persisted permission. Live acceptance of the candidate release must verify both. See the macOS helper reference.

What the hooks add

Hook What it does
UserPromptSubmit Starts the turn clock. When your prompt asks for status, devkit adds the real records to the agent's context (the session's runs with their headline, last update, and running subagents, and the CI/CD runs of the branch with their current job, step, elapsed time, and ETA) and asks for the overall status template. It understands English and Spanish phrasings such as how is it going?, where are we, what's left, status?, ETA, give me an update, ¿cómo va?, or ¿qué falta?. Background notifications (subagent results, system notices) are not treated as your request
PostToolUse Times each tool call and records the ones slower than progress.slow_tool_seconds (20). After progress.nudge_minutes (8) without an update to you, it reminds the agent to send one: dev progress note while the step runs, dev progress step when it is finished; at most six times per turn
SubagentStart, SubagentStop Track running subagents (shown in progress and status answers) and record how long each one took
Stop Records the turn's duration and sends the long-turn notification. Sends back, once, a main-session turn that ends while events can still arrive (a crew member works, a launch is pending, a step waits for a slot, CI the session sent runs) and nothing is armed that wakes the agent (see Waiting and waking)

The same UserPromptSubmit hook is also a safety net: a session that never ran SessionStart (a hook failure, an untrusted Codex hook, an old client) is registered at its first prompt and receives the full devkit context then. See Agents › Hooks.

Waiting and waking

devkit tells an agent what to act on through hooks, and a hook runs only when the agent does something. An idle session hears nothing: a crew member's question, a decision that waits for you, a step that became ready, or a CI result would wait until you write. One command closes that gap. dev watch --wait blocks until something the agent must act on arrives for its own session, prints each event once, one line each, and exits. Its exit is what wakes the agent.

The tech lead arms one devkit wait before it ends its turn. A crew member's question lands in the run file; the wait sees the file change, prints the question once and exits, and the harness wakes the session, which answers and arms the wait again.

When an agent arms the wait

Before it ends a turn while events can still arrive: a crew member works, a launch is pending, a step waits for a crew slot, or a CI run the session sent has not finished. Other agent sessions on this Mac add three more: the session's question to another session waits for an answer, it queues for a claim another session holds, or an escalation it is party to waits for you (see Teams and machines › Sessions on one Mac). When none of these holds, nothing can arrive, and dev watch --wait says so at once (exit 2), so the agent ends its turn without one.

Agent How it waits
Claude Code, main session dev watch --wait as a background command (Bash run_in_background), which sends one notification when it exits and runs up to 240 minutes by default. The agent names the command's task id in its reply
Claude Code, crew member Only when blocked on the answer to its own question: dev watch --wait --for me --timeout 9 in the foreground, as a command of its own, so it takes the member's messages and never the tech lead's. It stops at 2.5 minutes, because Claude Code moves a member's command to the background after 3, and prints the command to arm it again
Codex, main session dev watch --wait --timeout 10 in the foreground, repeated while members work, because Codex has no background wake-up; or it ends its turn saying what still runs and that it checks again at your next message
Codex, crew member As on Claude Code, in the foreground, for its whole --timeout

After each wake, the agent acts on what the wait printed (it answers a question, asks you a decision, launches a ready step, or relaunches a lost member) and arms the wait again while events can still arrive. A wait also ends with exit 3 when it was stopped, when the program reading its output is gone (a tail that was stopped), or when a compaction moved the conversation to a new session id: the agent arms a new one. A tech lead that coordinates other sessions may keep dev watch --wait --standby armed, which wakes only for their messages. The wait-and-wake skill teaches the agents these rules.

What it prints

devkit · question M7 from Backend engineer (Tank): “May I rename the column?” · answer: dev crew answer M7 "…"
devkit · ready: review → dev crew brief seraph 'Review the API' --step review
devkit · member: QA engineer (Mouse) was lost (silent 20 minutes); its step tests waits for a new launch
watch: 3 events · arm again: dev watch --wait

Each line starts with devkit's own words. A member's or CI's text is one quoted span with control and escape sequences removed, so no line it prints reads as an approval or a grant. A member's normal finish on Claude Code (whose harness wakes the session anyway), a change of the session's crew slots, and a failed handoff push are notices: they ride along with the next event and never wake the agent alone. The kinds of events, the flags, and the exit codes are in Commands › dev watch.

Each event once

The hooks and the wait take from the same records: crew messages, decisions, ready steps, CI results, and member notices each mark an item as told under their own lock, whichever reads it first. An event that a wait printed never comes back at the next hook, and the other way round. A prompt that wakes the session for a background event, such as a subagent's task notification, carries the waiting events in its context too. One wait runs per session and consumer (the main session, or one crew lane): a newer one takes over, and the older one ends with one line (exit 5).

What waiting costs

Nothing while it waits. The wait watches devkit's state folders (kqueue on macOS, and a check every 2 seconds in any case), lets a burst of changes settle for 2 seconds, and never calls a model. Every 60 seconds it reconciles the session's run, so a member that went silent or a crew slot that a quota window freed also wakes an idle session. Each wake costs the agent one turn, and the audit trail records it (watch.wake) with the time from the event to the wake.

The end-of-turn check

The Stop hook sends back, once, a main-session turn that ends while events can still arrive and nothing is armed that wakes the agent. Its message names what can still arrive and the command for that agent: on Claude Code, a live dev watch --wait started with Bash run_in_background; on Codex, one run in the foreground in this turn. With a live wait, the turn passes, and the same wait also counts as the watch on a pushed commit's CI run, so a turn gets one message, never two.

Questions nobody waits on

A question to the tech lead closes when it is answered: with dev crew answer, or, on Claude Code, with a SendMessage from the main session to the member who asked that names the question (M3: …), which devkit records as answered via SendMessage, with the text, in the inbox and the audit trail (crew.message-answered). A SendMessage that names no question answers none, and a devkit notice lists the questions that still wait. A question whose member ended and holds no open step is moot: nobody waits for it, it wakes nobody, and dev watch shows it as moot with the reason (see Work states › Crew messages).

See the waits

dev watch      # what waits for this session, what can still arrive, and whether a wait is armed; marks nothing
dev watches    # every wait: live, expired, or superseded, with the command to arm it again; then the CI watches

Pipelines

When the work has CI/CD pipelines, agents report them in progress updates and status answers, one line per run:

CI/CD: ci #142 running · job tests (Python 3.13) step 4/7 "Unit tests" · 12m elapsed · ETA ~6m · <link>

dev ci status gives them the facts for GitHub Actions, GitLab CI, Bitbucket Pipelines, and Azure Pipelines, with an ETA from the last successful runs, and dev ci status --watch follows a run to the end instead of polling (see Commands › dev ci status).

Waits that wake the agent

A promise to report later is kept only when something wakes the agent. devkit's background CI watch speaks at the session's next hook, and an idle session runs none. CI is one source of the one wait: after a push, a merge, or a release from the main session, the result of that run reaches the agent through dev watch --wait (see Waiting and waking). To see each job as it finishes, the agent arms the CI wait instead, in the same turn, and names it in its reply:

dev ci watch --wait --pr 12      # one line per finished job, then one line with the result
dev ci watches                   # the live watches, and the expired ones with the command to arm each again

On Claude Code, a Monitor or a background command runs the CI wait, and its output wakes the session. Codex has no background wake-up, so it runs the wait in the foreground. The Stop hook sends back, once, a turn that sent work to origin and leaves its unfinished CI run with nothing that wakes the agent. CI/CD pipelines › Wait on a run has the options, the exit codes, and how each agent arms the CI wait.

Where the time goes: dev time

dev time                  # the last 7 days
dev time --days 30 -p acme/billing

It reports turn length (median, p90, longest), how accurate past estimates were and the factor applied to new ones, subagent durations, the ten slowest commands by total time (with runs and median), and the runs in progress. The records are in ~/.local/state/devkit/timing/YYYY-MM.jsonl, one line per slow tool call, turn, subagent, and finished run.

How agents write to you

The communicating skill holds a template for every kind of message. Its rules apply to all of them: reply in your language, the status block first and then the answer, plain words, no filler or buzzwords, real evidence instead of claims, short updates, and honest estimates given as ranges.

Your language. Agents reply in the language of your latest message; when it is too short to tell (ok, continue), in the language of your earlier messages; with none, American English. A locale in devkit config language fixes it instead. The reply's prose, its questions and decision requests, and the status block's text follow your language; the block's marker and labels ([Firefly> DevKit], Done, Check, Progress, Crew, You, Next) do not, and crew roles are written in your language. Code, comments, commits, PRs, docs, plans, records, crew briefs, and members' reports to the tech lead stay in American English unless the project's own rules or you say otherwise. A context line before each turn names the reply language, and the Stop hook records a final message in another language, which the next prompt reminds the agent of.

Nothing comes before the status block. A message that ends the agent's turn (everything it writes after its last tool call) opens with the block, and the template's own content goes below it: the verdict, a correction, a greeting, or a comment on the last command never comes before it. "Lead with the point" applies to the first line under the block. A note that the agent is waiting for background work is a final message too, so it starts with the block, with what runs in Next.

Template When the agent uses it Shape
Kickoff Before any task longer than a few minutes The status block (Progress 0 of N steps · now 1. <step>), then the plan with the estimate and steps; checks, risks, what it needs from you
Progress update After each step, every 8–10 minutes of tool work, when background work finishes The status block that dev progress step (a finished step) or dev progress note (a step still running) prints: done, check, progress with ETA, next, and the checklist
Status answer When you ask "how is it going?" or "what's left?" The status block, then a one-line verdict, a table per workstream (state, evidence, ETA), the CI/CD pipelines (state, current job and step, elapsed, ETA), what is left, risks, what it needs from you
Background work When subagents, parallel sessions, or long commands start and end What runs, what it produces, and when; then the result in one or two lines
Decision request In guided mode, only for decisions that are yours: scope, behavior, cost, risk, irreversible, or external effects. In auto, the agent records the recommended option and goes on instead The status block (Check – a question), then context, options with gains, costs, and effort, a recommendation, and what it does if you do not answer
Explanation When you need to understand something The answer in one sentence, how it works, an example from your code, what it means for you, where to read more
Final report At the end of a turn The status block, then only what the block does not say: what changed, what is not done
Failure or incident When something fails The status block (Check ✗ with the error), then what failed and its impact, cause, evidence, what was tried, next step
Pull request description When it opens a PR What and why, changes, how to verify, risk and rollback, links
Merge message When it squash-merges The PR title, then the what and why in one or two sentences
Review comments When it reviews code blocking:, suggestion:, nit:, or question:, then what is wrong, why, and what to do
Handing work to a teammate When you want someone else to take a task The message dev task delegate writes (see Teams and machines)

Records have one shape each, and commands create them: plans and specs (dev plan new --kind …), tasks (dev task add --type … --why … --done …), run steps (dev progress start --plan …), session lines (dev handoff --log), the status block, and status reports (dev report). The shapes are in Templates.

Status reports

dev report writes a Markdown status report from the handoff repository only, so every machine produces the same report.

dev report                          # every initiative, then the projects outside initiatives, last 7 days
dev report --days 14 -i payments    # one initiative
dev report -p acme/billing -o ~/Desktop/billing-status.md

It starts with a summary table (initiative, health, progress, done, in progress, blocked, due date). Then each initiative gets its health with the reason, progress (done of total tasks), milestone, due date, owner, and member count, the goal, what was done this period and by whom, what is in progress, what is next, blockers and risks (blocked tasks and the bullets of the README's risks section), and the team (people who logged sessions, with their session counts). Projects outside initiatives follow in one table. Tasks that were imported as already done do not count as done this period.

Health follows plain rules, in this order, so you can always explain it:

Health When
✅ Done The status is done
⏸ Paused The status is paused or archived
🔴 Off track The status is blocked, or the due date has passed
🟡 At risk A task is blocked; or the due date is within 14 days and progress is below 70%; or there has been no activity for two weeks
🟢 On track None of the previous rows applies

dev standup is the short version for yourself: what happened since yesterday and what is in progress.

See also Teams and machines, Templates, and Models and tokens.