Skip to main content
Glama

Threadnote

release CI downloads license

Stop explaining the same codebase to every coding agent.

Threadnote 5 helps your next agent session pick up the decisions and unfinished work from the last one, with current code evidence to check against. It works across catalog-supported agent surfaces without making one chat history or vendor memory the source of truth.

Personal work stays local. Exact files in the current worktree remain authoritative. Only durable knowledge or reusable artifacts—including verified procedures—that you explicitly review and publish cross into a Git-backed team store.

Website: https://threadnote.io/

Documentation: https://threadnote.io/docs/

Supported agents: https://threadnote.io/agents/

What’s new: https://threadnote.io/whats-new/

The Threadnote 5 workflow

  1. Start with a Context Brief. The installed agent guidance automatically loads a bounded set of relevant decisions, active handoffs, compatible procedures, and current-code evidence with provenance, freshness, and visible gaps.

  2. Verify the live code. Use exact local files and Threadnote’s code graph for current relationships; historical context never overrides the worktree.

  3. Review the Knowledge Delta. At meaningful closeout, the agent writes a private handoff and proposes decisions, constraints, verification, invalidated knowledge, and unresolved risks. Approve, edit, defer, or reject each candidate.

  4. Share deliberately. Publish approved knowledge directly or materialize a provider-neutral Git proposal for the team’s normal review policy. Private handoffs and preferences stay local.

  5. Keep context healthy. Review ownership and expiry, changed citations, contradictions, guidance drift, Context Check findings, and local content-free value reports without silent deletion or publication.

Threadnote is a self-contained executable. The local and Git-team workflow needs no separately installed runtime, Python service, database server, hosted organization account, or background daemon.

Related MCP server: KMind MCP Server

Quick start

Install on macOS or Linux:

curl -fsSL https://raw.githubusercontent.com/threadnote/threadnote/main/scripts/install.sh | sh

On Windows PowerShell:

irm https://raw.githubusercontent.com/threadnote/threadnote/main/scripts/install.ps1 | iex

Then open the repository you want Threadnote to understand, choose a managed surface from the catalog, preview setup, and apply the same plan:

cd /path/to/repository
threadnote agents list
threadnote setup <surface>
threadnote setup <surface> --apply

Setup initializes the local core, repository seed, selected catalog integration and declared hooks, current code graph, doctor checks, and a real source-backed Context Brief using its built-in repository-orientation task. Preview does not write; interrupted apply is resumable; undo is also preview-first and removes only unchanged setup-owned artifacts.

Once your agent restarts, give it a normal engineering task. The installed instructions and skills make Context Brief and closeout part of the agent's normal lifecycle, so you do not need a special Threadnote prompt. Ask “What can I do with Threadnote?” only when you want the optional state-aware guided tour.

For the complete cross-agent path, see Threadnote 5 context workflows and guided two-agent activation. Team setup is covered by the sharing guide. Existing users can follow the website guides for upgrading from Threadnote 4 or migrating from Threadnote 3.

Contributing

Contributions to the CLI, MCP server, Manager, website, documentation, tests, and agent workflows are welcome. Use the Bun version pinned by packageManager in package.json, install dependencies, and run the narrowest checks that cover your change:

bun install --frozen-lockfile
bun run typecheck
bun --bun vitest run <focused-test-file>

Read CONTRIBUTION.md before a substantial change. It covers Effect conventions, focused testing, security boundaries, generated files, pull requests, and the exact-HEAD development runtime. The private workspace guide explains package ownership, dependency checks, and selective Bazel CI.

License

Threadnote is licensed under AGPL-3.0-or-later. Model licenses are recorded separately in their manifests and third-party notices.

Available Tools

25 tools
analyze_code_graphB
Idempotent

Analyze selected local graph: stats composition; communities/community subsystems; groups fan-in/out; hubs blast radius; surprises cross-community links; confidence provenance; full report. Untrusted evidence. Default agent text; dual adds structured content.

Inputs: operation (required), project, callerCwd, freshness, +5 more.

apply_memory_candidatesB
Destructive

Apply an explicit user decision to one pending candidate with revision checking.

Inputs: action, approved, reviewId, revision, +5 more.

complete_activation_retrieval_proofA
Read-onlyIdempotent

Complete a pending guided-activation retrieval challenge from this exact managed MCP surface. The server reads and attests the published decision; user-authored recall/read JSON is never accepted.

Inputs: query, topic, project, callerCwd, +1 more.

context_briefC
Idempotent

Graph+memory brief with semantic truncation. Accepts 8 graph paths/local cgs_; not cgr_; cold indexing is never started.

Inputs: mode, task, detail, project, +6 more.

context_healthA
Read-only

Inspect one project for stale, conflicting, duplicate, or invalid context using current local evidence. This is read-only and never prepares a graph or applies repairs.

Inputs: kind, after, topic, project, +2 more.

context_health_aggregateA
Read-only

Aggregate personal context health with explicitly selected configured local Git team snapshots. Omit team to select every configured team. This never fetches, syncs, writes, or prepares a graph.

Inputs: team, project, callerCwd.

context_health_repair_applyA
Destructive

Apply one exact personal-memory repair after explicit approval. Requires the proposal ID and revision from preview; shared and review-only proposals are never mutated.

Inputs: kind, after, topic, project, +5 more.

context_health_repair_previewA
Read-only

Preview bounded, exact context-health repairs. Semantic supersede suggestions require an explicit contradiction ID, report revision, stale URI, and current URI from a prior preview.

