ouroboros-run
Skill6.2k starsChanged 4 months agoMITView on GitHub
Execute a Seed specification through the workflow engine
Trending
Less talk lately.about the whole repository
Who's talking about Q00/ouroboros
- A Hacker News story“Ouroboros – AI agent framework that asks "why?" before writing code”Hacker News · Jan 28, 2026 · 5 points
- @pythonhub.dev“ouroboros Ouroboros is an open-source AI coding framework that turns vague ideas into verified code through …”Bluesky · Oct 2, 2026 · 1 likes
- @agentwire.thecompound.tech“https://github.com/Q00/ouroboros more like this: https://agentwire.thecompound.tech/aw/1c5qt1”Bluesky · Sep 21, 2026 · 1 likes
- A Hacker News story“Show HN: I built a harness that blocks AI from building until ambiguity < 0.2”Hacker News · Mar 9, 2026 · 1 points
- A Hacker News story“Show HN: Preventing infinite agent loops with mathematical convergence gates”Hacker News · Mar 3, 2026 · 1 points
The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 40
Talked about on GitHub, Hacker News and Bluesky (40 times).
On GitHub · 35
- Oct 4, 2026codex-marketplaces.github.q00.ouroboros: init at 0.55.4 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.q00.ouroboros: 0.54.5 → 0.55.4 — sudosubin/agents.nix0 reactions
- Oct 1, 2026agent-skills.github.q00.ouroboros: init at 0.54.5 — sudosubin/agents.nix0 reactions
- Sep 29, 2026backlog: 2026-09-29分の候補4件を追記 — Matsushima-A-830/ai-100days0 reactions
- Sep 7, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 1 comment
30 more on GitHub
- Aug 31, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 2 comments
- Aug 29, 2026catalog: add q00-dsh-ouroboros (community curation, created by @Q00) — diegosouzapw/awesome-omni-dsh-plugins0 reactions
- Aug 24, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 1 comment
- Aug 23, 2026fix(runtime): preserve external skill and MCP routing — Yeachan-Heo/gajae-code0 reactions · 2 comments
- Aug 20, 2026Represent verified non-npm sources without an unsafe Install button — sandbaseai/dsh-plugin-store0 reactions · 1 comment
- Aug 17, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 1 comment
- Aug 10, 2026ouroboros-ai 0.51.1 (new formula) — Homebrew/homebrew-core0 reactions · 2 comments
- Aug 10, 2026Add project: Ouroboros — RyanAlberts/best-of-Agent-Harnesses0 reactions · 1 comment
- Aug 10, 2026Add project: Ouroboros — RyanAlberts/best-of-Agent-Harnesses0 reactions · 2 comments
- Aug 10, 2026ouroboros-ai: init at 0.51.1 — NixOS/nixpkgs0 reactions · 8 comments
- Aug 10, 2026Add Ouroboros to Coding Agents — ARUNAGIRINATHAN-K/awesome-ai-agents-20260 reactions · 5 comments
- Aug 9, 2026Add Ouroboros to AI Coding (both EN/CN) — ikaijua/Awesome-AITools0 reactions · 5 comments
- Aug 9, 2026【开源自荐】Ouroboros,一个让 AI 先把需求问清楚再写代码、并且防止它「刷分」的 Agent OS — GitHubDaily/GitHubDaily0 reactions · 1 comment
- Aug 9, 2026【开源自荐】Ouroboros,一个让 AI 先把需求问清楚再写代码、并且防止它「刷分」的 Agent OS — GitHubDaily/GitHubDaily0 reactions · 4 comments
- Aug 9, 2026【开源自荐】Ouroboros:先把需求问清楚再让 AI 写代码的 Agent OS,顺便不让它「刷分」 — ruanyf/weekly0 reactions · 4 comments
- Aug 9, 2026[开源推荐] Ouroboros:一个不让 AI 看着答案写代码的 Agent OS — 521xueweihan/HelloGitHub0 reactions · 8 comments
- Aug 8, 2026Add Ouroboros (Agent OS) to Software Development — kyrolabs/awesome-agents0 reactions
- Aug 8, 2026Add Q00/ouroboros to Coding Agents 🤖🤖🤖 — punkpeye/awesome-mcp-servers0 reactions · 5 comments
- Aug 8, 2026[Resource]: Ouroboros — hesreallyhim/awesome-claude-code0 reactions · 3 comments
- Jul 11, 2026Ouroboros P3: Active Conductor attention events (upstream RFC) — danielsmithdevelopment/ClawQL0 reactions
- Jul 11, 2026Ouroboros P0-A: 3-component drift measurement + ouroboros_measure_drift MCP tool — danielsmithdevelopment/ClawQL0 reactions
- Jun 17, 2026📝 https://github.com/Q00/ouroboros 이거 hermes 랑 비슷한 급의 도구라고 하던데, 이런 도구들에 대해 research하고 내가 학습할 수 있는 자료 만들어줘 tool-study — adszzz11/study0 reactions
- Jun 8, 2026feat(ff-loop): add Ouroboros-inspired failure taxonomy, stagnation detection, convergence tracking — gimso2x/forgeflow0 reactions
- May 8, 2026Audit candidate: Q00/ouroboros — xiaolai/nlpm0 reactions · 3 comments
- May 7, 2026📱 SNS 콘텐츠 - 2026-05-07 11:55 KST — leaf468/autothreads0 reactions
- May 7, 2026🤖 AI 트렌드 리포트 - 2026-05-07 11:55 KST — leaf468/autothreads0 reactions
- May 4, 2026📱 SNS 콘텐츠 - 2026-05-04 11:56 KST — leaf468/autothreads0 reactions
- May 4, 2026🤖 AI 트렌드 리포트 - 2026-05-04 11:56 KST — leaf468/autothreads0 reactions
- May 1, 2026Test issue to check pipeline — Deep070203/autoharness0 reactions
- Apr 18, 2026Audit candidate: Q00/ouroboros — xiaolai/nlpm0 reactions · 2 comments
On Hacker News · 3
- Jan 28, 2026Ouroboros – AI agent framework that asks "why?" before writing code5 points · 1 comment
- Mar 9, 2026Show HN: I built a harness that blocks AI from building until ambiguity < 0.21 point
- Mar 3, 2026Show HN: Preventing infinite agent loops with mathematical convergence gates1 point · 1 comment
On Bluesky · 2
- Oct 2, 2026ouroboros Ouroboros is an open-source AI coding framework that turns vague ideas into verified code through structured interviews,… — @pythonhub.dev1 likes and repost
- Sep 21, 2026https://github.com/Q00/ouroboros more like this: https://agentwire.thecompound.tech/aw/1c5qt1 — @agentwire.thecompound.tech1 likes and repost
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- autoSkill
- brownfieldSkill
- cancelSkill
- ouroboros-configSkill
- evaluateSkill
- evolveSkill
- ouroboros-helpSkill
- interviewSkill
- maintainSkill
- oooSkill
- pmSkill
- publishSkill
- qaSkill
- ralphSkill
- resume-sessionSkill
- seedSkill
- setupSkill
- ouroboros-statusSkill
- tutorialSkill
- unstuckSkill
- updateSkill
- welcomeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
54 rules. About 0 are common, 25 are distinctive, and 29 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈25
Distinctive · estimate
This author's own choices. Worth a look.
29
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
When the user invokes this skill:
- Distinctive: line 42
Use the active runtime's tool-discovery capability to find and load the execution MCP tools:
- Distinctive: line 47
If the tools are callable — already exposed, or loaded by discovery — proceed with the steps below.
- Distinctive: line 49
IMPORTANT: Do NOT skip this step. Do NOT assume MCP tools are unavailable just because they don't appear in your immediate tool list.
- Distinctive: line 67
Read the project's CLAUDE.md for git workflow preferences
- Distinctive: line 68
If PR-based workflow detected and currently on main/master:
- Very specific: line 69
Create a feature branch: ooo/run/<session_id>
- Distinctive: line 70
All code changes go to this branch
- Distinctive: line 71
If no preference: use current branch (backward compatible)
- Distinctive: line 73
Check if the user provided seed content or a file path:
- Distinctive: line 74
If a file path: Read the file with the Read tool
- Distinctive: line 75
If inline YAML: Use directly
- Distinctive: line 76
If neither: Check conversation history for a recently generated seed
- Very specific: line 78
Before a fresh start, when the user has not already chosen an efficiency policy, first check the persistent default: when …
- Very specific: line 109
If resuming an existing session, include session_id:
- Very specific: line 121
After job_id, session_id, and execution_id are returned, surface a live view once without delaying execution or observer delegation:
- Very specific: line 124
If response.meta.dashboard_url exists, show it as the primary live view.
- Very specific: line 126
If execution.tui_autolaunch: true (or legacy top-level tui_autolaunch: true) is present in the loaded Ouroboros config, run ouroboros tui …
- Very specific: line 133
If the user accepts, run ouroboros tui open.
- Very specific: line 134
If ouroboros tui open reports a manual command because the environment is headless, SSH, or unsupported, relay that command once and …
- Distinctive: line 139
After IDs are returned, print only this short handoff:
- Very specific: line 165
If response.meta.job_observer is unavailable, inspect the response content for the final sentinel block:
- Very specific: line 183
When a structured or recovered job_observer is present and the host has an independent child/subagent session primitive, spawn exactly one …
- Very specific: line 201
call the declared wait.tool with the declared arguments, update its local cursor from response meta, and repeat until terminal.
- Very specific: line 203
call the declared result.tool after terminal status.
- Very specific: line 204
follow any job IDs named by follow_result_job_keys, including chained formal evaluation, before returning one compact final summary.
- Distinctive: line 268
If child creation is unavailable, fails, or returns no live child, do not claim that an observer exists or promise live proactive messages.
- Very specific: line 277
Use this only when response.meta.job_observer is absent, the host has no independent child session primitive, and the user explicitly asked …
- Very specific: line 283
Use ouroboros_job_wait, not repeated ouroboros_ac_tree_hud, for routine monitoring.
- Very specific: line 288
Treat response.meta as the source of truth.
- Very specific: line 289
Do not parse response.text for counts, status, or cursor.
- Very specific: line 290
Use response.text only as a human-readable current-message hint.
- Distinctive: line 291
Keep all local monitor state in simple scalar variables.
- Very specific: line 293
Always continue to final ouroboros_job_result after a terminal status.
- Very specific: line 353
Use view: "compact" for very long jobs or when the user only wants a heartbeat.
- Very specific: line 356
Use view: "summary" for normal monitoring.
- Very specific: line 359
Use view: "full" only when the user asks for detailed job status.
- Distinctive: line 370
Never include the full task tree in routine relay output.
- Distinctive: line 371
Never include raw JSON, raw meta dumps, or repeated unchanged cursor lines.
- Distinctive: line 374
Do not paste the full raw tool output unless the user asks for raw status.
- Distinctive: line 375
Do not add speculative ETA unless the tool provides one.
- Distinctive: line 377
Synapse intent refinement: When the user gives additive implementation intent during an active run, the main session owns target selection.
- Very specific: line 397
When the user asks the AC a read-only question or requests assurance rather than an implementation change, use mode="inform" and …
- Very specific: line 403
Wait for observer .applied or .completed before saying it was reflected.
- Distinctive: line 405
Never use Synapse to change approved goals, ACs, constraints, or non-goals.
- Distinctive: line 411
VERIFY with at most one short-lived read-only host child using the supplied evidence IDs.
- Distinctive: line 427
Do not call full tree HUD in the normal polling loop.
- Distinctive: line 429
Use these targeted calls:
- Very specific: line 456
Treat unchanged cursor=<cursor> from explicit compact/summary views as a no-op.
- Very specific: line 483
If the final run result meta contains chained_evaluate_job_id:
- Very specific: line 487
If the evaluate job failed or timed out, keep the run success intact and show Next: ooo evaluate <session_id> as the manual retry
- Very specific: line 488
If the evaluation result contains chained_ralph_job_id, continue observing that job before presenting the final outcome.
- Very specific: line 493
If chained_evaluate_job_id is absent, keep the legacy path verbatim:
- Distinctive: line 500
If the MCP server is not available, inform the user:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/ouroboros:ouroboros-run
Execute a Seed specification through the Ouroboros workflow engine.
Usage
/ouroboros:ouroboros-run [seed_file_or_content]Trigger keywords: "ouroboros run", "execute seed"
How It Works
- Input: Provide seed YAML content directly or a path to a
.yamlfile - Validation: Seed is parsed and validated (goal, constraints, acceptance criteria, ontology)
- Execution: The orchestrator runs the workflow with PAL routing
- Progress: Real-time progress updates via session tracking
- Result: Execution summary with pass/fail status
- Convergence: completed runs enqueue formal evaluation by default. An explicit rejection continues through a bounded Ralph loop until approved or the configured evolution budget/stop condition is reached.
Instructions
When the user invokes this skill:
Load MCP Tools (Required first)
The Ouroboros MCP tools are often registered as deferred tools that must be explicitly loaded before use. You MUST perform this step before proceeding.
- Use the active runtime's tool-discovery capability to find and load the execution MCP tools:
tool discovery query: "+ouroboros execute" - The tools will typically be named with prefix
mcp__plugin_ouroboros_ouroboros__(e.g.,ouroboros_execute_seed,ouroboros_session_status). After runtime tool discovery returns, the tools become callable. - If the tools are callable — already exposed, or loaded by discovery — proceed with the steps below. An empty discovery result for already-exposed tools is expected, not a failure. Skip to the Fallback section only if they are genuinely absent (no Ouroboros MCP server).
IMPORTANT: Do NOT skip this step. Do NOT assume MCP tools are unavailable just because they don't appear in your immediate tool list. They are almost always available as deferred tools that need to be loaded first.
CRITICAL — deferred-schema guard (prevents "Invalid tool parameters"):
This skill makes execution MCP calls across multiple turns, and each turn runs
in a fresh tool context. A deferred tool's schema loaded on one turn is NOT
guaranteed to still be loaded on the next. If you call any execution ouroboros_*
MCP tool while its schema is not loaded in the current turn, the runtime
rejects the call with "Invalid tool parameters" before it reaches the server.
Therefore: immediately before EVERY execution MCP call in this skill, re-run
tool discovery query: "+ouroboros execute" to reload the execution tool family,
including ouroboros_start_execute_seed, ouroboros_job_wait,
ouroboros_ac_tree_hud, and ouroboros_job_result (idempotent — a no-op when
already loaded). If the load returns no matching tool (and the tool is not already callable — an empty load for an already-exposed tool is an expected no-op, not absence), switch to the documented
fallback instead of retrying the failing call.
Execution Steps
- Detect git workflow (before any code changes):
- Read the project's
CLAUDE.mdfor git workflow preferences - If PR-based workflow detected and currently on
main/master:- Create a feature branch:
ooo/run/<session_id> - All code changes go to this branch
- Create a feature branch:
- If no preference: use current branch (backward compatible)
- Read the project's
Check if the user provided seed content or a file path:
- If a file path: Read the file with the Read tool
- If inline YAML: Use directly
- If neither: Check conversation history for a recently generated seed
Before a fresh start, when the user has not already chosen an efficiency policy, first check the persistent default: when
execution.default_policyin~/.ouroboros/config.yamlisefficientorquality_first, do not ask — omit both arguments and the server applies the configured default (the start handoff still reports the resolved policy). When it isaskor unset, ask in outcome language:- Efficient execution — start parallel/decomposed work economically and
strengthen the route only when recovery requires it. Send
efficiency_mode="adaptive"andfrugality_assurance="observe". - Quality-first execution — keep child work at the parent starting tier.
Send
efficiency_mode="quality_first"andfrugality_assurance="off".
frugality_assurance="strict"is a separate explicit opt-in because it may spend extra work on proof. Never enable it merely because efficient execution was chosen. Do not ask again on resume; the server restores the persisted policy and rejects an attempted resume-time change.- Start background execution with
ouroboros_start_execute_seed:
OmitTool: ouroboros_start_execute_seed Arguments: seed_content: <the seed YAML> efficiency_mode: <adaptive or quality_first> frugality_assurance: <observe, off, or explicit strict> max_iterations: 10 (or as specified by user)model_tierby default so the runtime selects automatically. Includemodel_tier: <user choice>only when the user explicitly requested a tier. This returns immediately with ajob_id,session_id, andexecution_id. - If resuming an existing session, include
session_id:Tool: ouroboros_start_execute_seed Arguments: seed_content: <the seed YAML> session_id: <existing session ID> Recommended monitoring stance: delegate observation to one child session.
TUI surfacing at job start (RFC #1392):
After
job_id,session_id, andexecution_idare returned, surface a live view once without delaying execution or observer delegation:- If
response.meta.dashboard_urlexists, show it as the primary live view. - If
execution.tui_autolaunch: true(or legacy top-leveltui_autolaunch: true) is present in the loaded Ouroboros config, runouroboros tui openunconditionally and mention the dashboard in one short line. - Otherwise mention once that the TUI can be opened in a new terminal with
ouroboros tui open. Offer to open it, but do not block the run waiting for an answer. Remember the answer for this session and do not repeat the offer. - If the user accepts, run
ouroboros tui open. - If
ouroboros tui openreports a manual command because the environment is headless, SSH, or unsupported, relay that command once and continue. - The dashboard is an external observer. It does not change which chat session owns MCP polling.
After IDs are returned, print only this short handoff:
Execution started in background. Job ID: <job_id> Session ID: <session_id> Execution ID: <execution_id> Live view: <dashboard_url, or `ouroboros tui open`> Runtime/harness: <response.meta.runtime_backend> LLM backend: <response.meta.llm_backend> Efficiency: <response.meta.efficiency_mode> Frugality assurance: <response.meta.frugality_assurance> Observation: <confirmed read-only child observer, or durable catch-up mode>. With a confirmed observer, meaningful progress, attention, and completion events will be posted here. Without one, the run still survives this turn and I will catch up from durable events on your next message or status request. This conversation stays available while the run continues. We can refine requirements, inspect or review code, or work on an unrelated task in an isolated worktree. I will check for active-worker conflicts before editing this run's workspace. For full details later: `ouroboros_ac_tree_hud(session_id=<session_id>)`Text-only host compatibility (OMP and similar bridges):
If
response.meta.job_observeris unavailable, inspect the response content for the final sentinel block:<!-- ouroboros-job-observer-v1 base64 <payload> -->Base64-decode
<payload>, then fail closed unless it passes the canonical v1 validation implemented byextract_job_observer_inline_handoff: exactly one bounded terminal sentinel; fixed protocol, role, ownership, wait/result tools, restrictions, and follow-result keys; internally consistent IDs; and ajob_idmatching the visible start receipt. Use visible Job/Session/Execution IDs only as identity anchors, never to reconstruct the nested contract. If structured and inline surfaces differ or validation fails, do not spawn an observer; report a transport-integrity failure.When a structured or recovered
job_observeris present and the host has an independent child/subagent session primitive, spawn exactly one observer session and pass that object unchanged. Codex usesspawn_agent, OMP uses one native Task child, and Claude Code uses one Task/Agent child. The observer must:- On Codex, call the native
spawn_agentprimitive exactly once withtask_name="run_observer"and include the structured or recoveredjob_observerunchanged in the child message. Awaitcall is not a spawn. - Require the spawn result to return a live child ID/path before saying an observer is connected or before ending the start turn.
- On OMP, submit exactly one Task item named
RunObserverwith the recovered or structured contract unchanged, require the returned live agent/job ID, and use the host wait/inbox relay until the observer returns terminal. A job-status poll in the parent is not an observer spawn. - remain read-only: no repository edits, execution control, or worker fan-out;
- own the job cursor exclusively and reload deferred MCP schemas immediately before each observer tool call;
- call the declared
wait.toolwith the declared arguments, update its local cursor from response meta, and repeat until terminal; - call the declared
result.toolafter terminal status; - follow any job IDs named by
follow_result_job_keys, including chained formal evaluation, before returning one compact final summary; - send sparse progress notices only when the host supports child-to-parent messages and the state meaningfully changes.
The main session must not poll the same job while the observer owns it. It may continue the user conversation, refine requirements, perform read-only inspection/review, handle explicit status/control requests, or work on an unrelated task in an isolated worktree. Before writing to the active run's workspace, check for overlap with worker files or isolate the work. If
job_idis absent because plugin mode already delegated the whole execution, follow that plugin child lifecycle instead.On Codex, a confirmed observer also requires a parent relay loop. After
spawn_agentreturns a live child ID/path, keep the parent turn open withwait_agentcalls of at most 60 seconds. A childsend_messageonly queues a mailbox event and cannot wake a parent turn that has already ended. Relay meaningful observer updates, then wait again until the child returns its terminal summary. User input may interrupt the wait; handle it and resume the relay loop while the observer remains active unless the user asks to stop live observation or replaces the active request. Then end only the relay loop, keep the durable job running, and offer next-turn or explicit-status catch-up. If the observer child fails, is cancelled, or exits before a terminal summary, use that same fallback instead of waiting indefinitely. This wait loop must never call Ouroboros job tools or compete for the observer's cursor.Handle observer messages as events, not as a transcript:
phase_changed/progress_advanced: relay at most 1-2 concise lines. Interpret the structured subtype, not raw logs:run_configuration: state the current runtime/harness, starting model or tier when known, efficiency mode, and frugality assurance. If the exact model is not known yet, say it will be reported by the first routing event.execution_plan: state total ACs, total dependency/parallel levels, whether work can run in parallel, and the first scheduled AC summaries.discovery_summary: say which bounded targets the AC is examining and the purpose; never expose search queries, raw commands, or reasoning.level_started/level_completed: say which parallel level is active or finished and the meaningful success/failure counts.ac_routing/harness_changed: say "currently running with" and report only initial routing or a real model/tier/harness change.ac_verified: report the completed AC and its compact assurance evidence.
attention_required: surface the blocker or pending decision immediately and ask the user only when human judgment is required.terminal: fetch/present the final result and any chained evaluation.- Synapse
.queued/.delivering: say the exact AC has a pending or claimed intent signal and name the effective boundary; do not claim application yet. - Synapse
.applied/.completed: confirm runtime-proven application and relay the bounded AC reply when present. - Synapse
.rejected/.delivery_uncertain: surface immediately and never claim the AC changed course. - Suppress unchanged heartbeats and raw tool output.
Render every relay in the user's current conversation language. Keep event codes and effective-mode values unchanged only when exact diagnostics help. These are English canonical host instructions. Phrase the facts naturally in the active conversation language.
This ownership split is the default for SOL-class models: the main model performs one start handoff, while a small isolated context owns the repetitive wait/result state machine.
If child creation is unavailable, fails, or returns no live child, do not claim that an observer exists or promise live proactive messages. The detached worker survives the stdio MCP turn. Tell the user that progress is durable and will be caught up on the next parent turn or explicit status request. Keep the turn open only when the user explicitly asked for live watching; then use the fallback below.
- If
Fallback: low-token relay loop in the main session.
Use this only when
response.meta.job_observeris absent, the host has no independent child session primitive, and the user explicitly asked to keep watching in the current turn. Do not run it in parallel with a delegated observer. Otherwise end the turn safely and catch up from the same cursor on the next parent turn.Use
ouroboros_job_wait, not repeatedouroboros_ac_tree_hud, for routine monitoring. Keep the latest cursor and previous progress counters from the tool meta payload.This loop is intentionally harness/model friendly:
- Treat
response.metaas the source of truth. - Do not parse
response.textfor counts, status, or cursor. - Use
response.textonly as a human-readable current-message hint. - Keep all local monitor state in simple scalar variables.
- Emit at most one short relay message per changed response.
- Always continue to final
ouroboros_job_resultafter a terminal status.
cursor = <cursor from start/status response, or 0> prev_status = "running" prev_phase = null prev_ac_completed = 0 prev_sub_ac_completed = 0 prev_message = null loop: Tool: ouroboros_job_wait Arguments: job_id: <job_id from step 3> cursor: <cursor> timeout_seconds: 180 view: "summary" stream: "linked" wait_for: "attention_or_ac_change" cursor = response.meta.cursor if response.meta.changed is false: # Do not narrate unless the user explicitly asked for heartbeat updates. continue status = response.meta.status phase = response.meta.current_phase ac_completed = response.meta.ac_completed ac_total = response.meta.ac_total sub_ac_completed = response.meta.sub_ac_completed sub_ac_total = response.meta.sub_ac_total # The metadata field names remain legacy-compatible; relay them to users as Task/Subtask progress. message_hint = first non-empty non-metadata line from response.text, or null # Build one short relay update from structured fields. if status in ["completed", "failed", "cancelled", "interrupted"]: print terminal_relay(status, phase, ac_completed, ac_total, sub_ac_completed, sub_ac_total) break if ac_completed > prev_ac_completed: print task_progress_relay(phase, ac_completed, ac_total, sub_ac_completed, sub_ac_total, message_hint) elif sub_ac_completed > prev_sub_ac_completed: print subtask_progress_relay(phase, ac_completed, ac_total, sub_ac_completed, sub_ac_total, message_hint) elif phase != prev_phase or status != prev_status: print phase_or_status_relay(status, phase, ac_completed, ac_total, sub_ac_completed, sub_ac_total) elif message_hint != prev_message: print current_work_relay(phase, ac_completed, ac_total, sub_ac_completed, sub_ac_total, message_hint) prev_status = status prev_phase = phase prev_ac_completed = ac_completed or prev_ac_completed prev_sub_ac_completed = sub_ac_completed or prev_sub_ac_completed prev_message = message_hint or prev_messageNotes:
timeout_seconds: 180means the MCP call can block for up to 3 minutes. This keeps the main session available often enough for a live relay while still avoiding noisy polling.- Use
view: "compact"for very long jobs or when the user only wants a heartbeat. The raw tool may still return legacy text such asjob_x | running | AC 3/17; relay that to users as Task progress. - Use
view: "summary"for normal monitoring. It includes the job message plus Task/Subtask counts derived from legacyac_completed/sub_ac_completedmetadata fields. - Use
view: "full"only when the user asks for detailed job status.
Relay style examples:
In progress: Deliver is at Task 1/3 and Subtask 12/16. Current work is the Subtask 3 regression test.Level update: parallel level 1/1 has finished, and Task progress advanced to 3/3.Completed: execution finished. Fetching the final job result now.
Relay output contract for other harnesses/models:
- One update should be 1-2 sentences or 1 compact line.
- Include
phase, Task completed/total and Subtask completed/total when present. - Include the current work hint only if it changes.
- Never include the full task tree in routine relay output.
- Never include raw JSON, raw meta dumps, or repeated unchanged cursor lines.
- Terminal statuses must be explicit: completed, failed, cancelled, or interrupted.
Do not paste the full raw tool output unless the user asks for raw status. Do not add speculative ETA unless the tool provides one.
Synapse intent refinement: When the user gives additive implementation intent during an active run, the main session owns target selection; never ask the user for internal AC/session IDs.
Immediately before each Synapse call, reload its deferred schemas with
tool discovery query: "+ouroboros session signal".- Take
execution_idfrom the start result or observer contract and callouroboros_session_signal_targets(execution_id=...). - Match the user's meaning against each target's
ac_content, display path, and current HUD activity when needed. One active target may be selected directly. With multiple targets, select only when one is materially more relevant; ask a short user-language clarification only for genuine ties. - For additive implementation refinement, call
ouroboros_session_signalwith the selected target's exact scope/attempt/execution guards,contract_effect="additive",source="user",mode="redirect", andfallback_mode="after_turn". Copyexpected_contract_versionwhen target discovery supplies it, and create one stable idempotency key for this exact user turn. If the target went stale, rediscover once instead of asking for IDs. - When the user asks the AC a read-only question or requests assurance rather
than an implementation change, use
mode="inform"andcontract_effect="additive", and omitfallback_modeentirely because it is valid only for redirect. Synapse runs a no-tools reply turn when the runtime supports it; relay the bounded reply from the completed event. - Tell the user which AC was selected and report the returned effective mode.
Wait for observer
.appliedor.completedbefore saying it was reflected.
Never use Synapse to change approved goals, ACs, constraints, or non-goals; those require an approved shared successor or replacement contract.
Active Conductor attention handling:
recommended_host_actionsis the authoritative menu. Never invent a mutating tool call.- VERIFY with at most one short-lived read-only host child using the supplied evidence IDs. If the host has no verifier primitive, surface the attention and stop before mutation.
- DECIDE among the ordered menu actions. Engine-owned retry/routing must be closed before any successor action is considered.
- LOG
phase="selected"throughouroboros_record_conductor_decisionbefore ACT. For a specification change in run mode, obtain explicit user approval and bind its receipt. - ACT only when the menu names a currently registered MCP tool. A corrective successor must preserve the approved contract unless the user approved the shared specification change.
- LOG exactly one terminal
completed,failed, ordeclinedoutcome. Do not silently retry a failed conductor action.
- Treat
Use
ouroboros_ac_tree_hudonly for manual drill-down or anomaly checks.Do not call full tree HUD in the normal polling loop.
Use these targeted calls:
# Explicit short HUD, useful for a one-off check Tool: ouroboros_ac_tree_hud Arguments: session_id: <session_id> cursor: <cursor> view: "summary" # Lowest-token one-line HUD Tool: ouroboros_ac_tree_hud Arguments: session_id: <session_id> cursor: <cursor> view: "compact" # Full tree only when user asks "show details", progress looks stuck, # or debugging requires seeing the task/subtask structure. Tool: ouroboros_ac_tree_hud Arguments: session_id: <session_id> cursor: <cursor> view: "tree" max_nodes: 30Treat
unchanged cursor=<cursor>from explicit compact/summary views as a no-op. Do not explain it to the user unless they explicitly asked for heartbeat messages.Fetch final result in the polling owner with
ouroboros_job_result.The delegated observer performs this call on the default path. The main session performs it only on the fallback path from step 6.
Tool: ouroboros_job_result Arguments: job_id: <job_id>- Present the execution results to the user:
- Show success/failure status
- Show session ID (for later status checks)
- Show execution summary
- Post-execution QA and formal evaluation (automatic):
ouroboros_start_execute_seedautomatically runs QA after execution. The QA verdict is included in the final job result text. This QA check is not the formal 3-stage evaluator. On servers that returnchained_evaluate_job_id, the run has already enqueued the formal evaluator as a separate bounded background job. To skip: passskip_qa: trueto the tool.
If the final run result meta contains chained_evaluate_job_id:
- The current polling owner continues with that job ID
- Fetch its verdict with
ouroboros_job_resultafter terminal status - Render APPROVED when
final_approved: true; otherwise render not approved and list failed ACs or the failure reason from the evaluation result - If the evaluate job failed or timed out, keep the run success intact and show
Next: ooo evaluate <session_id>as the manual retry - If the evaluation result contains
chained_ralph_job_id, continue observing that job before presenting the final outcome. Report approval/convergence or the bounded Ralph stop reason; do not call the run blocked merely because its first evaluation was rejected.
If chained_evaluate_job_id is absent, keep the legacy path verbatim:
- PASS:
Next: ooo evaluate <session_id> for formal 3-stage verification - REVISE: Show differences/suggestions, then
Next: Fix the issues above, then ooo run to retry -- or ooo unstuck if blocked - FAIL/ESCALATE:
Next: Review failures above, then ooo run to retry -- or ooo unstuck if blocked
Fallback (No MCP Server)
If the MCP server is not available, inform the user:
Ouroboros MCP server is not configured.
To enable full execution mode, run: /ouroboros:setup
Without MCP, you can still:
- Use /ouroboros:interview for requirement clarification
- Use /ouroboros:seed to generate specifications
- Manually implement the seed specificationExample
User: /ouroboros:ouroboros-run seed.yaml
[Reads seed.yaml, validates, starts background execution]
Background execution started.
Job ID: job_a1b2c3d4e5f6
Session ID: orch_x1y2z3
Execution ID: exec_m1n2o3
[Relay]
In progress: Deliver is at Task 1/3 and Subtask 12/16.
Current work is finishing the workflow routing Subtask.
[Relay]
Level update: parallel level 1/1 has finished, and Task progress advanced to 3/3.
Execution is complete. Fetching the final job result now.
[Fetching final result...]
Result:
Seed Execution SUCCESS
========================
Session ID: orch_x1y2z3
Goal: Build a CLI task manager
Duration: 45.2s
Messages Processed: 12
Verification Status: executed_unverified
Formal Evaluation: NOT evaluated by the 3-stage evaluator
Next: `ooo evaluate orch_x1y2z3` for formal 3-stage verification
# Newer server path:
Verification Status: evaluation_enqueued
Chained Evaluation Job ID: job_eval987
[Poll ouroboros_job_wait/job_status, then fetch ouroboros_job_result]
Formal Evaluation Verdict: APPROVEDRFC #1392 State Breadcrumb Footer
Your final response MUST end with exactly one breadcrumb footer line:
◆ <current state> → next: <recommended action>Derive <current state> from live session state via ouroboros_session_status when that MCP projection is available; otherwise derive it from this skill's actual outcome. Never use a linear Step N of M footer because Ouroboros is an evolutionary loop. When the next action is genuinely a choice, list 2-3 honest options in the next: clause. The breadcrumb line must be the last line of the response.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

