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

apsolut-cortex

v0.5.6

Published

Persistent memory for Claude Code projects — stores corrections, decisions, and patterns across sessions

Readme

apsolut-cortex

Persistent memory for Claude Code projects.

Stores corrections, decisions, and patterns across sessions so Claude stops repeating the same mistakes and forgetting what you decided last week.


Roadmap (Phase 2)

  • [x] M0 — Pre-flight: namespace rename (~/.apsolut/~/.apsolut-cortex/) ✅, bun:test setup, migration system, CHANGELOG, docs scaffolding
  • [ ] M1 — Eval harness: golden set, eval run command (hit rate + MRR), shadow mode, baseline snapshots
  • [ ] M2 — Retrieval audit log: JSONL retrieval logging, correct command for labeling misses
  • [ ] M3 — Encryption + backup: libSQL-native encryption, OS keychain key storage, backup / restore commands, nightly rotation
  • [ ] M4 — Range-linked memories: raw_messages table, source ranges on memories, memory_recall MCP tool
  • [ ] M5 — Visibility layer: Obsidian markdown export, promote / demote / tag / grep / delete CLI commands
  • [ ] M6 — In-session compression: PostToolUse async observer, PreCompact hook, buffer/spill system, reflector layer
  • [ ] M7 — Provider-agnostic routing: Vercel AI SDK, token-tiered model routing, multi-provider health checks
  • [ ] M8 — Simplification pass: env var audit, trust tier collapse (4 → 2), taxonomy audit

Full plan: docs/PHASE2-BUILD-ORDER.md


npm version license

Install

npm i -g apsolut-cortex

Then in any project:

cd your-project
apsolut-cortex init

Restart Claude Code. Done.

Dev setup (contributors)

git clone https://github.com/apsolut/apsolut-cortex.git
cd apsolut-cortex
bun install && bun run build
npm link

How it works

Everything is automatic. Hooks fire on every Claude Code session:

Session start:

  • Last session summary injected
  • Top relevant memories loaded
  • First session shows onboarding guide

During sessions:

  • Tool failures captured and stored
  • Config file reads noted as discoveries
  • Transcript scanned for self-corrections when Claude stops

At session end:

  • Observations compressed into memories via Claude Haiku
  • Fallback: Ollama if no API key
  • Session summary stored for continuity
  • Stale memories decay, low-value ones pruned over time

On demand (slash commands):

  • /apsolut-recall <topic> — search memory
  • /apsolut-store <content> — save something explicitly
  • /apsolut-status — show memory stats
  • /apsolut-forget <topic> — delete a wrong memory

MCP tools Claude can call

| Tool | When | |------|------| | memory_search(query) | /apsolut-recall or Claude is uncertain | | memory_store(content, category, tier) | After a decision or discovery | | memory_rate(id, score) | After using a retrieved memory (0–3) | | memory_contradict(id, correction?) | When a memory is wrong | | memory_status() | Overview of what's stored |


Compression providers

Set one of these or cortex will fail loudly at session end:

Option 1 — Anthropic API

export ANTHROPIC_API_KEY="sk-ant-..."

Option 2 — Ollama (free, local, private)

ollama pull qwen2.5-coder:7b
ollama serve

Override model: APSOLUT_CORTEX_OLLAMA_MODEL=llama3.1 Override host: OLLAMA_HOST=http://localhost:11434


Commands

apsolut-cortex init        # set up memory for this project
apsolut-cortex status      # show what's stored
apsolut-cortex uninstall   # remove hooks and MCP config

Storage

~/.apsolut-cortex/
  ├── memory.db       ← all memories, all projects, SQLite
  ├── registry.json   ← project registry
  └── models/         ← embedding model cache (downloads once)

All projects share one DB, namespaced by project UUID. No data leaves your machine except what you send to the Anthropic API for session compression.


Memory trust levels

observedvalidatedprovencanonical

Starts at observed. Promoted automatically as memories prove useful. Canonical memories never decay.


Configuration

All env vars use the APSOLUT_CORTEX_ prefix. Defaults work well out of the box.

Duplicate detection

  • APSOLUT_CORTEX_DUPLICATE_THRESHOLD0.92 — cosine similarity for dedup

Memory decay

  • APSOLUT_CORTEX_DECAY_DAYS7 — days before unused memories decay
  • APSOLUT_CORTEX_DECAY_OBSERVED0.95 — weekly decay for observed-trust
  • APSOLUT_CORTEX_DECAY_VALIDATED0.98 — weekly decay for validated-trust
  • APSOLUT_CORTEX_PRUNE_WEIGHT0.1 — weight below which memories are pruned

Search & ranking

  • APSOLUT_CORTEX_RRF_K60 — RRF fusion constant
  • APSOLUT_CORTEX_MMR_LAMBDA0.7 — relevance vs diversity (0–1)
  • APSOLUT_CORTEX_SEARCH_LIMIT_MAX10 — max results returned
  • APSOLUT_CORTEX_SEARCH_MULTIPLIER2 — overfetch multiplier

Weight updates

  • APSOLUT_CORTEX_WEIGHT_ALPHA0.3 — EMA alpha for weight updates
  • APSOLUT_CORTEX_PROMOTE_WEIGHT1.4 — weight threshold for promotion
  • APSOLUT_CORTEX_PROMOTE_USES3 — use count for promotion
  • APSOLUT_CORTEX_BUMP_BOOST0.1 — weight bump on duplicate
  • APSOLUT_CORTEX_WEIGHT_CAP3.0 — max weight

Memory creation

  • APSOLUT_CORTEX_CORRECTION_WEIGHT1.5 — initial weight for corrections
  • APSOLUT_CORTEX_MANUAL_WEIGHT1.2 — initial weight for manual stores

Compression

  • APSOLUT_CORTEX_OLLAMA_MODELqwen2.5-coder:7b — Ollama model
  • OLLAMA_HOSThttp://localhost:11434 — Ollama server URL