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

repoecho

v1.6.0

Published

Verified, branch-aware repository memory for GitHub Copilot CLI

Readme

RepoEcho

Help GitHub Copilot CLI remember your codebase between sessions.

RepoEcho saves concise notes about your repository so Copilot can reuse what it has already learned. Before using a note, it checks the source files for changes. Missing or outdated knowledge is learned again when needed.

The aim is less repeated exploration and more focused context for your task. It works with text-based repositories across languages, with extra guidance for Java, Maven and Gradle.

1. Install once

You need GitHub Copilot CLI and uv. Git is required for Git checkouts and branch tracking. Plain folders can be used without Git. GitHub CLI (gh) is optional.

npm installation (release 1.6.0)

Requires Node.js 22+ and npm in addition to the prerequisites above. The first npm publication is pending maintainer authentication; until then use the ZIP option below or the tested tarball from GitHub Actions.

Once published, install your team's approved version:

npm install -g [email protected] --ignore-scripts
repoecho setup --replace
repoecho --version

npm supplies the command on PATH on Windows, macOS and Linux. Setup copies the bundled skill into Copilot's personal skills folder; it does not download from GitHub. uv supplies Python 3.12 if needed. Node alone does not replace Python. On restricted networks, provision Python through your approved uv mirror or set REPOECHO_PYTHON to an approved Python executable's absolute path.

No npm dependencies or install-time scripts are required. For a corporate npm registry, proxy, certificates, offline installation or migration from the ZIP installer, see npm setup.

ZIP installation (no Node or npm required)

Download this repository using Code → Download ZIP, then extract it. In PowerShell, from the directory containing repoecho-main, run:

uv run --no-project --python 3.12 .\repoecho-main\tools\install.py

Alternatively, if you use Git:

git clone https://github.com/ArvinUbhi/repoecho.git
uv run --no-project --python 3.12 repoecho/tools/install.py

uv finds Python 3.12 and downloads it if needed. Setup installs the complete Copilot skill and a repoecho command. It adds the command folder to your user PATH; open a new PowerShell window before running repoecho status. No extra API key, gh or Python packages are required. You can remove the downloaded checkout afterwards.

Already installed? Add --replace to the install command. Do not add --gh unless GitHub CLI is installed and you want its optional terminal commands.

2. Open your application repository

Open Copilot CLI in the repository you want to work on. Run:

/skills reload

Then ask:

Use /repoecho to learn this repository's architecture, build and main modules.

You can also use it for a specific task:

Use /repoecho to find the shutdown code and help me change it.

Copilot retrieves relevant notes, checks that their sources still match, and learns anything missing before continuing. You do not need to write or manage notes yourself. Follow step 3 to make this your default workflow.

3. Make it automatic

Add this section to AGENTS.md at the root of your application repository if you already use that file. Otherwise, put it in .github/copilot-instructions.md in that repository. Create the file if needed, and preserve existing instructions. Choose one file; you do not need both.

For example: C:\work\my-app\AGENTS.md. Do not put it in the downloaded RepoEcho checkout or the installed skill folder.

## RepoEcho

Use the installed repoecho skill by default for repository questions,
planning, debugging and code changes. Follow its SKILL.md workflow.
Run its repoecho_cli.py through uv with Python 3.12 and an explicit
--root pointing to this repository. No gh or system Python is required.

Use the script for cache queries, source capture, validation, saves and
mode controls. Let it check Git branches, status, diffs and source hashes.
Reuse only content_verified notes. Query again after switching branches.
Respect disabled skill, cache and branch settings; never enable them
without being asked. Learn missing or stale knowledge from current source
and save it through the script. As work progresses, save useful new
source-backed findings at meaningful milestones without waiting to be
asked. Verify saved notes, avoid rewriting unchanged notes, and refresh
relevant notes after edits. Do not read or edit the raw cache database.

Infer the intent of my normal request; do not require workflow names or
note IDs. Use query --compact with my terms plus relevant equivalents. If needed, reformulate
once before investigating source. Save useful alternative phrases in note
aliases so later related requests can find the same knowledge.
Prefer workflow-specific notes and improve them when follow-ups reveal
missing steps or dependencies. A query already validates the cache; avoid
redundant status/inspect/scan calls. Answer explanations directly from
sufficient verified notes; read source when details are missing or unclear.
Keep cache reporting to one short line.
Read current repository instructions and relevant code before editing.
If the helper fails, report it and work from source. When useful, report
which note IDs were reused or refreshed.

