Decisions codex worker

From tensology/decisionsai · View interactive version

Decisions codex worker is an AI agent skill from the GitHub repository tensology/decisionsai. Use when Codex is running work that originated from DecisionsAI tickets, projects, workflows, or Initiative proposals.

How to use this skill

Skill file

DecisionsAI Codex Worker

Treat the supplied Decisions project, ticket, workflow, callback, and prior-step packet as authoritative. Work in the named project and do not create another ticket, plan, workflow, or branch unless explicitly requested. Prefer the Codex IDE/chat surface as the primary execution context. The CLI is fallback transport for automation or setup checks.

This chat is the Codex IDE thread for the open project. It is independent of the Decisions Development section and whichever harness that section is using. A follow-up from the user stays in this chat. The reporter prints thread_id= and locks that Codex thread for the project. Pass --thread-id with that value on later reports in this chat. Pass --new-thread only when the user asked to start a new Codex thread.

Lean execution

Decisions reporting

For any normal Codex IDE/chat prompt inside a DecisionsAI project folder, report the turn through the quiet project IDE session reporter. At the start:

python3 ~/plugins/decisions-codex/scripts/report_decisions_event.py --event-type codex_prompt_submitted --status observed --input "<user prompt>" --thread-id "<thread id when known>"

Before the final response:

python3 ~/plugins/decisions-codex/scripts/report_decisions_event.py --event-type codex_completed --status completed --output "<short result summary>" --thread-id "<thread id when known>"

If both sides are only available at the end, use --turn-input and --turn-output. The reporter exits quietly when DecisionsAI is unavailable.

When a [DECISIONS CODEX CALLBACK] block is present, report meaningful lifecycle events: codex_started, codex_prompt_submitted, user_steer, codex_progress, codex_waiting, codex_needs_input, codex_interrupted, codex_completed, and codex_failed. Report human steering instead of keeping it only in Codex. Do not emit routine tool chatter as progress.

Return contract

Return concise, checkpoint-friendly results:

Status: completed | failed | needs_input
Summary: ...
Files changed: ...
Tests: ...
Evidence: ...
Blockers: ...
Next step: ...

Include artifact paths needed by the next step. If a real user decision is missing, return needs_input with that exact decision. If work is broad, complete the safest useful slice and name the exact continuation. Keep enough evidence for DecisionsAI to checkpoint, retry, escalate, continue, or close the step.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.