Skip to content

docs: clarify OpenClaw vs Codex code mode - #90151

Closed
Pick-cat wants to merge 5 commits into
openclaw:mainfrom
Pick-cat:docs/issue-83390-code-mode-clarity
Closed

Pick-cat wants to merge 5 commits into
openclaw:mainfrom
Pick-cat:docs/issue-83390-code-mode-clarity

Conversation

@Pick-cat

@Pick-cat Pick-cat commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #83390

What Problem This Solves

Readers were unclear how OpenClaw native code mode differs from Codex Code Mode. The docs also claimed Codex Code Mode is a "stable Codex harness surface", contradicting upstream Codex Stage::UnderDevelopment for code_mode/code_mode_only.

Why This Change Was Made

Add a side-by-side comparison table in docs/reference/code-mode.md and cross-link from docs/plugins/codex-harness.md. Correct all stability claims — drop "stable" and align with upstream under-development stage. Split the under-development claim into two separate sentences: Codex Code Mode (code_mode/code_mode_only) is Stage::UnderDevelopment, while Codex-native dynamic tool search (tool_search/search_tool) is a separate surface whose flags are Stage::Removed compatibility no-ops (tool search is always enabled upstream) — not an under-development stage. This matches the sibling docs/tools/tool-search.md page, which already separates the two surfaces.

User Impact

Readers can now understand the difference between OpenClaw code mode and Codex Code Mode at a glance, with accurate upstream stability status.

Evidence

docs:list — all 3 changed pages render:

$ node scripts/docs-list.js | grep -E "code-mode|codex-harness|tool-search"
plugins/codex-harness.md - Run OpenClaw embedded agent turns through Codex harness
reference/code-mode.md - OpenClaw code mode: opt-in exec/wait tool surface
  Read when: ... explain why code mode is different from Codex Code mode ...
tools/tool-search.md - Tool Search: compact large OpenClaw tool catalogs

docs-link-audit — no broken links:

$ node scripts/docs-link-audit.mjs
broken_links=0

Codex source verification (per the AGENTS Codex gate — inspected openai/codex):

codex-rs/features/src/lib.rs   code_mode / code_mode_host / code_mode_only -> Stage::UnderDevelopment
codex-rs/features/src/lib.rs   tool_search / search_tool                  -> Stage::Removed
codex-rs/features/src/lib.rs:161  "Removed compatibility flag retained as a no-op now that tool_search is always enabled"
codex-rs/features/src/tests.rs:203  assert_eq!(Feature::ToolSearch.stage(), Stage::Removed)
codex-rs/features/src/tests.rs:759  "Under-development features enabled: code_mode, ..."

This confirms the corrected page: Code Mode = under development; dynamic tool search = removed compat flags (always-on), not under development.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 4, 2026
@clawsweeper

clawsweeper Bot commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed July 2, 2026, 11:11 AM ET / 15:11 UTC.

Summary
The PR updates three docs pages to distinguish OpenClaw code mode from Codex Code Mode, correct Codex stability wording, and cross-link the comparison from Codex harness and Tool Search docs.

PR surface: Docs +30. Total +30 across 3 files.

Reproducibility: yes. for the review finding: PR head adds a new H2 while docs/docs_map.md remains unchanged, and the generator check compares the committed map to rendered headings. No runtime reproduction applies because this is a docs-only PR.

Review metrics: 1 noteworthy metric.

  • Generated docs map: 1 missing generated update. The new H2 changes the generated docs heading map, and the PR does not include the required docs/docs_map.md refresh.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #83390
Summary: The open docs issue is the canonical request and this PR is the active candidate fix; the older overlapping PR is closed unmerged, while the runtime PR and hook-context issue are related context rather than the same remaining work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🌊 off-meta tidepool
Patch quality: 🦐 gold shrimp
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Regenerate and commit docs/docs_map.md, then rerun pnpm check:docs.

Risk before merge

  • [P1] The branch still leaves docs/docs_map.md stale for the new comparison heading, so the docs map check should fail until the generated file is refreshed.

Maintainer options:

  1. Decide the mitigation before merge
    Keep the focused docs clarification, regenerate docs/docs_map.md for the new heading, and let the linked issue close when this PR lands.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P2] A narrow generated-docs repair can make the PR merge-ready without changing the prose or product behavior.

Security
Cleared: Cleared; the diff is docs-only and does not change workflows, dependencies, scripts, package metadata, secrets handling, or runtime code.

Review findings

  • [P2] Regenerate the docs map for the new heading — docs/reference/code-mode.md:36
Review details

Best possible solution:

Keep the focused docs clarification, regenerate docs/docs_map.md for the new heading, and let the linked issue close when this PR lands.