For more explicit capture, refresh and failure-handling rules, use the full copyable instructions instead. For a personal default across repositories, put the section in $HOME/.copilot/copilot-instructions.md instead of a repository file.

After adding or editing instructions, start a fresh Copilot session. Changes are not loaded immediately into an active session:

/new
/instructions

Alternatively, exit Copilot and run copilot --continue from your application repository. In /instructions, confirm your chosen file is discovered and enabled. /skills reload reloads skills; it does not replace this instruction refresh step. Saved RepoEcho notes remain available across sessions.

Now ask normally: “Explain the shutdown workflow.” You should not need to keep saying “use RepoEcho”. These instructions guide Copilot; they are not an enforced execution hook.

Check that it is reusing your workflow

In a fresh session, ask:

Explain the workflow we saved for [workflow name]. Report the RepoEcho
note IDs and freshness returned by the script, and learn anything missing.

Look for a relevant saved note marked content_verified. A successful capture alone does not save a note; the skill must also save it with remember. If no valid note exists, Copilot should read the source and refresh its knowledge.

See a per-prompt context estimate

When Copilot reuses a verified note, RepoEcho compares the text length of its captured source files with the compact note text returned. It reports an approximate potential context saving (about four characters per token). For example: RepoEcho: reused shutdown-flow; ~1,200 potential source-context tokens avoided (estimate).

This is a hypothetical comparison for the files behind the note. It does not measure billed Copilot tokens, AIC, thinking time, or the entire repository. Copilot might have opened fewer files without the cache, and learning and validation have costs. With no verified hit, the estimate is zero. repoecho --json query "shutdown" --compact exposes the context_estimate numbers. For actual AIC savings use the matched-run study.

Ask naturally — no workflow names to remember

Ask “What happens when I stop a running job?” or “How does process termination work?” Copilot translates the request into relevant search terms and checks whether the returned notes answer it. You do not need to know that a saved note is called workflow-shutdown.

As it learns, Copilot saves short alternative phrases alongside each note. Related wording can then find the same source-verified knowledge. If the first search is insufficient, it can reformulate once before investigating source and improving the note for next time. It will not assume two operations are equivalent just because their names sound related.

Agents use query --compact to receive verified notes, caveats and source paths without the full hash manifests and scan diagnostics. Validation still runs before anything is returned. The full query output remains available for troubleshooting.

Intent interpretation happens in Copilot; the Python helper searches locally without another model/API call or an embedding service. This improves discovery but does not guarantee every paraphrase will match. Existing notes remain valid and gain aliases as they are revisited—no cache reset is required.

It learns as you work

You do not need to ask it to "remember" every discovery. With RepoEcho in use and caching enabled, Copilot saves useful findings as it investigates workflows, understands components and completes changes. It captures the relevant source, writes a concise note through the helper, and checks that the saved note can be retrieved.

For example, investigating a Java shutdown workflow can add a workflow note; later discovering its configuration dependency can update that same note. Unchanged notes are reused rather than saved again. Learning happens at useful milestones, so it does not require indexing the entire application first or writing after every file read.

Notes focus on individual workflows: their trigger, steps, relevant classes, configuration and failure paths. As follow-up questions reveal missing details, Copilot improves the same note using fresh source evidence. This makes later questions easier to answer without repeating the investigation.

For explanations, sufficient verified notes can provide the answer directly. Copilot still opens source for gaps or ambiguity and always reads current relevant code before edits. The initial query already checks settings and freshness, so routine status/inspect/scan calls and duplicate queries are unnecessary. Cache reporting stays within one short line unless you request diagnostics.

The cache grows through the work you actually do. It is not a background process and does not learn while Copilot is idle. Disabled skill, cache or branch settings stop cache reads and writes. A capture or scan alone is not a saved knowledge note.

Everyday controls — repoecho command

Ask Copilot directly:

Use /repoecho to show its current status.
Use /repoecho to turn caching off.
Use /repoecho to turn caching on, using Python 3.12 through uv.
Use /repoecho only on this branch.
Use /repoecho on all branches.

