agmsg-orchestration
Coordinate structured agmsg task orchestration between a Claude Code orchestrator and Codex workers. Use when Codex or Claude Code needs to run or supervise AGMSG-TASK / AGMSG-RESULT / AGMSG-ACCEPTANCE workflows, bootstrap workers in herdr panes, manage .orchestration artifacts, act as an agmsg worker, or document the flue-pi style orchestration protocol without installing the Hermes Agents runtime.
- License 许可
- Apache-2.0
- 最近更新
- 2026-07-21
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- agmsg-orchestration
- metadata
- { "owner": "mryfmo", "scope": "org", "freshness": "90d", "provenance": "repo=mryfmo/dotfiles; license=MIT", "last-verified": 1784592000000 }
- description
- Coordinate structured agmsg task orchestration between a Claude Code orchestrator and Codex workers. Use when Codex or Claude Code needs to run or supervise AGMSG-TASK / AGMSG-RESULT / AGMSG-ACCEPTANCE workflows, bootstrap workers in herdr panes, manage .orchestration artifacts, act as an agmsg worker, or document the flue-pi style orchestration protocol without installing the Hermes Agents runtime.
02 资源文件 1
- 参考文档eval/NOTES.md168 B
03 SKILL.md 正文
agmsg orchestration
Use this skill for structured multi-agent work where a Claude Code orchestrator assigns bounded tasks to Codex workers through agmsg teams. Use the regular agmsg skill for simple send/inbox/history commands.
Architecture
- Claude Code is the orchestrator: it writes task files, starts workers, reviews artifacts, and sends acceptance or revision messages.
- Codex workers execute one assigned task: they read the task file, obey file and action constraints, write artifacts, and send the required result message.
agmsgis the message bus. Use only scripts under~/.agents/skills/agmsg/scripts/.herdrpanes are optional worker terminals; they are a launch surface, not the protocol.- This skill adopts only the Hermes Skill Subset ideas:
SKILL.mdstructure, progressive disclosure, activation metadata, task/error/user-correction skill decisions, and separated candidate/promoted/rejected/merged registries. Do not introduce Hermes Agents runtime, memory, profiles, personalities, toolsets, plugins, UI, or automation framework.
Message Contract v1
Send messages as single-line records so inbox/history output stays parseable.
AGMSG-TASK v1 fields:
AGMSG-TASK v1 task_id=<id> repo=<absolute-repo-path> task_file=<path>
allowed_files=<paths-or-see-task-file-section> forbidden_actions=<semicolon-list>
expected_result_file=<path> expected_validation_file=<path>
expected_sandbox_file=<path> expected_learning_file=<path>
expected_autoskill_file=<path> done_signal=AGMSG-RESULT max_turns=<n>
note=act-as-worker-<task-or-role>
AGMSG-RESULT v1 fields:
AGMSG-RESULT v1 task_id=<id> status=ready_for_review|blocked
report=<path> validation=<path> sandbox=<path> learning=<path> autoskill=<path>
AGMSG-ACCEPTANCE v1 fields:
AGMSG-ACCEPTANCE v1 task_id=<id> status=accepted|revise reason=<short-reason> next_action=<action>
Liveness messages:
AGMSG-PING v1 task_id=<id> reason=<short-reason>
AGMSG-PONG v1 task_id=<id> status=alive|blocked note=<short-note>
.orchestration Workspace Layout
tasks/: orchestrator-authored task specs.reports/: worker reports and blocked-task reports.validation/: command output and validation evidence.acceptance/: orchestrator acceptance, revision, or rejection records.sandboxes/: OpenSandbox records or documented fallback records.autoskill/config/,autoskill/inputs/,autoskill/runs/,autoskill/outputs/: redacted AutoSkill artifacts.learning/: task learning triage records.learning/rule_candidates/: candidate reusable rules only.skills/candidates/,skills/promoted/,skills/rejected/,skills/merged/: separated skill registry states.agmsg/: exported or summarized agmsg history when needed for review.
Orchestrator Playbook
- Join or confirm the agmsg team and identities with the
agmsgscripts. - Create the
.orchestrationdirectories before assigning work. - Write a task file that includes objective, scope, allowed files, forbidden actions, expected artifacts, validation commands, and max turns.
- Start worker panes if needed. With herdr, send the worker prompt text into the pane and submit it with a carriage return; sending text alone may leave it unsubmitted.
- Configure delivery deliberately.
delivery.sh set turnis useful for turn-end inbox checks; changing delivery mode can kill project watcher processes, so do it before starting long-running project watchers. - Send
AGMSG-TASK v1with the exact artifact paths anddone_signal=AGMSG-RESULT. - Track
max_turns. UseAGMSG-PINGfor liveness if a worker stalls. - On
AGMSG-RESULT, read the task file and every referenced artifact before deciding. - Send
AGMSG-ACCEPTANCE v1 status=acceptedwhen done, orstatus=revisewith a narrowreasonandnext_actionwhen more work is required.
Worker Playbook
- Read the full
AGMSG-TASK v1message. - Switch to the
repoand readtask_filebefore editing or running validations. - Treat
allowed_filesas the edit boundary. If it says to see the task file, read that section and follow it exactly. - Do not perform any
forbidden_actions. - Write artifacts to the exact expected paths. Do not invent alternate paths.
- Put command outputs and validation evidence in
expected_validation_file. - Put sandbox/OpenSandbox status or fallback rationale in
expected_sandbox_file. - Put reusable learning triage in
expected_learning_file; do not promote rules directly unless the task explicitly allows it. - Put AutoSkill run status or a not-used record in
expected_autoskill_file. - If blocked, still write the report and evidence paths that explain the blocker.
- Reply with the requested
done_signal, normallyAGMSG-RESULT v1, and include all artifact paths.
Pitfalls
- Do not start work from the agmsg message alone; read
task_filefirst. - Do not edit outside
allowed_files, even for convenient cleanup. - Do not perform forbidden actions such as dependency changes, gate changes, product changes, promotion decisions, image builds, or LLM calls when listed.
- Do not collapse candidate, promoted, rejected, and merged skill registry states into one directory.
- Do not put secrets, raw logs with credentials, or unredacted AutoSkill inputs in artifacts.
- Do not install Hermes Agents runtime for this protocol.
- Do not assume
herdrtext injection submits automatically; send Enter/CR. - Do not treat
AGMSG-ACCEPTANCE status=reviseas a new task unless it changes the task file or explicitly provides a next action.
04 同仓库更多 Skills
shdoc-shell-docs
Write and review shellscript documentation with shdoc annotations. Use when Codex creates, edits, or reviews `.sh` files or shell executables and should add, repair, or normalize `@file`, `@brief`, `@description`, `@arg`, `@option`, and `@example` comments to match shdoc conventions.
python-uv-workflow
Apply Python development policy using uv-first execution, test-first behavior validation, and pre-commit quality gates. Use when implementing or refactoring Python code.
humanizer-ja
AIくさい日本語を、人が書いたように自然でこなれた日本語へ書き換えるスキル。ブログ記事、メモ、メール、文書、SNS投稿、チャット返信などの日本語を書いたり推敲したりするときに使う。AIっぽい言い回しを消したいとき、日本語を自然にしたいとき、言い換えたいとき、硬さを抜きたいとき、トーンを整えたいとき、人間らしい声や温度を足したいときに使う。
gh-first-workflow
Enforce gh-first GitHub investigation, pull request maintenance, and Conventional Commit output rules. Use when investigating GitHub issues or pull requests, creating or updating pull requests, summarizing investigation results, or preparing commit messages.
gh-comment-attach-files
Attach local files to a GitHub issue or pull request comment via Playwright CLI and return the hosted attachment URLs without submitting the comment. Use when you need GitHub-hosted image or document URLs on github.com or GitHub Enterprise Server.
convert-to-transformers
Use this skill when converting custom PyTorch models to Hugging Face Transformers format. Helps with: (1) Creating PretrainedConfig and PreTrainedModel classes, (2) Writing ImageProcessor/Tokenizer, (3) Compatibility testing, (4) Hub upload preparation. Use when the user wants to make their model compatible with transformers library.