Do we have a high-confidence way to reproduce the issue?

Yes for the review finding: PR head adds a new H2 while docs/docs_map.md remains unchanged, and the generator check compares the committed map to rendered headings. No runtime reproduction applies because this is a docs-only PR.

Is this the best way to solve the issue?

No, not as submitted. The docs-only approach is the right layer, but the generated docs map must be refreshed before merge.

Full review comments:

  • [P2] Regenerate the docs map for the new heading — docs/reference/code-mode.md:36
    Adding this H2 changes the generated docs heading map, but the branch does not update docs/docs_map.md. scripts/generate-docs-map.mjs --check compares the committed map to rendered headings, so commit the generated map refresh before merge.
    Confidence: 0.92

Overall correctness: patch is incorrect
Overall confidence: 0.92

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against f0d2066787f1.

Label changes

Label justifications:

  • P3: This is a low-risk documentation clarification with one narrow generated-docs repair blocker and no runtime behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed

PR surface:

Docs +30. Total +30 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 3 43 13 +30
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 43 13 +30

Acceptance criteria:

  • [P1] pnpm check:docs.
  • [P1] git diff --check.

What I checked:

Likely related people:

  • steipete: Authored the merged generic OpenClaw code-mode runtime and initial docs that this PR clarifies. (role: feature history owner; confidence: high; commits: b0c9278ffd2e, f5f83dc2cf8f, 0db097936568; files: docs/reference/code-mode.md, src/agents/code-mode.ts, src/agents/code-mode.worker.ts)
  • pashpashpash: Authored the merged PR that enabled native Codex code mode in OpenClaw harness runs, forming the Codex side of the docs comparison. (role: Codex harness behavior introducer; confidence: high; commits: ae892c42a56c, 2b149ba6a57d, 0e8a7e12da4a; files: extensions/codex/src/app-server/thread-lifecycle.ts, docs/plugins/codex-harness.md)
  • Ayaan Zaidi: Current docs/docs_map.md blame points to the recent generated docs-map update that now needs regeneration for this PR's new heading. (role: recent generated-docs map contributor; confidence: medium; commits: b23500a93557; files: docs/docs_map.md)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jun 4, 2026
@Pick-cat

Pick-cat commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 4, 2026
@Pick-cat

Pick-cat commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 5, 2026
@Pick-cat
Pick-cat force-pushed the docs/issue-83390-code-mode-clarity branch from 8b49d81 to c5f822d Compare June 6, 2026 06:06
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels Jun 6, 2026
@clawsweeper

clawsweeper Bot commented Jun 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jun 6, 2026
@clawsweeper

clawsweeper Bot commented Jun 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Jun 20, 2026
@Pick-cat
Pick-cat force-pushed the docs/issue-83390-code-mode-clarity branch from dd3ab6c to b905f5e Compare June 23, 2026 10:26
@Pick-cat

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Updated: rebased on latest main, PR body with ## What Problem This Solves + ## Evidence, fresh proof with negative control, CI green.

@clawsweeper

clawsweeper Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@Pick-cat

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Fixed P1: narrowed under-development claim to code_mode/code_mode_only only — tool-search/deferred-tools/nested-calls no longer described as under development. PR body updated with all 4 required sections.

@clawsweeper

clawsweeper Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@Pick-cat

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the P2 "split the Codex stage claim" finding on 5685d141cc. The sentence is now fully split: Codex Code Mode (code_mode/code_mode_only) is Stage::UnderDevelopment, while Codex-native dynamic tool search (tool_search/search_tool) is a separate surface whose flags are Stage::Removed compatibility no-ops (tool search is always enabled upstream), not an under-development stage. Verified against openai/codex source (codex-rs/features/src/lib.rs stages + tests.rs:203 assert_eq!(Feature::ToolSearch.stage(), Stage::Removed)), and it now matches the sibling docs/tools/tool-search.md. docs-link-audit 0 broken links; git diff --check clean.

@clawsweeper

clawsweeper Bot commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Pick-cat and others added 5 commits July 2, 2026 22:48
… under-development stage

Codex code mode, tool search, and deferred dynamic tools are Stage::UnderDevelopment
upstream (openai/codex codex-rs/features/src/lib.rs), not stable. Fixes the
same-page Runtime status bullet and sibling tool-search docs flagged by review.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Do not describe tool-search, deferred dynamic tools, and nested tool calls
as under development; the upstream stage metadata only covers code_mode and
code_mode_only. Tool-search flags are separate Codex-owned surfaces.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: clarify mechanistic difference between Codex Code Mode and Openclaw Code Mode

1 participant