AIAny
Icon for item

Context Mode

Dramatically reduces AI agents' context usage by sandboxing large tool outputs and indexing only relevant snippets into a searchable SQLite FTS5 (BM25) knowledge base, improving session continuity and privacy. Deploys cross-platform hooks and sandbox tools to cut context size by ~98% and avoid dumping raw logs into the model's window. ([github.com](https://github.com/mksglu/context-mode/blob/main/README.md?utm_source=openai))

Introduction

Why this matters

Large LLM-driven coding sessions quickly exhaust context windows when tools (Playwright, CLI dumps, logs, web fetches) stream raw output into the conversation. That forces frequent compaction and loses in-progress edits, tasks, and decisions. Context optimization therefore isn't just an efficiency problem — it's a continuity and correctness problem for agent workflows. Context Mode solves this by moving heavy processing out of the context window and into a local, sandboxed MCP server that indexes results for on-demand retrieval. (github.com)

What Sets It Apart
  • Sandbox-first tooling: tool calls run in isolated subprocesses; only stdout (or intent-filtered snippets) re-enters the conversation, preventing large dumps like Playwright snapshots or access logs from overflowing the model context. This yields benchmarked savings such as a ~99% reduction on snapshots and ~98% on multi-issue dumps. (github.com)

  • Indexed, relevance-driven retrieval: raw outputs are chunked and stored in a local SQLite FTS5 index with BM25 ranking, Porter stemming, trigram fallback, proximity reranking, and fuzzy correction — the model only receives concise, highly relevant snippets via BM25/RRF merging rather than raw files. (github.com)

  • Session continuity across compaction: platform hooks capture file edits, git ops, errors, and user decisions into the DB and build compact session snapshots so the agent can resume without re-prompting after context compaction. The project provides adapters/configs for major agent platforms and a small set of sandbox MCP tools (execute, execute_file, index, search, fetch_and_index, batch_execute). (github.com)

Who it's for — and trade-offs

Great fit if you run LLM-driven code workflows or integrate AI coding agents into developer tools and want to preserve session state, reduce token usage, and keep sensitive outputs off the context stream. It benefits teams using Claude Code, Gemini CLI, VS Code Copilot, Cursor, OpenCode, and similar platforms (adapters and hooks available or planned). (github.com)

Look elsewhere if you need a hosted/cloud service (Context Mode is local, ELv2-licensed and privacy-first) or prefer a pure UI application — this is protocol-level infrastructure intended for embedding at the MCP/hook layer, not a front-end chat product. Also expect some setup when adding adapters for niche platforms. (github.com)

More Items

GitHub

Indexes full text of visited web pages and local files on a self‑hosted server so you can search your personal knowledge from a web UI, terminal, CLI, or an AI assistant. Runs without mandatory telemetry, offers a browser extension for automatic capture, and supports optional semantic search via a configurable embeddings endpoint.

GitHub
AI Agent2026

Provides a ruleset and skills that make AI coding agents prefer the simplest correct implementation: reuse existing code, prefer stdlib/native features, and only write minimal new code. Cuts generated LOC, tokens, cost and time while preserving validation and safety.

GitHub

A read-only mirror of Anthropic's community plugin marketplace for Claude Cowork and Claude Code, listing vetted third-party plugins in a nightly-synced marketplace.json. Intended for discovering and installing community plugins via the Claude plugin system.