gptme-gptodo
A gptme plugin for running a "coordinator" agent that delegates work to sub-agents through gptodo. It exposes the gptodo CLI as a few Python functions, so the top-level agent can hand out tasks and track them instead of editing code itself.
Status: experimental. It is a thin wrapper around the gptodo CLI, and some wrapped
calls have drifted from the CLI they call (see Known issues). For
everyday task management, use the gptodo CLI directly from the agent's shell. This
plugin is only needed for coordinator-only setups.
What it provides
A gptme tool named gptodo that registers these functions in gptme's Python (ipython)
tool:
| Function | Runs |
|---|---|
delegate(prompt, task_id=None, backend="gptme", agent_type="execute", timeout=600, background=True) |
gptodo spawn <task_id> --prompt ... in the background or gptodo run ... in the foreground (broken without task_id, see below). backend is gptme or claude. agent_type is general, explore, plan or execute. |
check_agent(session_id) |
gptodo status <session_id> (broken, see below) |
list_agents() |
gptodo agents --json |
list_tasks(state="active") |
gptodo list, plus --active-only when state="active" |
task_status(compact=True) |
gptodo status [--compact] |
add_task(title, description="", priority="medium", task_type="action") |
gptodo add <title> --priority ... --type ... |
The tool also gives the model instructions for working as a coordinator: break the work down, delegate focused sub-tasks, monitor them, then synthesize the results.
Requirements
-
gptme
-
One of:
- the
gptodoCLI onPATH(see gptodo's install section) - this plugin running from a gptme-contrib checkout with
uvavailable, in which case it falls back touv run python3 -m gptodoinsidepackages/gptodo
If neither is found, the tool reports itself as unavailable.
- the
-
For background delegation, everything
gptodo spawnneeds:tmuxand the chosen backend CLI (gptmeorclaude).
Install
Point gptme at the plugin directory and enable it in gptme.toml:
[plugins]
paths = ["path/to/gptme-contrib/plugins/gptme-gptodo"]
enabled = ["gptme_gptodo"]
The package also registers a gptme.plugins entry point (gptme_gptodo), so installing
it into the same environment as gptme works as well.
Usage
The functions are called from Python code blocks, so enable the ipython tool alongside
this one:
gptme --tools gptodo,ipython,save "coordinate work on project X"
Example of what the coordinator runs, with an existing task ID:
task_status()
delegate("Fix the failing test in tests/test_auth.py by updating the mock",
task_id="fix-auth-test", agent_type="execute")
list_tasks()
Use the gptodo CLI to see what spawned sessions are doing: gptodo sessions,
gptodo output <session_id> and gptodo kill <session_id>.
Known issues
The following wrapped calls no longer match the current gptodo CLI, so treat them as
broken until they are fixed:
delegate()withouttask_idpasses--inline, whichgptodo spawnandgptodo rundo not accept. Create the task first (add_task(...)orgptodo add) and pass its ID.check_agent(session_id)callsgptodo status <session_id>, butstatustakes no session argument. Usegptodo output <session_id>orgptodo sessionsinstead.add_task(..., description="...")passes--description, whichgptodo adddoes not accept. Leavedescriptionempty, or pipe the body intogptodo addfrom a shell.list_agents()lists agents registered instate/agents/(gptodo agents), not sessions started withdelegate(). Those appear ingptodo sessions.list_tasks(state=...)only filters for"active". Any other value lists all tasks.
See also
- gptodo: the task CLI this plugin wraps, including the task file format, states, and the full command reference.
- docs/DESIGN-multi-agent-coordination.md: the original design notes for multi-agent coordination on top of gptodo (draft, partly implemented).
- gptme-agent-template: an agent workspace that uses gptodo for task management.