Factory's anchored iterative summarization outperforms OpenAI and Anthropic context compression strategies for long-running AI agent sessions
Long-running AI agent sessions generate millions of tokens that exceed any model's working memory, and naive aggressive compression causes agents to forget critical details—file paths, error messages, past decisions—leading to wasted tokens re-reading files and re-exploring dead ends.
Generic summarization treats all content as equally compressible, silently dropping file paths and decisions; traditional metrics like ROUGE or embedding similarity failed to capture whether an agent can actually continue working after compression.
Factory's structured summarization scores 0.35 points higher than OpenAI and 0.26 higher than Anthropic overall, with accuracy showing the largest gap (Factory 4.04), while maintaining comparable compression efficiency (98.6% vs OpenAI's 99.3%).
Show all 15 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
Factory's structured summarization scores 0.35 points higher than OpenAI and 0.26 higher than Anthropic overall, with accuracy showing the largest gap (Factory 4.04), while maintaining comparable compression efficienc…
What tools did this team use?
GPT-5.2, Claude SDK, /responses/compact.
What results were reported?
Factory overall quality score: 3.70; Anthropic overall quality score: 3.44; OpenAI overall quality score: 3.35; Factory quality advantage over OpenAI: 0.35 points higher (source-reported, not independently verified).
What failed first in this deployment?
Generic summarization treats all content as equally compressible, silently dropping file paths and decisions; traditional metrics like ROUGE or embedding similarity failed to capture whether an agent can actually cont…
How is this quality assurance AI workflow structured?
Context limit reached → Truncated span summarized → Merge into persistent summary → Checklist sections enforce preservation → Probe-based evaluation → LLM judge grades responses.