Logo: Oma Orchestration

Oma Orchestration

OrganisatiounBeléift
first-fluke
oma-orchestration

Dispatch and supervise parallel specialist agents with durable task state. Use when automated multi-agent execution is requested.

Iwwersiicht

Editeurfirst-fluke
Repositoryoh-my-agent
Skill-Nummoma-orchestration
Stären
1.3K
Forks
149
Matgeliwwert Dateien
12
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 12 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    first-fluke huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Oma Orchestration an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/first-fluke/oh-my-agent/tree/main/skills/oma-orchestration
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/first-fluke/oh-my-agent.git /tmp/oh-my-agent
mkdir -p .claude/skills
cp -r /tmp/oh-my-agent/skills/oma-orchestration .claude/skills/oma-orchestration
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Oma Orchestration an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Oma Orchestration automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Oma Orchestration net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Orchestration - Automated Multi-Agent Coordination

Scheduling

Goal

Automatically orchestrate multi-agent execution with task decomposition, native/fallback dispatch, memory coordination, progress monitoring, verification, QA cross-review, retry, and result collection.

Intent signature

  • User asks to orchestrate, run in parallel, automate multi-agent execution, or coordinate full-stack work end to end.
  • Task requires multiple specialist agents and a persistent review/remediation loop.

When to use

  • Complex feature requires multiple specialized agents working in parallel
  • User wants automated execution without manually spawning agents
  • Full-stack implementation spanning backend, frontend, mobile, and QA
  • User says "run it automatically", "run in parallel", or similar automation requests

When NOT to use

  • Simple single-domain task -> use the specific agent directly
  • User wants step-by-step manual control -> use oma-coordination
  • Quick bug fixes or minor changes

Expected inputs

  • Complex feature or workflow request
  • Project config, model/vendor routing, agent types, task constraints, and workspace/session needs
  • Acceptance criteria and verification expectations

Expected outputs

  • Orchestrator session state, task board, progress files, result files, and final summary
  • Specialist agent outputs after mechanical checks, automated verify, and QA cross-review
  • Review history and retry/remediation status when loops fail

Dependencies

  • .agents/oma-config.yaml, .codex/agents/*.toml, .gemini/agents/*.md, or fallback oma agent spawn
  • Memory provider config, subagent prompt template, scripts, task templates, verify script, and session metrics

Control-flow features

  • Branches by vendor/native dispatch availability, priority tiers, agent completion/failure, verification status, QA verdict, retry limits, and unresolved decisions
  • Spawns processes/agents and reads/writes memory/result files
  • Preserves unresolved evidence when bounded recovery stops

Structural Flow

Entry

  1. Resolve agent vendor routing and runtime dispatch path.
  2. Decompose request into priority-tiered tasks.
  3. For each task, classify into one or more domain_tags by matching against the Intent signature block of each installed .agents/skills/oma-*/SKILL.md. Tasks that match no domain confidently inherit the union of their parent feature's tags.
  4. Build a per-task exposed_skill_set = skills whose name is in domain_tags. If |exposed_skill_set| < 2 after classification, fall back to the full installed set (flat exposure) and record exposure_fallback: true in the task board.
  5. Create session memory and task board with exposed_skill_set and exposure_fallback per task.

Scenes

  1. PREPARE: Plan, setup session ID, and initialize memory files.
  2. ACT: Spawn agents by priority tier within parallelism limits.
  3. VERIFY: Run self-check, oma verify, and QA cross-review loop.
  4. RECOVER: Retry failed agents with review history when limits allow.
  5. FINALIZE: Collect verified claims, compile summary, and preserve progress artifacts.

Transitions

  • If native dispatch is available for current runtime/vendor, use it.
  • If vendors differ or native path is unavailable, use fallback spawn.
  • If verify or QA fails, feed feedback back to the implementation agent.
  • If recovery limits are exceeded, preserve review history and return partial or failed; never force completion.
  • If a task's exposed_skill_set excludes a skill that a recovered failure indicates was needed, re-classify the task and re-dispatch with the expanded set rather than retrying against the original narrow set.

Failure and recovery

  • Retry failed agents up to configured limits.
  • Re-spawn with review history when review loop is exhausted.
  • Continue independent work after recording material corrections; ask only for a material missing decision.

Exit

  • Success: all tasks complete, verify/review pass, and results are summarized.
  • Partial success: failed agents, exhausted review loops, or missing verification are explicit.

Logical Operations

Actions

ActionSSL primitiveEvidence
Read config and task contextREADoma config, routing, request
Classify task into domain tagsINFERtask text vs each skill's Intent signature
Compute exposed skill setSELECTintersection of domain tags and installed skills
Select dispatch pathSELECTNative vs fallback
Write session stateWRITEtask board and memory files
Spawn agentsCALL_TOOLnative CLI or oma agent spawn
Poll progressREADprogress/result files
Run verificationCALL_TOOLoma verify, tests, QA
Update retry stateUPDATE_STATEloop counters and CD metrics
Report final resultNOTIFYcompiled summary

