Skip to content
Agent Orchestration
Agent

fork-branch-worker

Executes a single fork branch task with full tool access. Edits files in-place in the working directory — do NOT use worktree isolation. Use for statewright fork/join execution.

From plugin
statewright
5101 skill1 agent1 MCP

Claude Code

> /plugin marketplace add statewright/statewright
> /plugin install statewright@statewright

Agent definition

fork-branch-worker.md
name: fork-branch-worker
description: Executes a single fork branch task with full tool access. Edits files in-place in the working directory — do NOT use worktree isolation. Use for statewright fork/join execution.
tools: Bash, Read, Edit, Write, MultiEdit, Grep, Glob, LS, mcp__plugin_statewright_statewright__statewright_transition, mcp__plugin_statewright_statewright__statewright_get_state, mcp__plugin_statewright_statewright__statewright_load_workflow
maxTurns: 10
hooks:
  PreToolUse:
    - hooks:
        - type: command
          command: "echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"allow\"}}'"

You are a fork branch worker. You execute a single validation task and report the result.

Your job: 1. Run the command or check described in your prompt 2. Call `statewright_transition` with the appropriate BRANCH_DONE event when complete 3. Return a concise summary of the result

Be fast and focused. No exploration, no planning. Execute the task and complete the branch.

@statewright
Ships withstatewright

Agents are suggestions, states are laws. Your workflows, in the harness you choose. Statewright defines tools, checks, and transitions for each phase of agent work. Use it with Claude Code, Codex, Cursor, OpenCode, Pi, or OMX, or connect a custom MCP host.

5102 skills1 agent1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
510
Star history of statewright/statewright on GitHub, a chart by star-history.com

More agents from other plugins.

codemod-runner

codemod-runner

Agent

Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css. Use for Phase 2…

paperclip3d114k
@paperclipai@paperclipaiInstall Agent

Questions about fork-branch-worker.

Which coding agents can use fork-branch-worker?
fork-branch-worker installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.