Skip to main content
Glama

codex_start

Launches a Codex task asynchronously and returns a job_id immediately, so long-running work continues in the background; completion callbacks support verification and milestone progression.

Instructions

Launch a Codex task asynchronously in the background and immediately return a job_id. Persisted to disk; when progression mode is 'notify' or 'autonomous', the Sidecar automatically sends a callback message back to Antigravity upon completion so verification and milestone progression continue seamlessly.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "codex_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoAbsolute path to the working directory where Codex should operate. Defaults to the active goal cwd or current workspace directory.
modelNoOptional model override for Codex. Omit to use the model selected in the Codex Bridge UI panel or ~/.codex/config.toml.
configNoOptional Codex config overrides in 'key=value' TOML format (passed as -c).
imagesNoOptional image file paths to attach to the prompt.
promptYesDetailed task instructions for Codex.
goal_idNoOptional persistent goal_id to associate this Codex execution with (auto-links session_id and iteration count).
profileNoOptional Codex config profile name (-p <profile>).
sandboxNoSandbox policy for Codex shell commands. Omit to use the active Codex Bridge UI panel setting.
add_dirsNoAdditional directories that should be writable alongside cwd.
worktreeNoIf true, run the session inside a managed Git worktree.
ephemeralNoIf true, do not persist the Codex session to disk.
session_idNoOptional: if provided, starts an async `codex exec resume` on this session_id instead of a brand-new session.
milestone_idNoOptional milestone_id (e.g. 'm1') inside goal_id that this execution is working on.
output_schemaNoOptional path to a JSON Schema file constraining Codex's final response shape.
timeout_secondsNoMaximum runtime in seconds (default 1800 = 30 min).
reasoning_effortNoOptional reasoning effort override for Codex. Omit to use the level selected in the Codex Bridge UI panel or Codex default.
notify_on_completeNoWhether the Sidecar should automatically notify the bound Antigravity conversation when this job finishes. Defaults to true unless progression_mode is 'manual'.
skip_git_repo_checkNoAllow Codex to run outside a Git repository (defaults to UI panel setting / true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the key traits: the call is non-blocking, returns a job_id immediately, the job is persisted to disk, and completion triggers a Sidecar callback to Antigravity. It omits what happens on timeout expiry and how failures surface, which keeps it short of a 5.

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?

Two sentences, front-loaded with the action and return value, with no wasted preamble. The second sentence is dense with internal jargon (Sidecar, progression mode, milestone progression) that will not parse for an agent unfamiliar with the system.

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

Completeness4/5

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

For an 18-parameter async launcher with no output schema, the description covers the two things an agent most needs: the call returns immediately with a job_id and completion is signaled via callback. It stops short of telling the agent to poll codex_status or how to cancel via codex_cancel, leaving the lifecycle loop implicit.

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

Parameters3/5

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

Schema description coverage is 100% across all 18 parameters, including enums for sandbox and reasoning_effort, so the schema already does the explanatory work. The description adds no parameter-level meaning beyond it, which is the baseline case for full coverage.

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

Purpose4/5

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

States a specific verb and resource ('Launch a Codex task asynchronously') and names the immediate return value (job_id), which is far more than a restatement of the name. It does not, however, distinguish itself from close siblings such as codex_run or codex_resume, which an agent must choose between.

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?

Usage is implied: launch here when you want non-blocking work and a job handle. The description explains the callback behavior conditioned on progression mode 'notify' or 'autonomous', which is useful context, but it never states when to prefer this over codex_run, codex_resume, or the synchronous path.

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