Tools and instruments

  • Native CLI subagent dispatch, fallback spawn scripts, memory tools, verify script, QA agent
  • Session metrics, prompt templates, task templates

Canonical command path

bash
oma agent spawn <agent-type> <prompt-file> <session-id> --task-id <task.id> -w <workspace>
oma verify <agent-type> --workspace <workspace> --json

When native runtime dispatch is available, prefer the runtime-specific native path listed in this skill before falling back to oma agent spawn.

Resource scope

ScopeResource target
LOCAL_FSSession, task-board, progress, result, config files
PROCESSAgent CLI processes and verify scripts
MEMORYSession state and unresolved decisions
CODEBASEWorkspaces owned by spawned agents

Preconditions

  • Task is decomposable into specialist agent work.
  • Runtime/vendor dispatch path or fallback exists.

Effects and side effects

  • Spawns agents and writes session/progress/result artifacts.
  • May cause code changes through specialist agents.
  • May trigger iterative review and retries.

Guardrails

  1. Orchestrate per-agent dispatch from the project configuration before spawning any agent.
  2. If target_vendor === current_runtime_vendor and the runtime has a verified native path, use native dispatch.
  3. Otherwise fall back to oma agent spawn.
  4. Never exceed configured parallelism or the aggregate recovery budget. Ordinary retries and exploration hypotheses both consume it.
  5. Keep session state, task-board state, progress files, claims, and receipts aligned. Use the plan task ID on every spawn and native begin/finish path.
  6. Domain gating must be soft: prefer a narrower exposed_skill_set, but fall back to flat exposure when classification confidence is low rather than starving a task of a required specialist.

