Skip to content

Frames in pi and Claude Code - #88

Open
dcmcand wants to merge 1 commit into
slice/frames-23-helper-podfrom
slice/frames-24-agents
Open

dcmcand wants to merge 1 commit into
slice/frames-23-helper-podfrom
slice/frames-24-agents

Conversation

@dcmcand

@dcmcand dcmcand commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Slice 24: pi and Claude Code configuration

pi and Claude Code apps start with a frames MCP server at the helper's address (and Claude Code runs the read tools without a prompt), keep the person's own servers, and start exactly as today with Frames off.

Spec: nebari-dev/tapas/docs/superpowers/specs/2026-11-30-frames-integration-design.md
Plan: nebari-dev/tapas/docs/superpowers/plans/2026-12-01-agent-tokens-and-frames.md (Slice 24)
Contracts touched: pi mcp.json entry frames, Claude Code start command: claude-start.sh with --mcp-config, Template setting agentFrames
Depends on: #87

  • pi: ownMcp writes only the frames entry, keeps the person's servers, repairs a bad mcpServers, removes the entry with Frames off.
  • Claude Code: claude-start.sh adds --mcp-config and --allowedTools for the two read tools; with Frames off it is today's command.
  • The shipped pi and Claude Code templates set agentFrames.
  • Upgrade effect: Claude Code's command changed, so its layout fingerprint is re-recorded and existing Claude Code apps restart once (owner-approved).

Validation

Step Command / action Expected Result
node node --test "pod/**/*.test.mjs" ok, existing tests unmodified 85 pass
templates go test -count=1 ./internal/controller/workspace/ -run Shipped ok ok (whole package ok)
stateless pi mcp list and claude mcp list against framesmcp.NewHandler both list frames with two tools pi: frames: connected, 2 tools; Claude Code 2.1.334 (claude -p with the script's --mcp-config): frames connected with both tools. Interactive prompt checks (Q34, Q40) run on the test cluster in Slice 25

pi's setup now owns one entry in its mcp.json, frames, pointed at
JAVO_FRAMES_URL; it rewrites that entry on every start, keeps the
person's own servers, backs up and repairs a file whose mcpServers is not
an object, and removes the entry when the variable is unset.

Claude Code starts through claude-start.sh, which adds the frames server
with --mcp-config and allows its two read tools when JAVO_FRAMES_URL is
set, and otherwise runs exactly today's command.

The shipped pi and Claude Code templates set agentFrames. Because Claude
Code's command changed, its layout fingerprint is re-recorded and
existing Claude Code apps restart once on upgrade; the continue test runs
the repo's script in place of the image path. Checked by hand: pi and
Claude Code each list frames with its two tools against the forwarder.

contracts.md and patterns.md are updated, and the plan's evidence too.
@dcmcand
dcmcand added this pull request to stack #40 December 3, 2026 09:39

This branch has not been deployed

No deployments
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