Repository navigation
Releases
v7.18.1
v7.18.0
v7.17.3
A patch release: no reinstall or reindex is needed on update. It contains only one fix on top of 7.17.2; changes merged on master after 7.17.0 are not included. Full detail in CHANGELOG.md.
Fixed
tokensave initno longer refreshes agents that are registered but not installed (Refs #1094). Commands no longer try to refresh an agent such as OMP that was registered earlier but is not set up on the machine, and no longer warn about it. The upgrade resync,tokensave installandtokensave reinstalldrop such stale registrations with a note namingtokensave install --agent <id>to register them again, and an install that wrote every registered agent no longer triggers a redundant same-version resync on the next command (#1095).
v7.17.2
A patch release: no reinstall or reindex is needed on update. It contains only one fix on top of 7.17.1; changes merged on master after 7.17.0 are not included. Full detail in CHANGELOG.md.
Fixed
- "Access denied" on Windows now explains a low-integrity binary (Refs #1063). When
cargo installbuilds in a%TEMP%that carries a Low mandatory label (some sandboxing tools apply one), the installedtokensave.exeinherits it. Windows then runs every tokensave command at low integrity, sosync,init,installanddoctorfail with "Access denied (os error 5)" on lockfiles,.tokensave/, the database and.git\hooks, even though the user's ACLs allow the write. A failed command now prints aHint:line with theicaclscommands that inspect and reset the label,tokensave doctorreports it under Binary, and lockfile errors name the lockfile path (#1086). See "Access denied (os error 5)" on Windows.
v7.17.1
A patch release: no reinstall or reindex is needed on update. It contains only one fix on top of 7.17.0; changes merged on master after 7.17.0 are not included. Full detail in CHANGELOG.md.
Fixed
cargo install tokensaveno longer fails with a permission error (Refs #1064). The build script wrote the generated ANSI logo into the crate's ownsrc/resources/directory, which Cargo's registry source cache does not allow, so installing the published crate could panic inbuild.rswithPermissionDenied(seen on Windows). The logo is now generated in Cargo'sOUT_DIR; the embedded logo is byte-identical. Thanks @0xreconlion for the fix (#1068).
v7.17.0
A minor release: on first launch the new binary silently reinstalls your agent integrations. The database schema moves to version 19 and is migrated automatically on first open. Full detail in CHANGELOG.md.
Fixed
-
FreeBSD watcher after directory recreation (Refs #1051). Release the old kqueue descriptors and watch eligible files in the replacement subtree so subsequent in-place edits can update the index.
-
tokensave_healthexcludes one-way links between separate cycles from the cyclic-edge count (Refs #1026). -
tokensave_readrejects unknown parameters by name and lists the accepted range syntax, so guessed names such asstart_line/end_lineno longer disappear behind a missing-range error or silently produce a full-file read (Refs #1023).
Internal
- Add an opt-in Claude Code and Codex CLI launcher that composes local TokenSave and an authenticated Auto Ontology MCP endpoint (Refs #1022).
- Evaluate NVIDIA Auto Ontology interoperability with a reproducible offline glossary-to-OKF PoC and a retrieval benchmark (Refs #1022). See the evaluation.
- Add an opt-in direct-parser ASan audit with C/C++ calibration controls, native object instrumentation checks, bounded corpus runs and Linux findings (Refs #958).
Security
- Edit tools no longer write outside the project and its git worktrees (Refs #866).
tokensave_str_replace,tokensave_multi_str_replace,tokensave_insert_at,tokensave_replace_lines,tokensave_ast_grep_rewrite,tokensave_replace_symbol,tokensave_insert_at_symbol,tokensave_delete_symbolandtokensave_renameused to honor any absolute path,..escape orproject_rootoverride, so text in an indexed file could steer an agent into editing a file anywhere the user can write. Each edit tool now resolves symlinks and.., then accepts the target only inside the project root or another worktree of the same git repository, asgit worktree listrun in the project root reports it. Paths inside.gitand tokensave's state are refused too. A file the index tracks through an in-root symlink into another tree (#34) stays editable. A refused edit fails with arefusing to editerror, and a rename that would touch a refused file is blocked as a whole. An agent editing a worktree is unaffected. Editing a file in an unrelated directory now needs the agent's own file tools. - Resolve the RustSec advisories reported by
cargo audit(Refs #960).cargo auditno longer reports any vulnerable or unsound crate inCargo.lock. Before this change it reported 20 vulnerabilities and 3 unsound crates.- libSQL is now built with only its local
corefeature. Its defaultreplication,remote,syncandtlsfeatures pulled in a network stack (hyper 0.14, h2 0.3, rustls 0.22, tonic, rustls-pemfile) that tokensave never used, because it opens databases only withBuilder::new_local.Cargo.locknow lists 73 fewer packages, andrustls0.22.4,rustls-webpki0.102.8,h20.3.27 andanyhoware gone. zip, used by the Windows self-upgrade, moves from 8 to 9 (RUSTSEC-2026-0367, -0368, -0369 and -0429). tokensave never called the affectedextractfunctions. The only code change is that zip 9 returns entry names as aResult, so an archive entry with an undecodable name now fails the upgrade with azip entry name errormessage.rustixmoves from 1.1.4 to 1.1.6, fixing RUSTSEC-2026-0486 in its safe extended-attribute APIs. The advisory was published after the original dependency update and was caught by the new workflow.- Semver-compatible updates:
rustls0.23.46,rustls-webpki0.103.16,webpki-rootsandwebpki-root-certs1.0.11,crossbeam-epoch0.9.21,faster-hex0.10.1 andtokio1.54.1. bincode1.3.3 andproc-macro-error22.0.1 are still reported as unmaintained. These are warnings and do not fail the check.
- libSQL is now built with only its local
- Refuse databases whose
-walsidecar has a different page size (Refs #940). libSQL 0.9.30 bundles SQLite 3.45.1, which predates the fix for CVE-2026-119375 (RUSTSEC-2026-0459). With a crafted database and-walfile whose page sizes differ, such as a.tokensave/directory shipped in a cloned repository, ordinary queries could return uninitialized process memory into MCP responses. Before SQLite opens a database, tokensave now compares the WAL header and every copy of page 1 in the WAL against the database header, and refuses the database as a compatibility refusal, leaving the files untouched, when they disagree. WAL files that SQLite would ignore, and WAL files that SQLite itself writes, are unaffected.cargo auditdoes not report this advisory because it is filed againstlibsqlite3-sys, which tokensave does not use. libSQL 0.10.0 bundles SQLite 3.47.0 and is also affected, so upgrading does not help.
Added
- Optional Blaze runner for local builds and tests (Refs #984).
scripts/dev-build <cargo subcommand> [args]runs the command with Blaze on Linux and macOS when Blaze is installed and usable, and with Cargo otherwise; Windows always uses Cargo.--cargoorTOKENSAVE_BUILD_RUNNER=cargoselects Cargo explicitly. When Blaze fails a build or test, the same command runs again with Cargo, whose exit code is reported. The runner also exports the[env]settings of.cargo/config.tomlbefore it runs Blaze, so the test isolation they provide does not depend on Blaze's Cargo compatibility.scripts/blaze-bench/blaze_bench.pycompares Cargo and Blaze on clean builds, edit rebuilds and tests. CI, releases and the documentedcargocommands are unchanged, and Blaze is never required. Seedocs/BLAZE-EVALUATION.md. tokensave grepadds index facts to the hits of a search command (Refs #688, #682).tokensave grep COMMAND...runs agrep,rgorgit grepcommand unchanged, with its own flags, result set and exit code. Eachpath:line:hit keeps its bytes and gains a tab and a#tssuffix: the enclosing symbol and its lines ([in X, a-b]), a definition ([defines X (kind), a-b]), a resolved call ([calls X, file:a-b]), a call with several candidates ([ambiguous name, n candidates: ...]), an edge that is not a call ([uses X, file:a-b],[type_of X, file:a-b]), or[stale]for a file whose modification time or size changed after it was indexed. The facts follow the conventions of the text results oftokensave_search. The first hit on a definition gives its lines, and each later hit gives its first line.-nis added when the command has no line-number flag. Output with no such hits (-l,-c,-q,--files, context lines) is not changed, and--graph=noneruns the command as written. The command opens the index read-only, starts no sync, and needs no MCP server. With no index the search runs as written. With an index that the command cannot read, such as one that needs a migration, it also runs as written and one line on standard error gives the reason. A hit getscallsfacts and facts of other edge kinds only for a name that the search pattern contains as a whole word. Traversal (--graph=callers), symbol context and the hook mode of #682 are not part of this change. The proposal and the prototype are by @xorets. Seedocs/guide/CLI-REFERENCE.md.- Manual AddressSanitizer evaluation for tree-sitter grammars (Refs #958). A Linux-only, pinned-nightly harness instruments Rust plus the C/C++ parsers and external scanners, runs every full-tier extraction fixture, and can index optional real corpora without writing TokenSave state into them. It records commands, logs, duration, CPU, child high-water RSS and build disk use in JSON. A manually dispatched GitHub workflow uploads fixture results but never runs on pushes, pull requests or schedules, so normal CI has no sanitizer cost. No clean sanitizer run, performance result or memory-safety guarantee is claimed until a Linux artifact is reviewed.
- Swift calls outside function bodies are recorded (Refs #1010). Call sites were read only from function and init bodies, so a callee used only from a property initializer (
let x = Foo.make()), a computed property (var body: some View) or top-levelmain.swiftcode had no caller and looked dead totokensave_dead_code. Calls in a property declaration now belong to the property. Calls in any other top-level or type-body statement (anifinmain.swift, adeinit, asubscript) belong to the enclosing scope, the file or the type, as for Python module-level code. Reindex Swift projects to pick this up. tokensave_callerslabels every extracted same-named call reference instead of silently dropping sites without an edge (Refs #687). Each caller now carriesreferences, whose entries areconfirmed,other,ambiguous, orunresolved. Other-target results name the definition selected; ambiguous results say whether the requested definition is a candidate; and uncertain sites carryto_read: true. An indexed trailing-name column keeps lookup proportional to matching references rather than scanning the full table. Reference results obeylimitand report their returned and total counts when truncated.- Import OKF bundles and search them through MCP (Refs #858).
tokensave okf import <dir>copies a bundle byte for byte into the project's state directory (okf/<name>/) and validates the copy;okf listandokf removemanage imported bundles. Bundles that are not conformant are imported best-effort, as OKF §12 asks, unless--strictis given. The code index and its schema are not changed, so no reindex is needed. The newtokensave_knowledgeMCP tool, in thememoryarea oftokensave_more, searches imported concepts by title, ID, tags, type, description and body, reads one concept with its links and backlinks, and finds the concepts that refer to a project file through `tokensave_path...
v7.16.0
A minor release: on first launch the new binary silently reinstalls your agent integrations, refreshing the rules text and the git-hook sections. tokensave install --agent pi --local now works, writing project-scoped .pi/mcp.json + AGENTS.md. No schema change and no forced reindex. Full detail in CHANGELOG.md.
Performance
- Construct the MCP tool registry once during server startup and release schemas before opening the global database, preserving routing gates and schema accounting without retaining a schema cache (#735).
Added
-
The Pi integration supports
--local(#747). Pi has both a user-level and a project-level configuration, so the claim that Pi has no project-scoped config was wrong:tokensave install --agent pi --localnow registers the MCP server in the project's.pi/mcp.jsonand writes the rules block into theAGENTS.mdin the project root, which Pi reads as a context file. The rules go in as a managed block, so an existing projectAGENTS.mdkeeps its own content. A global install is unchanged (<agent-dir>/mcp.jsonand<agent-dir>/AGENTS.md), andtokensave uninstall --agent pi --localremoves only the project files. -
Mandatory contributor and AI agent rule for native filesystem path construction (#743), following PR #738: one component per
joinorpush, with explicit exceptions for portable string formats and path-syntax fixtures. -
Automatic extraction RAM safeguards complement project profiles: sample physical RAM (and visible Linux cgroup headroom) before parallel extraction and reduce concurrency using a conservative parser allowance. Applies to subprocess and in-process paths, including
performance; no background polling or hard RSS guarantee. -
Project
memory_usageprofiles (low,balanced,performance) limit simultaneous extraction parsers independently of CPU policy, trading throughput for lower parser memory. The defaultbalancedcaps extraction at two parsers;performanceretains previous concurrency. These are not total-RAM caps. -
Configurable
language_aliasesreuse enabled extractors for custom extensions such as Perl.ttests (#725). Existingproject.jsonfile/glob overrides take precedence; mapping edits invalidate unchanged indexed files. Source overrides also take precedence over artifacts, and sync diagnostics describe alias and artifact remedies.tokensave initnow preserves the existing project settings instead of resetting them to their defaults, so a supplied mapping survives the first index. -
tokensave initbenchmarks the machine to choose the CPU usage profile (#731).cpu_usagedefaulted tobalancedon every host, so a 2-vCPU VM, a Raspberry Pi or a 512 MiB container ran the same concurrency as a workstation unless the user knew to change it.initnow probes the CPUs and memory (including cgroup limits) and times a short CPU-bound workload on 1 and up to 16 threads to measure real parallel speedup. It then writes one of the existing profiles:lowon small or memory-constrained hosts (at most 2 CPUs, under 3 GiB total or 1 GiB available memory, or under 2.5 effective CPUs),performanceon idle hosts with many effective CPUs and ample memory,balancedotherwise or when a probe fails. No new profile or config value is added.tokensave init --cpu-usage <profile>skips the benchmark, and acpu_usagealready in the config is kept. The newtokensave tune [path] [--dry-run] [--json]measures again afterinitand updates the stored profile.--jsonalways prints one document, including when the project is not initialized and the command refuses to write. -
Add read-only
quality-diffCLI andtokensave_branch_diffquality mode for baseline-aware complexity, function-size, file coupling and cyclic dependency edge comparisons between indexed branch tips, with deterministic JSON, freshness diagnostics and CI exit codes (#709). -
Opt-in automatic language detection for unknown extensions using bounded shebang and syntax evidence, existing extractors, a bounded process-local decision cache, incremental settings invalidation and verbose sync diagnostics. Refs #727.
-
Pascal: index Delphi package sources (
.dpk) and include files (.inc). Both are Pascal source, but only.pas,.pp,.dprand.lprwere routed to the Pascal extractor, so a Delphi project reported them as "unsupported extension" and their declarations were missing from the graph..lpris now also reported as Pascal in language statistics, where it was already extracted but counted as Other. Existing projects pick the files up on their nexttokensave sync --force. -
Mandatory contributor and AI agent guidelines for memory bounds, CPU efficiency, resource cleanup, and resource regression review.
-
Add
tokensave verify [path] [--deep] [--json], a bounded read-only integrity checker with stable diagnostics and CI exit codes. Incremental repair is deferred;--repairexplicitly refuses without writes. -
Add reusable metamorphic analysis-stability tests for Rust and Python formatting and declaration changes, comparing dead-code findings, dependency cycles, structural complexity, coupling and graph relationships across incremental and clean indexing.
-
Index static Rails routes and link them to the public controller actions they dispatch to, including resources, nested and member routes,
drawfiles, engines and applications in subdirectories. Links refresh after controller edits and show up in search, callers and impact queries; renaming an action or controller that a route may name is refused until route strings can be edited safely. -
Index embedded Ruby in ERB and Slim templates, including calls to helpers, with locations in the original template. Available with
lang-ruby; controller-to-view and partial-render relationships are not inferred. A bare name in a template binds only to helper-shaped methods (in ahelpers/directory, a*Helpermodule,ApplicationController, a top-leveldef, or the template itself), so partial locals such asiteminitem.titledo not become call edges to unrelated same-named methods, while helper receivers such ascurrent_user.namestill do. -
tokensave_callerslists every line where a caller calls the target (#672). A caller that invokes the target several times was listed once, withlineset to its first call, so a rename or signature change still needed a read of the method or a text search to find the others. Each result now also carrieslines, every call line in ascending order ([12, 13]);lineand the other fields are unchanged, andlineis always amonglines. The index already stored one edge per call site, so no reindex is needed.tokensave_callers_foris unchanged. Requested by @xorets. -
Every symbol in the results of
tokensave_search,tokensave_callers,tokensave_callees,tokensave_impact,tokensave_implementationsandtokensave_type_hierarchycarriesend_linenext toline(#674). A result told where a symbol starts but not where it ends, so reading just that symbol meant fetching its body or guessing a range fortokensave_read. JSON results now carryend_line, the symbol's last line, 1-based likeline; text results show the range asfile:line-end_line(src/shapes.ts:14-17: total (function)intokensave_search,-- src/shapes.ts:5-12intokensave_type_hierarchy). Fortokensave_callers, wherelineis the call site,end_linecloses the caller's own span that starts atdef_line. Existing fields are unchanged and the span was already stored, so no reindex is needed.tokensave_implementationsalso stops returning bodies by default, see Changed. Requested by @xorets. -
tokensave_callers,tokensave_callees,tokensave_impactandtokensave_type_hierarchytake asymbolname (#669). They took onlynode_id, so "who callsRefreshAsync" cost atokensave_searchturn first.symbolresolves astokensave_bodyresolves it since #651: the literal name first, then trailing segments of a qualified name with.and::alike (Coordinator.RefreshAsync,App::Coordinator::RefreshAsync), and a function or type outranks a same-named field or import; fortokensave_type_hierarchya type also outranks a same-named function, such as a constructor.node_idtakes precedence when both are given, and neither is an error;node_idis no longer a schema-required field. When the name matches several symbols, each of the firstmax_matches(default 3, max 20) is answered in its own group, headed by qualified name, kind, file, line range (lineandend_line, as in #674) and node id: the JSON tools return{symbol, match_count, matches: [...]}with the tool's usual fields inside each match, andtokensave_type_hierarchyprints a## <heading>line above each tree. Overloads share a qualified name, so they form one group, listed underoverloads, with their results merged. Matches pastmax_matchesare listed underunanswered, without results, intokensave_searchrank order, so a follow-up can name one bynode_id. A newlimitcaps the results per match (default 50 for callers, callees and impact, max 500;tokensave_type_hierarchyis uncapped unlesslimitis set), and a cut is reported as in #645:count,totalandtruncatedbeside the list, or acount: N of M (truncated; ...)line under a hierarchy. Called withnode_id, the output is unchanged unlesslimitcuts it: callers and callees then wrap their array as{count, total, truncated, callers|callees}, and impact always carriescount,totalandtruncatedbesidenode_count. On the CLI, a positional argument binds tosymbol(a node id there still works), sotokensave tool callers RefreshAsyncandtokensave tool body RefreshAsyncwork as written. Requested by @xorets. -
**C# property and field reads produce
usesedges when the rece...
v7.15.0
A minor release: on first launch the new binary silently reinstalls your agent integrations, refreshing the rules text and the git-hook sections. No schema change and no forced reindex. C# and TypeScript projects get the new edges on tokensave sync -f, or file by file as they change. Full detail in CHANGELOG.md.
Added
tokensave_readtakes anif_digestargument (#650). Every response that carries a body also carries itsdigest. A client that still holds that content passes the digest back asif_digest; when it matches the current body for the same mode and range, the shortunchanged: truestub is returned instead of the body, and otherwise the body is. Requested by @xorets.
Changed
- The installed agent rules now say what
tokensave_searchwithliteral: truefinds, and when grep is the right tool (#653). The rules namedtokensave_searchonly for a known symbol, and never said when grep fits, so agents reached for grep to find call sites. A new "Searching code" section in the shared rules text says that by defaulttokensave_searchreturns where a name is defined, ranked, with its kind and signature, and that withliteral: trueit finds exact text:.Name(for calls through an object,Name(for every call,: INamefor implementers. Grep is for a regex, or a file type the index skips. Claude's "When the hook denies a search" section now offers{"query": ".Name(", "literal": true}next totokensave_callersfor a symbol's uses, and the MCP server'sinitializeinstructions carry the same two points in one sentence. Every agent that installs rules text gets the new section (Claude, Augment, Codex, Copilot, Droid, Gemini, Grok, Kimi, Kiro, OMP, OpenCode, Pi, Qwen, Vibe), and existing installs pick it up on the nexttokensave installorreinstall, or the silent resync after a minor upgrade. In the reporter's A/B test the two lines cut tool calls by about 25% and lowered cost. Suggested by @xorets. tokensave_readnumbers the lines it returns (#652).fullandlinesmodes now prefix every line with its real file line number, right-aligned, then a tab, as Claude Code'sReadtool does, so alinesslice from 120 starts at 120.mapandsignaturesare unchanged. Because the body changed, a digest from an earlier release no longer matches. Requested by @xorets.tokensave_readalways returns the body unlessif_digestmatches (#650). The server used to remember every file it had sent, across sessions, and answer a repeat read with anunchanged: truestub. It cannot know what the client still holds after a context compaction, a rewind, a new session or a subagent, so the stub could leave an agent with no copy of the file. That server-side record is gone and theread_cachetable is no longer read or written.forceis still accepted but deprecated: the body is now the default, andforce: trueonly makes the server ignoreif_digest.tokensave_bodylists candidates for an ambiguous name instead of returning every body, and acceptsType.Member(#651). A bare name shared by several definitions, such as threeRefreshAsyncmethods, used to return up to three full bodies, the wanted one possibly last. When more than one definition of the best kind matches (a function or type still outranks a same-named field or import), the tool now returns no body but a candidate list with each candidate's qualified name without its file prefix (App::Coordinator::RefreshAsync), kind, file, 1-based line range and node id, plus a hint to re-call with a qualified name or the id. Exactly one match returns its body as before..is now accepted as a member separator alongside:::Coordinator.RefreshAsyncandApp.Coordinator.RefreshAsyncresolve by matching trailing segments, and the literal name is tried first so names that really contain dots still match. The match treats.and::alike on both sides, so C# namespaces stored asApp.TestsmatchTests::FakeCoordinator::RefreshAsynctoo. A newnode_idparameter (aliasid) fetches one node's body directly; the truncated-snippet handletokensave_body node_id=…thattokensave_contextemits now works as written.limitnow caps the candidate list (default 20, max 50), andsymbolis no longer a schema-required field sincenode_idcan replace it. Reported in #651.
Fixed
- Git hooks shell-quote the tokensave binary path (#636). The post-commit, post-merge and post-checkout sections put the path into the
shscript unquoted, so an install path with a space split into two words and the hook did nothing, and a;,$(...)or backtick in it would run as a command on every git operation. The path is now single-quoted, which turns off every shell expansion. Existing sections are rewritten in place byinstall,reinstall,githooks onand the upgrade resync, and the post-checkout block's version stamp goes to v3. - The MCP server caps a request line at 64 MiB (#636). Its stdin reader buffered a line of any length, so a host that never sent a newline could make the server use all available memory. A longer line is now discarded and answered with a JSON-RPC parse error, and the server keeps serving.
- Name lookups no longer read
_and%in a name as wildcards. TheLIKEfallback ofsearch_nodesand the::suffix scan ofget_nodes_by_qualified_namepassed the query to SQL unescaped, somy_functionalso matchedmyXfunction. - The grep hook's denial now gives the call to make, with the symbol filled in (#649, #654). It used to send usages to
tokensave_callers_for, which takes node ids and is not a core tool, so agents that followed it failed. A denied symbol search now spells out copyable calls for the symbol taken from the command:tokensave_search {"query": "MySymbol"}for the definition,tokensave_search {"query": ".MySymbol(", "literal": true}for method-call uses, andtokensave_search {"query": "MySymbol(", "literal": true}for every call. Adef/class/fn-anchored pattern gets the definition call only, and an alternation gets one call per name. Reported by @xorets. - More shell shapes that search for a symbol are redirected (#648).
git grepis now treated as the working-tree search it is, unless it names a revision (git grep Sym HEAD~3, or any positional before--that is not an existing path), which still passes through as a history search. A search batched beside a read-only command is redirected:sed -n 1,20p notes.md; grep -rn Sym src, and a prose grep next to a symbol grep, where the prose grep used to count as work. A search piped into read-only filters (| head,| sort | uniq,| wc -l) is redirected too; a pipe into anything that writes (| xargs,| tee,sort -o) still passes through, as does any chain with a side-effecting segment (#475). An alternation is a symbol search when any branch is symbol-shaped (MySymbol\|throw new Error), and a call pattern may carry text after the paren (MySymbol(name), though not when the paren follows a space or a control keyword (if (x). Non-code targets (--include='*.md',docs/) andTOKENSAVE_DISABLE_GREP_HOOKbehave as before. Reported by @xorets. tokensave_searchwithids: trueprints the ids in the default text format (#646). The ids only appeared withformat: "json", so a text answer could not feedtokensave_callers,tokensave_callees,tokensave_impactortokensave_node. A ranked hit now readsfile:line: Foo (interface) [id: <id>] — signature, and a literal match appends[in <enclosing>, id: <enclosing_id>]when it falls inside a symbol. Withoutids, the text is unchanged.- A literal
tokensave_searchsays whenlimitcut its matches (#645). The scan stopped atlimitand reportedcount: <limit>with nothing to say that 70 more matches existed. It now keeps counting past the limit (a substring test per line, without building the extra matches), and the JSON carriestotalandtruncatedbesidecount; the text header readscount: 5 of 73 (truncated; raiselimitto see more). The ranked search fetches one result pastlimit, and when that one survives the filters its text header readscount: 10 (truncated: more matches exist; raiselimitto see them); its JSON stays a bare array. tokensave_readinmapandsignaturesmode finds a file's symbols again on Windows and for non-plain paths (#644). The mode looks symbols up by the file's path relative to the project, but that path was cut from the canonical file path with the separators of the host, so on Windows agraph_rootread ofsrc/x/Service.cslooked upsrc\x\Service.cs, which the indexer (it stores forward slashes) never wrote, and returnedsymbol_count: 0. The served project could miss too: when its root was not in canonical form (a symlinked directory, or no\\?\prefix on Windows) the raw argument was used as given, so./src/x.rs,src/../src/x.rsor an absolute path found nothing. The lookup key, the echoedfileand the read-cache key are now always derived from the canonical root and file and use forward slashes.tokensave_entitiesuses the same key. The containment check from #636 is unchanged. Reported on Windows 11.- TypeScript imports written with a
.jsspecifier now link to the.tssource (#647). Under"module": "NodeNext"(and thebundlerresolution mode) TypeScript requires relative imports to name the emitted file, sosrc/lib/hash.tsis imported as../../src/lib/hash.js. The import'susesedge never resolved, because the specifier was matched as a symbol name (its trailing segment,js), and the reachability gate on JS/TS calls compared the callee's module stem (hash) against that same segment, so a call into another directory was dropped as unreachable.tokensave_affectedtherefore reported no tests for the module, and `f...
v7.14.1
A patch release: no maintenance is required of the new binary. Full detail in CHANGELOG.md.
Fixed
- No more unfixable "N new tokensave tool(s) not yet permitted" warning for non-Claude users. Every command checked
~/.claude/settings.jsonfor tokensave tool grants even when tokensave was never installed for Claude Code (e.g. a Codex-only setup).tokensave reinstallonly refreshes the installed agents, so it never touched that file and the warning repeated forever. The warning now fires only when the Claude settings already hold at least one tokensave grant.
v7.14.0
A minor release: new tools and permissions, a changed rules text and rewritten git hook sections, all delivered to existing installs by the minor transition's silent reinstall. Schema v18 migrates in place, so no forced reindex is needed. Full detail in CHANGELOG.md.
The core toolset is the default (#576)
tools/list now sends 12 tools instead of 86: about 17 KB instead of 89 KB, re-sent on every turn. The rest stay callable by name, so permission lists, hooks and rules keep working. tokensave_more(area) lists an area for the rest of the session, and the server instructions carry a short map of the core tools. tokensave_more is now granted at install time.
The "tools": "full" that 7.13.0 wrote into every config is migrated to unset once. To keep every tool listed, set "tools": "full" in .tokensave/config.json (or TOKENSAVE_TOOLS=full) after upgrading.
tokensave_rename (#568, #544)
tokensave_rename replaces tokensave_rename_preview, which stays as a hidden dry-run alias. It is graph-based, not binding-aware, and says so. It runs a dry run by default, and every site carries a confidence class: exact, heuristic, ambiguous or text_only. Apply is refused unless every site is exact or you pass allow_heuristic. It is all-or-nothing: every edited file must re-parse cleanly, and callers stay linked after a cross-file rename.
The confidence comes from edges.resolved_by, now stored on every edge (schema v18, about 0.06% of the index). Thanks @stevemadere.
Language support
- Ruby:
.rakefiles are indexed as Ruby source (#623), and class and module declarations that reopen the same constant are linked across files (#622). Contributed by @janstol. - GDScript: a call on a typed receiver keeps its edge when another class defines a method with the same name (#597). Methods used as values get a
usesedge, and overrides of called base methods are no longer reported as dead code (#598). Reported by @iKyi.
Fixes
serveoutside any project starts with no default project instead of exiting (#606).initializesucceeds and lists the registered projects, andgraph_rootcalls work. An explicit-pwithout an index never falls back to another project. Each registered project is checked once, in parallel, at startup. Reported by @equwal.reinstalland the upgrade resync refresh tokensave's section of installed git hooks (#624). post-commit and post-merge now follow a moved binary, anddoctorreports a stale hook section. Reported by @Zindaar.- A rules-block refresh replaces the block where it stands (#621), so your text below the end marker stays below it. Reported by @xorets.
- Windows: the live monitor and the savings ledger share one home.
- CI: the
test-transportsuites now run on Linux, macOS and Windows.