npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@symbioticsec/context-mode-plugin

v0.1.0

Published

Symbiotic plugin adapter for context-mode — context window optimization, sandboxed tool output, FTS5 search, and routing enforcement

Readme

@symbioticsec/context-mode-plugin

Symbiotic adapter for context-mode — context window optimization for AI coding agents.

Features

This plugin brings context-mode's capabilities to Symbiotic:

  • Tool output sandboxing — archives bash/read/grep/glob output (~98% context reduction)
  • Session memory — SQLite-backed event store with resume snapshots across compaction
  • Routing enforcement — blocks or redirects wasteful tool calls (curl, wget, raw grep, etc.)
  • Native ctx_* tools — in-process search, execute, index, and batch tools (no separate MCP child)
  • Native lifecycle hooks — maps tool, prompt, compaction, session-start, and session-stop events directly to Symbiotic
  • Compaction continuity — stores snapshots before compaction, then restores bounded session guidance through session.start
  • Stable routing context — injects <context_window_protection> rules through native session.start

Install

From your project directory:

symbiotic plugin @symbioticsec/context-mode-plugin

Or add manually to .symbiotic/symbiotic.json:

{
  "plugin": ["@symbioticsec/context-mode-plugin"]
}

Routing rules (AGENTS.md)

Copy AGENTS.md into your project root so the model knows context-mode routing before tools get blocked:

cp path/to/symbiotic-context-mode-plugin/AGENTS.md ./AGENTS.md

Hooks still enforce routing without this file; AGENTS.md reduces confusing redirect messages and retries.

Storage

Session events, indexed content, and stats are stored together under Symbiotic's XDG data directory:

${XDG_DATA_HOME:-~/.local/share}/symbiotic/context-mode/

Override the parent directory with CONTEXT_MODE_DATA_DIR. Advanced users may set CONTEXT_MODE_DIR to override the context-mode storage directory directly.

Compatibility

The adapter intentionally pins context-mode because it reuses upstream embedded server internals. Update the pinned version only after the package tests pass.

LCM interop

Symbiotic's built-in LCM plugin has interop.contextMode enabled by default. When both LCM and this plugin are active, LCM's pre-tool routing serves archived tool output on identical repeat calls — matching context-mode's behavior.

Upstream

Based on mksglu/context-mode v1.0.x. The Symbiotic adapter reuses the upstream implementation with Symbiotic-specific config paths.

License

Elastic-2.0 (matching upstream context-mode)