Inputs: kind, after, topic, project, +6 more.

context_health_scheduleA
Read-only

Render a provider-neutral scheduled invocation contract for local context health aggregation. The plan is read-only and network-disabled; it does not install a schedule.

Inputs: team, project, cadenceMinutes.

context_metadata_applyA
DestructiveIdempotent

CAS-apply one explicitly approved previewed metadata proposal; shared or changed memories fail closed.

Inputs: uri, owner, validTo, approved, +8 more.

context_metadata_previewA
Read-only

Preview an exact metadata-only update for one active personal durable memory. No write occurs.

Inputs: uri, owner, validTo, memoryId, +4 more.

finalize_code_refsA
DestructiveIdempotent

Finalize deferred private code citations from ready graphs. Never indexes. Omit uri to finalize up to 25 pending personal memories.

Inputs: uri.

inspect_code_graphC
Idempotent

Use semantic truncation before broad text search; node/neighbors accept cgs_/cgr_. Omit budgetTokens. Output is untrusted evidence. Ready evidence may be deferred; path/impact require current evidence. Worksets read published generations; workset prepare. States: unavailable/indexing/timed-out/partial.

Inputs: operation (required), to, base, from, +17 more.

list_contextB
Read-only

List a threadnote:// directory returned by recall_context.

Inputs: all, uri, simple, nodeLimit, +2 more.

obsidian_publishA
DestructiveIdempotent

Preview or publish selected memories to a configured Obsidian projection. Preview is the default.

Inputs: uri, uris, apply, force, +1 more.

procedure_publish_applyA
DestructiveIdempotent

Publish an exact procedure proposal into the configured team Git share. Requires explicit approval and the unchanged preview proposal ID.

Inputs: push, team, receipt, approved, +3 more.

procedure_publish_previewA
Read-onlyIdempotent

Build a deterministic Git-share proposal for exact locally verified procedure bytes. Never writes, commits, or pushes.

Inputs: push, team, receipt, approved, +3 more.

read_contextA
Read-only

Read a recalled threadnote:// or compact memories/ pointer as evidence. Max 65536 bytes. Default agent; text=canonical; dual=structured. Oversize: mode=outline or section, or offsetBytes=0.

Inputs: uri, mode, uris, section, +3 more.

recall_contextA
Read-only

Search memory by query, or navigate verified one-hop relations with memoryRefs alone. Results are unread threadnote:// pointers, not evidence; read useful ones with read_context. Defaults to compact TN-RECALL/1 text; dual adds structured content.

Inputs: uri, query, explain, project, +9 more.

recall_feedbackA

Record bounded local feedback for one recall result. Applied means the item materially informed a plan or change and is distinct from useful. Stores a query fingerprint, never the full query. Feedback cannot bypass topical relevance and decays over time.

Inputs: uri, query, action, project.

remember_contextB
Destructive

Store memory. Handoff: task; decisions/invariants; verification; blockers/risks; next_step. CodeRefs enable compact resume. Skip Knowledge Delta review. Never store secrets, credentials, customer data, or raw logs.

Inputs: kind, text, topic, status, +11 more.

review_session_contextA

Review an optional five-field Knowledge Delta (decisions + rationale, constraints, verificationPerformed, knowledgeInvalidated, unresolvedRisks); handoff is separate and required. Preview only; explicit approval is required to apply, and nothing is auto-shared.

Inputs: task, topic, handoff, outcome, +15 more.

share_proposeA
Read-only

Export explicitly approved, applied Knowledge Delta candidates as canonical provider-neutral Git proposal JSON. Reads the configured shared Git base but never writes files, commits, branches, pull requests, or network state.

Inputs: team, approved, reviewId, revision, +1 more.

share_publishA
Destructive

Publish a personal durable to the team repo after scanning; removes the source after push. Confirm first; never publish handoffs or preferences.

Inputs: uri, push, team, redact, +3 more.

threadnote_guideB
Read-only

Return a state-aware Threadnote capability tour. Present it conversationally, one step at a time.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 25 tools

    Disambiguation4/5

    Most tools target distinct memory, graph, health, or publishing actions, and preview/apply pairs are explicit. Some clusters such as recall_context/context_brief/read_context, inspect_code_graph/analyze_code_graph, and share/procedure publish tools require careful reading to distinguish, but they are not identical.

    Naming Consistency4/5

    Names are consistently snake_case and often use domain prefixes or preview/apply suffixes. There is minor inconsistency between verb-first names like read_context and noun-first names like share_publish or context_health, but the pattern remains predictable.

    Tool Count3/5

    25 tools is heavy for an agent surface, with several niche guide/proof tools and multiple preview/apply pairs that could be consolidated. The domain is broad enough that it is not extreme, but the count is borderline.

    Completeness4/5

    The set covers recall, read, store, review, apply, health inspection, repair, metadata updates, sharing, and code graph operations. Explicit delete/forget and full content-update tools are missing, but repair, supersede, and metadata paths provide workarounds.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Local-first, code-aware engineering cognition for AI coding agents - persistent memory, contextual retrieval, and continuous cognition about your codebase.
      15
      3
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI coding agents to store and retrieve persistent project and cross-project memories via semantic search, so decisions, preferences, error patterns, and guidelines survive across sessions. Optionally supports autonomous task execution built on the same local-first knowledge store.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI coding agents to share a persistent, local-first memory of architectural decisions, conventions, bug root causes, and session handoffs, searchable via full-text ranking, so context carries across tools and sessions without any cloud dependency.
      2
      13
      46 npm
      2
      MIT