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

@intentic/iq-recall

v1.326.0

Published

Session recall behind the iq CLI, indexes Claude Code transcripts (node:sqlite) for topic→file amplification and session forking

Readme

iq-recall

Session recall behind iq sessions: indexes Claude Code transcripts so an agent can ask which files past sessions touched for a topic, find a related session, or fork one mid-way.

flowchart LR
    transcripts["~/.claude/projects<br/>JSONL transcripts"] -- "ingest" --> recall(["iq-recall<br/>recall.db"])
    fleet["Daemon conversations<br/>titles · owners"] -.-> recall
    recall -- "files · grab · list" --> iq["iq sessions"]
    recall -- "match" --> hook["prompt hook<br/>suggests a past session"]
    recall -- "fork" --> resume["claude --resume"]
  • The index is a disposable cache beside the search index (.intentic/local/cache/iq/recall.db). Ingest is incremental: unchanged transcripts are skipped and grown ones resume from their stored byte offset. It is also safe to run twice at once (the prompt hook's budgeted pass and the SessionStart background pass overlap): a turn is unique per session, so the second pass stores nothing new.
  • Ranking is purely statistical, with no model calls: BM25 over prompts, responses and titles, recency decay, and inverse ubiquity so files every session touches (package.json) carry no weight.
  • Queries keep only a prompt's content terms: the shared stopwords from @intentic/base/stopwords and a short list of what agent prompts say without naming a topic ("please", "continue", "go ahead") are dropped, by the one tokenizer the FTS query and the match gate both use (src/rank/terms.ts).
  • Prompts are the user's own words. Inside a sandbox the daemon puts notes in front of them (the project map, the checks note), the same few hundred words on every turn, so ingest stores a turn's prompt without them and every query takes them off before it is tokenized. Both use stripInjectedPreamble from @intentic/constants: a text that opens with ## or a dependency notice loses everything up to the first \n\n---\n\n, and any other text is left whole. The index's schema version went to 3 with it, so an older index rebuilds from the transcripts on its next open.
    • 2026-09-29: v3 rebuilds from the transcripts rather than migrating v2 rows in place. On a copy of a live v2 index every row a rebuild dropped was a duplicate (419 of 4,889, left by two ingests racing), and ingest already deletes a session whose transcript is gone, so an in-place migration would have kept nothing the rebuild loses.
    • 2026-09-29: the recogniser matches the note openings rather than holding the daemon's exact header list. Moving the headers to a shared package would have touched a dozen sandbox files, and transcripts still carry notes the daemon has since retired (## Your branch moved onto newer main, 205 turns in one live index), which an exact list would miss. A test in the sandbox (agent/prompt/turn-preamble.test.ts) fails when a header the daemon parses is not recognised here. Measured on a copy of a live index, the preamble had made 39 of 54 real first prompts strong matches; with it off, 17 are.
  • A matched session is strong, the only kind the prompt hook shows the agent, on an absolute scale: the prompt names at least two content terms, and one turn of the session plus its title covers at least half of their IDF weight. The match score orders sessions but is scaled to the query's own best candidate, so it cannot say whether that candidate is any good.
  • forkPoint suggests the turn that keeps the most still-valid context per token; fork writes a new transcript up to a chosen turn, which claude --resume opens.
  • Transcript lines are read tolerantly: unknown shapes and fields pass through as undefined rather than failing the ingest.
  • Inside a sandbox it joins sessions to the daemon's conversation titles; outside one that lookup is empty and nothing else changes.

Key files

Commands

pnpm --filter @intentic/iq-recall test