codex-deck-flow
- Repo stars 8
- License MIT
- Author repo codex-deck
Orchestrate Persistent Multi-Agent Workflows
Use this skill to create workflows, inspect workflows, and send control messages to the background codex-deck-flow daemon.
This skill is an operator control client, not the long-running orchestrator. After the daemon has started successfully and a control message has been sent successfully, the skill should stop.
Detailed operational guidance is routed through references/*.md:
- Command sequences and syntax:
references/commands.md - Workflow/task authoring rules:
references/authoring.md - Failure recovery runbooks:
references/runbooks.md - Scheduler vs workflow-task guidance placement:
references/guidance-routing.md - Architecture, contracts, and role prompts:
references/agent-flow-design.md - Scheduler mutation heuristics (scheduler task only):
references/scheduler.md
Mandatory activation contract
- If the user explicitly mentions
$codex-deck-floworcodex-deck-flow, treat that as a strict instruction to use this workflow system. - Do not switch to direct ad-hoc coding as the primary path while that request is active.
- In the first response after activation, say that codex-deck-flow orchestration is active and state the first command you are running.
- If the user gives
project rootplusworkflow IDfor a workflow that the current session has not created, loaded, or already resolved, first runresolve-workflow, then continue withvalidate,reconcile, andstatus. - If the current session already knows the workflow path from
create, a previousresolve-workflow, or earlier inspection in the same chat, reuse that path instead of resolving again. - If the user already gave a workflow path, start with
validate, thenreconcile, thenstatus. - If no workflow exists yet, start with
create, then immediatelyvalidate, thenshoworstatus, and present the authored tasks/prompts for user approval beforetrigger. - If the user explicitly includes
Strict task creating mode, keep the normal create/validate/show flow, but use the strict authoring protocol described below. - Keep merge explicit. Never run
merge --applyunless the user explicitly asked to apply the integration branch into the target branch. - Once
triggerordaemon-sendsucceeds, stop. Do not continue the same skill turn as if it were the orchestrator.
Strict task creating mode
When the user explicitly includes Strict task creating mode, treat that as a workflow-authoring protocol layered on top of the normal codex-deck-flow create flow.
Rules:
- Still run
create, thenvalidate, thenshoworstatusas usual. - The draft workflow JSON already exists after
create; approval still gatestrigger, not draft creation. - If you must ask the user a clarifying question before the workflow is ready, the assistant message must end with exactly:
<codex-deck-flow>Question<codex-deck-flow/>
- When asking the user to approve the authored workflow, the assistant message must end with exactly:
<codex-deck-flow>Request approve:workflow-file-name.json<codex-deck-flow/>
- Replace
workflow-file-name.jsonwith the JSON file name only, for examplefeature-delivery.json. - Use only the file name token after
Request approve:. Do not add brackets or extra wrappers. - Do not put any additional text after the strict tag suffix.
- Once the user approves, exit strict task creating mode and continue with the normal codex-deck-flow flow.
- If the approval message includes workflow data for an already-created draft, reuse that workflow and do not run
createagain. - The approval workflow data may include fields such as
workflowPath,workflowFileName,workflowId,projectRoot, andboundSessionId; treat that as the canonical handoff for reusing the already-authored draft.
Core runtime model
- One workflow = one JSON file under
./.codex-deck/. - The daemon is the orchestration owner and can serve workflows from multiple project roots.
- The skill starts daemon if needed, sends one control message, then stops.
- Worker tasks run in isolated
git worktreedirectories. - Scheduler continuity should use codex-deck-flow non-interactive app-server-backed resume behavior (
scripts/codex_resume_noninteractive.pybehavior model), not rawcodex resume SESSION_IDsemantics in daemon mode.
Use references/agent-flow-design.md for full runtime contracts and role data.
Route by intent
Use this decision route, then follow details in references/commands.md:
- New workflow request:
create->validate->show/status-> user approval ->trigger - Existing workflow by known path:
validate->reconcile->status - Existing workflow by project root + workflow ID when path unknown in current session:
resolve-workflow->validate->reconcile->status - Explicit daemon control message:
daemon-sendorstop-workflow-processes - Merge request:
mergepreview, andmerge --applyonly if explicitly requested
Reference loading boundaries
- Scheduler task only:
references/scheduler.md - Scheduler/workflow-task guidance file rules and routing:
references/guidance-routing.md - Non-scheduler roles should not load scheduler-specific mutation guidance.
References
Canonical references:
references/commands.mdreferences/authoring.mdreferences/runbooks.mdreferences/guidance-routing.mdreferences/agent-flow-design.mdreferences/scheduler.md(scheduler task only)
Implementation scripts:
scripts/workflow.pyscripts/task_runner.pyscripts/daemon.pyscripts/daemon_client.pyscripts/codex_resume_noninteractive.pyscripts/session_state.pyscripts/session_summary.py
- Fluxly category
- Engineering
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 94 / 100 · heuristic scan, not runtime safety proof
- Author / version / license
- @asfsdsf · MIT
- Fluxly token estimate
- Lean
- Fluxly setup estimate
- Plug-and-play
- External API key
- No requirement detected
- Detected OS requirements
- Unspecified
- Runtime requirements
- Unspecified
- Detected file/system behavior
-
- Read-only
- Write / modify
- Detected network behavior
- Local-only
- Install commands
- None (reference only)
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
The current SKILL.md does not define a fixed output example. If the user explicitly mentions $codex-deck-flow or codex-deck-flow, treat that as a strict instruction to use this workflow system. Do not switch to direct ad-hoc coding as the primary path while that request is active.
When the user explicitly includes Strict task creating mode, treat that as a workflow-authoring protocol layered on top of the normal codex-deck-flow create flow. Rules: Still run create, then validate, then show or status as usual.
One workflow = one JSON file under ./.codex-deck/. The daemon is the orchestration owner and can serve workflows from multiple project roots. The skill starts daemon if needed, sends one control message, then stops.
Use this decision route, then follow details in references/commands.md: New workflow request: create -> validate -> show/status -> user approval -> trigger Existing workflow by known path: validate -> reconcile -> status
Scheduler task only: references/scheduler.md Scheduler/workflow-task guidance file rules and routing: references/guidance-routing.md Non-scheduler roles should not load scheduler-specific mutation guidance.
Canonical references: references/commands.md references/authoring.md
# Orchestrate Persistent Multi-Agent Workflows
Use this skill to create workflows, inspect workflows, and send control messages to the background codex-deck-flow daemon.
This skill is an **operator control client**, not the long-running orchestrator. After the daemon has started successfully and a control message has been sent successfully, the skill should stop.
Detailed operational guidance is routed through `references/*.md`:
- Command sequences and syntax: `references/commands.md`
- Workflow/task authoring rules: `references/authoring.md`
- Failure recovery runbooks: `references/runbooks.md`
- Scheduler vs workflow-task guidance placement: `references/guidance-routing.md`
- Architecture, contracts, and role prompts: `references/agent-flow-design.md`
- Scheduler mutation heuristics (scheduler task only): `references/scheduler.md`
## Mandatory activation contract
- If the user explicitly mentions `$codex-deck-flow` or `codex-deck-flow`, treat that as a strict instruction to use this workflow system.
- Do not switch to direct ad-hoc coding as the primary path while that request is active.
- In the first response after activation, say that codex-deck-flow orchestration is active and state the first command you are running.
- If the user gives `project root` plus `workflow ID` for a workflow that the current session has not created, loaded, or already resolved, first run `resolve-workflow`, then continue with `validate`, `reconcile`, and `status`.
- If the current session already knows the workflow path from `create`, a previous `resolve-workflow`, or earlier inspection in the same chat, reuse that path instead of resolving again.
- If the user already gave a workflow path, start with `validate`, then `reconcile`, then `status`.
… Author text anchors workflow facts; Fluxly only indexes current sections, terms, files, and commands.
sections -> Mandatory activation contract → Strict task creating mode → Core runtime model → Route by intent → Reference loading boundaries → References
terms -> operator control client · not · Use this skill to create workflows, inspect workflows, and send control messages to the background codex-deck-flow daemon. · This skill is an operator control client, not the long-running orchestrator. · - If the user explicitly mentions $codex-deck-flow or codex-deck-flow, treat that as a strict instruction to use this workflow system. · - Still run create, then validate, then show or status as usual. · - One workflow = one JSON file under ./.codex-deck/. · Use references/agent-flow-design.md for full runtime contracts and role data.
files/cmd -> references/.md · references/commands.md · references/authoring.md · references/runbooks.md · references/guidance-routing.md · references/agent-flow-design.md · references/scheduler.md · $codex-deck-flow
body sha256 -> e3a7ce9a0e67
Decide Fit First
Design Intent
How To Use It
Boundaries And Review