@rackrot/pi-research1.1.0
Record, search and review research (packages, frameworks, practices, topics) in a local SQLite store with staleness tracking
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
@rackrot/pi-research
Lets the agent record what it learned about a package, framework, practice or topic, and find it again later instead of searching the web every time. Each entry carries its sources, the version researched and the date, so a later search can tell the agent when the answer may be out of date.
Install
pi install npm:@rackrot/pi-research
Restart pi (or run /reload). Needs Node 24 or newer (built-in node:sqlite).
Tools
| Tool | What it does |
|---|---|
research_search |
BM25 and vector search, reranked. Returns summaries with a fresh or STALE flag. Takes versions to flag a version change. |
research_get |
One entry in full: findings, sources, tags. |
research_record |
Saves one or more entries (up to 10). Recording a subject again replaces its entry. Nothing is stored unless every entry is valid. |
research_check |
Looks up the latest registry version of every recorded package and framework. |
registry_info |
Live facts: latest version, publish date, licence, dependents, repository activity, OpenSSF score. |
registry_search |
Candidates from npm, crates.io, NuGet, GitHub or curated awesome lists. Order is the source's, not a quality ranking. |
Only you can delete entries: /research list | show <id> | rm <id> | check | status | timer.
Two skills ship with it: research-recall (search first, read the flags, decide) and
research-record (what to write down and how). They point to efficient-research, fact-check,
dependency-vetting and find-docs from @rackrot/pi-skills and your own skills by name; those
stay where they are.
What an entry holds
A subject is a prefixed key, so the same thing is never stored twice: npm:zod, pypi:requests,
crates:serde, go:github.com/spf13/cobra, nuget:newtonsoft.json, gh:owner/repo for packages
and frameworks, topic:<slug> for everything else. Names are normalised (case, PyPI -/_/.).
kind is package, framework, practice, topic, comparison or other. A package or framework needs
the version researched (or unversioned). The tool, not the agent, sets the date. summary is at most 400
characters and findings at most 8000; control characters are stripped and sources must be http(s).
Entries are global (default) or project, keyed by the git root; a project entry hides a global one for the same subject.
Staleness
Computed on every read, never stored, so changing a TTL re-judges old entries. An entry is STALE when:
- it is older than its
ttlDays(default 90 for packages and frameworks, 180 for topics and comparisons, 365 for practices); or - the version the agent says it is on (
versionsinresearch_search) differs in major, or minor for0.x, or patch for0.0.x; or - the latest version recorded by a check differs the same way, while that check is under 30 days old.
unversioned entries are judged on age only; prerelease suffixes are ignored. A newer minor or patch is shown as a note, not as stale.
Without versions or a recent check only age counts, and the result shows no version reason.
Version checks
research_check, /research check and pi-research check store the latest stable version beside each versioned entry. They
never change when or at which version the research was done, make no model call, and do not retry a failed package for a day.
pi-research check covers every project's entries, and pi-research timer install schedules it as a systemd user timer.
{
"research": {
"email": "you@example.com",
"check": { "schedule": "weekly", "scheduleTime": "03:00", "scheduleDay": "mon" }
}
}
schedule is manual (default), daily, weekly or monthly.
Config
All of it is read from the global config (~/.pi/agent/rackrot/config.json(c)) only. A project file is ignored, because models
name endpoints that receive text and the email is personal data.
research.email: sent to ecosyste.ms in the User-Agent ((mailto:...)) to join its higher "polite" rate limit. Never sent to other hosts. Optional.GITHUB_TOKEN(environment variable): raises the GitHub rate limit; sent toapi.github.comonly.embedding,reranker: default to the sharedretrievalblock (see pi-core), which defaults to local ONNX models (Xenova/bge-small-en-v1.5,Xenova/bge-reranker-base, downloaded once on first use). Override either underresearchto use an external model, with the same fields as skill-index:provider(onnx,http,none),model,baseUrl,apiKeyEnv.
{
"research": {
"embedding": {
"provider": "http",
"baseUrl": "https://api.example.com/v1",
"model": "my-embed",
"apiKeyEnv": "EXAMPLE_API_KEY"
}
}
}
Data and limits
- Entries live in
~/.pi/agent/rackrot/research.sqlite. Unlike the skill and memory indexes this is the only copy, so back it up if it matters:sqlite3 ~/.pi/agent/rackrot/research.sqlite ".backup research.bak". A file from a newer version of this package is refused, not opened. - Registry data comes from ecosyste.ms (package and repository facts, awesome lists; CC-BY-SA-4.0 data, only version strings and counts are kept here) and the npm, crates.io, NuGet and GitHub APIs.
Requests go to a fixed list of hosts with a 15 second timeout, and redirects cannot leave it. ecosyste.ms data can lag the registry by hours or days;
registry_infoshows when it last synced. - Python and Go have no registry search API; use
registry_searchwithecosystem: "awesome"and a topic such aspythonorgo, optionally one repository topic tag askeyword. - Recorded text and registry descriptions come from the web. Tool output labels them untrusted.
- Run the research tools one at a time: a read in the same parallel batch as a record can run before the entry exists.
- A subagent such as
research-analysthas no research tools; the parent searches first and records afterwards.