Harness Notes

Worktrees

Updated 2026-11-22,

On this page

How each harness creates an isolated checkout, what it starts from, and what happens to the changes afterward. Worktrees isolate files; conversation forks and subagent context are separate. Unknown answers mark gaps in the recorded evidence, not proof that a capability is absent.

Forking: conversation history and file isolation

Subagents: delegation and workspace isolation

Questionpichecked at retained-extension-audit
Create or enter

Not documented

The retained audit describes running pi or a subagent extension with a selected working directory. Built-in managed-worktree creation has not been established here; create a checkout externally when needed.

Starting state

Not documented

The externally created checkout determines the starting revision and carried files. No pi-specific base selection contract is recorded.

Session isolation

Not documented

Launch pi in an externally prepared checkout. A session fork changes conversation history; it does not establish a separate filesystem checkout.

Subagent isolation

Not documented

The retained example subagent extension uses the parent directory or an explicitly supplied per-task cwd. An external checkout can be supplied; automatic per-child worktree allocation is not established.

Setup and environment files

Not documented

Provision dependencies and local environment files in the selected checkout. No managed-worktree setup contract is recorded for the audited core/example extension.

Review and integrate changes

Not documented

Use the integration workflow of the externally managed checkout. No automatic apply-back or merge contract is recorded.

Exit and cleanup

Not documented

Cleanup of externally managed checkouts belongs to that workflow. This audit does not establish pi-specific retention or removal safeguards.

CLI, tools and APIs

Not documented

The retained extension accepts a per-task cwd. That establishes directory selection, not a managed-worktree API across arbitrary extensions.

Commands

No commands recorded.

Notes and sources

pi, 1 source
  • Retained pi core/example-extension audit from 2026-10-15; no exhaustive extension audit or runtime probe.
Create or enter, 1
Starting state, 1
Session isolation, 1
Subagent isolation, 1
Setup and environment files, 1
Review and integrate changes, 1
Exit and cleanup, 1
CLI, tools and APIs, 1