{"slug":"context-compression","article":{"kind":"article","title":"Context compression and compaction","category":"AI Engineering Subjects","entityType":"pattern","homepage":"https://chronoscope.hopperlabs.ai/#/context-compression","summary":"Context compression reduces the space taken by prior messages or retrieved material while retaining information useful to the current task.","sources":["source:public-ee52f599ccb2fe32","source:ref-8d10b68b1dca","source:public-acba99a918d917fa","source:public-6d7ad609a0608e58"],"relations":[{"rel":"covered-in","to":"article:ai-engineering"},{"to":"article:context-selection","rel":"shares-milestones"},{"to":"article:long-context-failure-modes","rel":"shares-milestones"},{"to":"article:anthropic","rel":"shares-milestones"}],"id":"article:context-compression","from":"2026-11-25","revision":"405c0d3100644b45371216365dfb9f064a149b9b3157883345d69c9fa5816808","recordedAt":"2026-11-25T12:18:13.336Z"},"sections":[{"kind":"section","article":"article:context-compression","title":"Anthropic documents context compaction for long-running agents","text":"Anthropic described summarizing an ongoing interaction as its context window fills, then carrying that summary into a fresh window. Its guide also covered external notes and focused subagents.","order":0,"sources":["source:public-ee52f599ccb2fe32","source:public-6d7ad609a0608e58"],"id":"section:chronoscope-context-compression","from":"2026-11-25","revision":"405c0d3100644b45371216365dfb9f064a149b9b3157883345d69c9fa5816808","recordedAt":"2026-11-25T12:18:13.336Z"}],"events":[{"kind":"event","title":"LongLLMLingua compresses and reorders long prompt context","date":"2023-10-10","articles":["article:context-compression"],"detail":"The researchers targeted information relevant to the question while reducing input length and evaluating sensitivity to the position of the evidence.","chronoscope":"https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2023-longllmlingua-compresses-and-reorders-long-prompt-context","sources":["source:ref-8d10b68b1dca"],"ownerRef":{"schemaVersion":"hopper.exact-resource-ref.v1","productId":"hopper.domain-app.chronoscope","resourceType":"chronoscope.pack-entry","resourceId":"ai-engineering:2023-longllmlingua-compresses-and-reorders-long-prompt-context","version":"29199f6068c0848e5fab","digest":"sha256:31cc9907ca533779d8aa0229792058fc0142c10cee23dba98928f5e5b30cea54"},"id":"event:chronoscope-423b8bd954b37fda","from":"2026-11-25","revision":"405c0d3100644b45371216365dfb9f064a149b9b3157883345d69c9fa5816808","recordedAt":"2026-11-25T12:18:13.336Z"},{"kind":"event","title":"OpenCode adds compaction for long sessions","date":"2025-05-14","articles":["article:context-compression","article:opencode"],"detail":"The early terminal agent added automatic session summarization and language-server discovery.","chronoscope":"https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2025-opencode-adds-compaction-for-long-sessions","sources":["source:public-acba99a918d917fa"],"ownerRef":{"schemaVersion":"hopper.exact-resource-ref.v1","productId":"hopper.domain-app.chronoscope","resourceType":"chronoscope.pack-entry","resourceId":"ai-engineering:2025-opencode-adds-compaction-for-long-sessions","version":"29199f6068c0848e5fab","digest":"sha256:259ed22202ad828a9b1be2e1247d1f5e4577984edff1d30b0c0bfae90840d845"},"id":"event:chronoscope-9210ae31d48fca52","from":"2026-11-25","revision":"405c0d3100644b45371216365dfb9f064a149b9b3157883345d69c9fa5816808","recordedAt":"2026-11-25T12:18:13.336Z"},{"kind":"event","title":"Anthropic documents context compaction for long-running agents","date":"2025-09-29","articles":["article:context-compression"],"detail":"Anthropic described summarizing an ongoing interaction as its context window fills, then carrying that summary into a fresh window.","chronoscope":"https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2025-agent-context-compaction","sources":["source:public-6d7ad609a0608e58"],"ownerRef":{"schemaVersion":"hopper.exact-resource-ref.v1","productId":"hopper.domain-app.chronoscope","resourceType":"chronoscope.pack-entry","resourceId":"ai-engineering:2025-agent-context-compaction","version":"29199f6068c0848e5fab","digest":"sha256:842dace78e912c495b7802e320a6364f94628204079b28e2a2012364fc8ac1ae"},"id":"event:chronoscope-8749146bbd7371d0","from":"2026-11-25","revision":"405c0d3100644b45371216365dfb9f064a149b9b3157883345d69c9fa5816808","recordedAt":"2026-11-25T12:18:13.336Z"}],"examples":[],"links":[],"sources":[{"kind":"source","title":"Context compression and compaction in Chronoscope","url":"https://chronoscope.hopperlabs.ai/#/context-compression","id":"source:public-ee52f599ccb2fe32","from":"2026-11-25","revision":"405c0d3100644b45371216365dfb9f064a149b9b3157883345d69c9fa5816808","recordedAt":"2026-11-25T12:18:13.336Z"},{"kind":"source","title":"LongLLMLingua compresses and reorders long prompt context","url":"https://arxiv.org/abs/2310.06839","id":"source:ref-8d10b68b1dca","from":"2026-11-25","revision":"20585ad96f8a42f359db8075c5966dc2f17a11f966f4395d28677f15b20f36c0","recordedAt":"2026-11-25T10:40:20.496Z"},{"kind":"source","title":"OpenCode adds compaction for long sessions","url":"https://github.com/anomalyco/opencode/releases/tag/0.0.45","id":"source:public-acba99a918d917fa","from":"2026-11-25","revision":"405c0d3100644b45371216365dfb9f064a149b9b3157883345d69c9fa5816808","recordedAt":"2026-11-25T12:18:13.336Z"},{"kind":"source","title":"Anthropic documents context compaction for long-running agents","url":"https://www.anthropic.com/research/effective-context-engineering-for-ai-agents","id":"source:public-6d7ad609a0608e58","from":"2026-11-25","revision":"405c0d3100644b45371216365dfb9f064a149b9b3157883345d69c9fa5816808","recordedAt":"2026-11-25T12:18:13.336Z"}],"related":[{"slug":"ai-engineering","title":"AI Engineering","category":"Agent engineering","entityType":"collection","rel":"covered-in"},{"slug":"context-selection","title":"Context selection","category":"AI Engineering Subjects","entityType":"pattern","rel":"shares-milestones"},{"slug":"long-context-failure-modes","title":"Long-context failure modes","category":"AI Engineering Subjects","entityType":"pattern","rel":"shares-milestones"},{"slug":"anthropic","title":"Anthropic","category":"AI Engineering Subjects","entityType":"organization","rel":"shares-milestones"}],"backlinks":[{"slug":"context-selection","title":"Context selection","category":"AI Engineering Subjects","entityType":"pattern","rel":"shares-milestones"},{"slug":"long-context-failure-modes","title":"Long-context failure modes","category":"AI Engineering Subjects","entityType":"pattern","rel":"shares-milestones"},{"slug":"opencode","title":"OpenCode","category":"AI Engineering Subjects","entityType":"app","rel":"shares-milestones"},{"slug":"reranking","title":"Reranking search results","category":"AI Engineering Subjects","entityType":"pattern","rel":"shares-milestones"}],"history":[{"id":"405c0d3100644b45371216365dfb9f064a149b9b3157883345d69c9fa5816808","recordedAt":"2026-11-25T12:18:13.336Z","message":"Publish the illustrated encyclopedia and connect verified public subject catalogs"}]}
