Skip to content

Releases

v7.18.1

Choose a tag to compare

@atontini atontini released this 04 Dec 06:06

Fixed

  • MCP calls that explicitly select the served project through a scalar graph_root preserve the local branch lease, node IDs, and accounting (#1219, #1220).
  • Deletion-only sync re-resolves references in unchanged files when deleting a definition can remove an ambiguity (#1219, #1220).

v7.18.0

Choose a tag to compare

@atontini atontini released this 28 Nov 07:07
a42f899

TokenSave v7.18.0 refreshes installed agent integrations automatically. Existing Swift projects can run tokensave sync --force to pick up the improved Swift graph. See CHANGELOG.md for the full list.

v7.17.3

Choose a tag to compare

@atontini atontini released this 23 Nov 08:50

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 init no 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 install and tokensave reinstall drop such stale registrations with a note naming tokensave 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

Choose a tag to compare

@atontini atontini released this 22 Nov 08:23

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 install builds in a %TEMP% that carries a Low mandatory label (some sandboxing tools apply one), the installed tokensave.exe inherits it. Windows then runs every tokensave command at low integrity, so sync, init, install and doctor fail 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 a Hint: line with the icacls commands that inspect and reset the label, tokensave doctor reports it under Binary, and lockfile errors name the lockfile path (#1086). See "Access denied (os error 5)" on Windows.

v7.17.1

Choose a tag to compare

@atontini atontini released this 22 Nov 06:45

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 tokensave no longer fails with a permission error (Refs #1064). The build script wrote the generated ANSI logo into the crate's own src/resources/ directory, which Cargo's registry source cache does not allow, so installing the published crate could panic in build.rs with PermissionDenied (seen on Windows). The logo is now generated in Cargo's OUT_DIR; the embedded logo is byte-identical. Thanks @0xreconlion for the fix (#1068).

v7.17.0

Choose a tag to compare

@atontini atontini released this 22 Nov 05:19

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_health excludes one-way links between separate cycles from the cyclic-edge count (Refs #1026).

  • tokensave_read rejects unknown parameters by name and lists the accepted range syntax, so guessed names such as start_line/end_line no 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_symbol and tokensave_rename used to honor any absolute path, .. escape or project_root override, 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, as git worktree list run in the project root reports it. Paths inside .git and 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 a refusing to edit error, 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 audit no longer reports any vulnerable or unsound crate in Cargo.lock. Before this change it reported 20 vulnerabilities and 3 unsound crates.
    • libSQL is now built with only its local core feature. Its default replication, remote, sync and tls features 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 with Builder::new_local. Cargo.lock now lists 73 fewer packages, and rustls 0.22.4, rustls-webpki 0.102.8, h2 0.3.27 and anyhow are gone.
    • zip, used by the Windows self-upgrade, moves from 8 to 9 (RUSTSEC-2026-0367, -0368, -0369 and -0429). tokensave never called the affected extract functions. The only code change is that zip 9 returns entry names as a Result, so an archive entry with an undecodable name now fails the upgrade with a zip entry name error message.
    • rustix moves 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: rustls 0.23.46, rustls-webpki 0.103.16, webpki-roots and webpki-root-certs 1.0.11, crossbeam-epoch 0.9.21, faster-hex 0.10.1 and tokio 1.54.1.
    • bincode 1.3.3 and proc-macro-error2 2.0.1 are still reported as unmaintained. These are warnings and do not fail the check.
  • Refuse databases whose -wal sidecar 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 -wal file 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 audit does not report this advisory because it is filed against libsqlite3-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. --cargo or TOKENSAVE_BUILD_RUNNER=cargo selects 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.toml before it runs Blaze, so the test isolation they provide does not depend on Blaze's Cargo compatibility. scripts/blaze-bench/blaze_bench.py compares Cargo and Blaze on clean builds, edit rebuilds and tests. CI, releases and the documented cargo commands are unchanged, and Blaze is never required. See docs/BLAZE-EVALUATION.md.
  • tokensave grep adds index facts to the hits of a search command (Refs #688, #682). tokensave grep COMMAND... runs a grep, rg or git grep command unchanged, with its own flags, result set and exit code. Each path:line: hit keeps its bytes and gains a tab and a #ts suffix: 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 of tokensave_search. The first hit on a definition gives its lines, and each later hit gives its first line. -n is 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=none runs 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 gets calls facts 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. See docs/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-level main.swift code had no caller and looked dead to tokensave_dead_code. Calls in a property declaration now belong to the property. Calls in any other top-level or type-body statement (an if in main.swift, a deinit, a subscript) belong to the enclosing scope, the file or the type, as for Python module-level code. Reindex Swift projects to pick this up.
  • tokensave_callers labels every extracted same-named call reference instead of silently dropping sites without an edge (Refs #687). Each caller now carries references, whose entries are confirmed, other, ambiguous, or unresolved. Other-target results name the definition selected; ambiguous results say whether the requested definition is a candidate; and uncertain sites carry to_read: true. An indexed trailing-name column keeps lookup proportional to matching references rather than scanning the full table. Reference results obey limit and 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 list and okf remove manage imported bundles. Bundles that are not conformant are imported best-effort, as OKF §12 asks, unless --strict is given. The code index and its schema are not changed, so no reindex is needed. The new tokensave_knowledge MCP tool, in the memory area of tokensave_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...
Read more

v7.16.0

Choose a tag to compare

@aovestdipaperino aovestdipaperino released this 22 Oct 10:31

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 --local now registers the MCP server in the project's .pi/mcp.json and writes the rules block into the AGENTS.md in the project root, which Pi reads as a context file. The rules go in as a managed block, so an existing project AGENTS.md keeps its own content. A global install is unchanged (<agent-dir>/mcp.json and <agent-dir>/AGENTS.md), and tokensave uninstall --agent pi --local removes only the project files.

  • Mandatory contributor and AI agent rule for native filesystem path construction (#743), following PR #738: one component per join or push, 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_usage profiles (low, balanced, performance) limit simultaneous extraction parsers independently of CPU policy, trading throughput for lower parser memory. The default balanced caps extraction at two parsers; performance retains previous concurrency. These are not total-RAM caps.

  • Configurable language_aliases reuse enabled extractors for custom extensions such as Perl .t tests (#725). Existing project.json file/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 init now preserves the existing project settings instead of resetting them to their defaults, so a supplied mapping survives the first index.

  • tokensave init benchmarks the machine to choose the CPU usage profile (#731). cpu_usage defaulted to balanced on 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. init now 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: low on small or memory-constrained hosts (at most 2 CPUs, under 3 GiB total or 1 GiB available memory, or under 2.5 effective CPUs), performance on idle hosts with many effective CPUs and ample memory, balanced otherwise or when a probe fails. No new profile or config value is added. tokensave init --cpu-usage <profile> skips the benchmark, and a cpu_usage already in the config is kept. The new tokensave tune [path] [--dry-run] [--json] measures again after init and updates the stored profile. --json always prints one document, including when the project is not initialized and the command refuses to write.

  • Add read-only quality-diff CLI and tokensave_branch_diff quality 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, .dpr and .lpr were routed to the Pascal extractor, so a Delphi project reported them as "unsupported extension" and their declarations were missing from the graph. .lpr is 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 next tokensave 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; --repair explicitly 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, draw files, 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 a helpers/ directory, a *Helper module, ApplicationController, a top-level def, or the template itself), so partial locals such as item in item.title do not become call edges to unrelated same-named methods, while helper receivers such as current_user.name still do.

  • tokensave_callers lists every line where a caller calls the target (#672). A caller that invokes the target several times was listed once, with line set 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 carries lines, every call line in ascending order ([12, 13]); line and the other fields are unchanged, and line is always among lines. The index already stored one edge per call site, so no reindex is needed. tokensave_callers_for is unchanged. Requested by @xorets.

  • Every symbol in the results of tokensave_search, tokensave_callers, tokensave_callees, tokensave_impact, tokensave_implementations and tokensave_type_hierarchy carries end_line next to line (#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 for tokensave_read. JSON results now carry end_line, the symbol's last line, 1-based like line; text results show the range as file:line-end_line (src/shapes.ts:14-17: total (function) in tokensave_search, -- src/shapes.ts:5-12 in tokensave_type_hierarchy). For tokensave_callers, where line is the call site, end_line closes the caller's own span that starts at def_line. Existing fields are unchanged and the span was already stored, so no reindex is needed. tokensave_implementations also stops returning bodies by default, see Changed. Requested by @xorets.

  • tokensave_callers, tokensave_callees, tokensave_impact and tokensave_type_hierarchy take a symbol name (#669). They took only node_id, so "who calls RefreshAsync" cost a tokensave_search turn first. symbol resolves as tokensave_body resolves 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; for tokensave_type_hierarchy a type also outranks a same-named function, such as a constructor. node_id takes precedence when both are given, and neither is an error; node_id is no longer a schema-required field. When the name matches several symbols, each of the first max_matches (default 3, max 20) is answered in its own group, headed by qualified name, kind, file, line range (line and end_line, as in #674) and node id: the JSON tools return {symbol, match_count, matches: [...]} with the tool's usual fields inside each match, and tokensave_type_hierarchy prints a ## <heading> line above each tree. Overloads share a qualified name, so they form one group, listed under overloads, with their results merged. Matches past max_matches are listed under unanswered, without results, in tokensave_search rank order, so a follow-up can name one by node_id. A new limit caps the results per match (default 50 for callers, callees and impact, max 500; tokensave_type_hierarchy is uncapped unless limit is set), and a cut is reported as in #645: count, total and truncated beside the list, or a count: N of M (truncated; ...) line under a hierarchy. Called with node_id, the output is unchanged unless limit cuts it: callers and callees then wrap their array as {count, total, truncated, callers|callees}, and impact always carries count, total and truncated beside node_count. On the CLI, a positional argument binds to symbol (a node id there still works), so tokensave tool callers RefreshAsync and tokensave tool body RefreshAsync work as written. Requested by @xorets.

  • **C# property and field reads produce uses edges when the rece...

Read more

v7.15.0

Choose a tag to compare

@aovestdipaperino aovestdipaperino released this 07 Oct 07:00

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_read takes an if_digest argument (#650). Every response that carries a body also carries its digest. A client that still holds that content passes the digest back as if_digest; when it matches the current body for the same mode and range, the short unchanged: true stub is returned instead of the body, and otherwise the body is. Requested by @xorets.

Changed

  • The installed agent rules now say what tokensave_search with literal: true finds, and when grep is the right tool (#653). The rules named tokensave_search only 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 default tokensave_search returns where a name is defined, ranked, with its kind and signature, and that with literal: true it finds exact text: .Name( for calls through an object, Name( for every call, : IName for 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 to tokensave_callers for a symbol's uses, and the MCP server's initialize instructions 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 next tokensave install or reinstall, 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_read numbers the lines it returns (#652). full and lines modes now prefix every line with its real file line number, right-aligned, then a tab, as Claude Code's Read tool does, so a lines slice from 120 starts at 120. map and signatures are unchanged. Because the body changed, a digest from an earlier release no longer matches. Requested by @xorets.
  • tokensave_read always returns the body unless if_digest matches (#650). The server used to remember every file it had sent, across sessions, and answer a repeat read with an unchanged: true stub. 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 the read_cache table is no longer read or written. force is still accepted but deprecated: the body is now the default, and force: true only makes the server ignore if_digest.
  • tokensave_body lists candidates for an ambiguous name instead of returning every body, and accepts Type.Member (#651). A bare name shared by several definitions, such as three RefreshAsync methods, 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.RefreshAsync and App.Coordinator.RefreshAsync resolve 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 as App.Tests match Tests::FakeCoordinator::RefreshAsync too. A new node_id parameter (alias id) fetches one node's body directly; the truncated-snippet handle tokensave_body node_id=… that tokensave_context emits now works as written. limit now caps the candidate list (default 20, max 50), and symbol is no longer a schema-required field since node_id can 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 sh script 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 by install, reinstall, githooks on and 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. The LIKE fallback of search_nodes and the :: suffix scan of get_nodes_by_qualified_name passed the query to SQL unescaped, so my_function also matched myXfunction.
  • 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, and tokensave_search {"query": "MySymbol(", "literal": true} for every call. A def/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 grep is 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/) and TOKENSAVE_DISABLE_GREP_HOOK behave as before. Reported by @xorets.
  • tokensave_search with ids: true prints the ids in the default text format (#646). The ids only appeared with format: "json", so a text answer could not feed tokensave_callers, tokensave_callees, tokensave_impact or tokensave_node. A ranked hit now reads file:line: Foo (interface) [id: <id>] — signature, and a literal match appends [in <enclosing>, id: <enclosing_id>] when it falls inside a symbol. Without ids, the text is unchanged.
  • A literal tokensave_search says when limit cut its matches (#645). The scan stopped at limit and reported count: <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 carries total and truncated beside count; the text header reads count: 5 of 73 (truncated; raise limit to see more). The ranked search fetches one result past limit, and when that one survives the filters its text header reads count: 10 (truncated: more matches exist; raise limit to see them); its JSON stays a bare array.
  • tokensave_read in map and signatures mode 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 a graph_root read of src/x/Service.cs looked up src\x\Service.cs, which the indexer (it stores forward slashes) never wrote, and returned symbol_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.rs or an absolute path found nothing. The lookup key, the echoed file and the read-cache key are now always derived from the canonical root and file and use forward slashes. tokensave_entities uses the same key. The containment check from #636 is unchanged. Reported on Windows 11.
  • TypeScript imports written with a .js specifier now link to the .ts source (#647). Under "module": "NodeNext" (and the bundler resolution mode) TypeScript requires relative imports to name the emitted file, so src/lib/hash.ts is imported as ../../src/lib/hash.js. The import's uses edge 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_affected therefore reported no tests for the module, and `f...
Read more

v7.14.1

Choose a tag to compare

@aovestdipaperino aovestdipaperino released this 02 Oct 12:15

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.json for tokensave tool grants even when tokensave was never installed for Claude Code (e.g. a Codex-only setup). tokensave reinstall only 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

Choose a tag to compare

@aovestdipaperino aovestdipaperino released this 01 Oct 17:02

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: .rake files 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 uses edge, and overrides of called base methods are no longer reported as dead code (#598). Reported by @iKyi.

Fixes

  • serve outside any project starts with no default project instead of exiting (#606). initialize succeeds and lists the registered projects, and graph_root calls work. An explicit -p without an index never falls back to another project. Each registered project is checked once, in parallel, at startup. Reported by @equwal.
  • reinstall and the upgrade resync refresh tokensave's section of installed git hooks (#624). post-commit and post-merge now follow a moved binary, and doctor reports 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-transport suites now run on Linux, macOS and Windows.