From arcgentic
Use when running Arcgentic V2 in Claude Code and fixed Planner, Developer, and Auditor role sessions must be coordinated through a broker.
How this skill is triggered — by the user, by Claude, or both
Slash command
/arcgentic:claude-code-session-brokerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill for Claude Code V2 parity. Claude Code does not expose the same
Use this skill for Claude Code V2 parity. Claude Code does not expose the same Codex thread tools to Arcgentic, so V2 parity is broker-backed: the broker keeps the same four-role state contract and uses Claude Code subagents, Agent Teams, hooks, or explicit copy-back depending on what the host supports.
Relevant host capabilities:
V2 still has exactly five role identities:
OrchestratorPlannerDeveloperTestAuditorDo not create round-numbered role identities. Store round identity in state and prompt payloads.
Use the strongest available transport:
RoleReturnSignal and the orchestrator records it manually.All three transports must write the same state shape.
Install project-local Claude Code hooks once:
arcgentic claude-code-broker install-hooks \
--settings .claude/settings.local.json \
--state .agentic-rounds/state.yaml
The installed Stop/SubagentStop hook calls:
arcgentic claude-code-broker handle-stop \
--state .agentic-rounds/state.yaml
The hook reads Claude Code's last_assistant_message, extracts the
arcgentic-role-return footer, runs the same V2 return validation, updates
.agentic-rounds/state.yaml, and writes a broker inbox record under
.agentic-rounds/claude-code-broker/inbox/.
Initialize or read V2 host state:
arcgentic v2-session-plan \
--state .agentic-rounds/state.yaml \
--host claude-code-broker \
--user-request '<current user request>'
If orchestrator_status is sleeping, stop immediately. The broker is
waiting for pending_role; do not dispatch another role.
If orchestrator_status is active, create or resume only the single role
context in actions, then record its broker id:
arcgentic v2-record-session \
--state .agentic-rounds/state.yaml \
--host claude-code-broker \
--role <planner|developer|test|auditor> \
--thread-id <broker-session-id>
Inject only that role's prompt. The developer does not receive auditor reasoning. The auditor does not receive developer chat transcript. The planner owns phase decisions.
After injecting the role prompt, put the Orchestrator to sleep and end the Orchestrator turn:
arcgentic v2-dispatch-role \
--state .agentic-rounds/state.yaml \
--host claude-code-broker \
--role <planner|developer|test|auditor> \
--thread-id <broker-session-id>
Require every role turn to end with RoleReturnSignal JSON.
Record the signal. This wakes the Orchestrator and clears the pending dispatch:
arcgentic v2-return-signal \
--state .agentic-rounds/state.yaml \
--signal-json '<RoleReturnSignal JSON>'
Re-run v2-session-plan --host claude-code-broker and dispatch the next
role.
When hooks are available, configure stop hooks to extract the role's final
response and pass it back to the orchestrator as context. The hook must not
invent a PASS/NEEDS_FIX outcome. It only transports the role's own
RoleReturnSignal.
The bundled hook runtime uses official Claude Code Stop/SubagentStop input
fields, especially last_assistant_message and stop_hook_active. If the
Orchestrator is sleeping and the role output lacks a valid footer, the hook
blocks once with a corrective reason. If stop_hook_active is already true, it
does not block again, preventing hook recursion.
RoleReturnSignal, do not advance.Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub arch1esun/arcgentic --plugin arcgentic