pipeline
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePipeline Skill
Pipeline Skill
$pipelinePipelineStage$pipelinePipelineStageDefault Autopilot Pipeline
默认Autopilot流水线
The canonical OMX pipeline sequences:
RALPLAN (consensus planning) -> team-exec (Codex CLI workers) -> ralph-verify (architect verification)标准OMX流水线的执行顺序为:
RALPLAN (consensus planning) -> team-exec (Codex CLI workers) -> ralph-verify (architect verification)Configuration
配置
Pipeline parameters are configurable per run:
| Parameter | Default | Description |
|---|---|---|
| 10 | Ralph verification iteration ceiling |
| 2 | Number of Codex CLI team workers |
| | Agent type for team workers |
流水线参数支持每次运行单独配置:
| 参数 | 默认值 | 描述 |
|---|---|---|
| 10 | Ralph校验迭代次数上限 |
| 2 | Codex CLI团队执行器的数量 |
| | 团队执行器的Agent类型 |
Stage Interface
阶段接口
Every stage implements the interface:
PipelineStagetypescript
interface PipelineStage {
readonly name: string;
run(ctx: StageContext): Promise<StageResult>;
canSkip?(ctx: StageContext): boolean;
}Stages receive a with accumulated artifacts from prior stages and
return a with status, artifacts, and duration.
StageContextStageResult每个阶段都实现了 接口:
PipelineStagetypescript
interface PipelineStage {
readonly name: string;
run(ctx: StageContext): Promise<StageResult>;
canSkip?(ctx: StageContext): boolean;
}各阶段会接收包含之前阶段所有产出物的 对象,返回包含执行状态、产出物和运行时长的 对象。
StageContextStageResultBuilt-in Stages
内置阶段
- ralplan: Consensus planning (planner + architect + critic). Skips only when both and
prd-*.mdplanning artifacts already exist, and carries anytest-spec-*.mdspec paths forward for traceability.deep-interview-*.md - team-exec: Team execution via Codex CLI workers. Always the OMX execution backend.
- ralph-verify: Ralph verification loop with configurable iteration count.
- ralplan:共识规划(规划器 + 架构师 + 评审器)。仅当 和
prd-*.md规划产出物都已存在时才会跳过,同时会携带所有test-spec-*.md需求文档路径用于后续溯源。deep-interview-*.md - team-exec:通过Codex CLI执行器实现团队协作执行,是固定的OMX执行后端。
- ralph-verify:Ralph校验循环,支持配置迭代次数。
State Management
状态管理
Pipeline state persists via the ModeState system at .
The HUD renders pipeline phase automatically. Resume is supported from the last incomplete stage.
.omx/state/pipeline-state.json- On start:
state_write({mode: "pipeline", active: true, current_phase: "stage:ralplan"}) - On stage transitions:
state_write({mode: "pipeline", current_phase: "stage:<name>"}) - On completion:
state_write({mode: "pipeline", active: false, current_phase: "complete"})
流水线状态通过ModeState系统持久化存储在 路径下。HUD会自动渲染流水线当前执行阶段,支持从最后一个未完成的阶段断点续跑。
.omx/state/pipeline-state.json- 启动时:
state_write({mode: "pipeline", active: true, current_phase: "stage:ralplan"}) - 阶段切换时:
state_write({mode: "pipeline", current_phase: "stage:<name>"}) - 执行完成时:
state_write({mode: "pipeline", active: false, current_phase: "complete"})
API
API
typescript
import {
runPipeline,
createAutopilotPipelineConfig,
createRalplanStage,
createTeamExecStage,
createRalphVerifyStage,
} from './pipeline/index.js';
const config = createAutopilotPipelineConfig('build feature X', {
stages: [
createRalplanStage(),
createTeamExecStage({ workerCount: 3, agentType: 'executor' }),
createRalphVerifyStage({ maxIterations: 15 }),
],
});
const result = await runPipeline(config);typescript
import {
runPipeline,
createAutopilotPipelineConfig,
createRalplanStage,
createTeamExecStage,
createRalphVerifyStage,
} from './pipeline/index.js';
const config = createAutopilotPipelineConfig('build feature X', {
stages: [
createRalplanStage(),
createTeamExecStage({ workerCount: 3, agentType: 'executor' }),
createRalphVerifyStage({ maxIterations: 15 }),
],
});
const result = await runPipeline(config);Relationship to Other Modes
与其他模式的关联
- autopilot: Autopilot can use pipeline as its execution engine (v0.8+)
- team: Pipeline delegates execution to team mode (Codex CLI workers)
- ralph: Pipeline delegates verification to ralph (configurable iterations)
- ralplan: Pipeline's first stage runs RALPLAN consensus planning
- autopilot:Autopilot模式可将pipeline作为其执行引擎(v0.8及以上版本)
- team:流水线将执行任务委托给team模式(Codex CLI执行器)
- ralph:流水线将校验任务委托给ralph(支持配置迭代次数)
- ralplan:流水线的第一个阶段会运行RALPLAN共识规划