1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
|
# Vikunja tasks tools Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Four assistant tools (`tasks`, `task_add`, `task_edit`, `task_delete`) giving the model create, read, update and delete on the user's Vikunja tasks.
**Architecture:** One stdlib script, `examples/tools/vikunja.py`, with four actions (`list`, `add`, `edit`, `delete`), each one or two stateless JSON-RPC `tools/call` POSTs to Vikunja's built-in MCP server. Four TOML tool files run it. Endpoint and token command come from config `[env]`.
**Tech Stack:** Python 3.12 stdlib (urllib, json, datetime, shlex, subprocess); Vikunja MCP (`/api/v2/mcp`, streamable HTTP).
Spec: `docs/superpowers/specs/2026-11-25-vikunja-tasks-design.md`.
**Verified while planning (2026-11-25, on the real server, probe task deleted):**
- `tools/call` needs no `initialize` and no session id. The reply is SSE: one `data: {...}` line; JSON in `result.structuredContent`.
- A tool error is `result.isError: true` with the message in `result.content[0].text` (e.g. `404 Not Found: This task does not exist`). A bad token is HTTP 401.
- No due date reads as `0001-01-01T00:00:00Z`. Dates come back with the server offset (`2026-11-28T23:59:00+01:00`).
- `filter: "done = false && due_date < 2026-11-29T00:00:00Z"` works, and tasks with no due date are left out. `title like %lamp%` works.
- `tasks_update` changes only the fields passed; `due_date: null` clears the due date; with no change it answers `{"ok": true, "unchanged": true}`, not the task. Without `format: "markdown"` the description comes back as HTML.
---
## Files
- Create: `examples/tools/vikunja.py`: the script, `--test` self-check.
- Create: `examples/tools/tasks.toml`, `task_add.toml`, `task_edit.toml`, `task_delete.toml`.
- Modify: `examples/config.toml`: two commented `[env]` placeholders.
- Modify: `AGENTS.md`: tool paragraph near the top, live-check findings section.
- Modify: `docs/superpowers/specs/2026-11-25-vikunja-tasks-design.md`: status line.
---
### Task 1: Pure helpers and the self-check
**Files:**
- Create: `examples/tools/vikunja.py`
- [ ] **Step 1: Write the script header and the failing self-check**
```python
#!/usr/bin/env python3
# desktop-assistant tool: the user's Vikunja tasks, through Vikunja's MCP server.
# Copyright (C) 2026 Danilo M. <danix@danix.xyz>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""vikunja.py ACTION ARGS...: the user's Vikunja tasks.
list QUERY PROJECT DUE_BEFORE ALL ID
add TITLE DESCRIPTION DUE PROJECT
edit ID TITLE DESCRIPTION DUE PROJECT DONE
delete ID
Every argument is present and empty means not given. Dates are local
time, YYYY-MM-DD (23:59 that day) or YYYY-MM-DD HH:MM; "none" clears a
due date in edit. VIKUNJA_MCP_URL is the MCP endpoint, VIKUNJA_TOKEN_CMD
prints the bearer token on its first line (run without a shell).
--test runs the self-check.
"""
import functools
import json
import os
import shlex
import subprocess
import sys
import time
import urllib.error
import urllib.request
from datetime import datetime, timezone
NO_DATE = "0001-01-01T00:00:00Z" # Vikunja's "no due date"
FIELDS = ["id", "title", "done", "due_date", "project_id"]
def test():
os.environ["TZ"] = "Europe/Rome"
time.tzset()
assert parse_due("2026-11-28") == "2026-11-28T22:59:00Z"
assert parse_due("2026-07-01 09:30") == "2026-07-01T07:30:00Z" # summer time
assert parse_due(" None ") is None
for bad in ("28/11/2026", "2026-11-28 25:00", "tomorrow", ""):
try:
parse_due(bad)
except ValueError:
continue
raise AssertionError(bad)
assert show_due("2026-11-28T22:59:00Z") == "Sat 28 Nov 2026 23:59"
assert show_due("2026-11-28T23:59:00+01:00") == "Sat 28 Nov 2026 23:59"
assert show_due(NO_DATE) == "" and show_due(None) == ""
ps = paths([{"id": 1, "title": "Inbox", "parent_project_id": 0},
{"id": 9, "title": "dev", "parent_project_id": 0},
{"id": 12, "title": "quickshell", "parent_project_id": 9}])
assert ps == {1: "Inbox", 9: "dev", 12: "dev/quickshell"}
assert find_project("QuickShell", ps) == 12 == find_project("dev/quickshell", ps)
try:
find_project("nope", ps)
raise AssertionError("unknown project")
except ValueError as e:
assert "dev/quickshell" in str(e)
assert line({"id": 42, "title": "Fix lamp", "done": False, "project_id": 12,
"due_date": "2026-11-28T23:59:00+01:00"}, ps) \
== "#42 [dev/quickshell] Fix lamp, due Sat 28 Nov 2026 23:59"
assert line({"id": 7, "title": "x", "done": True, "project_id": 1,
"due_date": NO_DATE}, ps) == "#7 [Inbox] x (done)"
assert task_id("#42") == 42 == task_id(" 42 ")
try:
task_id("forty")
raise AssertionError("bad id")
except ValueError:
pass
print("ok")
if __name__ == "__main__":
if sys.argv[1:] == ["--test"]:
test()
sys.exit()
```
- [ ] **Step 2: Run it, expect failure**
Run: `python3 examples/tools/vikunja.py --test`
Expected: `NameError: name 'parse_due' is not defined`
- [ ] **Step 3: Add the helpers above `def test()`**
```python
def parse_due(s):
# Local "YYYY-MM-DD" (23:59 that day) or "YYYY-MM-DD HH:MM" to UTC ISO;
# "none" to None.
s = s.strip()
if s.lower() == "none":
return None
for fmt in ("%Y-%m-%d %H:%M", "%Y-%m-%d"):
try:
d = datetime.strptime(s, fmt)
except ValueError:
continue
if fmt == "%Y-%m-%d":
d = d.replace(hour=23, minute=59)
return d.astimezone(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
raise ValueError(f"bad date {s!r}: use YYYY-MM-DD or YYYY-MM-DD HH:MM")
def when(iso):
# Vikunja date to an aware datetime, None for "no date".
if not iso or iso.startswith("0001-"):
return None
return datetime.fromisoformat(iso.replace("Z", "+00:00"))
def show_due(iso):
# Local time with the weekday: the model gets weekdays wrong from dates.
d = when(iso)
return d.astimezone().strftime("%a %d %b %Y %H:%M") if d else ""
def paths(projects):
# id -> "parent/title", so nested projects read unambiguously.
by = {p["id"]: p for p in projects}
def path(p):
parent = by.get(p.get("parent_project_id"))
return f"{path(parent)}/{p['title']}" if parent else p["title"]
return {i: path(p) for i, p in by.items()}
def find_project(name, ps):
# By full path or by own title, case-insensitive; exactly one match.
n = name.strip().lower()
hits = [i for i, p in ps.items() if n in (p.lower(), p.rsplit("/", 1)[-1].lower())]
if len(hits) == 1:
return hits[0]
raise ValueError(f"{'ambiguous' if hits else 'no'} project {name.strip()!r}; "
"projects: " + ", ".join(sorted(ps.values())))
def line(t, ps):
s = f"#{t['id']} [{ps.get(t['project_id'], '?')}] {t['title']}"
if d := show_due(t.get("due_date")):
s += f", due {d}"
return s + (" (done)" if t.get("done") else "")
def task_id(s):
try:
return int(str(s).strip().lstrip("#"))
except ValueError:
raise ValueError(f"bad task id {s!r}") from None
```
- [ ] **Step 4: Run it, expect pass**
Run: `chmod +x examples/tools/vikunja.py && python3 examples/tools/vikunja.py --test`
Expected: `ok`
- [ ] **Step 5: Commit**
```bash
git add examples/tools/vikunja.py
git commit -m "tools: vikunja, date, project and line helpers"
```
---
### Task 2: MCP calls and the four actions
**Files:**
- Modify: `examples/tools/vikunja.py`
No network test in `--test`; this task is checked against the real server in Step 3, on a scratch project.
- [ ] **Step 1: Add the transport and actions above `def test()`**
```python
@functools.cache
def token():
try:
r = subprocess.run(shlex.split(os.environ["VIKUNJA_TOKEN_CMD"]), capture_output=True,
text=True, stdin=subprocess.DEVNULL, timeout=10)
except (OSError, ValueError, subprocess.TimeoutExpired) as e:
sys.exit(f"token command failed ({type(e).__name__})")
if r.returncode or not r.stdout.strip():
last = r.stderr.strip().splitlines()[-1:]
sys.exit(last[0] if last else "token command printed nothing")
return r.stdout.splitlines()[0].strip()
def call(tool, **args):
# One stateless JSON-RPC tools/call; Vikunja needs no initialize.
url = os.environ["VIKUNJA_MCP_URL"]
body = json.dumps({"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": tool, "arguments": args}}).encode()
req = urllib.request.Request(url, body, {
"Authorization": f"Bearer {token()}", "Content-Type": "application/json",
"Accept": "application/json, text/event-stream"})
try:
with urllib.request.urlopen(req, timeout=15) as r:
raw = r.read().decode()
except urllib.error.HTTPError as e:
sys.exit("Vikunja token expired: make a new one in Vikunja, Settings > MCP"
if e.code == 401 else f"Vikunja answered HTTP {e.code}")
except OSError: # URLError, timeout, refused
sys.exit(f"Vikunja unreachable at {url}")
# SSE (one data: line) or plain JSON, whichever the server picked.
msg = json.loads(next((l[5:] for l in raw.splitlines() if l.startswith("data:")), raw))
if "error" in msg:
sys.exit(msg["error"].get("message", "MCP error"))
res = msg["result"]
if res.get("isError"):
sys.exit(res["content"][0]["text"])
return res.get("structuredContent")
def projects():
return paths(call("projects_list", per_page=200,
fields=["id", "title", "parent_project_id"])["items"])
def read(n, ps, full=False):
t = call("tasks_read", task=n, format="markdown",
fields=FIELDS + (["description"] if full else []))
out = line(t, ps)
if full and (t.get("description") or "").strip():
out += "\n\n" + t["description"].strip()
return out
def do_list(query, project, due_before, all_, id_):
ps = projects()
if id_:
return read(task_id(id_), ps, full=True)
f = [] if all_.strip() == "1" else ["done = false"]
if query.strip():
f.append("title like '%" + query.strip().replace("'", "") + "%'")
if project.strip():
f.append(f"project = {find_project(project, ps)}")
if due_before.strip():
f.append(f"due_date < {parse_due(due_before) or NO_DATE}")
args = {"per_page": 50, "fields": FIELDS}
if f:
args["filter"] = " && ".join(f)
# ponytail: first 50 matches sorted here; with more open tasks than that,
# the soonest due can be missed. Server-side sort_by if it happens.
items = call("tasks_list", **args)["items"]
far = datetime.max.replace(tzinfo=timezone.utc)
items.sort(key=lambda t: (when(t["due_date"]) or far, t["id"]))
return "\n".join(line(t, ps) for t in items) or "no tasks"
def do_add(title, description, due, project):
if not title.strip():
raise ValueError("title is required")
ps = projects()
args = {"project": find_project(project or "Inbox", ps), "title": title.strip(),
"format": "markdown"}
if description.strip():
args["description"] = description.strip()
if due.strip() and (d := parse_due(due)):
args["due_date"] = d
return line(call("tasks_create", **args), ps)
def do_edit(id_, title, description, due, project, done):
n, ps, args = task_id(id_), projects(), {}
if title.strip():
args["title"] = title.strip()
if description.strip():
args["description"] = description.strip()
if due.strip():
args["due_date"] = parse_due(due) # None clears it
if project.strip():
args["project_id"] = find_project(project, ps)
if done.strip():
args["done"] = done.strip().lower() in ("1", "true", "yes")
if not args:
raise ValueError("nothing to change")
# The update answers {"ok": true, "unchanged": true} when nothing changed,
# not the task: read it back either way.
call("tasks_update", task=n, format="markdown", **args)
return read(n, ps)
def do_delete(id_):
n = task_id(id_)
title = call("tasks_read", task=n, fields=["title"])["title"]
call("tasks_delete", task=n)
return f'deleted #{n} "{title}"'
ACTIONS = {"list": (do_list, 5), "add": (do_add, 4), "edit": (do_edit, 6),
"delete": (do_delete, 1)}
```
- [ ] **Step 2: Replace the `__main__` block**
```python
if __name__ == "__main__":
if sys.argv[1:] == ["--test"]:
test()
sys.exit()
fn, n = ACTIONS.get(sys.argv[1] if len(sys.argv) > 1 else "", (None, 0))
if fn is None or len(sys.argv) != n + 2:
sys.exit("usage: vikunja.py list|add|edit|delete ARGS... (see the docstring)")
if not (os.environ.get("VIKUNJA_MCP_URL") and os.environ.get("VIKUNJA_TOKEN_CMD")):
sys.exit("VIKUNJA_MCP_URL / VIKUNJA_TOKEN_CMD not set in config [env]")
try:
print(fn(*sys.argv[2:]))
except ValueError as e:
sys.exit(str(e))
```
- [ ] **Step 3: Check against the real server**
`--test` first: `python3 examples/tools/vikunja.py --test` → `ok`.
Then, with the endpoint from `~/.claude.json` (`mcpServers.vikunja.url`) and `VIKUNJA_TOKEN_CMD="pass show proxmox/vikunja/mcp-agent"` exported in the shell, create a scratch project `vikunja-tool-check` with the MCP's `projects_create` (Claude Code's `mcp__vikunja__projects_create`) and run:
```bash
v=examples/tools/vikunja.py
$v add "Buy milk" "two litres" "2026-11-28" "vikunja-tool-check" # line, due Sat 28 Nov 2026 23:59
$v add "Call plumber" "" "2026-11-26 09:00" "vikunja-tool-check"
$v add "Someday" "" "" "vikunja-tool-check"
$v list "" "vikunja-tool-check" "" "" "" # 3 lines: plumber, milk, someday (no due last)
$v list "" "" "2026-11-27" "" "" # plumber in it, no milk, no someday
$v list "milk" "" "" "" "" # milk only
$v list "call plumber" "" "" "" "" # quoted like with a space: plumber only
$v list "" "" "" "" "<milk id>" # line, blank line, "two litres"
$v edit "<milk id>" "Buy oat milk" "" "none" "" "" # renamed, no due
$v edit "<milk id>" "" "" "" "" "1" # (done)
$v list "" "vikunja-tool-check" "" "" "" # milk gone
$v list "" "vikunja-tool-check" "" "1" "" # milk back, (done)
$v edit "<milk id>" "" "" "" "" "" # error: nothing to change, exit 1
$v add "x" "" "tomorrow" "" # bad date ..., exit 1, nothing created
$v add "x" "" "" "nope" # no project 'nope'; projects: ..., exit 1
$v delete "<someday id>" # deleted #N "Someday"
$v delete "<someday id>" # 404 Not Found: This task does not exist, exit 1
VIKUNJA_TOKEN_CMD="echo bad" $v list "" "" "" "" "" # Vikunja token expired: ..., exit 1
VIKUNJA_MCP_URL=http://127.0.0.1:9/ $v list "" "" "" "" "" # Vikunja unreachable at ..., exit 1
```
Expected as commented. Leave the scratch project for Task 4. If the quoted `like` with a space fails, try the value unquoted with `%` for spaces and record which worked.
- [ ] **Step 4: Commit**
```bash
git add examples/tools/vikunja.py
git commit -m "tools: vikunja, list, add, edit and delete through the MCP"
```
---
### Task 3: Tool files and config example
**Files:**
- Create: `examples/tools/tasks.toml`, `examples/tools/task_add.toml`, `examples/tools/task_edit.toml`, `examples/tools/task_delete.toml`
- Modify: `examples/config.toml` (`[env]` block)
- [ ] **Step 1: `examples/tools/tasks.toml`**
```toml
description = "The user's to-do tasks in Vikunja. Lists open tasks, one per line: #id [project] title, due date, sorted by due date. Filter by words in the title, by project or by due date; give an id to read one task with its notes. Call it to find a task's id before editing or deleting it."
command = ["vikunja.py", "list", "{query}", "{project}", "{due_before}", "{all}", "{id}"]
cloud = ["hetzner"]
timeout = 20
[params.query]
type = "string"
description = "Words the task's title contains. Empty for every task."
[params.project]
type = "string"
description = "Project name. Empty for every project."
[params.due_before]
type = "string"
description = "Only tasks due up to this date, included: YYYY-MM-DD or YYYY-MM-DD HH:MM, local time, from today's date. Empty for no limit."
[params.all]
type = "string"
description = "1 to include done tasks. Empty for open tasks only."
[params.id]
type = "string"
description = "A task id, to read that one task in full. Empty to list."
```
- [ ] **Step 2: `examples/tools/task_add.toml`**
```toml
description = "Add a to-do task to the user's Vikunja, with an optional due date, notes and project. Prints the new task's line."
command = ["vikunja.py", "add", "{title}", "{description}", "{due}", "{project}"]
cloud = ["hetzner"]
timeout = 20
[params.title]
type = "string"
description = "Short title, an action in the user's language (e.g. Buy milk)."
[params.description]
type = "string"
description = "Longer notes, Markdown. Empty for none."
[params.due]
type = "string"
description = "Due date: YYYY-MM-DD (end of that day) or YYYY-MM-DD HH:MM, local time, from today's date. Empty for none."
[params.project]
type = "string"
description = "Project name. Empty puts it in Inbox."
```
- [ ] **Step 3: `examples/tools/task_edit.toml`**
```toml
description = "Change a task in the user's Vikunja: rename it, replace its notes, change or remove its due date, move it to another project, or mark it done or not done. Only the fields given change. Find the id with tasks first."
command = ["vikunja.py", "edit", "{id}", "{title}", "{description}", "{due}", "{project}", "{done}"]
cloud = ["hetzner"]
timeout = 20
[params.id]
type = "string"
description = "The task's id, from tasks."
[params.title]
type = "string"
description = "New title. Empty keeps it."
[params.description]
type = "string"
description = "New notes, Markdown; replaces the old ones. Empty keeps them."
[params.due]
type = "string"
description = "New due date: YYYY-MM-DD or YYYY-MM-DD HH:MM, local time; none removes it. Empty keeps it."
[params.project]
type = "string"
description = "Project name to move it to. Empty keeps it."
[params.done]
type = "string"
description = "1 marks it done, 0 reopens it. Empty leaves it."
```
- [ ] **Step 4: `examples/tools/task_delete.toml`**
```toml
description = "Delete a task from the user's Vikunja for good; it cannot be undone. A finished task is closed with task_edit done=1, not deleted. Before calling, read the task with tasks by its id, tell the user its title, and ask; call only after they say yes."
command = ["vikunja.py", "delete", "{id}"]
cloud = ["hetzner"]
timeout = 20
[params.id]
type = "string"
description = "The task's id, from tasks."
```
- [ ] **Step 5: `examples/config.toml`, in the `[env]` block after `CALENDAR_DIR`**
```toml
# VIKUNJA_MCP_URL = "http://vikunja.example.org/api/v2/mcp"
# VIKUNJA_TOKEN_CMD = "pass show vikunja/mcp" # prints the MCP token, no shell
```
- [ ] **Step 6: Check the files load**
Run: `python3 -c 'import tomllib,glob; [tomllib.load(open(f,"rb")) for f in glob.glob("examples/tools/task*.toml")]; print("ok")'`
Expected: `ok`. Then `python3 assistant.py --test` → its usual `ok`.
- [ ] **Step 7: Commit**
```bash
git add examples/tools/tasks.toml examples/tools/task_add.toml examples/tools/task_edit.toml examples/tools/task_delete.toml examples/config.toml
git commit -m "tools: vikunja, tasks, task_add, task_edit, task_delete"
```
---
### Task 4: Live check through the model, install, docs
**Files:**
- Modify: `AGENTS.md`, `docs/superpowers/specs/2026-11-25-vikunja-tasks-design.md`
- [ ] **Step 1: Second daemon on scratch dirs**
Short paths (AF_UNIX limit 108 bytes). Copy the user's real tools dir and config into a scratch `XDG_CONFIG_HOME`, add the four TOMLs and `vikunja.py`, and the two `[env]` keys with the real endpoint and `pass show proxmox/vikunja/mcp-agent`:
```bash
s=$(mktemp -d /tmp/vk.XXXX)
mkdir -p $s/cfg/desktop-assistant $s/run $s/data
cp -r ~/.config/desktop-assistant/. $s/cfg/desktop-assistant/
cp examples/tools/vikunja.py examples/tools/task*.toml $s/cfg/desktop-assistant/tools/
# add VIKUNJA_MCP_URL and VIKUNJA_TOKEN_CMD under [env] in $s/cfg/desktop-assistant/config.toml
XDG_CONFIG_HOME=$s/cfg XDG_RUNTIME_DIR=$s/run XDG_DATA_HOME=$s/data python3 assistant.py &
```
Drive it over `$s/run/desktop-assistant.sock` with `ask` lines (as earlier live checks did), loaded model as is. Prompts, each naming the scratch project where it matters:
1. "Add a task to buy milk by Saturday in vikunja-tool-check" → `task_add`, due Sat 23:59.
2. "Aggiungi un promemoria per chiamare l'idraulico domani alle 9, progetto vikunja-tool-check" → `task_add`, Italian title, due tomorrow 09:00.
3. "What's due this week?" → `tasks` with `due_before`, both listed, right weekdays.
4. "Sposta il latte a lunedì" → `tasks` then `task_edit` with `due`.
5. "I bought the milk" → `task_edit` `done=1`.
6. "Delete the plumber task" → `tasks`, then a question naming it, **no `task_delete` call**, task still there. Then "yes" → `task_delete`, gone.
7. "Che task ho aperti?" → `tasks`, no invention.
Record tool calls, arguments, timings, misfires. Same 1, 3 and 6 once in a Hetzner chat if the key is unlocked. Then delete the scratch project (Claude Code's `mcp__vikunja__projects_delete`) and stop the scratch daemon, `rm -rf $s`.
- [ ] **Step 2: Install for real, with the user's OK**
Ask first: this writes the user's config. Then copy `vikunja.py` and the four TOMLs to `~/.config/desktop-assistant/tools/`, add the two `[env]` keys to `~/.config/desktop-assistant/config.toml`, and `./assistant.sh restart` (tools load once at import).
- [ ] **Step 3: AGENTS.md**
Near the top, after the cloud models paragraph:
```markdown
Vikunja tasks (2026-11-25): `tasks`, `task_add`, `task_edit`,
`task_delete`, one script (`examples/tools/vikunja.py`) calling Vikunja's
MCP server, endpoint and token command in config `[env]`. Only delete
asks first. Spec: `docs/superpowers/specs/2026-11-25-vikunja-tasks-design.md`.
```
Under Findings, a `### Vikunja tasks tools, live check (2026-11-25)` section with the planning probe facts (stateless call, `null` clears a due date, `unchanged` reply) and Step 1's results, in the style of the other live checks. No task titles from the user's real lists.
Spec status line: `Status: implemented (2026-11-25).`
- [ ] **Step 4: Commit**
```bash
git add AGENTS.md docs/superpowers/specs/2026-11-25-vikunja-tasks-design.md
git commit -m "tools: vikunja, live check"
```
|