throng

v0.9.1
io.github.agent-runbooks/throng-mcp Checked 8 hours ago Published 22 days ago

Hands work to another coding agent over ACP: Claude Code, Codex, OpenCode, Gemini CLI and others

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cancel_thronglet

Cancels the session's running turn (session/cancel) and drops its queued messages; a pending wait_thronglet returns the cancelled error. The session is idle afterwards and accepts a new send_message. No-op on an idle session.

ParameterTypeDescription
session_id *stringsession_id from run_thronglet

list_harnesses

Lists valid agent values for run_thronglet: installed harnesses with their models and effort levels, installed or configured ones that cannot run with the reason, and the server limits. Built-in harnesses that are not installed are not listed.

list_thronglets

Lists thronglet sessions on this machine: description, agent, cwd, state (running | queued | idle | failed), queue length, accepts_messages (false: send_message to it fails), timestamps and the last error. Live state is this server's; a session run by another throng instance shows what its record says.

run_thronglet

Runs an agent of an installed harness (see list_harnesses) on a task in cwd and returns its final message as JSON {session_id, text, stop_reason, usage, duration_s, warnings?}; with schema, structured replaces text. description names the thronglet for listings. With background: true the call returns {session_id, state, queued} as soon as the turn runs; collect the result with wait_thronglet.

ParameterTypeDescription
agent *string<harness>/<model>[:<effort>], e.g. claude/opus:max, codex/gpt-6-sol:xhigh; valid values: list_harnesses
cwd *stringAbsolute path; the agent works in this tree
description *stringWhat this thronglet is for, in a few words; shown in session listings
prompt *stringTask for the agent
backgroundbooleanReturn as soon as the turn is running (or queued behind the session's current turn); collect the result with wait_thronglet
schemaobjectJSON Schema (draft-07 or 2020-12) for structured output: the agent ends with a matching JSON value as its final message, returned as `structured` instead of `text`
timeout_snumberWall-clock limit for the run in seconds; default from config (21600)

send_message

Sends the next message into an earlier session (session_id from run_thronglet) and returns the same JSON as run_thronglet. A message to a session whose turn is still running waits for that turn to end: turns on one session never overlap. With background: true the call returns {session_id, state, queued} as soon as the turn runs; collect the result with wait_thronglet. steer: true interrupts the running turn and delivers this message next; queued messages follow it. A session its harness cannot continue (resume or load) takes no further message, steer included: list_thronglets shows it as accep…

ParameterTypeDescription
prompt *stringNext message for the agent
session_id *stringsession_id from run_thronglet
backgroundbooleanReturn as soon as the turn is running (or queued behind the session's current turn); collect the result with wait_thronglet
schemaobjectJSON Schema (draft-07 or 2020-12) for structured output: the agent ends with a matching JSON value as its final message, returned as `structured` instead of `text`
steerbooleanInterrupt the running turn (session/cancel) and run this message as the very next turn, ahead of queued messages. The in-flight tool call is aborted; a half-applied edit may remain.
timeout_snumberWall-clock limit for the run in seconds; default from config (21600)

wait_thronglet

Waits until a session has no running or queued turn and returns the last turn's result: the same JSON as run_thronglet, or its error. With timeout_s elapsed returns {session_id, state, queued} instead. Idempotent: the result is stored with the session.

ParameterTypeDescription
session_id *stringsession_id from run_thronglet
timeout_snumberHow long to wait in seconds; default from config (21600). Elapsed → the session state, not an error