๐ญ Pipeline config¶
The full engine graph โ phases, loop agents, and insertable slots โ is data-driven. Studio, the progress header, and the orchestrator all read the same file:
.slmcode/pipeline.yaml
Quick start¶
slmcode init # writes default pipeline.yaml
slmcode studio # Pipeline tab โ edit โ Save
curl -s localhost:7420/api/pipeline | jq .
Reset to built-ins:
Document shape¶
version: 1
order: [init, skills, context, explore, docs, architect, clarify, plan, split, coord, execute, learn, polish, test, memory, done]
groups:
- id: prepare
label: Prepare
steps: [init, skills, context, explore, docs]
# โฆ
phases:
context:
agent: context
when: always # always | auto | never
label: Context
tip: Refresh CONTEXT
group: prepare
explore:
agent: explorer
when: auto
plan:
agent: planner
when: always
test:
agent: tester
when: always
execute:
default_role: worker
reviewer: reviewer # any registered agent id (custom OK)
corrector: corrector
max_waves: 2
slots:
- id: pre-plan-audit
agent: night-auditor # custom or builtin
after: explore # or before: plan or replace: plan
when: always # or never | query_matches:langgraph
input: |
Audit exploration before planning.
Query:
{{query}}
Exploration:
{{exploration}}
persist_to: scratch # scratch | context | memory | none
fail_mode: continue # continue | abort
multipass: false
Phase when¶
| Value | Behavior |
|---|---|
always | Run every time |
auto | Built-in heuristics (explore/architect/docs) |
never | Skip (or use a replace slot instead) |
Slot placement¶
Exactly one of:
after: <phase>โ run after the phase finishesbefore: <phase>โ run before the phasereplace: <phase>โ run instead of the built-in phase agent
Prompt placeholders¶
{{query}} ยท {{exploration}} ยท {{plan}} ยท {{phase}}
API¶
| Method | Path | Purpose |
|---|---|---|
GET | /api/pipeline | Resolved config + anchors + defaults |
PUT | /api/pipeline | Body { "config": { โฆ } } |
POST | /api/pipeline/reset | Restore defaults |
Agents themselves stay under /api/agents (prompt, model, tools, โฆ). The pipeline only references agent IDs and placement.
Studio¶
Pipeline tab:
- Execute loop โ pick reviewer / corrector / default worker
- Phase agents โ bind any registered agent per stage + when
- Slots โ insert agents around phases with a prompt template
The top progress header is driven by the same order / groups / slots โ no hard-coded stage list in the UI.
Board task role dropdowns also list all agents from /api/agents (customs included).
Custom agents + pipeline¶
- Create
@night-auditorin Agents (or.slmcode/agents/night-auditor.yaml) - Open Pipeline โ add slot
after: exploreโ agentnight-auditor - Save โ next full run executes the slot and streams it live
Specialist mode also accepts custom agent IDs.
Related¶
- Agents โ roster + custom YAML
- Config โ provider / quality knobs
- Studio โ cockpit layout
- Architecture โ engine flow
โ๏ธ Made with โฅ by UnicoLab