Skip to content
CohortDocs

MCP tools

Every agent Cohort runs gets Cohort’s MCP server, named cohort. Outside Cohort, any MCP client can start it with cohort mcp (on stdio). An agent’s thread is the one whose tools it calls: “your” below means the calling thread. See Agents that drive Cohort.

Arguments in bold are required.

Tool Does Main arguments
start_thread Start a child thread: another agent on its own task, in its own worktree and branch (by default from your branch), in your project or another. Returns its id at once prompt, title, harness (claude-code, codex, acp:<id>), model, effort, login, base_branch, branch, merge_target, environment (worktree, checkout, personal), share_worktree, permission_mode, project, machine
list_threads Your child threads and their status all (every thread), machine
get_thread A thread’s status, branch, folder, last message and diff stat thread_id, machine
send_message Send a message to a child: steer it into its running turn, or queue it for after thread_id, text, mode (steer, queue), machine
wait_for_threads Wait until the threads are done, failed or stopped, or the timeout passes, then return each one’s status and last message thread_ids (default: all your children), timeout_secs (default 600, at most 3600), machine
merge_thread Land a child’s work on its merge target (by default your branch): catch it up, run the project’s checks, fast-forward the target. Waits until it lands, fails or is cancelled thread_id, catch_up (rebase, merge), instructions, force (even with background tasks running), timeout_secs (default 1800, at most 3600)
stop_thread Stop one of your children thread_id, machine
list_machines The machines on the person’s account, and whether each is online. Pass one’s name as machine to the tools above

A child may be given the same access as its parent or less, never more (plan < default < accept_edits < full).

Tool Does Main arguments
ask_user Ask the person a question in Cohort and wait for the answer, up to an hour. On a timeout, call again with the question_id to keep waiting question, options (suggested answers), question_id, timeout_secs
request_secret Have the person type a secret (an API key) into Cohort. The agent never sees it: it goes to a dotenv file in the thread’s folder and/or the project’s secrets. Returns provided, cancelled or timeout name (the variable, e.g. OPENAI_API_KEY), reason, env_file (default .env), project_secret, timeout_secs (default 900, at most 3600)
report_progress Post a short progress note on your thread text
share_port Share a server on localhost as a link the person opens from their phone or another computer, for their account only. Ends when the thread is archived port, stop
send_feedback Tell Cohort’s makers about a Cohort bug, friction or idea (never the person’s code or secrets) text
Tool Does Main arguments
wake Wake your thread once, later, with a prompt: a timer or reminder. If it’s busy then, it waits for the turn to end when (5m, 2h, 1d, or at YYYY-MM-DD HH:MM), prompt
archive_self Archive your thread once this turn ends (uncommitted work is saved first)
move_to_worktree Move your thread from the project’s checkout into a new worktree of its own, when the turn ends carry (files whose uncommitted changes go along)
move_to_folder Point your thread at another existing folder of the project, from its next turn path (absolute)
move_to_project Move your thread to another project: a new worktree there, uncommitted files left behind project
Tool Does Main arguments
list_loops The loops, with their next run and last outcome
create_loop Create a loop: a prompt run on a schedule, each run a new thread (or a message in one thread) name, prompt, schedule, thread, check, login, harness, model, effort, environment, permission_mode
run_loop Run a loop now. Returns the run’s thread id, its outcome and summary loop (id or name)
loop_result In a loop run only: say how it went, once, at the end. nothing archives the thread; report puts it in front of the person with the summary outcome (nothing, report), summary

Schedules: every <N>m|h|d, daily HH:MM, weekdays HH:MM, weekly <mon,tue,..> HH:MM, cron <min> <hour> <day> <month> <weekday>, or once: at YYYY-MM-DD HH:MM, in <N>m|h|d, in local time. See Loops.

Made by Bussin Bytes© 2026 Bussin Bytes Ltdcohort.bussinbytes.io