Files
tasksd/README.md
T
Hermes Agent 0a084532bc tasksd-http: Web-Oberflaeche als CGI; task_update; TASKDIR
tasksd-http ist ein C99-CGI-Programm (HTML 4.01) ueber den MCP-Server von
tasksd (vendor/cgi/cgi.h, tests/test-http.sh, Makefile, README).

Neues Werkzeug task_update: korrigiert die beschreibenden Felder einer Task
(title, goal, scope, tags, priority); Zustandswechsel bleiben bei
task_next/done/pause/drop.  Die Umgebungsvariable TASKDIR bleibt als alter
Name gueltig.  tests/run.py angepasst.
2026-11-19 09:55:33 +00:00

2.1 KiB

tasksd

Central task store for the agent fleet, C99/POSIX.

Tasks are JSON files under $TASKDIR -- one file per task, readable and diffable, never a database. Every task carries a free-form scope, a mandatory goal, and can be paused and resumed.

One binary, two modes:

tasksd                 # MCP over stdio
tasksd --http :8781    # central instance for the fleet

tasks-mcp-bridge is the stdio shim that forwards to a central tasksd.

make
make test

Dependency: libmcp

vendor/libmcp/mcp.h is a copy of the header from the libmcp repository, so this repository builds and tests on its own. Refresh it after a libmcp change:

cp ../libmcp/mcp.h vendor/libmcp/mcp.h

make uses LIBDIR=vendor/libmcp by default; override it to build against a checkout elsewhere: make LIBDIR=../libmcp.

Web UI (CGI)

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.

Address Effect
/ tasks, filter with ?state=…&scope=…
/scopes scopes with pending/running/paused/done/dropped counts
/new create a task
/t/<id> one task with controls
/t/<id>/edit title, goal, scope, priority, tags (task_update)
/t/<id>/pause POST, note optional
/t/<id>/resume POST, note optional
/t/<id>/done POST, result optional
/t/<id>/drop POST, result optional

task_update exists for the edit form: state changes stay with pause/resume/done/drop, while a wrong title, an incomplete goal or a moved scope can be corrected.

make                    # tasksd and tasksd-http
sudo make install       # /usr/local/bin/tasksd, /usr/local/lib/cgi-bin/tasksd-http

With busybox httpd:

install -d /srv/www/cgi-bin
install -m 0755 tasksd-http /srv/www/cgi-bin/
TASKSD_URL=http://127.0.0.1:8781/mcp \
    busybox httpd -f -p 0.0.0.0:8798 -h /srv/www

vendor/cgi/cgi.h is the shared CGI helper (one copy each in wikid, memoryd, skilld and tasksd).