Logo van Maestro Workflow

Maestro Workflow

Organisatie
sionic-ai
maestro-workflow

Multi-LLM orchestration implementing the 5-stage coding workflow: Example Analysis → Hypothesis → Implementation → Debug Loop → Recursive Improvement. Based on "Towards a Science of Scaling Agent Systems" (Kim et al., 2025): - Centralized Consult architecture (Claude orchestrates, others advise) - Measured coordination (avoid MAS overhead in tool-heavy stages) - Tests-first selection (Poetiq pattern, not voting) Use when: Debugging complex issues, analyzing unfamiliar code, refactoring, or any task that benefits from diverse LLM perspectives with verification.

Overzicht

Uitgeversionic-ai
Repositorysionic-maestro-skills
Skillnaammaestro-workflow
Sterren
48
Forks
4
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door sionic-ai op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Maestro Workflow in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/sionic-ai/sionic-maestro-skills/tree/main/.claude/skills/maestro-workflow
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sionic-ai/sionic-maestro-skills.git /tmp/sionic-maestro-skills
mkdir -p .claude/skills
cp -r /tmp/sionic-maestro-skills/.claude/skills/maestro-workflow .claude/skills/maestro-workflow
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Maestro Workflow in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Maestro Workflow automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Maestro Workflow niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Maestro Workflow: Multi-LLM Orchestration with Measured Coordination

Core Philosophy (Paper-Based)

This workflow implements findings from "Towards a Science of Scaling Agent Systems":

1. Tool-Coordination Trade-off

  • Paper finding: Tool-heavy tasks suffer from multi-agent coordination overhead
  • Our rule: Only Claude Code (orchestrator) runs tools (edit files, run tests)
  • Sub-agents (Codex/Gemini) provide TEXT ADVICE ONLY

2. Capability Saturation (~45% threshold)

  • Paper finding: When single-agent baseline exceeds ~45%, MAS returns diminish
  • Our rule: If you're confident about the solution, SKIP ensemble generation
  • Ask yourself: "Am I stuck, or do I just want confirmation?"

3. Error Amplification Prevention

  • Paper finding: Independent agents amplify errors 17.2x without verification
  • Our rule: ALWAYS verify with tests before accepting any candidate
  • Use maestro_select_best with tests_first mode (not voting!)

Available Tools

ToolPurposeWhen to Use
maestro_consultSingle model consultationAnalysis, code review, specific questions
maestro_ensemble_generateMultiple candidatesHypothesis generation, solution exploration
maestro_select_bestPick best candidateAfter ensemble, with test/lint results
maestro_pack_contextSmart context packingBefore any consultation
maestro_run_stageExecute workflow stageStructured 5-stage execution
maestro_workflow_stateCheck progressMonitor budget, see history
maestro_get_metricsPaper-aligned metricsPerformance analysis

The 5-Stage Workflow

Stage 1: Example Analysis (analyze)

Goal: Freeze facts before guessing.

Process:

  1. Gather context with file reads, grep, ls
  2. Optionally use maestro_consult(provider="gemini") for large file summarization
  3. Document observations, repro steps, affected modules

Output (JSON):

json
{
  "observations": ["Test fails with IndexError on line 42"],
  "repro_steps": ["Run pytest test_auth.py::test_login"],
  "affected_modules": ["src/auth.py", "src/db.py"],
  "invariants": ["Must not break existing login flow"]
}

Coordination Policy: Low overhead allowed (2 consults max)


Stage 2: Hypothesis Formulation (hypothesize)

Goal: Generate competing explanations with testable predictions.

Process:

  1. Use maestro_ensemble_generate(task="Top 3 root causes...", providers=["codex", "gemini"])
  2. Each hypothesis must have a VERIFICATION TEST
  3. Use maestro_select_best to pick most testable hypothesis

Output (JSON):

json
{
  "hypotheses": [
    {
      "id": "H1",
      "claim": "Off-by-one error in array indexing",
      "verification_test": "Add edge case test with empty array",
      "confidence": 0.7
    }
  ],
  "selected": "H1",
  "test_command": "pytest test_auth.py::test_empty_users -v"
}

Coordination Policy: Ensemble ENCOURAGED (best stage for MAS)


Stage 3: Code Implementation (implement)

Goal: Apply minimal, testable changes.

