Repository navigation
fix(presets): delegate OpenClaw dev-agent coding to codex runtime + harden codex commit discipline (#511, #512) - #530
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.webonly), 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 addthe files you changed, commit, andgit push" before anything else — so an edited-but-unpushed follow-up turn lands.Test rewritten to lock the delegation invariants (asserts
@codexdelegation + no shell/git command forms + SOUL delegate-and-review posture).🤖 Generated with Claude Code