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

godelcli

v0.1.1

Published

npx installer for the verification compiler: uv, elan, the repository, its Python environment, the Lean corpus and the Claude Code recorder hooks

Readme

godelcli (the npx installer)

Note: The old scoped package name @polymorphic-search/godel-cli is deprecated. Use godelcli instead.

One command puts everything on a machine that verifying a coding agent's work needs:

npx godelcli@latest

Nothing else is asked of you: no Python to pick, no Lean toolchain to install, no settings file to edit by hand. The installer needs node >= 18 (npx brings it), git, curl and a POSIX shell — macOS or Linux, or Windows inside WSL.

What it does, step by step

Each step is skipped, out loud, when its result is already there, so running the command twice is safe and the second run tells you what it found.

  1. platform check. linux or darwin. On Windows the whole plan is refused by name and points at WSL: every step below is a POSIX shell command and the recorder installs its hooks into ~/.claude/settings.json.
  2. uv — curl -LsSf https://astral.sh/uv/install.sh | sh. uv then downloads its own managed Python 3.12, so no system Python is touched. The shell rc is not modified; ~/.local/bin and ~/.cargo/bin are put on the PATH of the later steps that need them.
  3. elan — curl -sSf https://elan.lean-lang.org/elan-init.sh | sh -s -- -y --default-toolchain none --no-modify-path. --default-toolchain none on purpose: the only Lean that gets installed is the one the repository pins in lean-toolchain, and elan's lake shim installs exactly that in step 6.
  4. the repository at <home>/verification-compiler: git clone --branch <ref> <url> <dir> when the directory is absent, else git -C <dir> fetch origin <ref> followed by git -C <dir> checkout --detach FETCH_HEAD. The checkout is always detached at FETCH_HEAD: one rule for a branch, a tag and a bare commit alike, and a detached checkout cannot quietly diverge from the ref you asked for.
  5. uv sync in the checkout — the Python environment, test tools included, so the checkout can run its own suite.
  6. lake build in the checkout, with ~/.elan/bin on PATH. This is where the pinned toolchain is downloaded and the Lean corpus is built. It is the longest step of the install.
  7. the recorder hooks — uv run python scripts/install_recorder.py --harness claude-code (plus --allow-agent-plans when you asked for it). This writes the vc-hook / vc-inject / vc-guard entries into ~/.claude/settings.json. The hook command is uv run --project <checkout> vc-hook, which is why the checkout has to stay where it is: move or delete it and the recorder stops recording.
  8. <home>/traces is created, and <home>/install.json is written: {repoUrl, ref, commit, home, allowAgentPlans, lean, installedAt}. The commit is read back out of git after the checkout exists — the installer records the commit it got, never the one it hoped for, and writes null with a printed warning when git cannot say.

Flags

| flag | what it does | | --- | --- | | --allow-agent-plans | install the hooks in the mode that asks the agent for its plan before its first edit. Passed straight through to scripts/install_recorder.py. | | --dry-run | print every step's command and run nothing. Writes nothing, creates nothing. | | --home DIR | where everything goes (default $VC_HOME, else ~/.vc): the checkout at DIR/verification-compiler, traces at DIR/traces, the manifest at DIR/install.json. | | --ref REF | branch, tag or commit to check out (default main). | | --repo-url URL | where to clone from (default the repository named in package.json's config.repoUrl). | | --skip-lean | skip elan and lake build. No verdict can be produced then — the verdict comes from the Lean kernel, so this leaves an installation that records a session and cannot check one. | | --yes | accepted and ignored; this installer never prompts. | | --help | the same list, from the binary. |

Subcommands: install (the default) and doctor.

Exit codes: 0 done, 1 a step failed (the message names the step and says to re-run — finished steps are skipped), 3 a refusal (unknown flag, unsupported platform). doctor exits 1 when a component is missing.

What it writes, and where

