diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-25 10:16:40 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-25 10:16:40 +0100 |
| commit | 862ec0f6af36a9b37e43a3b8b5f5e3d56afe348a (patch) | |
| tree | fc248b4e62707be67b8163e74cb41f15b35dc389 | |
| parent | b231bc55227d4960b8b694f40b8db1e3f6457920 (diff) | |
| download | desktop-assistant-862ec0f6af36a9b37e43a3b8b5f5e3d56afe348a.tar.gz desktop-assistant-862ec0f6af36a9b37e43a3b8b5f5e3d56afe348a.zip | |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | AGENTS.md | 46 | ||||
| -rw-r--r-- | docs/superpowers/specs/2026-11-25-vikunja-tasks-design.md | 9 |
2 files changed, 52 insertions, 3 deletions
@@ -34,6 +34,11 @@ conversation. Only tools with `cloud = true`, or `cloud` naming the provider (`["hetzner"]`), go to a cloud chat. Spec: `docs/superpowers/specs/2026-10-23-cloud-models-design.md`. +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`. + Run: `python3 assistant.py` (`--test` for the self-check), or `./assistant.sh restart` to replace a running one detached from the terminal. @@ -347,6 +352,47 @@ file's path, images included. Spec: Tool call at 7-13 s (23 s for the WiFi one, longer reasoning), reply 1.7-3.3 s after it. +### Vikunja tasks tools, live check (2026-11-25) + +`tasks`, `task_add`, `task_edit`, `task_delete` (`examples/tools/vikunja.py` +and four TOMLs), on the MCP server the end-of-work skill uses. Spec: +`docs/superpowers/specs/2026-11-25-vikunja-tasks-design.md`. + +- Vikunja's MCP needs no `initialize` or session id: one `tools/call` + POST per action, the answer one SSE `data:` line, JSON in + `result.structuredContent`. Tool errors are `isError` with the text in + `content[0]`; a bad token is HTTP 401. +- `tasks_update` changes only the fields passed; `due_date: null` clears + the date; an update that changes nothing answers `{"ok": true, + "unchanged": true}`, not the task, so the script reads it back. No due + date reads as `0001-01-01T00:00:00Z`, and a `due_date <` filter leaves + those out. Without `format: "markdown"` descriptions come back HTML. +- Delete moves the task to Vikunja's trash (a second delete answers + "This task is in the trash"). It still asks first. +- Script, against the real server on a scratch project: every action, + bad date, unknown project (lists the names), nothing to change, + expired token, unreachable URL, missing env, failing token command. +- Through a second daemon on a scratch socket, config and data dir, + Gemma4-12B: add with a weekday ("by Saturday") and with "domani alle + 9" got the right dates and the Italian title kept; "what's due this + week?" used `due_before` (the Sunday); "sposta il pane a lunedì" found + "Buy bread" (searched in English) and moved it; "I bought the bread" + marked it done; "delete the plumber task" listed, named it and asked, + no call, deleted after "Yes". Tool call 3-30 s, mostly reasoning. +- **"Delete the bread one" after it was done**: the open list had no + bread, and the model offered the only open task (the plumber) instead; + the confirmation caught it. A description line saying "try all=1" was + ignored. Now the script falls back itself: no open match, it lists + matching done tasks; no match at all, the open tasks under "no task + title contains ...". After that: bread found and deleted after a yes; + "cancella il task delle piante" found "Water the plants". +- "Ho chiamato l'idraulico" alone closed nothing and called no tool: + a statement, not a request. +- Hetzner (Qwen3.8-27B): "che task ho per questa settimana?" and an add + with "Friday 18:00", right tools and dates. +- Replies follow the chat's language, not the question's, after Italian + turns (as with video). + ### Video transcript tool, live check (2026-11-17) `video` (`examples/tools/video.sh`): a local video or a public URL to diff --git a/docs/superpowers/specs/2026-11-25-vikunja-tasks-design.md b/docs/superpowers/specs/2026-11-25-vikunja-tasks-design.md index fe603e6..b3e4ae0 100644 --- a/docs/superpowers/specs/2026-11-25-vikunja-tasks-design.md +++ b/docs/superpowers/specs/2026-11-25-vikunja-tasks-design.md @@ -1,6 +1,6 @@ # Vikunja tasks tools: design -Date: 2026-11-25. Status: approved, not implemented. +Date: 2026-11-25. Status: implemented (2026-11-25). ## Goal @@ -49,7 +49,10 @@ string; empty means not given. per task, sorted by due date (none last), then id, at most 50, capped by the daemon at 2000 characters: `#42 [dev/quickshell] Fix lamp, due Fri 28 Nov 18:00`. Done tasks, when - shown, carry `(done)`. Nothing found: `no tasks`. + shown, carry `(done)`. A title search with no open match falls back + to matching done tasks, then to all open tasks, each under a line + saying so (found live: the model does not retry). Nothing found: + `no tasks`. - **task_add.** `title` required; `description`, `due`, `project` optional. No project: Inbox (the project titled `Inbox`). Prints the created task's line. @@ -63,7 +66,7 @@ string; empty means not given. `deleted #42 "title"`. Writes other than delete run with no confirmation: an edit or done is -undone by asking again. +undone by asking again. Delete moves the task to Vikunja's trash. ## Projects |
