Repository navigation
Releases
v0.7.2
v0.7.1
v0.7.0
zerograph 0.7.0
The release notes for the GitHub release page. The why behind each change is in the docs each line
links to.
Breaking
zerograph watchis removed. It ran the same poll asservewithout answering anything, and
every MCP tool now refreshes before it answers, so it was one more process per worktree and one
more writer. A script or service that startszerograph watchnow fails with an unknown-command
error: startzerograph serveinstead, which polls the tree between questions with the same
--everyand--batch.serveexits after--idleseconds without a question (30 minutes by
default), so a poller meant to stay up names a longer one, such as--idle 86400
(serve).install-agentwrites no git hooks, and removes the block an earlier release wrote. The
post-merge/post-checkoutblock lived in the common.git/hooks, so everygit worktree add
started a full embed. A re-run deletes the block and keeps the rest of each hook file; a file left with only its shebang is deleted. Every read already refreshes, and
servecatches up when it starts. Git hooks remain an option, written by hand
(keeping fresh).install-agent --claudeand--codexinstall a plugin, and take out what earlier releases
wrote. The plugin is now the only way zerograph wires into Claude Code and Codex: it starts the
MCP server, runs the session hook and carries the commands.--clauderunsclaude plugin marketplace add devmaxxx/zerograph,claude plugin marketplace update zerograph,claude plugin install zerograph@zerographandclaude plugin update zerograph@zerograph;--codexruns
codex plugin marketplace add devmaxxx/zerograph --ref v0.7.0andcodex plugin add zerograph@zerograph, re-adding the marketplace when it was pinned to an older tag. A re-run after
a binary upgrade moves either plugin to the binary's release.
Once the plugin is in, the run removes the local-scope MCP servers in~/.claude.jsonfor the
checkout and its worktrees, the hook entries in.claude/settings.jsonand$CODEX_HOME/hooks.json,
the copied hook script, thezerographandrepo-queryskills, therepo-scoutsubagent and the
instructions stanza inCLAUDE.mdorAGENTS.md; an edited file is left and named, a hook
script stays until the entries that run it are gone, and a file git tracks is left for the team
until--retire-repoasks for it. Where the CLI
is missing it prints the commands and changes nothing.--commandno longer reaches Claude Code
or Codex: the plugins runzerograph(install).- Nothing from before the repograph rename is read any more: no
.repograph/store,repograph.toml,~/.config/repograph/,~/.cache/repograph/orREPOGRAPH_*variable, andinstall-agentno longer retires therepographhook, stanza or MCP server. - The session hook no longer runs a binary from the checkout it starts in. It used
<checkout>/node_modules/.bin/zerographwhen nothing else was found, so a cloned repository that
committed one got it spawned as soon as a session started there; the Claude Code mod also tried
target/{release,debug}under the checkout. The hook and the mod now take the binary from
ZEROGRAPH_BINorPATHonly, and skip aPATHentry inside the checkout, compared as spelled
and with every link followed. A project that installs zerograph as a dev dependency and has no
global install setsZEROGRAPH_BINto that binary's absolute path (install). - The
servesocket moved to~/.cache/zerograph/sock/<hash>.sock, the hash of the canonical
checkout path, from.zerograph/serve.sockor the temporary directory for a deep checkout. One
rule now holds for every checkout depth and every$TMPDIR, which two processes of one user could
disagree on. The private$TMPDIR/zerograph-<uid>/is the fallback only when the path would not
fit insun_pathor there is no absolute home directory.zerograph statusprints the socket it checked,
andstatus --jsoncarries it asserve.socket, for a tool that looks for a server on its own
(serve).
New
- A machine-wide vector cache. A vector depends only on the model, the hub commit its files
were fetched at, its width and the row's text, so every embed is written to~/.cache/zerograph/vectors(%LOCALAPPDATA%\zerograph\vectors
on Windows), and a dense sync reads the rows it is missing from there before it embeds anything.
A row any checkout on the machine embedded once, whether a worktree, a clone or a fork, is a read
for the rest. On the zerograph repository with e5-small, a cold build took 41.9 s. A new worktree
at the same commit then built in 1.52 s, and so did an independent clone, which took
56 s before. A worktree 30 commits back took 6.33 s, with 3979 rows
read and 590 embedded. Edit→ask p90 stayed at 120 ms against 121 ms, and the top-5 was identical
on 10 of 10 questions. Only rows this user embedded on this machine enter the cache: a store's
vectors.f32is never imported. The directory is private to the user, readers take no lock, and
a torn or corrupt record is skipped, never returned. Anaskreads at most 32 of the cache's
shards, the fullest first, since it reads each whole before its budget is weighed; the rows it
did not look up are embedded when they fit its budget and otherwise left to the refresh it starts (keeping fresh,
bench). zerograph cache status|prune.statusshows the cache's rows and bytes per model and
revision.prunetrims it to 80% of its cap, least recently used first, or empties it when the
cap is 0. Every prune also drops repeated and torn records, so one under the cap can still report
rows removed; its line says how many went for each reason (commands).vector_cache_maxcaps the cache at4Gby default;0turns it off. Only the machine
config can set it, not a repository'szerograph.toml. A write that takes the cache over the cap
starts a prune in a background process, at most once every 10 minutes per process, so a
long-livedserveor MCP server keeps the cap too (configuration).
ZEROGRAPH_VECTOR_CACHEmoves the cache for one run; on Unix it is refused under a directory
another user could change.- The session hook builds a checkout that has no index, in the background, when the checkout
opted in: it holds azerograph.tomlor the hook an earlier release installed, or its main
worktree does or has an index. With an
index, theservethe hook starts catches up as it starts; withZEROGRAPH_HOOK_SERVE=0, a
detachedupdatedoes it instead (keeping fresh). - A Codex plugin,
agent/codex/: the MCP server, the session hook onSessionStart,
SubagentStartand after an edit, and the commands as skills,$zerograph:askto
$zerograph:refresh(install). - Credentials written inside an indexed file are redacted. A provider token in a source file, a
key exported in a shell script, a private key pasted into a README or a database URL with a
password in it becomes[REDACTED_SECRET]before the file is extracted, so it never reaches the
store, an index, a rerank prompt orzerograph families; the file keeps its line numbers and
updatenames the file. Coverage is by provider pattern only (GitHub, GitLab, AWS, Slack, Stripe,
OpenAI, Anthropic, Google, npm, PyPI, SendGrid, Twilio, Hugging Face, Discord, JWTs, private keys
and several hundred more): a genericpassword = "...",api_key: "..."orBearerheader is not
caught, because the catch-all rules that would catch it flagged dozens of spans on a real
repository and none of them was a secret. A span that holds an id is never redacted, and a
database URL on a loopback host or with a whole placeholder password (${VAR},$VAR,<password>,
***) is left as written, unless the password is itself a provider token.
redact_secrets = falseinzerograph.toml, orZEROGRAPH_REDACT_SECRETS=falsefor one run,
turns it off (configuration). - A
cache_statusMCP tool reports the machine's vector cache aszerograph cache statusdoes:
where it is, its cap, and its rows and bytes per model (MCP). - A store records the release that wrote it.
manifest.jsoncarriesrelease,statusshows
it, and a store a newer release wrote has anewer_grammarstate of its own, which the Claude Code
mod displays (commands).
Changed
- With no
--repo, the root is the top of the git checkout (git rev-parse --show-toplevel; a
worktree is its own root), else the nearest directory above that holds a.zerograph/, else the
current directory. A read where no store exists no longer creates.zerograph/: it answers from
nothing and sayszerograph buildbuilds it. The walk skips every directory below the root that
has its own.git, so nested worktrees, clones and submodules stay out of the index
(configuration). The session hook resolves the same root, so inside a git
checkout it asks about the top level whatever subdirectory the session is in
(keeping fresh). - The
reindexMCP tool builds a checkout that has no store with a detachedbuild, where it
used to fail; with a store it starts a detachedupdateas before (MCP). - The Claude Code mod reads files instead of polling
status --json. Every 10 s it reads
background.logand stats the socket the last report named; the full report runs at session
start, every 5 minutes, once after a...
zerograph 0.6.4
zerograph status follows a refresh from the terminal, a Claude Code mod shows the index's state under the prompt, and work nobody waits on runs at background priority.
Install or upgrade
npm i -g zerograph@0.6.4Or download the archive for your platform below (install). The Claude Code mod: /plugin install zerograph --marketplace devmaxxx/zerograph.
New
-
Background priority for work nobody waits on. The detached
updatethat a git hook, a reader
over its budget or the MCPreindexandswitch_modeltools start, andwatch, run in the
background band: macOS'sPRIO_DARWIN_BG, nice 19 with the idle I/O class on Linux, and
background mode on Windows.ask,build,update,embed,modelandservekeep normal
priority. A foregroundupdatethat finds a background one holding the store waits for it;ask
never does (keeping fresh). -
The skill is
zerograph.install-agent --claudeand--codexwrite it to
skills/zerograph/SKILL.md, stamped with the release that wrote it asmetadata.version, and with
a section on what keeps the index fresh and how to pay owed vectors without blocking a turn. The
repo-queryskill an earlier release wrote is removed; an edited one is left and named
(install). -
embed_skipkeeps a file in the graph and out of the vectors. Globs inzerograph.toml
whose files keep their nodes, edges and lexical rows but get no vectors: generated code,
migrations, mocks. A paraphrase no longer finds them;impact,traceand an ask by name do
(configuration). -
embed_model = "<hub id>:<variant>"picks a quantised export of the same model, such as
onnx-community/embeddinggemma-300m-ONNX:q4(a 197 MB download against 1.2 GB). A variant is a
model of its own to the store, so switching re-embeds every row once
(embeddings). -
zerograph statusfollows a refresh from the terminal. The report the MCPstatustool
gives an agent: the index, the files behind, the model, owed vectors, the refresh's progress and
what its run said besides the meters, whether aserveanswers and the last lines of
serve.log.--jsongives the same as one object,--followprints the refresh line until the
run ends and fails when it ended without finishing (commands). -
A Claude Code mod shows the index's state under the prompt: in sync, a bar and the time left
while a refresh runs, the files behind and a warning count, with/zerographfor the full report.
/plugin install zerograph --marketplace devmaxxx/zerograph; the mod is pinned to each release's
tag (install).
Changed
- The default embedder is embeddinggemma-300m's
:q4export,
onnx-community/embeddinggemma-300m-ONNX:q4: a 197 MB first download against 1.2 GB and 0.91 GB
peak RSS against 1.47 GB, at the same embed time and with no case lost on the bench suite
(ADR-005). resources = "balanced"takes 40% of the logical cores, up from 30%. Four threads on a
twelve-core machine rather than three: a whole-storebuildof the bench fixture read 521.1 s at
a 396% peak against 674.3 s at 301% (configuration).lowand
fullare unchanged.
Fixed
changesnames a TypeScript interface's data properties. A hunk that edited
readonly range: CalendarRange;in a props or record interface named the file and no symbol; every
named property signature is now a member of its interface, as a class field is of its class.install-agent --claudekeeps a matcher you narrowed. A re-run replaced zerograph's hook
entries whole, so amatchera repository had changed on purpose (PreToolUse withoutBash, say)
went back to the default on every upgrade. The hook script now records the version and the
matchers it was installed with; a re-run moves a matcher it wrote to the current default and keeps
any other.
Before upgrading
- A store the fp32 default wrote stays on fp32, with no download and no re-embed. Name
embed_model = "onnx-community/embeddinggemma-300m-ONNX:q4"inzerograph.tomlto move it. - Hooks that run
update --no-denseleave every new row without a vector, and a paraphrase
misses them. Drop--no-densefrom them: the embed now runs in the background band, and the
first denseupdatepays every row owed so far. - Re-run
install-agentto get the renamed skill. Anything that namesrepo-query— a
CLAUDE.mdline, a settings permission — should namezerograph.
Verify a download
shasum -a 256 -c --ignore-missing SHA256SUMS # sha256sum on Linux
gh attestation verify zerograph-aarch64-apple-darwin.tar.gz -R devmaxxx/zerograph| Asset | Platform |
|---|---|
zerograph-aarch64-apple-darwin.tar.gz |
macOS, Apple silicon |
zerograph-x86_64-unknown-linux-gnu.tar.gz |
Linux x64 |
zerograph-x86_64-pc-windows-msvc.zip |
Windows x64 |
SHA256SUMS |
checksums of the three archives |
Full changelog: v0.6.3...v0.6.4
zerograph 0.6.3
install-agent now sets zerograph up for Cursor, VS Code with Copilot, Gemini CLI and opencode, next to Claude Code and Codex.
Install or upgrade
npm i -g zerograph@0.6.3Or download the archive for your platform below (install).
New
install-agent --cursor,--copilot,--gemini,--opencode. Each writes the agent's project MCP file with azerographserver and the stanza into the instructions file that agent always reads. Existing files are merged, their other servers and settings kept; a file that cannot be merged safely (a commentedmcp.json, a symlink) is left alone and the entry to paste is printed. Any subset combines with--claudeand--codex(other agents). #200
| flag | MCP file | instructions |
|---|---|---|
--cursor |
.cursor/mcp.json |
.cursor/rules/zerograph.mdc |
--copilot |
.vscode/mcp.json |
.github/copilot-instructions.md |
--gemini |
.gemini/settings.json |
GEMINI.md |
--opencode |
opencode.json |
AGENTS.md |
Verify a download
shasum -a 256 -c --ignore-missing SHA256SUMS # sha256sum on Linux
gh attestation verify zerograph-aarch64-apple-darwin.tar.gz -R devmaxxx/zerograph| Asset | Platform |
|---|---|
zerograph-aarch64-apple-darwin.tar.gz |
macOS, Apple silicon |
zerograph-x86_64-unknown-linux-gnu.tar.gz |
Linux x64 |
zerograph-x86_64-pc-windows-msvc.zip |
Windows x64 |
SHA256SUMS |
checksums of the three archives |
Full changelog: v0.6.2...v0.6.3
zerograph 0.6.2
A patch release for the npm page: it now shows the repository README. The binary is unchanged since 0.6.1.
Install or upgrade
npm i -g zerograph@0.6.2Or download the archive for your platform below (install).
Fixed
- The npm page shows the repository README, with the badges, navigation and comparison image. The package used to carry a short hand-kept copy that had drifted; the README is now taken from the root at pack time, every relative path pinned to the release tag. #198, #199
- README setup is one command block: install, ignore
.zerograph/, build, ask, connect the agent. #199
Verify a download
shasum -a 256 -c --ignore-missing SHA256SUMS # sha256sum on Linux
gh attestation verify zerograph-aarch64-apple-darwin.tar.gz -R devmaxxx/zerograph| Asset | Platform |
|---|---|
zerograph-aarch64-apple-darwin.tar.gz |
macOS, Apple silicon |
zerograph-x86_64-unknown-linux-gnu.tar.gz |
Linux x64 |
zerograph-x86_64-pc-windows-msvc.zip |
Windows x64 |
SHA256SUMS |
checksums of the three archives |
Full changelog: v0.6.1...v0.6.2
zerograph 0.6.1
A patch release: a smoother Windows install, binaries you can verify without trusting the download, a detachable server, and a clickable ask output.
Install or upgrade
npm i -g zerograph@0.6.1Or download the archive for your platform below. npm is the recommended route on every platform; on Windows it never meets SmartScreen (install).
Important
Upgrading on Windows with a 0.6.0 serve running: end it first with Stop-Process -Name zerograph (0.6.0 has no stop). From 0.6.1 on, upgrades work under a running server.
Scripts that parse ask text output: the first column is now a path, not an id. Parse --json, which is unchanged.
New
- Verifiable binaries. Every archive and the binary inside it carry a build provenance attestation, and the release carries
SHA256SUMS. Any copy, from this page or from an npm install, can be tied to the workflow and commit that built it (verifying a download). #190, #193 zerograph serve --detachstarts a resident server in its own process, logs to.zerograph/serve.log, and returns once it listens (serve). #190zerograph stopends the server for a repository and removes its socket file, on Windows too (serve). #190, #196
Changed
zerograph asktext output leads each line withpath:line, which terminals make clickable, and dropssym:,file:andentity:ids that only repeat the location or the name; document ids stay. Neighbours print under their seed with└(commands). #192
Fixed
npm i -g zerographunder a runningserveon Windows no longer fails with a sharing error: the launcher runs a copy of the binary from%LOCALAPPDATA%\zerograph\bin, one per version, and sweeps copies unused for 30 days. #190, #193- Windows first run: the first model download prints the optional Defender exclusion command for the model cache. #190
Verify a download
shasum -a 256 -c --ignore-missing SHA256SUMS # sha256sum on Linux
gh attestation verify zerograph-aarch64-apple-darwin.tar.gz -R devmaxxx/zerograph
gh attestation verify "$(npm root -g)/zerograph/bin/darwin-arm64/zerograph" -R devmaxxx/zerograph| Asset | Platform |
|---|---|
zerograph-aarch64-apple-darwin.tar.gz |
macOS, Apple silicon |
zerograph-x86_64-unknown-linux-gnu.tar.gz |
Linux x64 |
zerograph-x86_64-pc-windows-msvc.zip |
Windows x64 |
SHA256SUMS |
checksums of the three archives |
Full changelog: v0.6.0...v0.6.1
v0.6.0
fix(release): harden 0.6.0 and finish the rename (#187) Bounds the rerank command with a deadline and forwards an interrupt to it, pins every measured embedder to a hub revision, caps an MCP server's paid reranks and charges them by the model commands an answer starts, checks the tag against Cargo.toml before a release publishes, ships every binary inside one unscoped zerograph package on the npm registry through trusted publishing, and renames the remaining repograph mentions while keeping what recognises an install from before the rename. Closes #182, #183, #184, #185 and #186.