@cwim/kanban 1.1.20 → 1.2.1

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
@@ -1,270 +1,284 @@
1
- # CWIM Kanban
2
-
3
- > Your AI's long-term memory. Visualized.
4
-
5
- **CWIM Kanban gives your AI agent a persistent memory layer.** It remembers what you were working on, recalls context automatically, and shows you everything on a live dashboard.
6
-
7
- Works with **Claude Code** and **OpenCode**.
8
-
9
- No more "what were we doing again?" between sessions.
10
-
11
- ## How It Works
12
-
13
- ```
14
- User: "Continue the auth refactor"
15
- |
16
- Claude: task_recall("auth refactor")
17
- |
18
- Memory: "Found: [in-progress] Refactor auth middleware"
19
- |
20
- Claude: "Ah yes, we were extracting JWT validation..."
21
- ```
22
-
23
- As Claude works through complex tasks, it creates cards, appends notes, and moves them across columns. You watch progress unfold in real time on the board. When you return tomorrow, Claude recalls exactly where you left off.
24
-
25
- ## Installation
26
-
27
- ```bash
28
- # Install globally
29
- npm install -g @cwim/kanban
30
-
31
- # Or run directly with npx
32
- npx @cwim/kanban
33
-
34
- # Short command (after global install)
35
- kanban
36
- ```
37
-
38
- ## Quick Start
39
-
40
- ```bash
41
- # Start the dashboard
42
- kanban
43
- ```
44
-
45
- ### Claude Code Setup
46
-
47
- Add to your Claude Code MCP config (`~/.claude/claude.json`):
48
-
49
- ```json
50
- {
51
- "mcpServers": {
52
- "kanban": {
53
- "command": "npx",
54
- "args": ["@cwim/kanban", "mcp"]
55
- }
56
- }
57
- }
58
- ```
59
-
60
- ### OpenCode Setup
61
-
62
- Add to your OpenCode config (`opencode.json` in project root or `~/.config/opencode/opencode.json`):
63
-
64
- ```json
65
- {
66
- "$schema": "https://opencode.ai/config.json",
67
- "mcp": {
68
- "kanban": {
69
- "type": "local",
70
- "command": ["npx", "-y", "@cwim/kanban", "mcp"],
71
- "enabled": true
72
- }
73
- }
74
- }
75
- ```
76
-
77
- ## Making Your AI Agent Use It
78
-
79
- Just installing the MCP isn't enough — your AI agent needs instructions to use it.
80
-
81
- ### For Claude Code
82
-
83
- Add a `CLAUDE.md` file to your project root:
84
-
85
- ```markdown
86
- ## Task Tracking
87
- Use the cwim-kanban MCP to track all work in this project.
88
-
89
- ### Workflow
90
- 1. **Before starting**: Call `task_recall` with what you're about to work on
91
- 2. **Starting a task**: Create or move to `in-progress`
92
- 3. **Making progress**: Append notes with discoveries, decisions, or blockers
93
- 4. **Finishing**: Move to `done` and append a summary note
94
- 5. **Blocked**: Move to `blocked` with a note explaining why
95
-
96
- ### Rules
97
- - Always check for existing tasks before creating new ones
98
- - **One task per unit of work** - If a request involves multiple distinct steps (e.g., "fix auth and update docs"), create separate tasks for each step instead of one combined task
99
- - **Always verify the active session before creating tasks** - Call `session_list` first, confirm the active session matches the current project, and call `session_switch` if it doesn't
100
- - Use tags consistently (e.g., "bug", "feature", "refactor", "docs")
101
- - Append notes liberally - they build context for future sessions
102
- - Move tasks to "blocked" immediately when stuck, with explanation
103
- - Keep task titles concise but descriptive
104
- ```
105
-
106
- This makes the behavior automatic no need to ask Claude every session.
107
-
108
- ### For OpenCode
109
-
110
- Add an `AGENTS.md` file to your project root (or add to your existing one):
111
-
112
- ```markdown
113
- ## Task Tracking
114
- Use the cwim-kanban MCP to track all work in this project.
115
-
116
- ### Workflow
117
- 1. **Before starting**: Call `task_recall` with what you're about to work on
118
- 2. **Starting a task**: Create or move to `in-progress`
119
- 3. **Making progress**: Append notes with discoveries, decisions, or blockers
120
- 4. **Finishing**: Move to `done` and append a summary note
121
- 5. **Blocked**: Move to `blocked` with a note explaining why
122
-
123
- ### Rules
124
- - Always check for existing tasks before creating new ones
125
- - **One task per unit of work** - If a request involves multiple distinct steps (e.g., "fix auth and update docs"), create separate tasks for each step instead of one combined task
126
- - **Always verify the active session before creating tasks** - Call `session_list` first, confirm the active session matches the current project, and call `session_switch` if it doesn't
127
- - Use tags consistently (e.g., "bug", "feature", "refactor", "docs")
128
- - Append notes liberally - they build context for future sessions
129
- - Move tasks to "blocked" immediately when stuck, with explanation
130
- - Keep task titles concise but descriptive
131
- ```
132
-
133
- This makes the behavior automatic for OpenCode sessions as well.
134
-
135
- ## Memory Features
136
-
137
- ### Smart Context Recall
138
-
139
- Before starting complex work, Claude can recall relevant past tasks:
140
-
141
- ```
142
- task_recall({ context: "refactoring auth middleware" })
143
- ```
144
-
145
- Returns the most relevant tasks based on keyword matching, recency, and status. No more "what were we doing again?"
146
-
147
- ### Append Notes Without Overwriting
148
-
149
- Build context over time without losing previous work:
150
-
151
- ```
152
- task_append_note({
153
- id: "tf-abc123",
154
- note: "Discovered edge case with JWT refresh tokens"
155
- })
156
- ```
157
-
158
- Each note is timestamped and preserved. The task grows smarter as you work.
159
-
160
- ### Session Isolation
161
-
162
- Each project gets its own memory space. Work on multiple projects without context bleeding:
163
-
164
- - Auto-detected from `~/.claude/projects/` (Claude Code) and `~/.config/opencode/` (OpenCode)
165
- - Switch between sessions via dashboard, CLI, or MCP
166
- - "Independent Mode" for non-AI work
167
-
168
- ### Keyword Search
169
-
170
- Find anything instantly across your entire task history:
171
-
172
- ```
173
- task_list({ query: "auth" })
174
- ```
175
-
176
- ## Visual Dashboard
177
-
178
- While your AI works in the background, watch progress in real time:
179
-
180
- - **Real-time updates** - Board refreshes every 2 seconds
181
- - **4 columns** - To Do, In Progress, Done, Blocked
182
- - **Session switching** - Dropdown to browse projects
183
- - **Tag support** - Categorize tasks with badges
184
- - **Source tracking** - Distinguish AI-created vs manual tasks
185
- - **Keyboard shortcuts** - `r` to refresh, `1-4` to filter columns
186
-
187
- ## MCP Tools
188
-
189
- | Tool | Purpose |
190
- |------|---------|
191
- | `task_recall` | Intelligently recall relevant task context |
192
- | `task_create` | Create a new task card |
193
- | `task_append_note` | Append timestamped note to a task |
194
- | `task_update` | Edit task title, description, tags |
195
- | `task_move` | Move a task to another column |
196
- | `task_delete` | Remove a task |
197
- | `task_list` | List tasks (optionally filtered/search) |
198
- | `task_get` | Show details of a specific task |
199
- | `session_list` | List all available sessions |
200
- | `session_switch` | Switch to a different session |
201
-
202
- ## CLI Commands
203
-
204
- ### Launch Dashboard
205
- ```bash
206
- kanban # Start dashboard and open browser
207
- kanban --port 8080 # Custom port
208
- kanban --no-open # Don't auto-open browser
209
- ```
210
-
211
- ### Memory Operations
212
- ```bash
213
- kanban recall "auth" # Recall relevant tasks
214
- kanban note tf-abc123 "Edge case found" # Append note
215
- ```
216
-
217
- ### Task Management
218
- ```bash
219
- kanban add "Fix auth" -d "JWT validation" -t bug,auth
220
- kanban list --query "auth"
221
- kanban move tf-abc123 done
222
- kanban show tf-abc123
223
- kanban remove tf-abc123
224
- ```
225
-
226
- ### Session Management
227
- ```bash
228
- kanban sessions # List all sessions
229
- kanban switch my-project # Change active session
230
- ```
231
-
232
- ## Data Storage
233
-
234
- All data stored locally in `~/.kanban/sessions/`:
235
-
236
- ```
237
- ~/.kanban/
238
- ├── sessions/
239
- │ ├── my-project/
240
- │ │ └── tasks.json
241
- │ └── independent/
242
- │ └── tasks.json
243
- └── active-session.json
244
- ```
245
-
246
- - **Local-first** - No cloud, no accounts, no network required
247
- - **Human-readable** - Plain JSON you can edit directly
248
- - **Portable** - Back up or version-control your `~/.kanban/` directory
249
-
250
- ## Architecture
251
-
252
- ```
253
- Claude Code → MCP Server (stdio) → session tasks.json ← HTTP Server ← Dashboard UI
254
- | |
255
- task_recall, append_note, etc. polling /api/tasks
256
- ```
257
-
258
- - MCP Server and HTTP Server are separate processes
259
- - They communicate through per-session JSON files
260
- - Dashboard polls for updates every 2 seconds
261
- - Session switching persisted in `~/.kanban/active-session.json`
262
-
263
- ## Requirements
264
-
265
- - Node.js 18+
266
- - Claude Code or OpenCode (optional - dashboard works independently)
267
-
268
- ## License
269
-
270
- MIT
1
+ # CWIM Kanban
2
+
3
+ > Your AI's long-term memory. Visualized.
4
+
5
+ **CWIM Kanban gives your AI agent a persistent memory layer.** It remembers what you were working on, recalls context automatically, and shows you everything on a live dashboard.
6
+
7
+ Works with **Claude Code**, **OpenCode**, and any **Git repository**.
8
+
9
+ No more "what were we doing again?" between sessions.
10
+
11
+ ## How It Works
12
+
13
+ ```
14
+ User: "Continue the auth refactor"
15
+ |
16
+ Claude: task_recall("auth refactor")
17
+ |
18
+ Memory: "Found: [in-progress] Refactor auth middleware"
19
+ |
20
+ Claude: "Ah yes, we were extracting JWT validation..."
21
+ ```
22
+
23
+ As Claude works through complex tasks, it creates cards, appends notes, and moves them across columns. You watch progress unfold in real time on the board. When you return tomorrow, Claude recalls exactly where you left off.
24
+
25
+ ## Installation
26
+
27
+ ```bash
28
+ # Install globally
29
+ npm install -g @cwim/kanban
30
+
31
+ # Or run directly with npx
32
+ npx @cwim/kanban
33
+
34
+ # Short command (after global install)
35
+ kanban
36
+ ```
37
+
38
+ ## Quick Start
39
+
40
+ ```bash
41
+ # Start the dashboard
42
+ kanban
43
+ ```
44
+
45
+ ### Claude Code Setup
46
+
47
+ Add to your Claude Code MCP config (`~/.claude/claude.json`):
48
+
49
+ ```json
50
+ {
51
+ "mcpServers": {
52
+ "kanban": {
53
+ "command": "npx",
54
+ "args": ["@cwim/kanban", "mcp"]
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ ### OpenCode Setup
61
+
62
+ Add to your OpenCode config (`opencode.json` in project root or `~/.config/opencode/opencode.json`):
63
+
64
+ ```json
65
+ {
66
+ "$schema": "https://opencode.ai/config.json",
67
+ "mcp": {
68
+ "kanban": {
69
+ "type": "local",
70
+ "command": ["npx", "-y", "@cwim/kanban", "mcp"],
71
+ "enabled": true
72
+ }
73
+ }
74
+ }
75
+ ```
76
+
77
+ ## Making Your AI Agent Use It
78
+
79
+ Just installing the MCP isn't enough — your AI agent needs instructions to use it.
80
+
81
+ ### For Claude Code
82
+
83
+ Add a `CLAUDE.md` file to your project root:
84
+
85
+ ```markdown
86
+ ## Task Tracking
87
+
88
+ Use the cwim-kanban MCP to track all work in this project.
89
+
90
+ ### Workflow
91
+
92
+ 1. **Before starting**: Call `task_recall` with what you're about to work on
93
+ 2. **Starting a task**: Create or move to `in-progress`
94
+ 3. **Making progress**: Append notes with discoveries, decisions, or blockers
95
+ 4. **Finishing**: Move to `done` and append a summary note
96
+ 5. **Blocked**: Move to `blocked` with a note explaining why
97
+
98
+ ### Rules
99
+
100
+ - Always check for existing tasks before creating new ones
101
+ - **One task per unit of work** - If a request involves multiple distinct steps (e.g., "fix auth and update docs"), create separate tasks for each step instead of one combined task
102
+ - **Always verify the active session before creating tasks** - Call `session_list` first, confirm the active session matches the current project, and call `session_switch` if it doesn't
103
+ - Use tags consistently (e.g., "bug", "feature", "refactor", "docs")
104
+ - Append notes liberally - they build context for future sessions
105
+ - Move tasks to "blocked" immediately when stuck, with explanation
106
+ - Keep task titles concise but descriptive
107
+ ```
108
+
109
+ This makes the behavior automatic — no need to ask Claude every session.
110
+
111
+ ### For OpenCode
112
+
113
+ Add an `AGENTS.md` file to your project root (or add to your existing one):
114
+
115
+ ```markdown
116
+ ## Task Tracking
117
+
118
+ Use the cwim-kanban MCP to track all work in this project.
119
+
120
+ ### Workflow
121
+
122
+ 1. **Before starting**: Call `task_recall` with what you're about to work on
123
+ 2. **Starting a task**: Create or move to `in-progress`
124
+ 3. **Making progress**: Append notes with discoveries, decisions, or blockers
125
+ 4. **Finishing**: Move to `done` and append a summary note
126
+ 5. **Blocked**: Move to `blocked` with a note explaining why
127
+
128
+ ### Rules
129
+
130
+ - Always check for existing tasks before creating new ones
131
+ - **One task per unit of work** - If a request involves multiple distinct steps (e.g., "fix auth and update docs"), create separate tasks for each step instead of one combined task
132
+ - **Always verify the active session before creating tasks** - Call `session_list` first, confirm the active session matches the current project, and call `session_switch` if it doesn't
133
+ - Use tags consistently (e.g., "bug", "feature", "refactor", "docs")
134
+ - Append notes liberally - they build context for future sessions
135
+ - Move tasks to "blocked" immediately when stuck, with explanation
136
+ - Keep task titles concise but descriptive
137
+ ```
138
+
139
+ This makes the behavior automatic for OpenCode sessions as well.
140
+
141
+ ## Memory Features
142
+
143
+ ### Smart Context Recall
144
+
145
+ Before starting complex work, Claude can recall relevant past tasks:
146
+
147
+ ```
148
+ task_recall({ context: "refactoring auth middleware" })
149
+ ```
150
+
151
+ Returns the most relevant tasks based on keyword matching, recency, and status. No more "what were we doing again?"
152
+
153
+ ### Append Notes Without Overwriting
154
+
155
+ Build context over time without losing previous work:
156
+
157
+ ```
158
+ task_append_note({
159
+ id: "tf-abc123",
160
+ note: "Discovered edge case with JWT refresh tokens"
161
+ })
162
+ ```
163
+
164
+ Each note is timestamped and preserved. The task grows smarter as you work.
165
+
166
+ ### Session Isolation
167
+
168
+ Each project gets its own memory space. Work on multiple projects without context bleeding:
169
+
170
+ - **Auto-detected from Git repositories** - Automatically binds to the current git repo when you `cd` into it
171
+ - Auto-detected from `~/.claude/projects/` (Claude Code) and `~/.config/opencode/` (OpenCode)
172
+ - Switch between sessions via dashboard, CLI, or MCP
173
+ - "Independent Mode" for non-AI work
174
+
175
+ **Git Integration**: When you run kanban commands inside a git repository, it automatically detects the repo and uses it as the session. No manual session switching needed - just `cd` into your project and start tracking tasks.
176
+
177
+ ### Keyword Search
178
+
179
+ Find anything instantly across your entire task history:
180
+
181
+ ```
182
+ task_list({ query: "auth" })
183
+ ```
184
+
185
+ ## Visual Dashboard
186
+
187
+ While your AI works in the background, watch progress in real time:
188
+
189
+ - **Real-time updates** - Board refreshes every 2 seconds
190
+ - **4 columns** - To Do, In Progress, Done, Blocked
191
+ - **Session switching** - Dropdown to browse projects
192
+ - **Tag support** - Categorize tasks with badges
193
+ - **Source tracking** - Distinguish AI-created vs manual tasks vs git-detected sessions
194
+ - **Keyboard shortcuts** - `r` to refresh, `1-4` to filter columns
195
+
196
+ ## MCP Tools
197
+
198
+ | Tool | Purpose |
199
+ | ------------------ | ------------------------------------------ |
200
+ | `task_recall` | Intelligently recall relevant task context |
201
+ | `task_create` | Create a new task card |
202
+ | `task_append_note` | Append timestamped note to a task |
203
+ | `task_update` | Edit task title, description, tags |
204
+ | `task_move` | Move a task to another column |
205
+ | `task_delete` | Remove a task |
206
+ | `task_list` | List tasks (optionally filtered/search) |
207
+ | `task_get` | Show details of a specific task |
208
+ | `session_list` | List all available sessions |
209
+ | `session_switch` | Switch to a different session |
210
+
211
+ ## CLI Commands
212
+
213
+ ### Launch Dashboard
214
+
215
+ ```bash
216
+ kanban # Start dashboard and open browser
217
+ kanban --port 8080 # Custom port
218
+ kanban --no-open # Don't auto-open browser
219
+ ```
220
+
221
+ ### Memory Operations
222
+
223
+ ```bash
224
+ kanban recall "auth" # Recall relevant tasks
225
+ kanban note tf-abc123 "Edge case found" # Append note
226
+ ```
227
+
228
+ ### Task Management
229
+
230
+ ```bash
231
+ kanban add "Fix auth" -d "JWT validation" -t bug,auth
232
+ kanban list --query "auth"
233
+ kanban move tf-abc123 done
234
+ kanban show tf-abc123
235
+ kanban remove tf-abc123
236
+ ```
237
+
238
+ ### Session Management
239
+
240
+ ```bash
241
+ kanban sessions # List all sessions
242
+ kanban switch my-project # Change active session
243
+ ```
244
+
245
+ ## Data Storage
246
+
247
+ All data stored locally in `~/.kanban/sessions/`:
248
+
249
+ ```
250
+ ~/.kanban/
251
+ ├── sessions/
252
+ │ ├── my-project/
253
+ │ │ └── tasks.json
254
+ │ └── independent/
255
+ │ └── tasks.json
256
+ └── active-session.json
257
+ ```
258
+
259
+ - **Local-first** - No cloud, no accounts, no network required
260
+ - **Human-readable** - Plain JSON you can edit directly
261
+ - **Portable** - Back up or version-control your `~/.kanban/` directory
262
+
263
+ ## Architecture
264
+
265
+ ```
266
+ Claude Code MCP Server (stdio) session tasks.json ← HTTP Server ← Dashboard UI
267
+ | |
268
+ task_recall, append_note, etc. polling /api/tasks
269
+ ```
270
+
271
+ - MCP Server and HTTP Server are separate processes
272
+ - They communicate through per-session JSON files
273
+ - Dashboard polls for updates every 2 seconds
274
+ - Session switching persisted in `~/.kanban/active-session.json`
275
+
276
+ ## Requirements
277
+
278
+ - Node.js 18+
279
+ - Git (optional - for automatic repo detection)
280
+ - Claude Code or OpenCode (optional - dashboard works independently)
281
+
282
+ ## License
283
+
284
+ MIT