~/.vc/                           (or $VC_HOME, or --home DIR)
  verification-compiler/         the checkout: the hooks point at it by path
  traces/                        the recorder's hash-chained session traces
  install.json                   what was installed, from where, at which commit
~/.claude/settings.json          the vc-hook / vc-inject / vc-guard hook entries
~/.local/bin, ~/.cargo/bin       uv (its own installer's choice)
~/.elan/                         elan and the pinned Lean toolchain

Your shell's rc files are not touched.

One consequence of that, if you pass --home something other than ~/.vc: the recorder's own default trace directory is ~/.vc/traces and a hook entry carries no environment, so export VC_TRACE_DIR=<home>/traces in your shell. The installer prints exactly that line when your home is not the default, rather than leaving you with a trace directory nothing writes to.

Checking an installation

npx godelcli@latest doctor

One line per component — node, uv, elan and the pinned toolchain, lake, the repository and its commit, .venv, the Lean build, the hook entries in ~/.claude/settings.json, the trace directory — each ok or missing with the path it looked at. Exit 0 when every line is ok, else 1, so CI can gate on it.

The lake line is asked of PATH only, and it is the one line this installer cannot fix for you. Every verdict and every re-check spawns a bare lake env lean with the environment it inherited, so a toolchain installed under ~/.elan/bin and absent from the shell's PATH is a machine that can neither produce a verdict nor recheck a certificate somebody else produced. When the shim is in elan's own directory the detail prints the line that fixes it (export PATH="$HOME/.elan/bin:$PATH"); this installer never edits a shell rc.

After installing

Work with Claude Code as usual; the hooks record the session. Then:

uv run --project ~/.vc/verification-compiler \
  verify-work --repo /path/to/your/project --session <session_id>

Exit codes there are the verifier's: 0 proved, 1 refuted, 2 unknown, 4 conditional.

Uninstalling

There is no uninstall command, because there is nothing to be clever about:

  1. Delete the vc-hook, vc-inject and vc-guard entries from ~/.claude/settings.json (they are the hooks entries whose command contains those names; everything else in that file is yours and the installer never touched it).
  2. rm -rf ~/.vc (or your --home), which removes the checkout, the traces and the manifest.
  3. uv and elan are general-purpose tools installed in their own standard way; remove them with rm -rf ~/.elan and uv's own uv self uninstall if you want them gone too.

Trust

The verification-compiler enforces four trust rules:

  1. Agent never grades itself — recording and validation are independent processes.
  2. Traces live outside the repo — default ~/.vc/traces prevents self-modification.
  3. vc-validate ≠ verify-work — vc-validate independently re-checks certificates, sharing no code with the producer. Validation proves the obligations were checked by the kernel against the recorded trace; it does not prove the work is correct or complete, only that it satisfies the plan's stated constraints.
  4. --skip-lean cannot produce kernel verdicts — verdicts come from the Lean kernel, so --skip-lean installations can record sessions but cannot check them.

Publishing

For maintainers with npm publish access:

The package is configured for publication to the npm registry. To publish a new version:

  1. Update the version in package.json following semantic versioning.
  2. Ensure all tests pass: npm test
  3. Publish to npm: npm publish --access=public

The NPM_TOKEN secret is required for automated publishing via GitHub Actions (see .github/workflows/npm-publish.yml).

Deprecating the old scoped package

After successfully publishing godelcli, maintainers with access to the old scoped package should deprecate it:

npm deprecate @polymorphic-search/godel-cli@"*" "Use npx godelcli@latest instead"

Developing this package

cd npm
node --test "test/**/*.test.js"

The tests spawn nothing except node bin/vc.js --help, one dry run of the real binary, npm pack --dry-run and a two-line sh that kills itself (the case where a command dies by signal): the planner (lib/plan.js) and the doctor (lib/doctor.js) are pure functions over a probed state, and the executor (lib/run.js) takes its spawn and its file write as parameters, so every branch of the installer is checked without installing anything. tests/test_npm_package.py runs that suite from the repository's Python suite as well.