Repository navigation
Open
Labels
enhancementNew feature or request
Description
Part of the Coding-agent subagents epic (#378). Item B9, milestone B-M3 "implementation subagents". Depends on MI1 S3, B5 (#390) and B7 (#393).
Goal
An implementation subagent that has everything at once: the user's promoted bundle, a repo at a ref, a patch against a known base commit, and the ability to ask its owner something.
Current state (verified on main @ 24c6f5e)
| Kind | Loads your bundle | Gets a repo | Returns | Can ask you (gate) |
|---|---|---|---|---|
prompt |
✓ (harness/src/run-leaf.ts:468) |
✗, except through a /workloads workspace |
text | ✗ |
converge |
✗ | ✓ repoUrl+ref (:108-109) |
verdict | ✓ (:830) |
solve |
✗ | ✓ | patch, no base commit (:181) |
✗ |
- MI1 S3 (§7.2) binds a bundle to a session at creation (
cfg) and delivers it through the sandbox grant.
Scope
- Load the bundle for converge and solve from the session-bound
cfg(MI1 S3). - Give prompt leaves repo convergence, or introduce one unified "agent" kind: clone
repoUrl+ref, return text plus an optional patch with base commit (Coding-agent subagents B5: turn state (running/lost), per-turn results, artifacts and retention #390), and gate through Coding-agent subagents B7: gates v2 — gates on prompt/solve leaves, decision API, deadlines #393. - Keep the verdict and patch contracts that existing converge and solve callers rely on.
Acceptance
- One subagent loads the user's bundle, works on a repo ref, returns a patch with a base commit, and can stop to ask.
- Existing converge and solve tests stay green.
References
- ADR-0028, ADR-0030, MI1 §7
Working conventions (for a fresh session)
- Workspace:
git fetch, then create a worktree fromrossoctl/main(never localmain), under.worktrees/. Populate and buildpi-fork(git submodule update --init --recursive && cd pi-fork && npm ci && npm run build), thenpnpm install. A worktree without the pi-fork build does not typecheck. - Plans: write the plan with
superpowers:writing-plansintodocs/plans/<date>-<slug>.md. Plans are gitignored and never committed. Write it in chunks, one append per task. - Pre-flight table: list every process entrypoint, systemd unit, env example and shell/Go launcher whose boot contract changes, not only TypeScript call sites.
- Tests: Redis on 6379 must be up. Use each package's own
node_modules/.bin/vitest. vitest can exit non-zero with every test green, so grep the log forErrors. Redirect long output to/tmp/kagenti/....make lintskips untracked files. - Commits:
git commit -swithAssisted-By: Claude (Anthropic AI) <[email protected]>, neverCo-Authored-By. - Shared KVM rig: alert the owner before using it, record a manifest of what you install, and verify cleanup.
- Don't push or open PRs without the owner's go-ahead.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
evaline-ju commentedon Oct 12, 2026
Update: #468 landed the solve half of acceptance item 1 ("load the bundle for converge and solve"). Items 2-3, and other part of item 1 remain (the converge leaves don't load the session bundle yet).
[-]Claude Code subagents B9: one leaf kind with bundle, repo, patch and gate[/-][+]Coding-agent subagents B9: one leaf kind with bundle, repo, patch and gate[/+]