The skill, cache and branch settings must all be on for caching to work. Enabling the skill leaves a separately disabled cache off. Turning caching off keeps saved notes for later reuse.

From your application repository, open a new PowerShell window after installation and run:

repoecho status
repoecho cache off
repoecho cache on
repoecho branch only
repoecho branch all
repoecho doctor

For direct control in another repository, add --root "C:\path\to\your-app" before the command. repoecho finds the current Git worktree root when called inside one. On macOS/Linux the command is in ~/.local/bin; the installer adds that directory to your shell startup file when needed. The launcher uses uv with Python 3.12, so there is no system Python or gh dependency. Existing PowerShell/Copilot sessions need a new terminal to see PATH changes. If your company restricts PATH updates, install with --no-path and use the absolute script command shown in manual setup.

Optional GitHub CLI controls

If you have GitHub CLI installed, add --gh when running setup (and --replace when updating). Windows also needs sh, supplied by Git for Windows. This registers shortcuts such as gh repoecho status, gh repoecho cache off and gh repoecho branch only.

The generated gh launcher currently requests any Python 3.10 or newer. If uv selects a broken managed interpreter, use the explicit Python 3.12 commands above instead.

Branches and multiple repositories

RepoEcho stores focused, source-linked notes rather than copying your entire repository into each branch's cache. On a large repository, Copilot first queries relevant notes and reads additional source only when the saved knowledge is missing or insufficient. Generated folders and binary files are excluded; selecting focused files and scopes keeps the retrieved context small.

The script uses Git branch, status and diffs to identify changes, then validates candidate notes against source hashes and scope evidence. Uncommitted changes count too. Git helps narrow the work; a clean Git status alone is not proof that a note is valid.

Branch names do not determine whether a note can be reused. Its source evidence does. Within the same checkout:

| What happens | What RepoEcho does | |---|---| | Learn a workflow on main | Save a note with a content-addressed evidence revision. | | Switch to feature with that workflow's files and scope unchanged | Reuse the same revision after validation. No separate copy is needed just because the branch name changed. | | Change unrelated files on feature | Keep reusing the workflow note if all of its evidence still matches. | | Change files or scope that the note depends on | Treat that revision as stale; Copilot reads the changed evidence and saves a refreshed revision when needed. | | Return to main | Reuse the earlier matching revision if it is still retained and within its review lifetime. |

Different revisions of a note coexist, so learning a changed workflow on one branch does not simply overwrite the version learned on another. RepoEcho keeps the latest learned revision for each named branch, plus recent extra revisions (eight by default), and notes have a 30-day review lifetime. A branch return reuses a matching revision without relearning, including when other branches changed the same file. Identical evidence across branches shares one revision. Expired or older extra revisions may need relearning. Reuse also depends on capturing adequate evidence: a note cannot detect dependencies its author omitted.

This avoids repeating the same learning and storage for every branch. Validation still costs file reads/hashing, and broad evidence scopes cost more than focused ones; it does not promise constant-time retrieval for every repository size.

Separate repositories and linked worktrees have independent caches and settings. Cross-branch reuse applies when switching branches within the same checkout, not across separate worktree directories. Generated notes stay in that root's ignored .repoecho/ directory. Do not copy or commit it. Branch-specific controls can disable caching even when a matching revision exists.

To select a repository explicitly:

repoecho --root "C:\path\to\your-app" status

Run this from any directory after opening a new terminal.

For non-Git directories, run commands from the same root directory each time or use --root.

Run a benchmark

repoecho benchmark --files 2000 --notes 20 --runs 5

With the optional gh setup, you can also run gh repoecho benchmark.

This creates a temporary sample repository and measures initial indexing, warm retrieval, change detection and reuse after switching branches. It leaves your repository and cache untouched.

Increase --files or --notes to test larger workloads. Save results for comparison by adding > benchmark.json to the command. The retrieval_output section compares full and compact JSON character counts for the same retrieved note IDs. This measures actual output size, not model token counts. These measurements cover the local cache helper; they do not measure Copilot thinking time or prove a particular LLM speedup.

Measure real Copilot usage

The built-in benchmark measures local helper time and output size. To measure your actual AIC, use the study sheet included with your downloaded RepoEcho checkout. In PowerShell, from the folder containing tools, run:

uv run --no-project --python 3.12 .\tools\usage_study.py init .\usage-study.csv

