Skip to content

feat(copilot): implement TranscriptAnalyzer for JSONL transcripts#592

Merged
peyton-alt merged 2 commits intoalex/add-copilot-agentfrom
peyton/copilot-transcript-analyzer
Mar 3, 2026
Merged

feat(copilot): implement TranscriptAnalyzer for JSONL transcripts#592
peyton-alt merged 2 commits intoalex/add-copilot-agentfrom
peyton/copilot-transcript-analyzer

Conversation

@peyton-alt
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 3, 2026 22:54
@cursor
Copy link

cursor bot commented Mar 3, 2026

PR Summary

Medium Risk
Introduces new transcript-parsing logic that influences checkpoint metadata (modified files/prompts/summary); mistakes in event/schema handling could lead to incomplete or incorrect checkpoints.

Overview
Copilot CLI sessions now implement agent.TranscriptAnalyzer, enabling checkpoint metadata to be derived directly from Copilot’s events.jsonl transcript.

This adds JSONL parsing to compute transcript position (line count), extract modified files from tool.execution_complete events (via toolTelemetry.properties.filePaths), collect user prompts from user.message, and use the last assistant.message as a session summary, with comprehensive unit tests and updated Copilot integration docs noting the new event usage and lack of token metrics.

Written by Cursor Bugbot for commit e2ab2f3. Configure here.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Implements Copilot CLI transcript analysis for JSONL events.jsonl so Entire can extract prompts, summaries, and modified-file metadata from Copilot sessions.

Changes:

  • Added TranscriptAnalyzer implementation for CopilotCLIAgent, including prompt/summary extraction and modified-file detection via tool.execution_complete events.
  • Added unit tests covering event parsing, prompt/summary extraction, modified-file extraction, and transcript position counting.
  • Updated Copilot CLI agent documentation to describe the new transcript-derived metadata behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
cmd/entire/cli/agent/copilotcli/transcript.go Adds JSONL parsing and TranscriptAnalyzer methods for Copilot CLI transcripts.
cmd/entire/cli/agent/copilotcli/transcript_test.go Adds tests for parsing and extraction logic, plus interface implementation checks.
cmd/entire/cli/agent/copilotcli/AGENT.md Documents tool.execution_complete and the new TranscriptAnalyzer behavior.

@peyton-alt peyton-alt marked this pull request as ready for review March 3, 2026 23:14
@peyton-alt peyton-alt requested a review from a team as a code owner March 3, 2026 23:14
@peyton-alt peyton-alt merged commit 74e8a4b into alex/add-copilot-agent Mar 3, 2026
3 checks passed
@peyton-alt peyton-alt deleted the peyton/copilot-transcript-analyzer branch March 3, 2026 23:40
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.

3 participants