Current native executor paths:

  • Claude Code: Agent tool with .claude/agents/{agent}.md definitions (multiple Agent tool calls in one message run in parallel; results return synchronously — no polling)
  • OpenCode: native task tool with subagent_type: {agent-id}; do not use oma agent spawn for same-session OpenCode work because it will not appear as a native child task
  • Codex CLI: codex exec "@agent ..." using .codex/agents/*.toml
  • Gemini CLI: gemini -p "@agent ..." using .gemini/agents/*.md

Configuration

SettingDefaultDescription
MAX_PARALLEL3Max concurrent subagents
MAX_RECOVERY_ATTEMPTS3Total retries and exploration hypotheses per task, including the original attempt
POLL_INTERVAL30sStatus check interval
Turn guidancerole-specificCheckpoint/resume signal, not a hard stop or approval boundary

These are workflow defaults. Resolve runtime/vendor settings from project configuration; do not depend on this skill's stale config/cli-config.yaml for runtime behavior.

Memory Configuration

Memory provider and tool names are configurable via .agents/mcp.json (not the repo-root .mcp.json, which is the Claude Code MCP server config):

json
{
  "memoryConfig": {
    "provider": "file",
    "basePath": ".agents/state/memories",
    "tools": {
      "read": "Read",
      "write": "Write",
      "edit": "Edit"
    }
  }
}

Workflow Phases

PHASE 1 - Plan: Analyze request -> decompose tasks -> generate session ID PHASE 1.5 - Domain gate: For each task, intersect Intent signature matches across installed skills to derive exposed_skill_set. Record exposure_fallback: true when the intersection is too small to be useful and the flat library is used instead. PHASE 2 - Setup: Create orchestrator-session-{sessionId}.md and task-board-{sessionId}.md (include exposed_skill_set per task) PHASE 3 - Execute: Spawn agents by priority tier (never exceed MAX_PARALLEL); inject only exposed_skill_set into each subagent's available specialist list PHASE 4 - Monitor: Poll every POLL_INTERVAL; handle completed/failed/crashed agents PHASE 4.5 - Verify: Run mechanical checks for every completed agent; run oma verify {agent-type} only for backend, frontend, mobile, qa, debug, and pm; then run QA cross-review for every completed implementation PHASE 5 - Collect: Read claims and run-scoped reports for plan tasks whose checks passed; compile summary without deleting evidence.

Memory File Ownership

FileOwnerOthers
orchestrator-session-{sessionId}.mdorchestratorread-only
task-board-{sessionId}.mdorchestratorread-only
progress-{agentId}-{taskId}-{runId}-{sessionId}.mdthat runorchestrator reads
result-{agentId}-{taskId}-{runId}-{sessionId}.mdthat runorchestrator reads

Agent-to-Agent Review Loop (PHASE 4.5)

After each agent completes, enter an iterative review loop, not a single-pass verification.

Loop Flow

Agent completes work
    ↓
[1] Mechanical Self-Check: lint, type-check, tests, diff scope
    ↓
[2] Verify: For supported types, run `oma verify {agent-type} --workspace {workspace}`
    Unsupported (`db`, `refactor`, `architecture`, `tf-infra`, `docs`) → record SKIP and continue
    ↓ FAIL → Agent receives feedback, fixes, back to [1]
    ↓ PASS
[3] Cross-Review: QA agent reviews the changes
    ↓ FAIL → Agent receives review feedback, fixes, back to [1]
    ↓ PASS
Accept result

Step Details

[1] Mechanical Self-Check (formerly "Self-Review"): Before requesting external review, the implementation agent must:

  • Run lint, type-check, and tests in the workspace
  • Verify only planned files were modified (diff scope check)
  • Fix any mechanical failures (compile errors, test failures)

Quality judgment is NOT performed in this step. Design quality, architecture alignment, and acceptance criteria satisfaction are evaluated exclusively in [3] Cross-Review by the QA agent. Reason: Self-evaluation bias causes agents to consistently overrate their own output (ref: Anthropic harness design research).

[2] Automated Verify:

bash
oma verify {agent-type} --workspace {workspace} --json
  • Run only for backend, frontend, mobile, qa, debug, and pm.
  • For db, refactor, architecture, tf-infra, and docs, record that automated verify is unsupported and continue to QA cross-review after the mechanical checks.
  • PASS (exit 0): Proceed to cross-review
  • FAIL (exit 1): Feed verify output back to the agent as correction context

[3] Cross-Review: Spawn QA agent to review the changes:

  • QA agent reads the diff, runs checks, evaluates against acceptance criteria
  • If docs/CODE-REVIEW.md exists, QA agent uses it as the review checklist
  • QA agent outputs: PASS (with optional nits) or FAIL (with specific issues)
  • On FAIL: issues are fed back to the implementation agent for fixing

Loop Limits

CounterMaxOn Exceeded
Self-check + fix cycles3Escalate to cross-review regardless
Cross-review rejections2Report to user with review history
Total loop iterations5Stop recovery; preserve failed checks and return partial or failed

Review Feedback Format

When feeding review results back to the implementation agent:

## Review Feedback (iteration {n}/{max})
**Reviewer**: {self / verify / qa-agent}
**Verdict**: FAIL
**Issues**:
1. {specific issue with file and line reference}
2. {specific issue}
**Fix instruction**: {what to change}

This replaces single-pass verification. Most "nitpicking" should happen agent-to-agent. Resolve relevant automated checks before handoff. Ask for approval only when the next action is outside existing authorization.

Recovery Budget (after review loop exhaustion)

Maintain one per-task budget: attempts_used, attempts_remaining, and any configured cost cap. The original attempt, each ordinary retry, and each exploration hypothesis consume one attempt. Before starting recovery, reserve the complete next action; do not exceed the budget or start an incomplete exploration round.

  • First remaining attempt: re-spawn with review history.
  • Later attempts: choose either one different retry or a 2–3 hypothesis round only if enough attempts and cost remain.
  • On cap exhaustion, preserve all checks, review findings, and unresolved work. The task is partial or failed, never completed.

Session evidence

For material corrections or review findings, retain the cause, impact, and evidence in existing task artifacts. Use ../_shared/core/session-metrics.md when a retrospective or separate session summary is useful. Do not score clarification questions or require an RCA based on counters. Resolve the affected work and ask only for a material missing decision.

References

  • Prompt template: resources/subagent-prompt-template.md
  • Memory schema: resources/memory-schema.md
  • Scripts: scripts/spawn-agent.sh, scripts/parallel-run.sh, scripts/verify.sh
  • Task templates: templates/
  • Skill-to-agent mapping: ../_shared/core/skill-routing.md
  • Verification: scripts/verify.sh <agent-type>
  • Session metrics: ../_shared/core/session-metrics.md
  • API contract template (SSOT): ../_shared/core/api-contracts/template.md; read generated contracts from .agents/results/api-contracts/ (run artifact) or docs/plans/contracts/ (durable spec)
  • Context loading: ../_shared/core/context-loading.md
  • Task decomposition: ../_shared/core/difficulty-guide.md (unresolved scope or dependencies)
  • Clarification protocol: ../_shared/core/clarification-protocol.md
  • Context budget: ../_shared/core/context-budget.md
  • Code intelligence: ../_shared/core/code-intelligence.md
  • Runtime lessons: ../_shared/core/lessons-learned.md (recurring failure or requested retrospective)

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Oma Orchestration?

Dispatch and supervise parallel specialist agents with durable task state. Use when automated multi-agent execution is requested.

Firwat Oma Orchestration op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Oma Orchestration besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Oma Orchestration an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/first-fluke/oh-my-agent/tree/main/skills/oma-orchestration an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Oma Orchestration benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Oma Orchestration benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Oma Orchestration domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Oma Orchestration gratis?

Jo. first-fluke huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