Command Palette

Search for a command to run...

Back to skills
skill № 94392

hex-execute

Multi-agent execution orchestrator — implements an approved hex-plan artifact (or a free-text task) as parallel pipelines of serial steps cut along contracts…

FreeNo executable scripts
ocx-shby ocx-sh★ 20 GitHub stars

Install hex-execute in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

hex-execute — Execution Orchestrator

Thin dispatcher. A plan is a few pipelines cut along contracts; a pipeline is a chain of steps in one worktree. This file resolves the target, runs the contract wave, dispatches steps, merges, runs the integration gate concurrent with the review call, fixes, and hands to /hex-finalize. Vocabulary lives in hex-core and is linked here, never copied.

Shared contracts: protocol.md · workers.md · models.md · memory.md · worktree.md · verify.md. If hex-core is not installed: grim add ghcr.io/michael-herwig/arcana/hex-core:latest.

Argument syntax

/hex-execute [target] [--dry-run]
  • target (optional): a plan artifact path; a free-text task (no plan artifact, one pipeline); or omitted — resolve the active-plan pointer from hex.md › Memory (memory.md).
  • --dry-run — print the announce block and stop; no worker launches.

The run

Counts are fixed (DESIGN.md): two full gates (integration, release), ≤ 3 review calls, workers never wait, escalation by the orchestrator only.

1. Resolve memory and target

Locate .agents/memory/hex.md searching upward; a missing file is normal (memory.md) — use shipped defaults and note that /hex-init can create one. When present, read it whole: Pointers (verification, hub/generated files, fresh-build switch, worktree location), Preferences (model-class agent definitions, limits), Memory (active-plan pointer). A Federation lead: bullet means this repo is a satellite: halt per memory.md.

Resolve the target: explicit plan path (read it whole), active-plan pointer (none recorded: stop and ask), or free text (scope contracts inline). A plan carrying a Repo column: follow federation.md before anything else is written.

Plan State decides entry: plan-approved is normal. executing is a prior run — resume from the pipeline table's Status column (pending | active | merged | failed), resetting an unfinished pipeline to its last committed step; branches and worktrees are evidence only, the Implementation Steps checkboxes are the finer progress, and a resuming run never reads the per-run scratch root. landing is a finalize-only re-entry (federation.md). review or done: stop and report; the human decides whether to re-execute.

2. Announce

No approval gate — print the resolved config and proceed (the user can abort):

hex-execute
  Target:      .agents/plans/plan_cache.md
  Pipelines:   3 (A, B, C) — contract wave first, then A ∥ B ∥ C
  Jobs:        3 live × 4 = 12            (project single-build jobs: 12)
  Classes:     steps standard; B step 4 standard-high (plan mark)
  Review:      1 call after all pipelines land
  Gates:       integration (with review) · release (/hex-finalize)
  Branches:    feature hex/plan-cache; per pipeline hex/plan-cache--<pipeline>

Plus the federation pre-flight lines, when federated. A client that cannot spawn subagents announces Degraded: inline workers and runs each brief inline, sequentially (protocol.md). Then set the plan's State: executing.

3. Contract wave

Resolve the feature branch — the non-trunk branch already checked out, else hex/<plan-slug> from the trunk (worktree.md). A single pipeline (small task) skips the wave and the worktree: its steps run directly on the feature branch.

Otherwise one or a few standard steps write the stubs plus contract tests for every pipeline — public surface with not-implemented bodies, and the tests that pin each cross-pipeline contract, derived from the plan's component contracts, not from the stubs. Commit once. That commit is the frozen base of every pipeline.

4. Pipelines and steps

Each pipeline gets a branch hex/<plan-slug>--<pipeline-slug> and a worktree (worktree.md), all created from the wave commit; all pipelines start together. Pipelines own disjoint file sets. Inside a pipeline: serial steps, shared worktree, no merge, no review, no gate between steps. The orchestrator spawns every step itself (foreground results reach it; there is no driver agent in between) and starts a pipeline's next step the instant the previous returns.

Step. A fresh agent of class standard (standard-high only where the plan marks the step — at most 1 pipe

Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • federation.md

FAQ

What does the hex-execute skill do?

Multi-agent execution orchestrator — implements an approved hex-plan artifact (or a free-text task) as parallel pipelines of serial steps cut along contracts, merges them onto a feature branch, runs one integration gate concurrent with one review, and hands to /hex-finalize. Use to execute, implement, build, or run an approved plan, resume an interrupted execution, or turn a design into tested, reviewed, committed code.

How do I install the hex-execute skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the hex-execute skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare hex-execute with