Parse Pi transcripts during attach and explain - #1860
Merged
Conversation
Entire-Checkpoint: 01KYG1T1J303QQV463F3W16ZW3
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds first-class handling for Pi’s native v3 JSONL transcripts so attach and explain can extract/format prompts and models correctly, and summarization can condense Pi sessions the same way other agents are handled.
Changes:
- Extend transcript condensation to support
agent.AgentTypePi, including native Pi JSONL → compact → condensed entries. - Improve
attachmetadata extraction by deferring to agent-native prompt/model extractors when available. - Add unit tests covering Pi native transcript parsing for summarization, explain formatting, and attach metadata extraction.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| cmd/entire/cli/summarize/summarize.go | Adds Pi-specific condensed-transcript builder and routes Pi agent type to it. |
| cmd/entire/cli/summarize/summarize_test.go | Adds summarization coverage for native Pi JSONL and parallelizes an existing compact fallback test. |
| cmd/entire/cli/explain_test.go | Adds coverage that explain formatting no longer fails on native Pi JSONL. |
| cmd/entire/cli/attach.go | Switches attach transcript metadata extraction to an agent-aware extraction path. |
| cmd/entire/cli/attach_transcript.go | Introduces agent-aware metadata extraction using prompt/model extractor capabilities. |
| cmd/entire/cli/attach_test.go | Adds coverage ensuring Pi-native prompt/model metadata is extracted during attach. |
gtrrz-victor
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://entire.io/gh/entireio/cli/trails/944
This draft pull request was opened by Entire after CI was requested for the linked trail. Feel free to edit the title or body — the link above is what keeps the trail and PR connected.