Export format with info + messages array, parts-based
Key Differences
Field names vary — Claude uses type: "user"/"assistant", Cursor uses role, Copilot uses event types like user.message, Gemini uses type: "gemini".
Tool call representation differs — Claude/Factory embed tool_use blocks in message.content[]. Gemini uses a separate toolCalls array. Copilot uses dedicated tool.execution_complete events. OpenCode uses heterogeneous parts.
Token usage — Claude/Factory store message.usage on assistant messages. OpenCode has info.tokens. Copilot aggregates in session.shutdown events. Cursor has no token data.
File modification detection — Claude/Factory/Gemini/OpenCode/Copilot parse tool calls from the transcript. Cursor is the exception — it doesn't store file mods in the transcript and relies on git status + hooks instead.
What Normalizes Them
The transcript/compact.goCompact() function converts all formats into a normalized transcript.jsonl with uniform fields: v, agent, cli_version, type, ts, content. But the raw full.jsonl stored in checkpoints is the unmodified agent-native format.
User
Wait so it's called full.jsonl for each one including gemini and opencode, but gemini and opencode are technically json? I'm confused. No unified structure for our generated full.jsonl files?
Assistant· claude-opus-4-6
Good catch — let me verify what actually gets written to full.jsonl in checkpoints vs what the native agent format is.
Assistant· claude-opus-4-6
Let me look at how transcripts actually get written to checkpoints — the key is what happens in lifecycle/strategy when saving.
Assistant· claude-opus-4-6
Now let me check the key part — how the transcript gets read from the agent and written as full.jsonl:
Assistant· claude-opus-4-6
Now let me check ReadTranscript for a couple of agents to see if any normalization happens:
Assistant· claude-opus-4-6
You're right to be confused. Here's what's actually happening:
full.jsonl is just a filename — it does NOT guarantee the content is actually JSONL. Every agent's ReadTranscript() is a raw os.ReadFile with no normalization. The bytes are written as-is to full.jsonl in lifecycle.go:337-338:
go
logFile := filepath.Join(sessionDirAbs, paths.TranscriptFileName) // "full.jsonl"
os.WriteFile(logFile, transcriptData, 0o600) // raw bytes from agent
So the reality is:
Agent
What's actually inside full.jsonl
Claude Code
JSONL (matches filename)
Factory AI Droid
JSONL (matches filename)
Cursor
JSONL (matches filename)
Copilot CLI
JSONL events (matches filename)
Gemini CLI
Single JSON object (not JSONL)
OpenCode
Single JSON object (not JSONL)
There is no unified structure for full.jsonl. It's the raw agent-native format with a misleading filename for Gemini and OpenCode. Every downstream consumer (compact.go, summarize.go, explain.go, etc.) has to branch on agentType to know how to parse it.
The only normalization happens later, in transcript/compact.go's Compact() function, which converts all formats into a unified transcript.jsonl output — but that's a separate derived artifact, not the stored full.jsonl.
User
What about the fields of the jsonl file?
Assistant· claude-opus-4-6
Let me look at the actual JSONL structures and how they're parsed.
Assistant· claude-opus-4-6
Now let me check what Copilot CLI lines actually look like:
Assistant· claude-opus-4-6
Now I have the full picture. Here's the answer:
The JSONL agents (Claude Code, Cursor, Factory AI Droid) share a similar shape but differ in specific fields. Here's what each line looks like in full.jsonl:
Gemini CLI — can appear in two shapes. Native format has no message wrapper:
json
{"type":"user","content":[{"text":"hello"}]}
{"type":"gemini","id":"g1","content":"string or array"}
Copilot CLI — completely different event-based structure (and Compact() has — it's not handled by compact.go at all).
User
What Copilot CLI? do we even support that? where?
Assistant· claude-opus-4-6
Yes, it's fully implemented. There's a complete agent at cmd/entire/cli/agent/copilotcli/ with 10 files — transcript parsing, lifecycle hooks, types, tests, the works. It's also registered in agent/registry.go, has E2E test support (e2e/agents/copilot-cli.go), is referenced in CLAUDE.md, README, CI workflows, and even has dedicated docs (docs/architecture/copilot-token-validation.md).
It's referenced throughout the codebase alongside the other agents — Claude Code, Gemini CLI, OpenCode, Cursor, and Factory AI Droid.
User
But when I run entire enable, I don't see it in the output
Assistant· claude-opus-4-6
Now let me check if Copilot CLI implements HookSupport:
Assistant· claude-opus-4-6
It does implement HookSupport (has InstallHooks/UninstallHooks), and it's not TestOnly. So it should show up in entire enable. The filter only excludes agents that:
Don't implement HookSupport
Are TestOnly (like Vogon)
Copilot CLI passes both checks. It should appear in the agent selection list. Are you sure it's not there? It might be that DetectPresence returns false (it checks if hooks are already installed in .github/hooks/entire.json), so on a first run with a single other agent detected, the auto-detect shortcut at line ~811 would pick that one agent automatically and skip the multi-select prompt entirely — you'd never see the list.
Try running entire enable in a repo where no agent is auto-detected, or where multiple agents are detected, and you should see Copilot CLI in the multi-select. Alternatively, entire enable --agent copilot-cli should work directly.
User
it says "(Preview)" at least. idk what that means for support
Assistant· claude-opus-4-6
Looking at the code, IsPreview() returns true for Copilot CLI (line 47 of copilotcli.go). But all it does is append "(Preview)" to the output message after install — there's no functional difference:
go
// setup.go:1052-1063
msg := fmt.Sprintf("Installed %d hooks for %s", installedHooks, ag.Description())
if ag.IsPreview() {
msg += " (Preview)"
}
It's purely a label. Preview agents aren't filtered out, feature-gated, or treated differently anywhere in the codebase. They get the same hooks, same lifecycle, same checkpoint storage.
The one real gap I found is that Compact() in transcript/compact.go doesn't handle Copilot's event-based JSONL format ({"type":"user.message","data":{...}}). The compactor only recognizes type values like user/assistant/human/gemini and role values like user/assistant — Copilot's user.message/assistant.message event types would all fall through to default in normalizeKind() and get silently dropped. So transcript.jsonl generation is effectively broken for Copilot CLI sessions.
That might be what "Preview" is trying to signal — it works for checkpointing and rewind, but some downstream features (compaction, summarization) aren't fully wired up yet.