AI article
Your Agent Session Is a Tree. Your Code Thinks It Is a List.
Community description: Codex made Item a wire type and thread/fork a protocol call. Pi gave every session entry a parentId. Claude Code compresses the transcript in five stages.
Dev.to | Sep 15, 2026 | Harrison Guo
Automated excerpt
Claude Code's answer is progressive compression. Example items include user message, agent reasoning, agent message, shell command, file edit, etc. In Codex, agent reasoning is an item type.
Selected automatically from source text; not independently written or fact-checked. Read the original for full context.