gptme-gptodo

**A gptme plugin for running a "coordinator" agent that delegates work to sub-agents plugins/gptme-gptodo View on GitHub

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

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:

See also