Factory Research evaluated context compression for AI agents using probe-based tests. They found structured summarization preserves more details than OpenAI or Anthropic methods during long sessions.
Highlights
Traditional metrics like ROUGE fail to measure functional context preservation.
Probe-based tests verify if agents recall specific details after compression.
Structured summarization outperformed OpenAI and Anthropic in debugging tasks.
Optimizing for tokens per task improves agent productivity over tokens per request.
Testing covered debugging, code review, and ML research scenarios.
Context Compaction: Query-Based and Objective Modes | Morph
Compaction drops 50-70% of an agent’s context while keeping every surviving line verbatim. Two modes: objective compaction strips filler with no guida...
cursor.com
Agent best practices - grind mode and various hooks
A comprehensive guide to working with coding agents, from starting with plans to managing context, customizing workflows, and reviewing code.
github.com
spring-ai-agent-utils/spring-ai-agent-utils at main · spring-ai-community/spring-ai-agent-utils
A Spring AI library that brings Claude Code-inspired tools and agent skills to your AI applications. - spring-ai-community/spring-ai-agent-utils