Process:

  1. Claude Code (orchestrator) edits the file directly
  2. Optionally consult maestro_consult(provider="codex") for diff suggestions
  3. Run tests IMMEDIATELY after edit

Key Rules:

  • NO parallel implementations (creates conflicts)
  • ONE change at a time
  • Test after EVERY change

Coordination Policy: Single agent PREFERRED (tool-heavy = bad for MAS)


Stage 4: Iterative Debugging (debug)

Goal: Fix without divergence.

Process:

  1. Analyze the NEW error (what changed?)
  2. Update hypothesis confidence
  3. Make SINGLE smallest change
  4. Test again

WARNING: Paper shows sequential debugging DEGRADES with multi-agent!

Coordination Policy:

  • Single agent ONLY for first 2 iterations
  • Consult external ONLY if stuck for 3+ iterations
  • Feed error logs into context

Iteration Limit: 5 (escalate if exceeded)


Stage 5: Recursive Improvement (improve)

Goal: Refactor and stabilize after tests pass.

Process:

  1. Review for code quality (but don't over-engineer!)
  2. Identify edge cases
  3. Add regression tests
  4. Optional: maestro_consult(provider="claude") for safety review

Entry Condition: ALL TESTS MUST PASS

Coordination Policy: Ensemble OK for review/suggestions


Example Usage Patterns

Pattern 1: Bug Investigation

User: "The login test is failing, can you debug it?"

1. [ANALYZE] Read test file, error logs
   maestro_pack_context(files=["tests/test_auth.py"], errors=[error_log], stage="analyze")

2. [HYPOTHESIZE] Generate root cause theories
   maestro_ensemble_generate(task="Top 3 causes for IndexError in auth...", providers=["codex", "gemini"])

3. [SELECT] Pick most testable hypothesis
   maestro_select_best(candidates=..., mode="tests_first", test_results=[...])

4. [IMPLEMENT] Fix (Claude edits directly)
   Edit file, run pytest

5. [DEBUG] If test still fails, iterate
   Single agent mode, minimal changes

6. [IMPROVE] After tests pass
   Add edge case tests, review for safety

Pattern 2: Code Review with Diverse Perspectives

User: "Review this PR for security issues"

1. maestro_pack_context(files=[changed_files], stage="analyze")

2. maestro_ensemble_generate(
     task="Security review: identify vulnerabilities in...",
     providers=["codex", "gemini", "claude"]
   )

3. maestro_select_best(candidates=..., mode="llm_judge", criteria=["security", "severity"])

Pattern 3: Checking Metrics Mid-Workflow

User: "How much coordination overhead have we used?"

maestro_workflow_state()
# Returns: consults used, budget remaining, efficiency score

Coordination Budget

Per Workflow Limits (configurable):

  • Max consults per stage: 2
  • Max total consults: 6
  • Capability threshold: 45%

When to SKIP ensemble:

  • You're confident in the solution
  • It's a tool-heavy stage (implement, debug)
  • Budget is exhausted

Error Handling

If a sub-agent fails:

  1. Check stderr in the response
  2. Try a different provider
  3. Fall back to single-agent mode
  4. Document the failure in tracing

Metrics (Paper-Aligned)

After any workflow, check:

maestro_get_metrics()

Key metrics:

  • Coordination Overhead (O%): Extra calls vs single-agent
  • Efficiency Score (Ec): Success / overhead ratio
  • Test Coverage Rate: Selections that had test signals

Target: O% < 300%, Ec > 0.4, Test Coverage > 80%

Veelgestelde vragen

Wat doet de AI-skill Maestro Workflow?

Multi-LLM orchestration implementing the 5-stage coding workflow: Example Analysis → Hypothesis → Implementation → Debug Loop → Recursive Improvement. Based on "Towards a Science of Scaling Agent Systems" (Kim et al., 2025): - Centralized Consult architecture (Claude orchestrates, others advise) - Measured coordination (avoid MAS overhead in tool-heavy stages) - Tests-first selection (Poetiq pattern, not voting) Use when: Debugging complex issues, analyzing unfamiliar code, refactoring, or any task that benefits from diverse LLM perspectives with verification.

Waarom Maestro Workflow gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Maestro Workflow bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Maestro Workflow in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/sionic-ai/sionic-maestro-skills/tree/main/.claude/skills/maestro-workflow. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Maestro Workflow gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Maestro Workflow gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Maestro Workflow ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Maestro Workflow gratis?

Deze skill is door sionic-ai op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