Vibeleaderboard
← All Intel
Intel / article

Compressing Context

Source
factory.ai
Date

Context

Factory keeps long coding conversations manageable by maintaining a saved summary of earlier work. When the conversation reaches a size threshold, it keeps recent messages verbatim and folds only the newly removed material into that summary. This avoids repeatedly summarizing the entire older conversation. Compression method.

What survives matters: Factory says the summary should preserve the 's intent and requirements, a of files changed and test results, and breadcrumbs such as paths that let the agent retrieve details again. Compressing too aggressively can erase information the agent soon needs, forcing it to re-fetch material and add extra calls that can outweigh the savings. Factory therefore aims to minimize tokens per task rather than per request. Retention tradeoff.

Terms in this piece · Glossary
  • Session — One conversation or piece of work as a harness keeps it: a record of messages, tool calls and observations that can be saved and resumed.
  • Record — One unit of data in a file or table, such as one supplier's quote; distinct from a line of text.
  • File — A named unit of stored data that keeps its contents while no program is using it.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Recommended reads