Repository navigation
Open
Labels
enhancementNew feature or request
Description
Part of the Coding-agent subagents epic (#378). Item B10, milestone B-M3. Depends on B9 (#397). Private repos also depend on MI1 S4/S5.
Goal
A subagent sees the code the user is actually working on, including uncommitted changes. Its patch applies cleanly against the base it was given. Private repositories work without their credential ever entering the sandbox.
Current state (verified on main @ 24c6f5e)
- The workspace comes only from
repoUrl+ref(harness/src/run-leaf.ts:108-109). Uncommitted local work never reaches the leaf. - Public clones work on the VM's container tier (VM demo C: per-user inference credentials and a curl/git research turn in the P6 container sandbox #368, PR feat: per-user inference credential headers and sandbox research tooling (#368 phase 1) #372).
- Private clones need
sandbox-egresscredentials: MI1 S4 (microVM), S5 (container), Z5.
Scope
- The client pushes a WIP ref, or uploads a
git bundle, through a path decided here. The session records the base commit, and patch results carry it (Coding-agent subagents B5: turn state (running/lost), per-turn results, artifacts and retention #390). - Private repos are cloned with
sandbox-egresscredentials once MI1 S4/S5 land. Until then, document that only public repos work.
Acceptance
- Uncommitted local changes are visible to the subagent.
- The returned patch applies with
git applyonto the recorded base. - A private repo clones without the credential entering the sandbox (after S4/S5).
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
[-]Claude Code subagents B10: workspace handoff (WIP refs, base commit) and private repos[/-][+]Coding-agent subagents B10: workspace handoff (WIP refs, base commit) and private repos[/+]pdettori commentedon Oct 13, 2026
Note (2026-10-13). Two merged or open pieces overlap this issue's scope:
git bundle.Still unaddressed by either: the recorded base commit and patch-applies-cleanly acceptance, and private repos (MI1 S4/S5). Re-scope this issue once #455 and #495 settle.