원클릭으로
executing
Use when implementing approved Pulse beads, either as a swarm worker or as a single worker when swarming is unavailable.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when implementing approved Pulse beads, either as a swarm worker or as a single worker when swarming is unavailable.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use after completed Pulse work when the user asks to capture post-cycle machine-readable learnings for future planning and execution.
Use when the user asks to distill accumulated dev-notes into reader-facing topic knowledge, rather than to capture a new note or update machine memory.
Use before implementation planning when feature intent is clear but implementation decisions are still unresolved, and the user needs those decisions locked first.
Use after pulse:exploring when locked decisions are ready and the user needs a mode-gated plan with an approved work shape and current-work prep for validation.
Use when starting any Pulse workflow, resuming a Pulse session, or before planning or execution when tool readiness or onboarding state may block the flow.
Use after execution completes when the user needs final quality verification and release-readiness review before closeout.
| name | executing |
| description | Use when implementing approved Pulse beads, either as a swarm worker or as a single worker when swarming is unavailable. |
| metadata | {"version":"1.4","ecosystem":"pulse","dependencies":[{"id":"beads-cli","kind":"command","command":"br","missing_effect":"unavailable","reason":"Executing implements and closes beads through br."},{"id":"beads-viewer","kind":"command","command":"bv","missing_effect":"unavailable","reason":"Executing checks bead state with bv during the implementation loop."}]} |
If preflight readiness is missing, stale, or blocked (check .pulse/tooling-status.json), stop and invoke pulse:using-pulse before continuing.
pulse:executing supports two modes:
pulse:swarmingIn both modes, the live bead graph is the source of truth for what to do next.
Initialize → Get Bead → Reserve Files → Implement → Verify → Close & Report
↑ |
└─────────────── Context OK? Loop ─────────────────────────────┘
Context >65%? → Handoff → Stop
Determine mode from invocation plus .pulse/tooling-status.json:
pulse:swarming, run in worker moderecommended_mode=single-worker, run in standalone modeSwarming gives you runtime-native startup context. Capture and keep these fields together for the rest of the run:
runtime_identitycoordinator_identityadapter_nameepic_idfeature_namestartup_hintTreat startup_hint as a hint, not a silent permanent assignment. Re-check the live graph before you claim work.
Do not invent extra registration, inbox, or topic mechanics if the active runtime does not use them.
node .pulse/scripts/pulse_status.mjs --json — quick onboarding/state/handoff/reservation scoutIf any of these files does not exist, note the absence and proceed — do not fabricate content.
If the bead references learning_refs, read those specific learning files. Do not load all learnings by default.
[ONLINE] Before Claiming Work (worker mode only)Before you select a bead, you must report in on the active coordination surface. Startup is not complete until you:
AGENTS.mdpulse:executing[ONLINE] including:
runtime_identityAGENTS.md: readpulse:executing: loadingNext step: bv --robot-priorityDo not call bv --robot-priority before this sequence is complete.
Runtime mapping:
SendMessageUse owner-scoped handoffs:
.pulse/handoffs/worker-<runtime_identity>.json.pulse/handoffs/single-worker.jsonIf a handoff exists and was written by a prior instance of you (same worker identity):
A worker must not consume another worker's handoff directly.
Normal path stays same-runtime-identity resume.
Only the coordinator may reassign an orphaned worker handoff when the original runtime identity is unavailable.
Before you resume from a reassigned handoff, require coordinator confirmation that all are true:
For reassignment, the coordinator must update .pulse/handoffs/manifest.json and the owner handoff file before any worker resumes, recording:
If those updates are missing, do not resume from the handoff.
In worker mode, every loop starts with coordination visibility, not blind bead selection.
Check the active coordination surface for:
Then follow the normal path from the live graph:
bv --robot-priority
Select the top-ranked bead that:
If swarming suggests a bead via the active coordination surface, treat it as a startup hint or rescue instruction, not as a permanent assignment. Re-check the live graph before claiming the work.
br show <bead-id>
Minimum fields to confirm:
| Field | Purpose |
|---|---|
dependencies | Upstream bead IDs that must close first |
files | Files/modules in scope for this bead |
verify | Concrete verification commands to run |
verification_evidence | Path to the canonical evidence artifact (typically history/<feature>/verification/<bead-id>.md) |
testing_mode | standard / tdd-required |
decision_refs | Locked decisions from CONTEXT.md relevant to this bead |
learning_refs | Learning file paths to read before implementing |
If any required field is missing, stop and bounce the bead back to validating or planning. Do not guess from free-form prose.
If testing_mode is tdd-required, confirm tdd_steps is present before implementation starts.
Do not rely on the bead alone when the work is architecturally or operationally sensitive.
Before reserving files or writing code, read the active-shape current-work artifacts whenever any condition below is true.
Shape artifact requirements:
history/<feature>/work-shape.md (current work is defined directly there)history/<feature>/epic-map.md and history/<feature>/current-story-pack.mdhistory/<feature>/phase-plan.md, history/<feature>/phase-<n>-contract.md, and history/<feature>/phase-<n>-story-map.mdTrigger conditions:
testing_mode is tdd-requiredverify path is multi-step, integration-heavy, or hard to explain in one line from the bead aloneUse the active-shape artifact set as the canonical current-work contract for this bead.
For beads that touch module interfaces, ownership boundaries, or HIGH-risk constraints, also read the relevant parts of history/<feature>/approach.md.
If the bead is a small single-path change with tight file scope, unambiguous verification, and no boundary sensitivity, the bead plus CONTEXT.md is usually sufficient.
In worker mode, reserve all listed files before editing with the shared repo-local helper.
Repeat --path for every declared file or glob you need to claim:
node .pulse/scripts/pulse_reservations.mjs reserve --agent <runtime_identity> --bead <bead-id> --path "src/foo.ts" --path "src/bar.ts" --json
In standalone mode, there is no cross-worker race, but still treat the bead's files list as a hard scope boundary. Do not blend multiple beads into one ad hoc change, and do not sneak in temporary cross-module structure that was not planned.
[FILE CONFLICT] immediately on the active coordination surfaceDo not proceed without your reservations. Do not edit around the conflict.
Proceed to implementation immediately.
Read every source file you will modify. Do not write from memory or assumptions about file contents.
Before writing any code, scan your bead's description for decision IDs (D1, D2, ...). For each referenced ID:
history/<feature>/CONTEXT.mdBefore you change a file, say what you believe is true:
If two plausible interpretations remain, stop. Surface the ambiguity explicitly and get the bead repaired or clarified instead of guessing in code.
Match naming conventions, error handling patterns, import styles, and test structures found in the codebase.
For new feature beads, do not invent temporary architecture just to get a first work slice over the line. Preserve the planned module ownership, interfaces, and cross-module contracts from CONTEXT.md, approach.md, and the current-work artifacts.
Prefer the smallest change that satisfies the bead.
Do not:
If the bead genuinely requires multiple implementation steps, write a short step plan tied to the declared verification path before you start editing. If it is a one-step change, keep the plan in your head and the code lean.
Every artifact you create must be:
Respect the bead's testing_mode:
standard -> implement normally, then verify with fresh evidencetdd-required -> run a real red-green loop before production code closesFor tdd-required beads:
tdd_steps.red and confirm it fails for the expected reasontdd_steps.green and confirm it passesIf production code was written before the red check, discard or rewrite that portion within the bead scope and restart the loop. Do not claim TDD from memory or intent alone.
Run the bead's verify steps exactly as written. Do not substitute easier checks.
Before you run them, be able to say what success looks like in one or two lines. If you cannot, the bead is still under-specified and should be clarified instead of hand-waved through execution.
Verification is not complete until you have fresh evidence from this execution pass.
Read the bead's verification_evidence field and update every declared artifact or explicit record there.
The standard artifact path is:
history/<feature>/verification/<bead-id>.md
The evidence record must include:
testing_modeverify command actually runIf testing_mode=tdd-required, also record:
tdd_steps.red commandtdd_steps.green commandIf verification fails:
pulse:systematic-debug-fix or surface the blocker to the userDo not quietly redefine success after a failing verify run. Either make the bead pass as written or escalate that the bead itself needs repair.
Do not close the bead without a passing verification result and a fresh evidence record.
All actions must complete. Do not skip any, and do not start another bead until the completion report is sent (worker mode) or recorded (standalone mode).
Before br close, confirm all are true:
files scope, or any expansion was surfaced and approveddecision_refs were re-checked against the final implementationverify steps passed in a fresh runverification_evidence entry is present and substantivetdd-required red-green evidence is recordedbr close <bead-id> --reason "Completed: <one-line summary of what was implemented>"
One commit per bead. Do not batch multiple beads into one commit. Do not commit unrelated changes.
In worker mode, implementation and verification can run in parallel, but git add/git commit are serialized on the same branch under coordinator control.
Protocol:
READY_TO_COMMIT on the active coordination surface with bead ID and the exact declared files you will stage.COMMIT_SLOT_GRANTED.git add <files-you-modified>
git commit -m "feat(<bead-id>): <summary matching br close reason>"
READY_TO_COMMIT.COMMIT_DONE with commit hash, or COMMIT_BLOCKED with the blocking reason.In standalone mode, run the same one-bead commit format directly only when no active swarm commit queue exists for the current branch/feature; otherwise route the commit through the coordinator-owned queue.
node .pulse/scripts/pulse_reservations.mjs release --agent <runtime_identity> --json
Release before sending the completion report so other agents can acquire these files immediately.
[DONE] on the active coordination surface with: bead ID, runtime identity, commit hash, files changed, verify result, evidence paths, and any follow-up bead needed.pulse/STATE.mdBefore you claim the next bead, inspect the active coordination surface once for new instructions, blocker resolutions, or reservation-related follow-ups.
After each bead:
Use the handoff contract from pulse:using-pulse (../using-pulse/references/handoff-contract.md) and write owner-scoped files:
.pulse/handoffs/worker-<runtime_identity>.json.pulse/handoffs/single-worker.jsonRequired handoff content:
worker or single-worker)context_criticalcompleted, in_flight, blockers, resume_notes)Register the handoff in .pulse/handoffs/manifest.json with matching summary, next_action, and owner file path.
Worker mode: notify the coordinator after writing the handoff on the active coordination surface.
If you detect context compaction (your conversation was summarized, or you notice gaps in your context):
STOP immediately. Do not continue implementing.
Re-read in this exact order before any further action:
AGENTS.mdhistory/<feature>/CONTEXT.mdbr show <bead-id>work-shape.md section, current-story-pack.md, or phase-<n>-contract.md + phase-<n>-story-map.md); also re-read history/<feature>/approach.md when boundary-sensitive or HIGH-risknode .pulse/scripts/pulse_reservations.mjs list --active-only --jsonOnly after re-reading all applicable items may you continue.
Why this is non-negotiable: Compaction erases knowledge of AGENTS.md, active reservations, and locked decisions. Agents that skip this step produce implementations that conflict with other workers and violate CONTEXT.md decisions.
Stop and reassess if you notice any of these:
it looks right is not verification; run the actual criteriaverification_evidence recordtdd-required was satisfied without a real red failure and green passCOMMIT_SLOT_GRANTED — same-branch commit order is coordinator-owned and must stay serialized| Action | Call |
|---|---|
| Get priority bead | bv --robot-priority |
| Read bead | br show <id> |
| Reserve files | node .pulse/scripts/pulse_reservations.mjs reserve --agent <runtime_identity> --bead <bead-id> --path "..." --json |
| Release files | node .pulse/scripts/pulse_reservations.mjs release --agent <runtime_identity> --json |
| Inspect reservations | node .pulse/scripts/pulse_reservations.mjs list --active-only --json |
| Close bead | br close <id> --reason "..." |
Send [ONLINE] / [DONE] / [BLOCKED] / [FILE CONFLICT] / [HANDOFF] | active coordination surface |
When spawned, swarming provides:
runtime_identity — your runtime identity from the parent spawn resultcoordinator_identity — swarm coordinator identityadapter_name — claude-code or codexepic_id — the coordination root for this featurefeature_name — used to locate history/<feature>/CONTEXT.mdstartup_hint — optional: a bead or area the orchestrator wants checked firstIf any startup inputs are missing, request clarification on the active coordination surface before proceeding.