worker
Original:🇺🇸 English
Translated
Team worker protocol (ACK, mailbox, task lifecycle) for tmux-based OMX teams
4installs
Sourceyeachan-heo/oh-my-codex
Added on
NPX Install
npx skill4agent add yeachan-heo/oh-my-codex workerTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Worker Skill
This skill is for a Codex session that was started as an OMX Team worker (a tmux pane spawned by ).
$teamIdentity
You MUST be running with set. It looks like:
OMX_TEAM_WORKER<team-name>/worker-<n>Example:
alpha/worker-2Load Worker Skill Path (Claude/Codex)
When a worker inbox tells you to load this skill, resolve the first existing path:
${CODEX_HOME:-~/.codex}/skills/worker/SKILL.md~/.codex/skills/worker/SKILL.md<leader_cwd>/.codex/skills/worker/SKILL.md- (repo fallback)
<leader_cwd>/skills/worker/SKILL.md
Startup Protocol (ACK)
- Parse into:
OMX_TEAM_WORKER- (before the
teamName)/ - (after the
workerName, usually/)worker-<n>
- Send a startup ACK to the lead mailbox before task work:
- Recipient worker id:
leader-fixed - Body: one short deterministic line (recommended: ).
ACK: <workerName> initialized
- Recipient worker id:
- After ACK, proceed to your inbox instructions.
The lead will see your message in:
<team_state_root>/team/<teamName>/mailbox/leader-fixed.jsonUse CLI interop:
- with
omx team api send-message --input <json> --json{team_name, from_worker, to_worker:"leader-fixed", body}
Copy/paste template:
bash
omx team api send-message --input "{\"team_name\":\"<teamName>\",\"from_worker\":\"<workerName>\",\"to_worker\":\"leader-fixed\",\"body\":\"ACK: <workerName> initialized\"}" --jsonInbox + Tasks
- Resolve canonical team state root in this order:
- env
OMX_TEAM_STATE_ROOT - worker identity
team_state_root - team config/manifest
team_state_root - local cwd fallback ()
.omx/state
- Read your inbox:
<team_state_root>/team/<teamName>/workers/<workerName>/inbox.md - Pick the first unblocked task assigned to you.
- Read the task file:
(example:
<team_state_root>/team/<teamName>/tasks/task-<id>.json)task-1.json - Task id format:
- The MCP/state API uses the numeric id (), not
"1"."task-1" - Never use legacy wording.
tasks/{id}.json
- The MCP/state API uses the numeric id (
- Claim the task (do NOT start work without a claim) using claim-safe lifecycle CLI interop ().
omx team api claim-task --json - Do the work.
- Complete/fail the task via lifecycle transition CLI interop () from
omx team api transition-task-status --jsontoin_progressorcompleted.failed- Do NOT directly write lifecycle fields (,
status,owner,result) in task files.error
- Do NOT directly write lifecycle fields (
- Use only for rollback/requeue to
omx team api release-task-claim --json(not for completion).pending - Update your worker status:
with
<team_state_root>/team/<teamName>/workers/<workerName>/status.json{"state":"idle", ...}
Mailbox
Check your mailbox for messages:
<team_state_root>/team/<teamName>/mailbox/<workerName>.jsonWhen notified, read messages and follow any instructions. Use short ACK replies when appropriate.
Note: leader dispatch is state-first. The durable queue lives at:
Hooks/watchers may nudge you after mailbox/inbox state is already written.
<team_state_root>/team/<teamName>/dispatch/requests.jsonUse CLI interop:
- to read
omx team api mailbox-list --json - to acknowledge delivery
omx team api mailbox-mark-delivered --json
Copy/paste templates:
bash
omx team api mailbox-list --input "{\"team_name\":\"<teamName>\",\"worker\":\"<workerName>\"}" --json
omx team api mailbox-mark-delivered --input "{\"team_name\":\"<teamName>\",\"worker\":\"<workerName>\",\"message_id\":\"<MESSAGE_ID>\"}" --jsonDispatch Discipline (state-first)
Worker sessions should treat team state + CLI interop as the source of truth.
- Prefer inbox/mailbox/task state and operations.
omx team api ... --json - Do not rely on ad-hoc tmux keystrokes as a primary delivery channel.
- If a manual trigger arrives (for example nudge), treat it only as a prompt to re-check state and continue through the normal claim-safe lifecycle.
tmux send-keys
Shutdown
If the lead sends a shutdown request, follow the shutdown inbox instructions exactly, write your shutdown ack file, then exit the Codex session.