You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+77-4Lines changed: 77 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,73 @@ A thread is a container for an **idea or project**, not just a feature or task.
14
14
15
15
---
16
16
17
+
## Claude Code Plugin
18
+
19
+
Threadlinking ships as a **Claude Code plugin** — when you run `threadlinking init`, it installs an MCP server that gives Claude direct access to threadlinking tools. Claude can create threads, save snippets, link files, and search context without you ever touching the CLI.
20
+
21
+
### MCP Tools
22
+
23
+
These are the tools Claude gets when the MCP server is active:
24
+
25
+
| Tool | What it does |
26
+
|------|-------------|
27
+
|`threadlinking_snippet`| Save decision context to a thread |
28
+
|`threadlinking_create`| Create a new empty thread |
29
+
|`threadlinking_attach`| Link a file to a thread |
30
+
|`threadlinking_detach`| Unlink a file from a thread |
31
+
|`threadlinking_explain`| Show why a file exists |
32
+
|`threadlinking_show`| View full thread details |
33
+
|`threadlinking_list`| List all threads + pending files |
34
+
|`threadlinking_search`| Keyword search across threads |
35
+
|`threadlinking_semantic_search`| Natural language search by meaning |
36
+
|`threadlinking_analytics`| Usage stats and insights |
|`/context-capture [thread]`| Analyze the session and capture what was done and why |
51
+
|`/thread-review [thread]`| Review full history of a thread |
52
+
|`/find-context <query>`| Semantic + keyword search across threads |
53
+
|`/thread-stats`| Usage analytics and insights |
54
+
|`/explain-file <file>`| Show the decisions behind a file |
55
+
56
+
### Hooks
57
+
58
+
Two Claude Code hooks automate context tracking:
59
+
60
+
-**PostToolUse** — When Claude creates or edits a file, the hook automatically adds it to the pending files list so nothing slips through untracked.
61
+
-**SessionStart** — At the start of every session, shows your active threads and any pending unlinked files, so Claude (and you) have immediate context.
62
+
63
+
### CLAUDE.md Integration
64
+
65
+
The init also appends instructions to your global `~/.claude/CLAUDE.md` that teach Claude *when* and *how* to save context — detecting decisions, prompting for thread names, and saving snippets at natural points in the conversation.
66
+
67
+
### Claude Desktop
68
+
69
+
The MCP server also works with Claude Desktop. Add it to your config manually:
0 commit comments