Skip to content

Coding-agent subagents B10: workspace handoff (WIP refs, base commit) and private repos #398

Open

Description

@pdettori

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)

Scope

  1. 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).
  2. Private repos are cloned with sandbox-egress credentials 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 apply onto 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 from rossoctl/main (never local main), under .worktrees/. Populate and build pi-fork (git submodule update --init --recursive && cd pi-fork && npm ci && npm run build), then pnpm install. A worktree without the pi-fork build does not typecheck.
  • Plans: write the plan with superpowers:writing-plans into docs/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 for Errors. Redirect long output to /tmp/kagenti/.... make lint skips untracked files.
  • Commits: git commit -s with Assisted-By: Claude (Anthropic AI) <[email protected]>, never Co-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.

Activity

  1. added
    enhancement
    on Sep 30, 2026
  2. changed the title [-]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[/+] on Oct 13, 2026
  3. pdettori commented on Oct 13, 2026

    @pdettori
    MemberAuthor

    Note (2026-10-13). Two merged or open pieces overlap this issue's scope:

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions