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

greplica

v0.1.4

Published

Long-term, searchable AGENTS.md for coding agents.

Readme

Long-term, searchable AGENTS.md for coding agents

Keep AGENTS.md small. Put the rest of the agent's repo memory in Greplica.


AGENTS.md works because coding agents need project context. But the useful context quickly grows past what belongs in a short, always-read instruction file: architecture decisions, workflow notes, repo-specific gotchas, evaluation results, implementation history, and follow-up work.

Greplica keeps that deeper engineering context in local repo memory. Your agent can fetch the pieces it needs for the current task instead of rereading everything or rediscovering the codebase from scratch.

| AGENTS.md | Greplica | | --- | --- | | Always read by the agent | Queried only when relevant | | Best for stable instructions | Best for deeper engineering context | | Should stay short and high-signal | Can hold architecture notes, decisions, evals, and gotchas | | Maintained manually | Maintained through bundled agent skills |

Agent Quick Start

Most users should not install Greplica by hand. Paste this into your coding agent from inside the repo you want Greplica to remember:

Greplica requires Node.js 22-26.

Install Greplica for this repo.

Run:

```bash
npm install -g greplica
greplica install --platform <codex|claude|opencode> --embedding local
```

Use the platform matching this agent. Do not manually copy skills. After installation, summarize the installer output, including whether hooks were installed and whether I need to accept or trust them.

After that, the normal workflow is:

| Step | Ask your agent | What happens | | --- | --- | --- | | 1 | Use greplica-bootstrap for this repo. | Creates the first repo memory map. | | 2 | Work normally | The agent can query greplica graph context "<question>" before broad exploration. | | 3 | Accept hooks, or run Use greplica-update-working-memory for this session. manually | Durable decisions, constraints, changed flows, and follow-ups are saved. |

Install the CLI:

npm install -g greplica
greplica install --platform <codex|claude|opencode> --embedding local

That gives the next agent a better starting point: not just files on disk, but remembered decisions, constraints, flows, and follow-up work.


What Gets Stored?

Greplica is for engineering context that is useful later but too detailed for an always-read prompt:

  • architecture and service boundaries
  • command and workflow behavior
  • repo-specific conventions and gotchas
  • decisions made during implementation
  • constraints, rejected alternatives, and future work
  • eval results and benchmark notes
  • code anchors that tell future agents where to inspect first

The goal is not to replace source code or documentation. The goal is to give agents a durable map of what matters and where to look next.

How It Works

Greplica is intentionally split into three layers:

| Layer | Responsibility | | --- | --- | | CLI | Detects the current repo, stores memory locally, and exposes graph commands. | | Skills | Define agent workflows such as bootstrapping repo memory and updating working memory after a session. | | Retrieval | greplica graph context "<query>" returns relevant claims, components, and flows for the current task. |

Memory is stored in SQLite under ~/.greplica/graph.db by default. Local embeddings run in-process by default and cache model files under ~/.greplica/models. OpenAI embeddings are also supported when configured.

Graph context search blends multiple retrieval signals, including embeddings, BM25, exact matching, and graph relationships. The output is designed for coding agents: concise enough to fit into the task, but grounded enough to point at the right files and prior decisions.

Evals And Benchmarks

Greplica includes evals for the workflows that matter most:

  • bootstrapping repo memory
  • graph context retrieval
  • working-memory updates from real sessions
  • proposal validation and apply behavior

The search eval scores greplica graph context retrieval with Precision@10, Recall@10, MRR@10, nDCG@10, and GradeRecall@10.

| Eval | Latest local result | | --- | --- | | npm run eval:search-current | Passed, 80.59 / 100 | | P@10 | 0.550 | | R@10 | 0.782 | | MRR@10 | 0.985 | | nDCG@10 | 0.802 | | GradeRecall@10 | 0.828 |

Broader context-retrieval benchmarking, including SWE-Context benchmark work, is ongoing and showing promising early results. We will publish those numbers when the harness and methodology are stable enough to compare fairly.

Roadmap

  • Codex, Claude Code, and OpenCode plugins so Greplica can be installed and used as a first-class agent integration.
  • Review UX for memory updates before the agent applies them.
  • SWE-Context benchmark coverage and sharper retrieval evals for real coding tasks.

Commands

greplica install --platform codex|claude|opencode --embedding local|openai
greplica init [--local|--openai]
greplica config
greplica doctor [--check-embeddings]
greplica graph read
greplica graph context "<query>" [--json|--debug]
greplica graph export <dir>
greplica proposal validate <proposal.json>
greplica proposal apply <proposal.json>

greplica graph context "<query>" prints concise Markdown for coding-agent use. Use --json for compact structured output, or --debug for the full retrieval payload with ranking signals and embedding status.

greplica automatically prepares memory state when commands run, so users should not need a separate init step.

greplica doctor is for install verification and diagnosing failures, not a required preflight before every Greplica command.