Skip to content

Add pi to external agents#6

Merged
nodo merged 14 commits intomainfrom
nodo/pi
Mar 30, 2026
Merged

Add pi to external agents#6
nodo merged 14 commits intomainfrom
nodo/pi

Conversation

@nodo
Copy link
Copy Markdown
Contributor

@nodo nodo commented Mar 27, 2026

This PR adds pi (pi.dev) to external agents.

nodo and others added 8 commits March 27, 2026 22:41
Verified Pi's TypeScript extension hooks, JSONL session format,
and lifecycle events against real payloads. All 5 lifecycle events
(session_start, before_agent_start, turn_end, agent_end,
session_shutdown) fire as documented with expected data.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: d25b511e454c
Binary compiles and returns valid info JSON. Protocol compliance
suite reaches the binary (most tests pass, 4 failures remaining
for Phase 3). E2e lifecycle adapter wired for Pi CLI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 0834c44f6128
Fix 4 compliance failures from scaffold phase:
- Idempotent hook install returns 0 (not 4)
- ChunkTranscript rejects max-size <= 0
- ReadSession initializes empty slices (not nil)
- GetTranscriptPosition returns 0 for missing files

Add 21 unit tests covering hook parsing, transcript analysis,
token calculation, session read/write, and chunking.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 4ff234fa8b8a
Three fixes:
- Use `entire hooks pi <event>` (not `entire agent hook pi <event>`)
- Cache session ID and capture Pi transcript to .entire/tmp/ on agent_end
  so Entire can create checkpoints
- Change interactive prompt pattern to match Pi's TUI footer ($cost)

All 8 lifecycle tests now pass.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: a419d6821098
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: ad86ea8194c1
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: a5e261e09644
`mise run build` now outputs to bin/ and `env._.path` prepends it
to PATH, so binaries are available in any mise-activated shell.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 966d1dcdb5f9
Entire-Checkpoint: 80c005f80ea8
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

nodo added 3 commits March 27, 2026 23:27
Entire-Checkpoint: e94b2136bff2
Entire-Checkpoint: 3f8ef013f11b
Entire-Checkpoint: a131d62d0701
@nodo nodo marked this pull request as ready for review March 28, 2026 21:22
@nodo nodo marked this pull request as draft March 28, 2026 21:27
Entire-Checkpoint: f55875cb2752
@nodo nodo marked this pull request as ready for review March 30, 2026 08:49
Entire-Checkpoint: 1a9ddb842de8
@nodo nodo merged commit 0509431 into main Mar 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants