Progress#
The progress tool lets a subagent send an intermediate status update to its
parent orchestrator without stopping the session — the counterpart to
complete (ends the session) and clarify (pauses it). The update arrives
as a ⏳ system message via the parent’s LOOP_CONTINUE hook.
The tool is opt-in and enabled automatically for subagents; enable it explicitly
with -t +progress.
Progress tool — subagents use this to send intermediate updates to the parent.
Registers the progress block type so subagents can report status mid-task
without stopping their session. The parent orchestrator receives these updates
via the LOOP_CONTINUE hook as ⏳ system messages, enabling the “fire-and-forget-
then-get-alerted-when-update/done” pattern alongside complete and clarify.
Unlike complete (ends session) and clarify (pauses session), progress
continues execution after delivering the update.
Delivery modes:
Thread-mode subagents: uses the in-process
_progress_queue; the parent’s LOOP_CONTINUE hook picks it up on the next iteration.Subprocess-mode subagents: writes JSON lines to
GPTME_PROGRESS_FILE(set by the parent before spawning); the parent’s monitor thread polls that file and delivers updates via the same hook path.
Only enabled in autonomous/subagent sessions (disabled_by_default=True).
- gptme.tools.progress.execute_progress(code: str | None, args: list[str] | None, kwargs: dict[str, str] | None) Generator[Message, None, None]
Send an intermediate progress update to the parent orchestrator.
See
send_progress_to_parent()for channel selection. The receipt reports delivery only when a parent-reachable channel accepted the update.
- gptme.tools.progress.send_progress_to_parent(message: str) Literal['queue', 'file'] | None
Deliver a progress update to the parent orchestrator.
Returns the channel used, or
Nonewhen the update was not delivered.Routing is decided by who actually owns the parent, not merely by whether this process has a subagent identity:
A thread-mode subagent (thread-local agent_id) shares a process with its parent, so it uses the in-process
_progress_queue.Otherwise, a managed subprocess child (
GPTME_SUBAGENT_AGENT_IDandGPTME_PROGRESS_FILEset) appends to the file channel the parent polls. Its in-memory queue is private to the child and would never reach the parent (#4910).