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

@vibo-dev/context-compactor

v1.1.7

Published

Condense long agent sessions into compact handoff memos: decisions, tasks, risks, facts. Credential values auto-redacted. EN/RU, zero dependencies, Python 3.8+.

Readme

🧠 Context Compactor

SkillQA CI License: MIT npm

Condense a long agent session into a handoff memo — decisions, open tasks, risks, facts — without losing what matters.

Every agent developer knows the pain: your session grows to 200k tokens, context gets compacted, and the important stuff vanishes — the decision you made, the task you promised, the URL you need tomorrow.

Context Compactor reads a raw transcript (txt/md, any language mix of Russian/English) and produces a compact handoff memo grouped into:

  • ✅ Decisions — what was actually decided
  • 📌 Open tasks — what still needs to be done
  • ⚠️ Risks — blockers, broken things, dependencies
  • 🔗 Facts & links — URLs, handles, versions

Safety first: credential values are redacted

Handoff memos travel to other agents and files. Context Compactor therefore redacts credential values before scoring: password, token, api key, secret, private key, sk-…/ghp_… tokens, JWTs, URL-embedded credentials and PEM key blocks become <REDACTED: …>. The decision/context around them is kept — the secret value is not.

⚠️ Redaction is best-effort pattern matching, not a guarantee. Review generated memos before sharing them, especially when transcripts may contain credentials, tokens, private URLs or other sensitive details. For conservative output use --strict (whole suspect lines are dropped). --self-test asserts the covered cases (incl. URL creds, JWT, Cyrillic, PEM blocks larger than 600 chars).

Why you need it

  • Survive context compaction: paste the memo back into the next session.
  • Hand work to another agent (or a human) without dumping 500KB of transcript.
  • Daily session digest in one command.

Install

# direct (recommended — runs the reviewed source)
python3 compactor.py --input session.md

# npm — pinned release, version-synced with this repo (any OS with Python 3.8+).
# The package ships the exact reviewed source: compactor.py, the bin/ wrapper and
# SKILL.md (see package.json "files"). npx asks for confirmation before downloading.
npx @vibo-dev/[email protected] --input session.md

# ClawHub / OpenClaw registry: install "context-compactor-cli"
# GitHub: clone this repo

Quick start

git clone https://github.com/vnbochkarev-netizen/context-compactor
cd context-compactor

# Condense a session transcript
python3 compactor.py --input session.md

# Save to a handoff file for the next session
python3 compactor.py --input session.md --output handoff.md

# Verify the tool itself
python3 compactor.py --self-test

No dependencies. Python 3.8+. Works on Linux/macOS.

How it works

Heuristic line scoring (no LLM, no API costs, runs offline):

  • Decision verbs: "decided / agreed / we will" (Russian equivalents are covered)
  • Task markers: "todo / next step / don't forget" (Russian equivalents covered)
  • Risk words: "broken / blocker / depends on" (Russian equivalents covered)
  • Links, handles and version-like facts get boosted
  • Code dumps, tool output and noise are filtered out
  • Bucketing is context-aware: "agreed, link: " is a fact, not a decision; strong verbs ("decided" and Russian equivalents) always win
  • Long transcripts: the head AND the tail are analyzed (final decisions usually sit at the end); skipped middle is counted and reported in the memo header, which also carries the tool version, date and source file

Example memo

# Handoff memo (auto-compacted)

## ✅ Decisions
- decided to build skill-injection-scanner in Python, MIT-licensed
- agreed: we publish tomorrow

## 📌 Open tasks
- need to run the tests before publishing

## ⚠️ Risks
- risk: without tests there will be many false positives

## 🔗 Facts & links
- project repo: https://github.com/vnbochkarev-netizen/skill-injection-scanner

Use cases

  • Handoff files after context compaction (Hermes, Claude, OpenClaw, Codex…)
  • Agent-to-agent handoff — pass the memo through an agent bridge
  • Daily digests — what did we actually do today?

License

MIT © 2026 Viacheslav Bochkarev