Sergii Makarevych (@sermakarevich) — Harnesses and agentic coding, Agentic creativity and cognition¶
Original post: https://x.com/sermakarevich/status/2115438632672645153
Posted: 2026-10-28T13:40:47Z · Collected: 2026-10-29T16:31:16Z
Why it matters¶
An empirical comparison of context-management strategies that harness builders can act on directly.
Summary¶
Sergii Makarevych (@sermakarevich) reviews context management across 30 agent products and 8 strategies, replaying one 30-turn coding ticket under each; clearing tool results lost a fact needed at turn 28, while compaction kept it and saved 10%. The article cites Anthropic, OpenAI, Google ADK, LangChain, Letta and other docs.
Referenced links¶
https://docs.claude.com/en/docs/build-with-claude/compaction (from post
2115438632672645153)https://docs.claude.com/en/docs/build-with-claude/context-editing (from post
2115438632672645153)https://docs.claude.com/en/docs/build-with-claude/prompt-caching (from post
2115438632672645153)https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents (from post
2115438632672645153)https://www.anthropic.com/engineering/advanced-tool-use (from post
2115438632672645153)https://www.anthropic.com/engineering/multi-agent-research-system (from post
2115438632672645153)https://code.claude.com/docs/en/costs (from post
2115438632672645153)https://platform.openai.com/docs/guides/compaction (from post
2115438632672645153)https://docs.x.ai/docs/guides/compaction (from post
2115438632672645153)https://ai.google.dev/gemini-api/docs/caching (from post
2115438632672645153)https://google.github.io/adk-docs/context/compaction/ (from post
2115438632672645153)https://docs.langchain.com/oss/python/langchain/middleware (from post
2115438632672645153)https://docs.langchain.com/oss/python/deepagents/overview (from post
2115438632672645153)https://docs.letta.com/guides/agents/context-engineering (from post
2115438632672645153)https://inspect.aisi.org.uk/compaction.html (from post
2115438632672645153)https://learn.microsoft.com/en-us/agent-framework/ (from post
2115438632672645153)https://mastra.ai/docs/memory/memory-processors (from post
2115438632672645153)https://ai.pydantic.dev/message-history/ (from post
2115438632672645153)https://openai.github.io/openai-agents-python/sessions/ (from post
2115438632672645153)https://docs.llamaindex.ai/en/stable/module_guides/deploying/agents/memory/ (from post
2115438632672645153)https://github.com/openai/codex (from post
2115438632672645153)https://github.com/google-gemini/gemini-cli (from post
2115438632672645153)https://cursor.com/docs (from post
2115438632672645153)https://docs.cline.bot (from post
2115438632672645153)https://kilo.ai/docs/customize/context/context-condensing (from post
2115438632672645153)https://docs.github.com/en/copilot/how-tos/copilot-cli (from post
2115438632672645153)https://aider.chat/docs/repomap.html (from post
2115438632672645153)https://cognition.ai/blog/dont-build-multi-agents (from post
2115438632672645153)https://manus.im/blog/Context-Engineering-for-AI-Agents-Lessons-from-Building-Manus (from post
2115438632672645153)https://github.com/chopratejas/headroom (from post
2115438632672645153)https://morphllm.com/compact (from post
2115438632672645153)https://compresr.ai (from post
2115438632672645153)https://thetokencompany.com (from post
2115438632672645153)https://github.com/microsoft/LLMLingua (from post
2115438632672645153)https://docs.litellm.ai/docs/claude_code_context_management (from post
2115438632672645153)https://www.truefoundry.com/docs/ai-gateway/compaction (from post
2115438632672645153)https://docs.getbifrost.ai/api-reference/compaction/compact-context (from post
2115438632672645153)https://developer.konghq.com/plugins/ai-prompt-compressor/ (from post
2115438632672645153)https://github.com/rtk-ai/rtk (from post
2115438632672645153)https://github.com/mksglu/context-mode (from post
2115438632672645153)https://github.com/Opiqo/opencode-dynamic-context-pruning (from post
2115438632672645153)https://rlancemartin.github.io/2025/06/23/context_engineering/ (from post
2115438632672645153)https://arxiv.org/abs/2602.07962 (from post
2115438632672645153)https://www.trychroma.com/research/context-rot (from post
2115438632672645153)https://arxiv.org/abs/2606.23525 (from post
2115438632672645153)https://arxiv.org/abs/2606.30005 (from post
2115438632672645153)https://arxiv.org/abs/2510.00615 (from post
2115438632672645153)https://arxiv.org/abs/2604.01664 (from post
2115438632672645153)https://arxiv.org/abs/2601.16746 (from post
2115438632672645153)https://arxiv.org/abs/2608.16370 (from post
2115438632672645153)https://arxiv.org/abs/2603.23525 (from post
2115438632672645153)https://arxiv.org/abs/2604.02985 (from post
2115438632672645153)https://arxiv.org/abs/2608.06370 (from post
2115438632672645153)https://arxiv.org/abs/2607.06906 (from post
2115438632672645153)https://arxiv.org/abs/2603.05344 (from post
2115438632672645153)https://arxiv.org/abs/2307.03172 (from post
2115438632672645153)https://arxiv.org/abs/2512.13564 (from post
2115438632672645153)
Topics¶
Keywords¶
doc, compact, compaction, openai, langchain, caching, memory, context-mode, gemini-cli, codex, copilot, cost, headroom, llmlingua, middleware, overview, rtk, session