Replace the five example questions in the CSV with questions about your Java application. For each question, run a fresh Copilot session (/new) with the same model and unchanged repository/commit. Record three modes: off (turn caching off and confirm it), cold (caching on, no relevant note yet), and warm (caching on, relevant note already learned). A repository that already has a relevant note cannot provide a genuine cold run for that question; use another new workflow rather than deleting your useful cache. Turn caching back on when done.

Enter AIC as Copilot displays it, elapsed seconds, number of RepoEcho helper calls, and correct as yes or no. Copy the model name and commit SHA consistently for matched runs. The CSV stays local and is not sent anywhere. Summarize completed matches with:

uv run --no-project --python 3.12 .\tools\usage_study.py report .\usage-study.csv

This reports matched AIC differences, latency, helper calls and answer correctness. It cannot automatically read Copilot's AIC; you enter it from each session. Single runs vary, so repeat questions before drawing conclusions.

A separate retrieval check uses synthetic notes to test whether ordinary questions find the right workflow and whether changed source prevents stale reuse:

uv run --no-project --python 3.12 .\tools\retrieval_eval.py

Update to the latest version

No gh or system Python needed. Your repository's saved notes and cache settings stay in place. Updating the installed skill does not automatically update your AGENTS.md or Copilot instruction file.

Installed with npm

npm install -g [email protected] --ignore-scripts
repoecho setup --replace

Replace 1.6.0 with your team's next approved version (or latest for the newest published release). Then reload Copilot's skills as described below. npm manages the executable; setup refreshes the skill. Both steps are needed. Existing repository caches remain in place. repoecho update explains these commands for npm installations.

Installed with ZIP: update with one command (no Git or gh)

Close Copilot to release the installed skill folder. From a new PowerShell or terminal window run:

repoecho update

The command downloads the latest public GitHub ZIP over HTTPS, extracts it in a temporary folder and runs the installer with --replace. It reports the installed and downloaded MAJOR.MINOR.PATCH versions (repoecho --version shows the installed version). The downloaded ZIP is removed after installation. It uses uv's Python 3.12, not system Python. Your application's .repoecho cache stays in that application directory. Routine RepoEcho updates preserve learned notes across branches. Release numbers, helper code and documentation edits no longer invalidate the cache. On your next query, older notes are automatically upgraded only after their source files and scope hashes match; their original review deadlines stay unchanged. Notes from other branches remain available for verification when you switch back. You do not need to delete the cache or relearn unchanged workflows. Changes to captured files or scope membership, review expiry or an explicitly incompatible cache format can still require refreshing affected notes. Tuning scan frequency, retention or the lifetime for newly saved notes does not invalidate existing knowledge. Exclusions and file-size limits only withhold notes whose evidence is affected.

Work proxy and SSL certificates

The updater inherits HTTPS_PROXY from the PowerShell process that launches it. If your PowerShell profile sets $env:HTTPS_PROXY = 'http://username:[email protected]:8080', start a new PowerShell window so that profile has run, then execute repoecho update. The updater does not print the proxy URL or credentials. If your password contains @, #, : or other URL punctuation, percent-encode those characters in the proxy URL. Avoid putting a password directly in a command argument.

An SSL certificate verification failure usually means the proxy presents a corporate certificate that Python does not trust. Ask your IT team for the corporate root CA in PEM format and run:

repoecho update --ca-cert "C:\path\to\corporate-root-ca.pem"

TLS verification stays enabled. If your company does not provide a PEM file, use the browser ZIP option below; it performs no network request from the updater. The already installed 1.3.0 updater does not yet understand --ca-cert, so use the ZIP option once to install 1.3.1. HTTPS_PROXY must be available in the same PowerShell session where you run repoecho; a setting in a different shell's profile is not inherited.

If your work proxy allows browser downloads but blocks scripted downloads, save the current ZIP in your browser, then run:

repoecho update --zip "C:\path\to\repoecho-main.zip"

If repoecho is not on PATH yet, download and extract the ZIP once, open Git Bash in the extracted repoecho-main folder and run:

bash tools/update.sh

The Bash script accepts --zip /path/to/repoecho-main.zip too. Both commands validate the ZIP layout and refuse a downgrade. If neither PowerShell nor Git Bash can reach the ZIP URL, use the browser download plus --zip option. A proxy that blocks both browser and command line downloads requires the ZIP to be transferred to the machine by an allowed route.

