Ported from oh-my-codex
autoresearch. OMX runtime conventions ($macroinvocation,omxCLI,.omx/state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list,.workbuddy/memory).
Autoresearch
Autoresearch is a skill-first, stateful research loop. It keeps the useful measured-research loop, but runs as a native WorkBuddy workflow (task list + .omw/ artifacts) instead of a direct CLI or tmux launch surface.
Boundary with planning research
Use autoresearch when the research output itself is a bounded deliverable that must pass an explicit validator. Do not recommend it for ordinary pre-planning docs lookup or general best-practice checks; use the research skill for that. If autoresearch is intentionally run before architecture planning, its approved artifact should feed evidence into ralplan; it should not become a final architecture/component unless the user explicitly asks for ongoing research automation.
Use when
- You want a persistent research loop.
- The task should keep nudging until explicit validation evidence exists.
- You want init-time choice between script validation and prompt+architect validation.
Do not use when
- You want a generic research/docs lookup (use
research). - You have not decided the validation regime yet.
Core contract
- Init chooses validation mode. Pick exactly one:
mission-validator-scriptprompt-architect-artifact
- Persist mode state in
.omw/autoresearch/<slug>/autoresearch-state.jsonincluding:validation_modecompletion_artifact_pathmission_validator_commandorvalidator_prompt- optional
output_artifact_path
- Completion is artifact-gated. The loop does not stop because the model says "done", because a hook fired once, or because several turns were no-ops.
- Intake + execution use skills: invoke the
deep-interviewskill (skill: deep-interview) with an autoresearch intake to clarify the mission + evaluator, then run the loop.
Completion artifact contract
mission-validator-script
The completion artifact must exist and record a passing validator result, for example:
{
"status": "passed",
"passed": true,
"summary": "metric improved beyond baseline"
}
prompt-architect-artifact
The completion artifact must include both an architect approval verdict and an output artifact path, for example:
{
"validator_prompt": "Review the research output against the mission.",
"architect_review": { "verdict": "approved" },
"output_artifact_path": ".omw/autoresearch/<slug>/report.md"
}
Recommended flow
- Invoke the
deep-interviewskill (skill: deep-interview) with the--autoresearchintake to clarify mission + evaluator. - Materialize
.omw/autoresearch/<slug>/mission.md,sandbox.md, andresult.json. - Start
autoresearchwith the chosen validation mode stored in mode state (.omw/autoresearch/<slug>/autoresearch-state.json). - Use the task list to keep nudging the loop, re-running validation, until the completion artifact satisfies the chosen validation mode.
- Finish only after the validator artifact is complete.
Migration note
- There is no direct
omx autoresearchCLI in WorkBuddy. - No detached tmux or split-pane launch.
- No noop-count completion gate — completion is strictly artifact/validator-gated.