Skip to main content
Glama

codex_start_task

Starts a background Codex turn for research or execution, defining workstreams, completion policy, and obligations. Specify handoff and next task to control automated workflow.

Instructions

Start a background Codex turn. EXECUTION_ONLY workstreams require accepted_handoff_path/sha256 and explicit next_workstream: TASK with exact task_id/task_ref or NONE. Omission and legacy next_workstream_task_* inputs are errors. Uses TRUSTED_EXECUTOR_AUTO_ADVANCE with worker-owned DoD and mechanical pointer-only closure. RESEARCH retains candidate/review/RVA acceptance. Without workstreams, completion_policy is MANUAL, BRIDGE_AUTO_MACHINE_VERIFIED, or BRIDGE_AUTO_TRIVIAL; execution-only with zero required obligations defaults to trivial, required obligations to MANUAL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNo
modelNo
sandboxNo
task_kindNo
instructionYes
rva_requiredNo
workstream_idNo
network_accessNo
next_workstreamNoRequired for EXECUTION_ONLY workstreams: TASK with exact id and hash-pinned ref, or explicit NONE. Omission is a hard error.
route_rationaleNo
research_programNo
route_decided_byNo
completion_policyNo
research_contractNo
research_cycle_idNo
expected_artifactsNo
rva_fallback_policyNo
accepted_handoff_pathNo
completion_obligationsNo
accepted_handoff_sha256No
next_workstream_task_idNoDeprecated; rejected. Use next_workstream.
next_workstream_task_refNoDeprecated; rejected. Use next_workstream.
research_cycle_link_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only indicate readOnlyHint=false, idempotentHint=false, destructiveHint=false. The description adds substantial behavioral detail: it mentions the TRUSTED_EXECUTOR_AUTO_ADVANCE mechanism, worker-owned DoD, error conditions for omitted/deprecated inputs, and the specific default completion policies. This goes well beyond the sparse annotations, though it does not describe the return value or potential side effects in detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single dense paragraph but is not overly long relative to the complexity. It front-loads the core action ('Start a background Codex turn') and then packs constraints efficiently. No unnecessary filler; every sentence conveys a specific constraint or behavior. It could benefit from bullet points for readability, but the content is appropriately sized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite covering workstream logic and completion policies, the description leaves many parameters unexplained, including nested objects like research_program and research_contract, which are essential for RESEARCH workstreams. With only 13% schema description coverage and no output schema, an agent would lack sufficient context to correctly construct the full request. The description is inadequate for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at only 13%, the description compensates for the most critical parameters: it explains the next_workstream structure, the requirement for accepted_handoff_path/sha256 in EXECUTION_ONLY, and the behavior of completion_policy. However, it does not clarify many other parameters such as research_program, research_contract, expected_artifacts, or rva_fallback_policy, leaving a significant gap for a tool with 23 parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Start a background Codex turn.' It uses a specific verb ('Start') and resource ('background Codex turn'), and the details about workstream types and policies distinguish it from sibling tools like codex_send_followup or codex_abort, which serve different lifecycle stages. The purpose is unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides context on when different configurations apply (e.g., EXECUTION_ONLY vs RESEARCH) and clarifies error conditions, but it does not explicitly name alternative tools or conditions under which an agent should choose this over a sibling. The guidance is more about parameter requirements than tool selection, leaving the agent to infer alternatives from the tool name and sibling list.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.