Git installation

Open a terminal inside your RepoEcho checkout, then run:

git pull --ff-only
uv run --no-project --python 3.12 tools/install.py --replace

These commands update the RepoEcho checkout, not your Java/application repository. ZIP downloads cannot use git pull.

For a project-local installation, add --project "C:\path\to\your-app" to the install command. Use the same installation location as before. Add --gh only if you already use the optional GitHub CLI integration and have its prerequisites installed.

Load the update in Copilot

Open Copilot in your application repository, then run:

/skills reload
/skills info repoecho

If you use the automatic instructions from this README, replace only the RepoEcho section in your chosen AGENTS.md or .github/copilot-instructions.md with the current instructions above. Preserve your other instructions. Then run:

/new
/instructions

Check that your instruction file is discovered and enabled. /skills reload reloads the installed skill; /new loads changes to standing instructions. Neither step clears your saved notes.

Finally, ask:

Use /repoecho to show its effective status, then retrieve a saved note
for this repository and report its note ID and freshness.

From a new terminal, repoecho status should also work. If caching is off, that should be reported rather than silently enabled. If no valid note exists, ask Copilot to learn a relevant workflow.

Keep cache storage under control

Each checkout defaults to a 256 MiB database budget, 2,000 note revisions and 128 pending captures. Valid branch history is preserved: reaching a limit stops a new save with an actionable message. Expired entries are cleaned up automatically when RepoEcho next runs its scheduled scan cleanup.

repoecho storage          # Sizes, counts and limits; no source scan
repoecho prune            # Remove expired entries only
repoecho prune --compact  # Reclaim free pages; close other sessions first

The database budget excludes SQLite journal/shared-memory files and temporary compaction space; it is not a hard cap on all disk use. Budgets can be changed in your application's .repoecho.json; see the cache settings.

Warm queries enumerate current paths but inspect only candidate notes' files and scope matches. This reduces work on large repositories while preserving source and branch validation. Broad scopes remain more expensive.

Roll out to a team

Install once per developer, then use the same command in each application repository. Each clone/worktree keeps its own local .repoecho cache; nothing is pooled between developers or repositories. Keep caches on a local disk, outside OneDrive/network shares.

For controlled updates, approve a commit and have everyone install that exact build:

repoecho update --ref YOUR_APPROVED_FULL_COMMIT_SHA

For a ZIP distributed by your team, verify its approved checksum before installation:

repoecho update --zip "C:\Downloads\repoecho-approved.zip" --sha256 YOUR_APPROVED_SHA256

These options require 1.4.0 or later; use the existing browser ZIP update once to upgrade older installations. The checksum must come from your trusted team distribution channel. See the team rollout guide and audit for the 5 → 20 → 100 pilot, proxy setup, measurements and current limits.

Troubleshooting

  • Python fails to start? Run uv python install 3.12, then uv run --python 3.12 python --version before retrying setup.
  • Access denied when replacing the skill? Close Copilot sessions and retry. A folder lock or permissions may prevent replacement. For a project-local installation, use --project "C:\path\to\your-app" instead.
  • Git is required / Git rejected this directory? Restore Git on PATH and resolve Git access first. RepoEcho will not bypass Git ignore rules by silently scanning the filesystem.
  • Caching unexpectedly off? Ask Copilot for RepoEcho status or run the direct status command above.
  • Only AGENTS.md appears in /instructions? You can put the section there. If using .github/copilot-instructions.md, check the exact filename (not .md.txt) and that it is in your application repository, then run /new and /instructions.
  • Command and Copilot behave differently? Run repoecho doctor to identify multiple installations, then compare its paths with /skills info repoecho.
  • Copilot cannot see the skill? Run /skills info repoecho after reloading.
  • Need offline use, team setup or optional gh alias repair? See the setup guide.

More detail

See the changelog for releases and named commits.

RepoEcho checks whether saved evidence has changed; it cannot guarantee that every saved interpretation is correct. Copilot should still read relevant code before editing. Binary files and common generated folders are excluded.

Created for Arvin Ubhi.

License and releases

MIT, copyright 2026 Arvin Ubhi. See release publishing, security reporting and the changelog.