Release · 2026-11-20T06:39:54Z · By Threadnote

Threadnote 5.4.0

Threadnote 5.4.0 makes development workflows up to 45× faster, adds a lighter default dev-cycle profile, moves semantic reads into native code, makes code-graph indexing and checkpoints much cheaper on large repositories, and stops background maintenance from using CPU all the time.

What's new

Threadnote 5.4.0 makes development workflows up to 45× faster, adds a lighter default dev-cycle profile, moves semantic reads into native code, makes code-graph indexing and checkpoints much cheaper on large repositories, and stops background maintenance from using CPU all the time.

Faster development workflows

Every dev-cycle command now stays responsive on a large checkout and memory corpus. Measured on a 105,000-file checkout with about 5,300 memories:

Command5.3.85.4.0Change
task-start, first start of a compact task298 s6.6 s−97.8%
compact-confirm104 s5.4–9.9 s−90% to −95%
remember of one new memory95 s1.6–1.9 s−98%
task-view1.0 s0.44 s−56%
record-snapshot on a clean treestash, restore and retries1.3–1.7 sno retries

A lighter default dev-cycle profile

New runs use the standard profile. It gates only on intent and review integrity, so routine bookkeeping no longer blocks work:

  • The newest snapshot of a tree supersedes any unreviewed one.
  • Phase ownership is derived from the plan. Files outside the plan produce warnings, not refusals.
  • A review is reused when the change is byte-identical, and incremental review is the default.
  • Every refusal names the failing gate and the exact next command, from both the CLI and MCP.
  • Review gates can be waived only with recorded authority.
  • A task starts in a new worktree without a ready code graph. The graph indexes in the background. A start that had to wait for a full index now returns in about 9 s.
  • Files outside the plan are advisory at every gate, and closeout records the actual changed files.

The strict profile keeps the previous behavior, including a ready graph at start, and runs already on disk stay strict.

More reliable workflows and memory

  • record-review says which findings break the prior-identity rule and how to report them, so agents no longer retry blind.
  • A workflow run resumes after its home or checkout moves behind a link. A copied home or another clone is still refused.
  • A run written by a newer Threadnote reports a version mismatch that names both versions, instead of calling the state malformed.
  • watch-pr can wake Claude Code sessions as well as Cursor.
  • watch-pr wakes the agent again until it acknowledges every PR event, so review comments that arrive after an earlier batch are no longer missed.
  • watch-pr with only a PR URL always starts a monitor-only watch, whatever the workflow state. A later workflow watch for the same PR replaces it.
  • Closeout accepts a merged PR whose head moved past a phase head, such as a multi-phase PR or one with pushes after delivery. watch-pr renew --recoverWakeup clears a wake that a reinstall interrupted.
  • record-snapshot can replace a blocked review target, so a run no longer deadlocks after two invalid review records. Snapshot and review refusals are bounded and name what is missing.
  • PR delivery and watch-pr work in clones whose remote has no fetch mapping, or that reach GitHub through an SSH host alias such as git@github.com-work:. When the PR base can't be verified, the error now names the failing check and, where one exists, the command that fixes it.
  • A task started from a second worktree uses the repository's identity, not its folder name, and a refused start writes nothing.
  • Handoff saves always end in an explained state. A save that could not start says why and that a retry is safe.
  • remember_context accepts compact memories/... pointers in replaceUri, and deferred citations work when replacing a memory.
  • recall_context with only memoryRefs returns connections with a stale-index warning instead of nothing.
  • Large recall reads no longer fail when refinement output passes 16 MiB, and lexical_read_failed names a reason and a fix.
  • A background code-anchor heal no longer makes a memory write fail with memory-busy.
  • context_brief ranks declarations above modules that match only by path, and a stale index brief recommends graph-status first.
  • A context_brief locate brief keeps retrieved memories when the graph has no evidence or its read times out. Before, it returned no evidence.
  • When context_brief runs out of time before graph status finishes, it now reports graph-status-deadline-exceeded and recommends the graph status follow-up, which shows whether the graph database needs compaction.
  • Semantic vectors that were queued before a structural reindex stay queued, instead of reporting not-requested.
  • read_context returns the memory body in Claude Code.
  • repair and memory writes no longer fail with SQLITE_BUSY while another process rebuilds lexical recall, and repair retries when concurrent writes supersede its lexical preparation.
  • Dev skill links to references/writing.md resolve in installed skills.
  • dev-skills status and update no longer stop on a symlinked skill that Threadnote does not own.
  • tn is now a managed short alias for threadnote. An existing tn that Threadnote did not write is left alone.

Lower background CPU

Automatic context maintenance could run most of the time. One 5.3.8 install ran the maintenance worker for 69% of wall-clock time over 8 days. In 5.4.0:

  • Quiet maintenance ticks back off from 30 s up to 30 minutes, and wake again when memory changes or a retry is due.
  • A tick reads only the ready lexical snapshot and does not wake embedding workers.
  • MCP server startup throttles its deferred code-anchor refresh per home, so a server that restarts every 5 minutes no longer repeats that work.

Faster code graph

  • Export edits. An edit that adds, removes or renames an exported name reads a persisted reverse reference index instead of rebuilding the graph. On a 3,600-file repository a later edit takes 2.86 s instead of 130.7 s (−97.8%). On a 100,000-file fixture it takes 13.0 s instead of 155 s (−91.6%).
  • Stored-fact decoding. Native decompression decodes stored facts in 764 ms instead of 8,084 ms (−90.5%). Faster validation then removes another 29.5% from fact decoding and 21% from the replay stage of a full index.
  • Checkpoints. Checkpoint chunks decode 96–97% faster and encode 82% faster, and new checkpoints are about 10% smaller. A large-repository export takes 89.7 s instead of 133.4 s (−32.8%).
  • Checkpoint export fixes. Export works for repositories whose tsconfig.json has comments or trailing commas, and for large repositories whose graph was built without checkpoint shards. The first export of such a repository rebuilds the graph once.

Native semantic reads

Semantic vector reads now run in Rust on every release target. On Apple silicon, warm reads are faster at p95: 23–26% at 100,000 dense vectors, about 19% at 100,000 tied vectors, and about 10% at 10,000. Peak memory is 3–4% lower. The first read after startup at 10,000 vectors is slower, because it loads the native reader.

The ready-read worker now starts before the rest of the CLI loads. Its p99 latency on Intel Macs drops from 987 ms to 701 ms (−29%), and its startup on Apple silicon from 59 ms to 43 ms (−27%).

Local embeddings no longer crash on Windows ARM.

Before you upgrade

  • Checkpoints. New checkpoints and shared graph deltas use the threadnote-gzip-v2 format. Earlier releases reject them, so upgrade receivers before importing from 5.4.0. This release still imports older checkpoints.
  • Workflow runs and PR watches. Once 5.4.0 writes a workflow run, PR watch or delivery receipt, earlier releases refuse it. Finish or abandon a run before rolling back.
  • One-time rebuilds. The lexical recall index and the code-graph store upgrade on first use. Lexical recall rebuilds once from your memory files.

Dependencies are updated, including Effect 4.1.4, and all security advisories with an available fix are resolved.