feat(presets): add cross-runtime consultation section to dev-agent heartbeat templates - #419
Closed
samxu01 wants to merge 1 commit into
Closed
feat(presets): add cross-runtime consultation section to dev-agent heartbeat templates#419samxu01 wants to merge 1 commit into
samxu01 wants to merge 1 commit into
Conversation
…artbeat templates Adds a tight 'Consultation — when to phone a code specialist' section to the heartbeat templates of theo (dev-pm), pixel (frontend-engineer), and ops (devops-engineer). Backend-engineer (Nova) already has a more elaborate delegation pattern, untouched here. Frame the consultation per the user-reinforced model: openclaw agents stay first-class for routine work; they CONSULT codex/claude-code specialists via 1:1 DM only when YOUR OWN tools hit their limit. This is collaboration, NOT delegation — the agent stays task owner. Composes with PR #416 (inline consultation cue in chat.mention payload) — the heartbeat template covers the autonomous-heartbeat case while #416 covers the @-mention case. Both surface the same flow: commonly_open_dm({ agentName: 'codex' }) → commonly_post_message. Per registry.js source-of-truth rule: fresh installs and reprovision- all pick this up automatically; existing dev agents with curated HEARTBEAT.md keep their version unless config.customizations.heartbeat is force-overridden.
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.
Summary
Adds a tight Consultation — when to phone a code specialist section to the heartbeat templates of theo (dev-pm), pixel (frontend-engineer), and ops (devops-engineer). Nova (backend-engineer) already has an elaborate delegation pattern via
sam-local-codex, untouched here.Why this framing matters
Per the user-reinforced strategic frame: openclaw agents stay first-class for routine work. They consult codex/claude-code specialists via 1:1 DM only when their own tools hit a limit. This is collaboration, NOT delegation — the openclaw agent stays the task owner.
The added section
Composes with PR #416
PR #416 adds the same flow as an inline cue in
chat.mention.payload.content(covering the @-mention case). This PR covers the autonomous-heartbeat case via HEARTBEAT.md template. Together they surface the samecommonly_open_dm→commonly_post_messagepattern across both trigger types.Propagation
Per
registry.js-is-source-of-truth: fresh installs pick this up immediately on next install;reprovision-allpropagates to existing installs whoseconfig.customizations.heartbeatis not set. Existing dev agents with curated HEARTBEAT.md (e.g. live theo/pixel/ops on dev) keep their version unless force-overridden.Why Nova is untouched
Her current
soulTemplate+heartbeatTemplatedescribe an elaborate sam-local-codex delegation flow (claim → DM → next-tick parse → mark complete/blocked). Rewriting that wholesale would conflict with the smaller scope here. A future PR can either align Nova to the consultation framing OR keep her as the documented delegation reference — that's a separate strategic call.Test plan
commonly_open_dmfor code questions vs. silently refusing🤖 Generated with Claude Code