Skip to main content
Glama
harness-bridge

harness-bridge

by rbutera

Codex Implement

codex_implement

Delegate feature implementation, bug fixes, or code changes to Codex, then receive a summary of what changed in the codebase.

Instructions

Ask Codex to implement a feature, fix a bug, or make code changes. WARNING: This modifies your codebase. Returns a summary of what was changed.

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": {
      "task": "<task>"
    },
    "name": "codex_implement"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesWhat to implement or fix
modelNoOverride the Codex model. OMIT this unless explicitly told otherwise: when omitted, the Codex CLI uses the default from ~/.codex/config.toml, which is kept current. This enum may lag behind newly released models.
threadIdNoContinue a previous Codex conversation: pass the threadId returned by an earlier call. Omit to start a fresh thread.
workingDirectoryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.1
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "gpt-5.6-sol",
      -  "gpt-5.5"
      -]New value: +[
      +  "gpt-6.1-sol",
      +  "gpt-6-sol",
      +  "gpt-6-astra",
      +  "gpt-5.6-sol",
      +  "gpt-5.5"
      +]
  2. Changed2 schema fields changedv1.0.0
    • addedInput schema / properties / threadId
      Added value: +{
      +  "description": "Continue a previous Codex conversation: pass the threadId returned by an earlier call. Omit to start a fresh thread.",
      +  "type": "string"
      +}
    • removedInput schema / properties / threadKey
      Removed value: -{
      -  "description": "Optional key enabling multi-turn continuity. Calls sharing a key use the same harness conversation and are serialized. Omit it for independent one-shot calls, including parallel reviews.",
      -  "type": "string"
      -}
  3. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the most important trait: this mutates the codebase, plus that it returns a summary of changes. It omits other behavior an agent needs, such as whether edits are reversible or git-tracked, whether tests are run, how long it may take, and what happens on failure or with an invalid workingDirectory.

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

Conciseness5/5

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

Three short sentences, front-loaded with the action and immediately followed by the destructive warning and the return value. Every sentence earns its place with no filler.

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

Completeness3/5

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

There is no output schema, and the description does at least state that a change summary comes back, which is the minimum. For a code-mutating tool with zero annotation coverage, however, it leaves out reversibility, execution scope, and failure behavior that an agent would need before invoking it on a real repository.

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 coverage is 75%, near the high-coverage baseline, and the schema already documents task, model (including the strong "omit unless told otherwise" guidance), and threadId. The description adds no parameter-level meaning at all and leaves workingDirectory entirely undocumented in both places, so it neither compensates nor regresses.

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?

"Ask Codex to implement a feature, fix a bug, or make code changes" gives a specific verb (implement/fix) and resource (code changes), which is clearly distinguishable from siblings like codex_review_code or codex_explain_code. It stops short of explicitly contrasting with any named sibling, so it lands at 4 rather than 5.

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 establishes when the tool applies (feature work, bug fixes, code edits) and the warning implies it is the mutating option among read-only siblings. It never says when to prefer codex_review_code or codex_plan_perf instead, and gives no prerequisites such as a clean working tree or required permissions, so usage is only implied.

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