threadnote 1.3.2 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,12 +6,26 @@
6
6
 
7
7
  [![npm version](https://img.shields.io/npm/v/threadnote.svg)](https://www.npmjs.com/package/threadnote) [![CI](https://img.shields.io/github/actions/workflow/status/Kashkovsky/threadnote/ci.yml?branch=main&label=CI)](https://github.com/Kashkovsky/threadnote/actions/workflows/ci.yml) [![npm downloads](https://img.shields.io/npm/dm/threadnote.svg)](https://www.npmjs.com/package/threadnote) [![license](https://img.shields.io/npm/l/threadnote.svg)](./LICENSE) ![node version](https://img.shields.io/node/v/threadnote.svg)
8
8
 
9
- `threadnote` is a safe local workflow for using [OpenViking](https://openviking.ai/) as shared, agent-neutral context for development work.
10
- It is intentionally scoped to curated docs, memories, skills, and handoffs.
9
+ > Stop re-explaining your project to every AI coding agent.
10
+
11
+ `threadnote` gives Codex, Claude Code, Cursor, and Copilot one shared local memory for development work: durable
12
+ decisions, current handoffs, seeded repo docs, reusable skills, and curated team knowledge.
13
+
14
+ It is not a bigger prompt, and it is not just an auto-compacter. It is a workflow around Markdown-backed local memory:
15
+ agents recall the relevant `viking://` pointers, read only what they need, update one stable `project/topic` record, and
16
+ leave your canonical repo docs alone.
11
17
 
12
18
  **Walkthrough:** https://kashkovsky.github.io/threadnote/
13
19
  **Wiki:** https://github.com/Kashkovsky/threadnote/wiki
14
20
 
21
+ ## Why Engineers Use It
22
+
23
+ - **Fresh agents start with recall, not amnesia.** A new session can read the latest handoff before touching code.
24
+ - **Compaction becomes a checkpoint, not memory loss.** Durable facts and current status survive the summary.
25
+ - **Agent switching stops resetting the task.** Codex can leave a handoff that Claude Code, Cursor, or Copilot can read.
26
+ - **Repo docs stay clean.** `AGENTS.md`, `CLAUDE.md`, and docs remain stable policy; Threadnote carries living context.
27
+ - **Team context is explicit.** Publish only curated durable memories to a team git repo; personal handoffs stay local.
28
+
15
29
  ## Quickstart
16
30
 
17
31
  ```bash
@@ -25,52 +39,47 @@ New to Threadnote? Ask your agent **"what can I do with Threadnote?"** — it ca
25
39
  (server health, configured share teams, seeded projects) and offers to run each step
26
40
  with you. The walkthrough only loads when you ask, so it never sits in context otherwise.
27
41
 
28
- ## Real-World Uses
29
-
30
- **Not sure what Threadnote can do?**
31
- Ask your agent _"what can I do with Threadnote?"_ — it calls `threadnote_guide`, which returns a tour tailored to your setup and offers to run each step (recall a handoff, save a durable note, set up team sharing). The walkthrough loads only when you ask.
42
+ ## Why Not Just Markdown Files?
32
43
 
33
- **Want to continue work in a fresh agent session?**
34
- `threadnote install` adds user-level Codex, Claude, Cursor, and Copilot instructions so new agents automatically recall recent handoffs and relevant memories before they start changing code.
44
+ Use Markdown files. Threadnote makes them operational.
35
45
 
36
- **Working on a feature branch over several sessions?**
37
- Agents recall the branch handoff for current status, then recall durable feature memories for the design, decisions,
38
- interfaces, and gotchas behind the feature. As useful implementation knowledge appears, agents update the durable feature
39
- memory instead of leaving everything buried in transient handoffs.
46
+ - **`AGENTS.md` / `CLAUDE.md` / repo docs:** stable, reviewed, version-controlled rules.
47
+ - **Random notes:** easy to write, hard for agents to rank, scope, update, or know when stale.
48
+ - **Threadnote memories:** Markdown on disk plus semantic recall, stable URIs, lifecycle (`durable`, `handoff`,
49
+ `archived`), scoped compaction, MCP tools, and safe team sharing.
40
50
 
41
- **Implemented a feature a while ago and need to pick it up again?**
42
- Ask the agent to recall the feature, branch, or repo. Threadnote returns auditable `viking://` pointers that the agent can read before deciding what still matters.
51
+ The source of truth is still local files. The benefit is that agents know how to find the right file, decide whether it
52
+ is current, update it without creating duplicates, and hand it to the next agent.
43
53
 
44
- **Switching between Codex, Claude, Cursor, and Copilot?**\
45
- Install the MCP adapter for each agent you use. The user-level instructions tell agents to store a handoff before they pause, so the next agent can search the same local memory layer instead of reconstructing context
46
- from chat history.
54
+ ## Agent Perspective
47
55
 
48
- The adapter keeps Threadnote workflow tools (`recall_context`, `remember_context`, `share_publish`, and related aliases)
49
- as the default surface, and also exposes raw OpenViking parity tools with `ov_*` names for native behaviors such as
50
- code symbol navigation, watch management, raw search/read/list/store/remember, grep/glob, resource import, and forget.
56
+ These are workflow examples from an agent's point of view:
51
57
 
52
- **Working through a long task until the agent context window fills up?**
53
- After compaction, the next agent turn can recall the relevant Threadnote memories and handoffs instead of relying only on the compressed conversation summary.
58
+ **Codex before Threadnote:** "I inspect the repo, ask what changed, rediscover the test command, and hope the compacted
59
+ chat summary did not drop the important caveat."
54
60
 
55
- **Found a durable workflow fact, like how a repo runs tests or where release notes live?**
56
- Ask the agent to remember it. Threadnote keeps that memory local and searchable without editing unrelated repo files.
61
+ **Codex with Threadnote:** "I recall the branch handoff and durable feature memory first. I can name the files touched,
62
+ the last failing check, the design decision behind the code, and the next step before editing."
57
63
 
58
- **Have reusable agent workflows already installed as skills?**\
59
- Run `threadnote seed-skills` to make local `SKILL.md` guidance discoverable through recall. Agents can find relevant testing, release, on-call, debugging, or plugin-provided workflows without you reopening the same skill files by hand.
64
+ **Claude Code before Threadnote:** "A long debugging thread compacts into a vague narrative. The next turn knows the arc,
65
+ but not the exact command, blocker, or decision."
60
66
 
61
- **Want teammates to use the same skill or command?**\
62
- Publish it into a shared team repo with `threadnote share publish-artifact <path>`. Teammates can recall the shared
63
- artifact immediately after sync, then opt in to local installation with `threadnote share install-artifacts --apply`.
67
+ **Claude Code with Threadnote:** "The pre-compact handoff captures the concrete state. The next session reads the same
68
+ memory and continues without asking the user to reconstruct it."
64
69
 
65
- **Recall returned several overlapping memories?**
66
- Run `threadnote compact --project <repo> --topic <issue> --dry-run` or ask the agent to use
67
- `compact_context({"project":"<repo>","topic":"<issue>","dryRun":true})`. Threadnote produces a scoped plan first:
68
- which memory to keep/update, which old handoffs to archive, and which exact duplicates are safe to forget.
70
+ ## Real-World Uses
69
71
 
70
- **Still working on the same issue?**
71
- Use `threadnote remember --replace <uri>` or `threadnote handoff --replace <uri>` to keep one current-state memory fresh
72
- instead of accumulating near-duplicate progress notes. Replacing a shared `durable/` URI updates that shared memory in
73
- place and pushes the shared repo, so you do not need a separate `share publish` step.
72
+ - **Continue a branch:** "Continue where we left off" -> agent recalls the active handoff and durable feature memory.
73
+ - **Switch agents:** "Save where we are" -> agent stores a handoff the next MCP-enabled agent can read.
74
+ - **Survive compaction:** Claude Code's hook can snapshot a handoff before compaction; other agents can recall it later.
75
+ - **Remember a repo fact:** "This repo cuts release notes from CI" -> agent stores a durable workflow memory.
76
+ - **Share with teammates:** publish a curated durable memory or reusable skill to a team git repo.
77
+ - **Clean up overlap:** run `threadnote compact --project <repo> --topic <issue> --dry-run` before archiving stale
78
+ handoffs or forgetting exact duplicates.
79
+
80
+ The adapter keeps Threadnote workflow tools (`recall_context`, `remember_context`, `compact_context`, `share_publish`,
81
+ and related aliases) as the default surface. It also exposes raw OpenViking parity tools with `ov_*` names for native
82
+ behaviors such as code symbol navigation, raw search/read/list/store/remember, grep/glob, resource import, and forget.
74
83
 
75
84
  ## Acknowledgments
76
85