ContextOS: Open-Source Token-Budget-Aware Context Orchestration for Agents
Whyrureadingthisz · reddit · 2026-08-23
The author released ContextOS, an open-source, token-budget-aware context orchestration layer designed for long-horizon LLM agents.
Key Features:
- Differentiates between retrieval and context selection, using hybrid retrieval (Dense + BM25) and Reciprocal Rank Fusion (RRF).
- Implements cross-encoder reranking and deterministic token-budget-aware planning to select which memories enter the context.
- Observability: Records execution traces for each decision, allowing inspection of selection reasons, ranking stages, and context budget consumption.
The project includes an evaluation harness and an interactive demo to visualize the entire pipeline.
More from coding & agent
- raylib 6.2 ships with 300+ improvements and 100 new contributors, 20 new API functions — jsuarez · 2026-10-16
- "Vibecoding" is as misleading a label as "AI" and "SI," dev complains — eschadiol · 2026-10-16
- Doc2Harness: New benchmark finds best coding agent passes only 53% across 329 cases — _akhaliq · 2026-10-16
- Perplexity open-sources SPACE, the Firecracker microVM sandbox behind Perplexity Computer — perplexity_ai · 2026-10-16
- Blackstone goes all-in on Factory for autonomous software development — matanSF · 2026-10-16
- Longtime Windsurf user cancels $10/month legacy plan, citing AI subscription fatigue — tristanbob · 2026-10-16