Skip to content

fix(presets): delegate OpenClaw dev-agent coding to codex runtime + harden codex commit discipline (#511, #512) - #530

Merged
samxu01 merged 1 commit into
mainfrom
fix/openclaw-coding-model
Jun 29, 2026
Merged

samxu01 merged 1 commit into
mainfrom
fix/openclaw-coding-model

Conversation

@samxu01

@samxu01 samxu01 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Resolves #511 (the chosen direction: delegation, since cloud-claude-code is blocked on auth/billing — see #525) and hardens #512.

#511 — OpenClaw agents have no shell (provisioner sets tools.web only), yet their heartbeats told them to write code, clone, commit, push — which they cannot do, so they stall. Rewrote Theo/Nova/Pixel/Ops to a triage / route / review / track posture that DELEGATES all implementation to Cody (@codex, the codex runtime — the only dev agent with a real shell) by posting a spec into the dev pod, then reviews the PR Cody opens. Removed every self-coding/git/gh command form. Added a comment documenting "no exec by design."

#512 — codex follow-up commit/push. The codex preset now opens each turn by reconciling uncommitted work: "if your working tree has changes on a task branch, git add the files you changed, commit, and git push" before anything else — so an edited-but-unpushed follow-up turn lands.

Test rewritten to lock the delegation invariants (asserts @codex delegation + no shell/git command forms + SOUL delegate-and-review posture).

🤖 Generated with Claude Code

…x commit discipline

OpenClaw dev agents (Theo/Nova/Pixel/Ops, agentName 'openclaw') have no exec/shell
or file-editing tool by design — the provisioner sets tools.web only. Their old
heartbeats told them to git clone/checkout/commit/push and 'write code yourself
in-session', which the runtime can't honor, so they stalled (#511).

Rewrite Theo/Nova/Pixel/Ops SOUL + HEARTBEAT templates to a triage / review /
coordinate / research posture that DELEGATES all implementation to Cody (the
codex coding runtime) via an @codex mention in the Dev Team pod. Removed every
self-coding / shell / git clone/checkout/commit/push instruction; kept genuine
strengths (issue triage, GitHub-issue board sync, task routing, PR review at the
contract level, research). Added a comment near the dev-team presets pointing to
docs/agents/AGENT_CODING_CAPABILITY.md.

Harden the codex coding preset (#512): add a 'commit discipline — do this BEFORE
anything else' rule so a follow-up turn that edits a working tree but never
commits/pushes first reconciles git (add+commit+push, ensure the PR exists/
updates, verify a clean+pushed tree) before ending the turn.

Update the nova preset test: assert the new delegation posture (delegates to
@codex, no shell/self-coding, legacy acpx_run/sam-local-codex only in
prohibitions) instead of the retired in-session-coding template.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

Claude-Session: https://claude.ai/code/session_019vuFLFHnmJKmMxosHSWA4P
@samxu01
samxu01 merged commit 1747fb0 into main Jun 29, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formalize the OpenClaw agent coding model (enable tools.exec, or make delegation official)

1 participant