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

knowyou

v0.1.3

Published

A small, local memory layer for AI agents

Readme

knowyou is a non-intrusive, agent-agnostic memory layer for Pi, Codex, Claude, and Grok. It runs in the background, distilling and consolidating session context into shared Markdown—so every agent knows why it is here, what matters next, and how you like to work.

knowyou asynchronous data flow: supported agent sessions flow through token-bounded scan slices, serial observations, consolidation, and shared Markdown memory

Quick start

Requires Pi to be installed and working. Pi runs the background distillation; session adapters cover Pi, Codex, Claude, and Grok.

npx knowyou@latest start
npx knowyou@latest stop

start registers the background job; stop removes it.

If you want an agent to read the memories, add these lines to its global instructions file—for example Pi’s ~/.pi/agent/AGENTS.md, Codex’s ~/.codex/AGENTS.md, or the equivalent file for another agent:

- Read ~/.knowyou/INDEX.md for recent observations
- Read ~/.knowyou/MEMORY.md for durable memory and preferences
- Search ~/.knowyou/journals/ by keyword when older context is needed
- Never edit, delete, or write files under ~/.knowyou/

Persistent memory

The OS runs knowyou periodically. There is no resident server or database—just durable files under ~/.knowyou/:

~/.knowyou/
├── INDEX.md             # recent observations, one line per entry
├── MEMORY.md            # consolidated long-term memory and preferences
├── observations/       # new distilled memories waiting to be consolidated
├── journals/            # older memory moved out of MEMORY.md
├── .state.json          # incremental scan watermarks and run state
├── config.yaml          # optional settings and overrides
└── launchd.log          # background job output

Defaults and configuration

Here, agent means the background Pi runner that distills observations and consolidates memory—not the agents whose sessions are being read. No knowyou configuration is required when Pi works; it uses the model and reasoning effort configured in your Pi agent by default.

To override only the settings you care about, create ~/.knowyou/config.yaml:

agent:
  model: provider/model       # optional; otherwise Pi's default
  thinking: medium            # optional; otherwise Pi's default

scan:
  windowDays: 7
  minNewTokens: 20000         # estimated raw transcript tokens before preprocessing
  maxNewTokens: 200000        # estimated raw tokens per session slice
  redactSecrets: true

observe:
  # each slice is compacted to <=10K tokens and observed alone;
  # the complete observation request stays below 12K

consolidate:
  triggerObservations: 30
  maxMemoryChars: 20000

Token counts are estimates using UTF-8 bytes divided by four. Each scan slice is compacted deterministically to at most 10K estimated tokens, then observed in its own serial Pi call; instructions and metadata keep the complete request below 12K.

Check the current state with:

npx knowyou@latest status

Repository E2E tests always use the real Pi provider and local real-session corpus:

npm run test:e2e

Reviewable redacted compacted traces, observations, memory, journals, state, corpus receipts, and CLI logs are written to the gitignored e2e-results/ directory. Raw session files remain in their original harness stores and are never copied there.

All state stays under ~/.knowyou/. Model requests go through Pi and its normal provider/authentication.

Supported sessions

  • Pi
  • Codex
  • Claude
  • Grok