README: storage, states, MCP tool table, repo URL

Lists all ten registered tools incl. task_update, names TASKD_HOME (TASKDIR still accepted) and the XDG default, the git history of the store, and the curl dependency of tasksd-http.
This commit is contained in:
Hermes Agent committed 2026-11-19 10:05:15 +00:00
1 parent 0a084532bc
commit 84d39a19cd
1 file changed
+41 -4
+41 -4
View File
@@ -2,7 +2,9 @@
Central task store for the agent fleet, C99/POSIX.
Tasks are JSON files under `$TASKDIR` -- one file per task, readable and
Code: https://git.kropa.tech/hiddenbox/tasksd
Tasks are JSON files, one file per task (`t0001.json`), readable and
diffable, never a database. Every task carries a free-form `scope`, a
mandatory goal, and can be paused and resumed.
@@ -10,16 +12,50 @@ One binary, two modes:
```sh
tasksd # MCP over stdio
tasksd --http :8781 # central instance for the fleet
tasksd --http :8781 # central instance for the fleet, POST /mcp
```
`tasks-mcp-bridge` is the stdio shim that forwards to a central `tasksd`.
`tasks-mcp-bridge` is the stdio shim that forwards to a central `tasksd`
(`TASKSD_URL`).
```sh
make
make test
```
## Storage
The task directory is `$TASKD_HOME`; `$TASKDIR` is the old name and is still
accepted. Without either, it is `$XDG_DATA_HOME/tasksd`, else
`~/.local/share/tasksd`.
If `git` is installed, the directory becomes a git repository on the first
write and every change is committed; without git, tasksd works the same,
without history.
## Scopes and states
A scope is a string the caller chooses (`makronix`, `fleet/console`). It
matches itself and everything below it: `task_next` with `scope=fleet` also
claims `fleet/console` work.
States: `pending`, `running`, `paused`, `done`, `dropped`.
## MCP tools
| Tool | Arguments | Effect |
|---|---|---|
| `task_create` | `title`, `goal`, `scope`, `priority`, `tags` | new pending task; title, goal, scope required |
| `task_update` | `id`, `title`, `goal`, `scope`, `priority`, `tags` | correct the given fields; `tags=""` clears |
| `task_next` | `scope` | claim the highest-priority pending task, mark it running |
| `task_scopes` | -- | every scope with pending/running/paused/done/dropped counts |
| `task_list` | `scope`, `state`, `limit` (default 50) | list tasks |
| `task_get` | `id` | one task with timestamps and result |
| `task_pause` | `id`, `note` | set to paused; the note is kept for the next agent |
| `task_resume` | `id`, `note` | paused -> running; refuses otherwise |
| `task_done` | `id`, `result` | close as done |
| `task_drop` | `id`, `result` | close as dropped |
## Dependency: libmcp
`vendor/libmcp/mcp.h` is a copy of the header from the `libmcp` repository, so
@@ -36,7 +72,8 @@ checkout elsewhere: `make LIBDIR=../libmcp`.
`tasksd-http` is a C99 CGI program: HTML 4.01, no JavaScript, no auth. Every list, read,
create, edit and state change is a `tools/call` against tasksd (`TASKSD_URL`, default
`http://127.0.0.1:8781/mcp`); the CGI never touches the task files.
`http://127.0.0.1:8781/mcp`) made with `curl`, which must be installed; the CGI never
touches the task files.
| Address | Effect |
|---|---|