Delete Kit and external agent harness support #1877

Closed
opened 2026-11-12 09:48:38 +00:00 by sam · 0 comments
Owner

Decision

#1865: Archie runs its own agent loop only. External CLI harnesses (Claude Code, Codex, Pi, OMP, Copilot) packaged as Docker Sandbox Kits are removed. Kit support was never used, the published Claude Code Kit doesn't run on it (#1873), and it doubled the task container path.

Delete

Starting points, not exhaustive. Follow the references out from each one.

  • Kit resolution and launch: internal/infrastructure/kit, internal/infrastructure/kitrun, internal/container/kit.go, daemon/kit_task.go, app/archied/kit_launcher.go, Pool.AcquireKit.
  • Harness runner and adapters: internal/agentexec/harness_*, runner selection by profile in the worker.
  • Setup terminal and sessions: proto/harness/v1 and its generated contract, internal/infrastructure/harnessrpc, internal/infrastructure/harnesssession, app/archied/harness*.go, internal/container/pty.go if nothing else uses it, webui/harness.go, ui/src/harness, the Harness sign-in section of the agent profiles page, HARNESS_TOKEN.
  • Harness secrets and OAuth capture: domain/harnesssecret, the harness secret State Store contract, SQL and table (migration to drop), the OAuth and Kit credential inject rules in egress.
  • Config: AgentProfile.Kit and .Adapter and their validation.
  • github.com/docker/sandbox-kit-spec dependency.
  • The external-agent-harness PRD, and WORKFLOWS.md references.

Keep

  • The egress proxy core: default tasks use it for model calls (openModelEgress).
  • The internal sandbox network and relay (egress/networks.go, archie-agent relay): the planned fix for #1867.
  • Any task-tools or MCP path the built-in loop still uses. Check capture_mcp.go and agentworker/mcp.go before removing.

Done when

  • None of the paths above exist, go mod tidy drops the Kit spec module, and the generated code is regenerated.
  • Agent profiles carry image and tools only.
  • task check passes, and a default task runs end to end.

Supersedes #1873 and #1876. Shrinks #1868, #1869, #1870 and #1875.

## Decision #1865: Archie runs its own agent loop only. External CLI harnesses (Claude Code, Codex, Pi, OMP, Copilot) packaged as Docker Sandbox Kits are removed. Kit support was never used, the published Claude Code Kit doesn't run on it (#1873), and it doubled the task container path. ## Delete Starting points, not exhaustive. Follow the references out from each one. - Kit resolution and launch: `internal/infrastructure/kit`, `internal/infrastructure/kitrun`, `internal/container/kit.go`, `daemon/kit_task.go`, `app/archied/kit_launcher.go`, `Pool.AcquireKit`. - Harness runner and adapters: `internal/agentexec/harness_*`, runner selection by profile in the worker. - Setup terminal and sessions: `proto/harness/v1` and its generated contract, `internal/infrastructure/harnessrpc`, `internal/infrastructure/harnesssession`, `app/archied/harness*.go`, `internal/container/pty.go` if nothing else uses it, `webui/harness.go`, `ui/src/harness`, the Harness sign-in section of the agent profiles page, `HARNESS_TOKEN`. - Harness secrets and OAuth capture: `domain/harnesssecret`, the harness secret State Store contract, SQL and table (migration to drop), the OAuth and Kit credential inject rules in `egress`. - Config: `AgentProfile.Kit` and `.Adapter` and their validation. - `github.com/docker/sandbox-kit-spec` dependency. - The external-agent-harness PRD, and WORKFLOWS.md references. ## Keep - The egress proxy core: default tasks use it for model calls (`openModelEgress`). - The internal sandbox network and relay (`egress/networks.go`, `archie-agent relay`): the planned fix for #1867. - Any task-tools or MCP path the built-in loop still uses. Check `capture_mcp.go` and `agentworker/mcp.go` before removing. ## Done when - None of the paths above exist, `go mod tidy` drops the Kit spec module, and the generated code is regenerated. - Agent profiles carry image and tools only. - `task check` passes, and a default task runs end to end. Supersedes #1873 and #1876. Shrinks #1868, #1869, #1870 and #1875.
sam added a new dependency 2026-11-12 09:54:04 +00:00
sam closed this issue 2026-11-12 11:27:21 +00:00
sam added the highchore labels 2026-11-12 15:51:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1877