mksglu

    mksglu/context-mode

    #4 this week

    Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.

    web
    antigravity
    claude
    claude-code
    claude-code-hooks
    claude-code-plugins
    TypeScript
    NOASSERTION
    28.2K stars
    2.0K forks
    28.2K GitHub watchers
    Updated Oct 14, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    Ranks #4 of 1,950 repositories GStars tracks this week (top 1%).

    No releases in the last 90 days; the most recent was 106 days ago, with 111 contributors on GitHub.

    Peaked at #14 in the weekly ranking the week of Oct 4, its best in the past year.

    Use Cases & Benefits

    • Optimizes AI coding agents' context windows by sandboxing tool outputs and reducing context size by 98% across 12 platforms.
    • Enables session continuity with SQLite tracking and BM25 search, allowing agents to resume exactly where they left off without losing context.
    • Use for integrating context window optimization and session tracking in Claude Code plugin marketplace for seamless AI coding workflows.
    • Use for enhancing VS Code Copilot Chat sessions with automatic routing and context compaction to maintain relevant coding context.
    • Use for deploying as a native OpenClaw gateway plugin to manage Pi Agent sessions with automatic hook registration and zero manual configuration.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Other

    GitHub could not identify this license; read the LICENSE file before depending on it.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    • License not identified by GitHub; read the LICENSE file before depending on it.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    The other half of the context problem.

    Used across teams at

    Every MCP tool call dumps raw data into your context window. A Playwright snapshot costs 56 KB. Twenty GitHub issues cost 59 KB. One access log — 45 KB. After 30 minutes, 40% of your context is gone. And when the agent compacts the conversation to free space, it forgets which files it was editing, what tasks are in progress, and what you last asked for.

    Platforms are grouped by install complexity. Hook-capable platforms get automatic routing enforcement. Non-hook platforms need a one-time routing file copy.

    Excerpt from the mksglu/context-mode README on GitHub (NOASSERTION license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Jul 26: +8Aug 12: +8Aug 28: +14Sep 6: +90Sep 7: +222Sep 8: +605Sep 9: +367Sep 10: +281Sep 11: +203Sep 12: +167Sep 13: +261Sep 14: +225Sep 15: +229Sep 16: +166Sep 17: +158Sep 18: +141Sep 19: +136Sep 20: +116Sep 21: +106Sep 22: +45Sep 26: +26Sep 27: +45Sep 28: +42Oct 2: +256Oct 3: +237Oct 4: +166Oct 5: +87Oct 6: +76Oct 7: +70Oct 8: +94Oct 9: +219Oct 10: +269Oct 11: +433Oct 12: +108Oct 13: +567Oct 14: +947

    +9,261 stars over 90 days across 45 snapshot days; best day +947 on Oct 14.

    Forks

    2.0K+659

    Open issues

    357+276

    Compared with peers in Web

    Fastest-growing repositories GStars tracks in this cohort for the week of Oct 11, by 7-day star growth

    mksglu/context-mode compared with Web repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    pbakaus/impeccable80.8K+3.2K754 days ago
    DmNote-App/DmNote3.6K+1.6K7544 days ago
    pingdotgg/t3code27.4K+1.6K75today
    coreyhaines31/marketingskills54.1K+1.4K752 days ago
    clash-verge-rev/clash-verge-rev151.1K+1.4K604 days ago
    mksglu/context-mode28.2K+075106 days ago
    Category median54.1K+1.6K75—

    Discover Repositories

    Search across tracked repositories by name or description