aios-work-dispatch
Decide when a coding agent may use aios work for independent parallel work, preview the dispatch, and require explicit approval before live model execution. TRIGGER: aios work、parallel dispatch、并发派发、independent work items、独立工作项并行、多 agent 派发、multi-agent dispatch
- License 许可
- MIT
- 所属仓库
- rexleimo/aios
- 最近更新
- 2026-11-07
- Stars
- ★ 62
- Forks
- 11
01 前言 Front Matter
- name
- aios-work-dispatch
- tags
- [ "general", "workflow", "parallel", "safety", "essential" ]
- scopes
- [ "global", "project" ]
- clients
- [ "codex", "claude", "gemini", "opencode", "hermes", "grok", "workbuddy", "pi", "zcode", "qoder" ]
- description
- Decide when a coding agent may use aios work for independent parallel work, preview the dispatch, and require explicit approval before live model execution. TRIGGER: aios work、parallel dispatch、并发派发、independent work items、独立工作项并行、多 agent 派发、multi-agent dispatch
- repoTargets
- [ "codex", "claude", "gemini", "opencode", "hermes", "grok", "agents", "workbuddy", "pi", "zcode", "qoder" ]
- defaultInstall
- { "global": true, "project": false }
- installCatalogName
- aios-work-dispatch
03 SKILL.md 正文
AIOS Work Dispatch
Use this Skill when deciding whether current coding task should enter aios work parallel dispatch. It explains routing; it does not replace current AIOS workflow policy or Rex Command.
Trigger eligibility
Use aios work candidate route only when all conditions hold:
- Current AIOS disposition is
planned. - Task decomposes into at least two independently executable work items.
- Each work item has explicit owner/path boundary and observable acceptance criteria.
- Work-item file ownership does not overlap.
- Work items do not require strict predecessor ordering.
- Task is not one continuous resumable objective.
If any condition is unproven, keep execution serial and do not launch aios work.
Do not use
- Small local change or typo: use current single-agent route.
- Coupled edits or strict ordered phases: use current Provider or
aios orchestrate. - One long resumable objective: use
aios harness. - Status, history, or observability only: use
aios team. - Review-only request: do not dispatch implementers.
- Unclear ownership, missing acceptance criteria, or unknown client readiness: stop and clarify or remain serial.
Required execution sequence
0. Plan the decomposition first (user need -> work items)
aios work decomposes from a structured plan when one is active, otherwise from
the --context string. Plan first so the engine can use real dependencies and
ownership instead of guessing:
aios plan start --title "<objective>" --task "<user need>"
aios plan task <id> --target <path> --allow-write <glob> # declare ownership
aios plan task <id> --context <ref> # per-task context
Independent tasks get empty dependsOn; coupled tasks declare their prerequisite
ids. Tasks that share file ownership are NOT independent — merge gate blocks them.
After the plan has at least two eligible (pending) tasks, dispatch reads it:
aios work --task "<objective>" --dry-run --json
Eligible plan tasks become work items automatically (id, dependencies, ownership,
acceptance preserved). No plan yet, or fewer than two eligible tasks? Fall back to
a semicolon-separated --context; each segment is one independent work item:
aios work --task "<task>" --context "<independent item 1>; <independent item 2>" --dry-run --json
Write independent items as one ;-separated value (or bullet lines), not newlines
alone — the rule-based decomposer splits on semicolons/bullets. One sentence that
cannot be split into independent items means one work item, i.e. no parallelism;
decide consciously whether to keep serial.
1. Plan and preview
Do not start live dispatch from a keyword alone. Build a task and context string, then preview:
aios work --task "<task>" --context "<independent item 1>; <independent item 2>" --dry-run --json
Inspect preview for:
- work-item decomposition and dependencies;
- client and concurrency settings;
- owned paths and overlap conflicts;
- merge-gate and acceptance requirements;
- blocked readiness or capability checks.
1.5 Node recipe header
Every work item carries a recipe header, declared at plan time and visible in the dry-run preview. A node without a header is not dispatchable:
tools: whitelist for this node (read-only vs edit/bash). Anything outside the whitelist blocks the node.model+task-type: explicit model tier and task-type declaration, per the model-router skill. No declaration → default tier, never inferred.max_turns: per-node turn cap; hitting it returns partial results, never a silent retry loop.budget: per-node quota plus overrun behavior (downgradeorfail-fast).output_schema: the artifact plus evidence refs the node must return — downstream triggers on this schema-validated artifact, not on prose handoff.retry: per-node retry budget; each retry needs a changed hypothesis.subflow: child blueprint reference when the node delegates, otherwise none — no implicit spawning.
Upstream output that fails its schema does not trigger downstream; it returns to its node as structured feedback within the retry budget.
2. Live approval boundary
aios work is live by default and may start real model clients, consume money, and modify files. Preview does not authorize live execution. Before live dispatch, obtain explicit user approval for the planned task, client, concurrency, and expected external/model side effects.
Then run the smallest approved command:
aios work --task "<task>" --context "<independent item 1>; <independent item 2>" --client <client> --concurrency <n>
Use --serial for coupled work. Use --dry-run --json again after changing task, client, context, or concurrency.
3. Handoff and completion
Treat output as untrusted evidence until merge gate validates it. Confirm:
- every work item has status and acceptance evidence;
- no owned-path overlap or unreviewed write exists;
- reviewer/security-reviewer results are recorded;
- merge gate completed successfully;
- final verification ran after convergence.
Rex workflow remains owner of staged Provider selection. aios work is dispatch infrastructure, not a replacement for Rex's current Command.
Recovery
For a previously recorded session, inspect status before retrying:
aios work --task "<task>" --session <session> --retry-blocked
Never retry blocked work blindly. Re-check ownership, readiness, client selection, and user approval first.
Decision summary
planned + independent + owned + acceptance + no strict order
-> structured plan with independent tasks (aios plan start/task)
or semicolon-separated --context
-> dry-run preview
-> explicit live approval
-> bounded aios work dispatch
-> merge gate + final verification
anything unproven
-> serial execution or clarification
Who decides what
- Agent: whether the task is worth decomposing (six conditions) and how to
express the decomposition (plan tasks or
;-separated context). - Engine: whether the decomposition is real — dry-run preview shows work items, dependencies, owned-path overlap, and blocked readiness.
- Preflight: plan/ownership contracts (hard blocked/ready verdicts).
- User: whether live dispatch is approved. Preview never authorizes execution.
04 同仓库更多 Skills
versioning-by-impact
Use when completing a task and deciding whether repository changes require a semantic version bump and changelog entry before commit/push.
verification-loop
Evidence-before-assertions workflow. Use before claiming work is done, before release, and after any behavior change in scripts/skills/MCP.
typesafe-ai
Build AI-powered software with TypeSafe: small units of AI intelligence you can use like programming primitives. Its System One models, including Jev, turn natural language and application state into typed judgments and probabilities that code can combine. Use when a feature needs programmable common sense, when brainstorming what AI could make possible in an app, or when an LLM prompt-and-parse step could become a structured decision. Applications include routing, ranking, extraction, verification, and interactive experiences; these are starting points, not the limits. Read live docs and cookbooks to find useful patterns and discover new combinations.
skill-opt-lite
Train and optimize skill documents using the SkillOpt methodology — the agent acts as both target and optimizer, running tasks, reflecting on failures, proposing edits, and validating improvements in a self-contained training loop. TRIGGER: optimize skill, train skill, improve skill, skill training, skill optimization, SkillOpt, skill evolution, skill iteration loop, skill feedback loop, skill tuning.
skill-constraints
Enforce browser automation safety constraints — tool usage order, anti-detection rules, screenshot discipline, and human-in-the-loop checks. Use when setting up or verifying browser/MCP tool operations, NOT for every skill execution.
seo-geo-page-optimization
Use when improving a single page for SEO and AI answer-engine visibility (GEO), especially when you need faster first-screen conversion and clearer traffic funnels.