Expose subagent kind and parent_id on the meta record - #43
Closed
subomi wants to merge 1 commit into
Closed
Conversation
Claude Code already detects standalone sidechains; Cursor identity lives only in the agent-transcripts path, so listing plus an optional locator keeps the format token-lean without teaching every consumer the layout. Co-authored-by: Cursor <cursoragent@cursor.com>
subomi
marked this pull request as draft
August 16, 2026 00:56
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.
Summary
kind: "subagent"andparent_idon the trajectory-v1 meta record so consumers can distinguish delegated runs from human sessions without re-implementing per-harness path heuristics.standaloneSidechain+ uniquesessionId); those now copy through to meta. Missing or ambiguous parent session ids omitparent_idrather than failing.~/.cursor/projects/<slug>/agent-transcripts/<parent-uuid>/subagents/<child-uuid>.jsonl). Listing plus an optionalsourceContext.locator(parsed, never read) is how the format stays token-lean without teaching every consumer that layout.trajectory_id,subagent_trajectories,SubagentTrajectoryRef) is the verbose prior art; this is the token-lean equivalent: a kind flag plus a parent pointer on meta.No
CANONICAL_SCHEMA_VERSIONor package version bump. No newTrajectoryListingfields — listingpathalready distinguishes Cursor children.normalizeTranscript()stays filesystem-free.Test plan
bun run check— 172 pass, 7 skip, 0 failkind+parent_id; cursor 774 listed / 225kind+parent_id