Skip to content

fix(server): agents on a sandbox know it is disposable - #33

Merged
OmarAlex24 merged 1 commit into
feat/sandbox-environmentsfrom
fix/sandbox-agent-instructions
Nov 13, 2026
Merged

OmarAlex24 merged 1 commit into
feat/sandbox-environmentsfrom
fix/sandbox-agent-instructions

Conversation

@OmarAlex24

@OmarAlex24 OmarAlex24 commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Problem

Agents on a sandbox left handoffs and plans in files, but the sandbox is deleted when its chat ends. Only Claude got guidance, in a skill it might never open, and that skill said everything under $HOME survives. Codex and Pi got nothing.

Change

Every launch and resume writes a short, always-loaded block between stable markers into Claude's CLAUDE.md, Codex's AGENTS.md and Pi's global context file, rewriting only that block and keeping the user's own text. Sub-sandboxes get it too. The t3-sandbox-files skill now shares the same lifetime sentence: deliverables go in the reply or a pushed branch.

Scope and approval

Requested by the fork owner in a T3 Code session. Part of stack pingdotgg#43 on feat/sandbox-environments; each PR is one fix and builds on the one below it.

Verification

  • SandboxProvisioner.test.ts: 129/129, including the block reaching sub-sandboxes and the resume rewrite before t3 serve
  • New sandboxSetup.test.ts case: keeps the user's text, one block across reruns, replaces an older block, picks Pi's and Codex's files
  • Whole stack: vp run check:changed omar/feat/sandbox-environments passes format, lint, knip, typecheck (42 packages) and react compiler; 582 of 583 tests pass, and the one failure (tailscaleScript in sandboxSetup.test.ts) fails the same way on the base branch

Not yet run in a real client; UI before/after captures will follow once the stack is installed.

Model and harness: Claude Opus 5.5 (implementation subagents at high effort, coordinated by Claude Opus 5.5) in Claude Code, running in T3 Code.

🤖 Generated with Claude Code

Agents on a sandbox left handoffs in files, but the sandbox is deleted when its
chat ends. Only Claude had guidance, in a skill it might never open, and it
said everything under $HOME survives.

Every launch and resume now writes a short, always-loaded block between stable
markers into Claude's CLAUDE.md, Codex's AGENTS.md and Pi's global context
file, rewriting only the block. The t3-sandbox-files skill shares its lifetime
sentence and now says deliverables go in the reply or a pushed branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OmarAlex24
OmarAlex24 added this pull request to stack #43 November 13, 2026 04:45
@OmarAlex24
OmarAlex24 merged commit 86def3c into feat/sandbox-environments Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant