Skip to content

Helpers: heed does the next step over ACP, beside your session, where you can watch, steer and close it out - #240

Merged
Mpdreamz merged 5 commits into
mainfrom
feature/helpers
Nov 13, 2026
Merged

Mpdreamz merged 5 commits into
mainfrom
feature/helpers

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

heed's work on a PR used to run as a background tab or typed into your session. Now heed works out each item's next step, you approve it once (or always for the repo), and a helper does it: a bounded agent run heed starts over ACP in its own worktree and draws itself.

Attention

  • Each row says its next step (▶ heed is getting it green, next: start a review, waiting on others…).
  • The reader has one proposal: D do it, Y do it and turn it on for this repo, . another step. ↩ still opens the reader.
  • Per item: someone else's PR → start a review (posts nothing until you send); an issue tagging you → draft a reply (nothing when it's yours and you spoke last); your PR → get it green / merged; a repo without Autopilot → set it up; an assigned issue → start work.
  • The helper opens in a split under the reader, in the right column: the agent's plan, its story with small diffs, inline allow / deny, files, tokens and cost against a cap, a steer box (i), pause (p), stop (zx), zoom (zo).
  • Close-out: what it did, the replies heed will post; Push and reply (⌘↩), Push only (P), Keep going, Throw away (X twice).

Autopilot › Now and sessions

  • A live tile per helper: what it's doing now, progress, files, its last tool calls, an approval if it waits; ↩ opens it.
  • A session tracking the PR gets a band (watch it gW, take it over gO) and a note through its inbox where it has one (heed hands agents its messages through their inbox, and types only when there is none #239's notify, never typed: no channel → band only).
  • Get it green runs as a helper by default ([pilot] run_in = "helper"); session and background still work per org and repo. [helpers] agent, command, spend_cap ($0.50).

ACP

  • A small ACP v1 client (schema v1.31.0): initialize, session/new, prompt, cancel, session/update (plan, tool calls, diffs, chunks, usage_update), request_permission. heed offers no fs/terminal methods.
  • Adapters as they are named now: @agentclientprotocol/claude-agent-acp (claude-agent-acp), @agentclientprotocol/codex-acp, opencode acp, gemini --acp. heed never installs one; when missing, it shows the install command.

Verified

  • mise run test: 2000 pass (incl. a child-process test against a script speaking ACP); lint clean; tutor-check 0 problems; all shots regenerated.
  • Not tried for real: any real ACP adapter run, so no live push / reply / review; a live inbox note from a helper.
  • Known limits: pause and steer cancel the turn and prompt again (ACP v1 can't add to a running turn); the spend cap needs the agent to report cost (else the run timeout stops it); a posted review is one body with path:line references; helpers live in memory (a restart loses them; their history and branches stay); Now has no "up next" section yet.

🤖 Generated with Claude Code

Mpdreamz and others added 5 commits November 13, 2026 22:49
… read leniently, permissions asked and answered, and the adapters heed knows

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…'s next step per Attention item, the close-out read from its last message, and run_in = helper as get it green's default

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…draws in a split under the reader, as Now's live tiles and under a session's panes, and is steered, paused, approved and closed out there; sessions get a band, never typing

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…de's inbox, codex's queue) where it has one, never typed: the band stays, and says how it went

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 13, 2026
@Mpdreamz
Mpdreamz merged commit b40710d into main Nov 13, 2026
5 checks passed
@Mpdreamz
Mpdreamz deleted the feature/helpers branch November 13, 2026 22:22
Mpdreamz added a commit that referenced this pull request Nov 14, 2026
…as a live board (#248)

Third guided-goals PR: wizard step 4 and the goal's page, built on the
swarm plan machinery.

## Split
- A cheap call splits the agreed plan and done criteria into parts
(title, repo, size, estimate, after, done when, context): `SplitPart`
wraps `SwarmTask` through `SwarmPlanInput`, the swarm plan JSON
extended. Split a part (`s`), re-split (`r`).
- Assignment by fit from heed's ledger (each agent's PRs per repo,
merged, left) and quota, under Balance for credits / speed / fewest
agents (`b`); parts you place stay put.
- The board: rows are your agents (usage spark, plan icon from evidence,
quota ring only where heed has a real figure), parts as blocks (width =
estimate, agent tint, repo swatch, size pips, ◆ and amber connectors on
the longest chain, state glyphs), the lead's spine on top, icon stats;
below, the selected part, who should do it (fit meter, merged here,
quota, cost) and this plan uses.
- Hover previews a part; `↩` folds it out (done when, context chips,
agent avatars with fit, a steer box `i`, Define `d` / Agent `a` / Split
`s` / Waits on `w` / Size `Z` / Later `p`); drag a block to another
agent, or `J` `K`.
- **Define** opens a horizontal split with a real ACP session (#240's
client) in the part's repo, read-only (reads, search, fetch allowed;
edit, delete, move, execute and fs/terminal refused): the conversation
on the left, the part as defined with diffs and the knock-on on the
timeline on the right; `⌘↩` use it, `p` later.

## Quota, honestly
- Codex: a real ring (`rateLimitUsedPercent` from the rollout's
`used_percent`). Any agent at its limit: empty until the recorded reset.
- Claude, Gemini, OpenCode, Cursor, Copilot: no ring (heed has no window
or allowance figure), spark only; the hover says so. No weekly
allowances shown; review rounds not in fit (not recorded per agent).

## The goal's page
For wizard goals past Split and swarm goals with an approved plan: the
same board live (done / running / needs you, a now line), the journey
bar, one next step (the oldest question waiting on you), icon stats, the
TL;DR chip; `goalpage` scope (`h l j k`, `↩`, `s` steer opens the
worker, `i` answer). Goals without a plan keep today's overview.

## Verified
- `mise run test` 2186 pass (breaking `SplitSchedule.longestChain` fails
two); lint clean; tutor-check 0 (the first-goal lesson gained a Split
step); shots goals/split, split-small, split-hover, split-fold,
split-define, page-building, page-next checked against the designs; docs
goals/split.md and updates.
- Not tried: the split prompt and Define against a real model/agent,
drag by hand, the speed balance on real data. How careful and Go stay
placeholders (PR D); `SplitDraft.swarmTasks` is ready to become the
swarm's first plan version on Go.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant