[OMX] Run an anti-slop cleanup/refactor/deslop workflow
中文简介正在准备中。当前显示原文说明。
[OMX] 系统梳理目标、范围、取舍与验收条件的需求访谈;单个缺失信息使用普通澄清。
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
<Use_When>
<Do_Not_Use_When>
plan instead)<Why_This_Exists> Execution quality is usually bottlenecked by intent clarity, not just missing implementation detail. A single expansion pass often misses why the user wants a change, where the scope should stop, which tradeoffs are unacceptable, and which decisions still require user approval. This workflow applies Socratic pressure + quantitative ambiguity scoring so orchestration modes begin with an explicit, testable, intent-aligned spec. </Why_This_Exists>
<Depth_Profiles>
--quick): fast pre-PRD pass; target threshold <= 0.30; max rounds 5--standard, default): full requirement interview; target threshold <= 0.20; max rounds 12--deep): high-rigor exploration; target threshold <= 0.15; max rounds 20--autoresearch): same interview rigor as Standard, but specialized for $autoresearch mission readiness and .omx/specs/ artifact handoffProfile max rounds is a hard cap, not a target. Do not continue only to reach a numbered round count. Extra Socratic rigor does not override the active threshold unless the profile/config changes.
If no flag is provided, use Standard.
<Mode_Flags>
--autoresearch: switch the interview into autoresearch-intake mode for $autoresearch handoff. In this mode, the interview should converge on a validator-ready research mission, write canonical artifacts under .omx/specs/, and preserve the explicit refine further vs launch boundary for downstream skill intake.
</Mode_Flags>
</Depth_Profiles><Execution_Policy>
questions[] form)explore before asking user about internalsomx explore is deprecated. Use normal repository inspection tools/subagents for simple read-only brownfield fact gathering; use omx sparkshell only for explicit shell-native read-only evidence, and keep ambiguous or non-shell-only investigation on the richer normal path.AGENTS.md 与目标附近的代码或契约;仅在存在相关缺口时查阅 README、ADR、术语表或历史快照,可复用未变化的已读材料。$best-practice-research as the bounded evidence wrapper before crystallizing requirements or handing off to planning/execution.omx question source values, and never replace the runtime source: "deep-interview" contract for user-facing deep-interview questions:
[from-code][auto-confirmed] — exact, high-confidence codebase facts from manifests/configs or direct source evidence, with no prescription attached.[from-code] — 仓库推断或模式证据,注明置信度;优先补充可查证据,只将影响结果且无法自行确定的决策交给用户。[from-research] — externally sourced facts such as API limits, compatibility, or public documentation; facts only, not decisions.[from-user] — goals, preferences, business logic, scope, non-goals, acceptance criteria, tradeoffs, and any decision-bearing interpretation.[from-code][auto-confirmed] and other non-user fact discoveries as context/transcript updates, not interview rounds: do not call omx question, do not create a pending deep-interview question obligation, and do not increment the user-facing round number for facts the agent can safely establish.omx question as the required OMX-owned structured questioning path for every interview roundomx question through attached-tmux Bash/tool paths, preserve the leader-pane return target by prefixing the command with OMX_QUESTION_RETURN_PANE=$TMUX_PANE (or a concrete %pane value)omx question in a background terminal, immediately wait for that background terminal to finish and read its JSON answer before scoring ambiguity, asking another round, or handing offanswers[] as the primary omx question success contract. For a single interview round, read answers[0].answer; use legacy top-level answer only as a compatibility fallback when needed.omx question, use the native structured question tool when available; otherwise ask exactly one concise plain-text question and wait for the answernot scored until the summary exists. If the cap is reached without it, report the incomplete intake and do not crystallize an execution-ready spec.max_rounds as a stop cap, not evidence that more rounds are needed.Non-goals or Decision Boundaries remain unresolved, even if the weighted ambiguity threshold is metomx state write/read --input '<json>' --json, backed by src/state/operations.ts). The MCP state server is a read-only projection and must never become a second writer.
</Execution_Policy>{{ARGUMENTS}} and derive a short task slug..omx/context/{slug}-*.md.not_needed, needed, or recorded).omx/context/{slug}-{timestamp}.md (UTC YYYYMMDDTHHMMSSZ) and reference it in mode state.{{ARGUMENTS}} and depth profile (--quick|--standard|--deep).explore to classify brownfield (existing codebase target) vs greenfield.omx state write --input '{"mode":"deep-interview","active":true}' --json:{
"active": true,
"current_phase": "deep-interview",
"state": {
"interview_id": "<uuid>",
"profile": "quick|standard|deep",
"type": "greenfield|brownfield",
"initial_idea": "<user input>",
"rounds": [],
"current_ambiguity": 1.0,
"threshold": 0.3,
"max_rounds": 5,
"challenge_modes_used": [],
"codebase_context": null,
"current_stage": "intent-first",
"current_focus": "intent",
"context_snapshot_path": ".omx/context/<slug>-<timestamp>.md"
}
}
先依据当前需求和证据评分;达到阈值且 readiness gates 明确时即可收敛。只有 Deep 模式要求 pressure pass。否则围绕实质缺口提问,直到满足条件、用户退出或达到轮次上限;低于阈值后不再开启普通追问分支。
若已有规格覆盖目标、范围、Non-goals、Decision Boundaries、约束和验收条件,核对其与当前任务和代码的一致性。Quick / Standard 可在零新增问答下完成本阶段;Deep 仍须有有效的 pressure pass 证据。记录真实的来源、核对结果与完成理由,生成或更新规范的交接产物;rounds 如实为空,不编造用户回答或授权。存在未解决的实质缺口时继续访谈。
If oversized context lacks a faithful recorded summary, finish bounded source reading and summarization first. If essential source material is inaccessible, ask one focused question for it and wait. Score and hand off only after the summary is recorded.
Use:
Target the lowest-scoring dimension, but respect stage priority:
Deep 模式的追问工具;Quick / Standard 仅在存在具体决策缺口时选用:
仅当下一问仍会改变结果时继续当前话题。
在 Breadth Ledger 中记录范围、约束、输出、验证和集成的未解决项;只处理会改变执行结果的缺口,不轮流补问已明确的维度。
Maintain a Docs/Terminology Ledger for brownfield interviews:
Detailed dimensions:
Non-goals 和 Decision Boundaries 是必需 readiness gates;可以引用既有明确需求,仅在缺失或冲突时询问。
Use the surface-appropriate structured questioning path for every interview round. In attached-tmux sessions, use OMX-owned structured questioning via omx question (this is the required structured-question equivalent and required AskUserQuestion equivalent for deep-interview). Outside tmux, use native structured input when available; otherwise ask exactly one concise plain-text question and wait for the answer. Present:
Round {n} | Target: {weakest_dimension} | Ambiguity: {score}%
{question}
omx question payload guidance for interview rounds:
questions[] to combine multiple interview rounds, even though omx question supports batch forms for other workflows.type values instead of authoring raw multi_select flags by hand. type: "single-answerable" is the default for one-path decisions; type: "multi-answerable" is the canonical shape for bounded multi-select rounds. The runtime will keep multi_select aligned with type.single-answerable when exactly one answer should drive the next branch, the options are mutually exclusive, or selecting more than one answer would blur the decision boundary. Typical cases: handoff lane selection, choosing the primary failure mode, or confirming which of several competing interpretations is correct.multi-answerable when multiple options may all be true at once and you need to capture a bounded set of coexisting constraints, non-goals, risks, or acceptance checks in one round. Typical cases: selecting all out-of-scope items, all success metrics that must hold, or all deployment constraints that apply together.single-answerable round now and ask the follow-up next. Do not hide a branching interview tree inside one overloaded multi-select prompt.allow_other: false; only leave allow_other: true when the interview genuinely needs one user-supplied option that cannot be enumerated in advance.answers[] array. For a normal single-round interview response, use answers[0].answer as the source of truth; the top-level answer field is a legacy single-question projection/fallback only.single-answerable, expect one decisive selection in the value field of answers[0].answer plus its selected-values metadata. For multi-answerable, treat the selected-values field inside answers[0].answer as the source of truth for all chosen constraints/non-goals and preserve the full set in the transcript/spec. In legacy single-question projections, this is equivalent to: For multi-answerable, treat answer.selected_values as the source of truth.When using the attached-tmux question bridge, read question payloads for canonical payload and answer examples. Native question tools use their own schema.
Score each weighted dimension in [0.0, 1.0] with justification + gap.
Greenfield: ambiguity = 1 - (intent × 0.30 + outcome × 0.25 + scope × 0.20 + constraints × 0.15 + success × 0.10)
Brownfield: ambiguity = 1 - (intent × 0.25 + outcome × 0.20 + scope × 0.20 + constraints × 0.15 + success × 0.10 + context × 0.10)
Readiness gate:
Non-goals must be explicitDecision Boundaries must be explicit<= 0.10, another user-facing question is allowed only as that final closure question; otherwise crystallize immediately.Show weighted breakdown table, readiness-gate status (Non-goals, Decision Boundaries), and the next focus dimension.
Append round result and updated scores via omx state write --input '<json>' --json. Do not write {mode}-state.json directly and do not use the read-only MCP state projection as a writer.
max_rounds; never treat this cap as a desired interview length or quota按未解决的假设、术语或范围问题选择下列工具,不因达到某个轮次自动追加问题:
Track used modes in state to prevent repetition.
达到阈值并满足 readiness gates 时生成可执行规格;用户提前退出或达到上限时也可保存产物,但未解决的实质缺口必须标为待定,不得宣称已完成需求交接。
.omx/interviews/{slug}-{timestamp}.md
(kept for ralph PRD compatibility).omx/specs/deep-interview-{slug}.mdSpec should include:
For --autoresearch, read autoresearch intake before generating its launch bundle; preserve the explicit refine/launch boundary.
Present execution options after artifact generation using explicit handoff contracts. Treat the deep-interview spec as the current requirements source of truth and preserve intent, non-goals, decision boundaries, acceptance criteria, docs/terminology grounding, and any residual-risk warnings across the handoff.
When the selected Autopilot handoff requires a structured execution stride, read execution contract. Local artifacts never grant runtime authority.
Pass the spec, context reference, acceptance criteria, non-goals, decision boundaries, and residual risks to the selected consumer. Reuse resolved requirements instead of repeating the interview. Follow authorization already established for the active task; a standalone interview does not authorize implementation.
| Need | Handoff |
|---|---|
| Architecture/consensus still needed | $ralplan <spec-path> |
| Explicit supervised orchestration | $autopilot <spec-path>; retain its Ralplan stage |
| Durable execution tracking | $ultragoal create-goals --brief-file <spec-path>, then its documented execution gate |
| Approved parallel implementation with runtime support | $team using the spec as shared scope; Team remains separately authorized |
| Validator-gated research | $autoresearch using the intake bundle and confirmed launch decision |
| Measurable performance optimization | $performance-goal with metric/evaluator |
| Material uncertainty remains | Continue the focused interview |
Retired entrypoints are not execution alternatives. In App, check the selected skill's surface and authority requirements before handoff.
Residual-Risk Rule: If the interview ended via early exit, hard-cap completion, or above-threshold proceed-with-warning, explicitly preserve that residual-risk state in the handoff so the downstream skill knows it inherited a partially clarified brief.
IMPORTANT: Deep-interview is a requirements mode. On handoff, invoke the selected skill using the contract above. Do NOT implement directly inside deep-interview.
</Steps><Tool_Usage>
explore for codebase fact gatheringomx question as the OMX-native structured user-input tool for each interview round when an attached tmux renderer is availableOMX_QUESTION_RETURN_PANE=$TMUX_PANE omx question ... unless an explicit %pane return target is already knownomx question, use native structured input when available; otherwise ask exactly one concise plain-text question and wait for the answeromx question returns JSON, prefer answers[0].answer / answers[]; use legacy answer only as a fallback for older recordsomx state write/read --input '<json>' --json for resumable mode state through the sole-writer state operations path; the MCP state server is read-only and is not a fallback writeromx question round, persist the blocker as terminal state with active: false and current_phase: "blocked"; do not write a terminal blocked phase with active: true.omx/context/.omx/interviews/ and .omx/specs/
</Tool_Usage><Escalation_And_Stop_Conditions>
<Final_Checklist>
.omx/context/{slug}-{timestamp}.md.omx/interviews/{slug}-{timestamp}.md.omx/specs/deep-interview-{slug}.mdDeep-interview reads runtime defaults from the first existing config source in this order:
.omx/config.tomlomx.toml~/.omx/config.tomlThis section is currently a deep-interview-specific runtime override surface, not a general replacement for Codex config.toml or .omx-config.json model/env routing.
Malformed config files are ignored fail-soft so $deep-interview activation can continue with built-in defaults.
Explicit --quick, --standard, or --deep invocation flags override defaultProfile.
[omx.deepInterview]
defaultProfile = "standard"
quickThreshold = 0.30
standardThreshold = 0.20
deepThreshold = 0.15
quickMaxRounds = 5
standardMaxRounds = 12
deepMaxRounds = 20
enableChallengeModes = true
If interrupted, rerun $deep-interview. Resume from persisted mode state via omx state read --input '{"mode":"deep-interview"}' --json.
autopilot -> deep-interview -> ralplan -> ultragoal
$plan --interview.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
[OMX] Run an anti-slop cleanup/refactor/deslop workflow
中文简介正在准备中。当前显示原文说明。
[OMX] 只读调查跨文件的行为、原因或架构问题,提供源码证据与不确定性。单文件查找无需此流程。
中文简介正在准备中。当前显示原文说明。
[OMX] Ask a local external advisor CLI (Claude or Gemini) and capture a reusable artifact
中文简介正在准备中。当前显示原文说明。
[OMX] Supervise deep interview, consensus planning, and durable goal execution for explicit hands-off delivery.
中文简介正在准备中。当前显示原文说明。
[OMX] Stateful validator-gated research loop with native-hook persistence
中文简介正在准备中。当前显示原文说明。
[OMX] Bounded best-practice research wrapper using official/upstream evidence first
中文简介正在准备中。当前显示原文说明。