Logo di Omh Ralph

Omh Ralph

Community
witt3rd
omh-ralph

execute plan: 1 task/call, verify evidence, iron law

Panoramica

Pubblicato dawitt3rd
Repositoryoh-my-hermes
Nome della skillomh-ralph
Stelle
371
Fork
33
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 1

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da witt3rd su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Omh Ralph in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/witt3rd/oh-my-hermes/tree/master/plugins/omh/skills/omh-ralph
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/witt3rd/oh-my-hermes.git /tmp/oh-my-hermes
mkdir -p .claude/skills
cp -r /tmp/oh-my-hermes/plugins/omh/skills/omh-ralph .claude/skills/omh-ralph
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Omh Ralph in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Omh Ralph non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Omh Ralph non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

OMH Ralph — Verified Execution (v2)

Requires the OMH plugin. Install plugins/omh/ from this repo to ~/.hermes/plugins/omh/.

When to Use

  • You have a plan (from omh-ralplan or manual) and need verified execution
  • The user says: "ralph", "don't stop", "until done", "must complete", "keep going"
  • You need guaranteed verification — not just "looks done" but evidence-backed completion
  • Multi-step implementation where each task must be independently verified

When NOT to Use

  • No plan or spec exists (use omh-deep-interview and/or omh-ralplan first)
  • Trivial single-file changes (just do them directly)
  • The user explicitly wants to skip verification

Architecture: One Task Per Invocation

Each ralph invocation does ONE unit of work and exits. The caller re-invokes for the next task. This eliminates context window exhaustion and makes every invocation a clean checkpoint.

Invocation N:  read state → pick task → execute → verify → update state → EXIT
Invocation N+1: read state → pick next task → execute → verify → update state → EXIT
...
Final invocation: all tasks pass → architect review → mark complete → EXIT

Procedure

Step 0: Resolve Instance and Acquire Lock

Ralph and autopilot mutate a shared .omh/plans/ plan. Two sessions running ralph against the same plan would race on ralph-tasks state and produce non-deterministic outcomes. Use per-instance state + advisory lock to make concurrent plans safe.

  1. Resolve instance_id from the plan path:
    • Default plan source: .omh/plans/ralplan-*.md or .omh/plans/ralph-plan.md.
    • instance_id = basename(plan_path) without ".md" (engine slugifies).
    • If no plan exists yet (Step 2 will choose), use instance_id="default".
  2. Acquire the lock before reading/writing state:
    lock = omh_state(action="lock", mode="ralph",
                     lock_key="{instance_id}",
                     session_id="{HERMES_SESSION_ID or uuid}",
                     holder_note="ralph executing {plan_path}")
    • acquired=true: continue.
    • acquired=false: report held_by to the user (pid + session_id + started_at). Offer: wait / cancel the holder (omh_state(action="cancel", mode="ralph", instance_id="{instance_id}"), then on next invocation the dead holder's lock will be released automatically by stale-pid detection) / pick a different plan.
  3. Pass instance_id to every subsequent omh_state call in this invocation — both the ralph mode and the ralph-tasks mode.
  4. Release the lock at every exit point (success, blocked, cancel, max-iterations, exception):
    omh_state(action="unlock", mode="ralph",
              lock_key="{instance_id}",
              session_id="{HERMES_SESSION_ID or uuid}")
    Wrap the body of the procedure so the unlock fires even on error.

Singleton fallback (legacy). If a caller omits instance_id, the engine writes the legacy .omh/state/ralph-state.json and skips locking. Only use this for one-plan-at-a-time setups.

Step 1: Read State

state = omh_state(action="read", mode="ralph", instance_id="{instance_id}")
  • state.exists=false: Fresh start — go to Step 2 (Planning Gate).
  • state.data.active=true: Resume — go to Step 3.
  • state.data.phase="complete": Report completion. Ask if user wants fresh start.
  • state.data.phase="blocked": Report blockers. Ask if issues are resolved.
  • state.data.active=false, phase="cancelled": Report cancellation. Offer resume.

Check for cancel signal:

cancel = omh_state(action="cancel_check", mode="ralph", instance_id="{instance_id}")

If cancel.cancelled=true: set phase="cancelled", write state, exit.

Check staleness: if state.stale=true, warn the user and offer to continue or fresh start.

Increment state.data.iteration. If iteration > max_iterations (default 100): write phase="blocked", report "Max iterations reached", exit.

Step 2: Planning Gate

Ralph MUST NOT execute without a plan. Check sources in order:

  1. omh_state(action="check", mode="ralph-tasks", instance_id="{instance_id}") → exists=true — already parsed, skip to Step 3
  2. .omh/plans/ralplan-*.md — parse into ralph-tasks state: omh_state(action="write", mode="ralph-tasks", instance_id="{instance_id}", data={...})
  3. .omh/plans/ralph-plan.md — parse into ralph-tasks state
  4. Nothing found → tell user: "No plan found. Run omh-ralplan first."

Plan parsing rules:

  • Extract numbered tasks with titles, descriptions, and acceptance criteria
  • Reject generic criteria like "implementation is complete" — must be testable
  • Enforce atomicity: split multi-part tasks into separate entries
  • Assign priorities by dependency order (no-dependency tasks first)
  • Set all tasks to passes: false

Write initial state:

omh_state(action="write", mode="ralph", instance_id="{instance_id}", data={
  "active": true, "phase": "execute", "iteration": 0,
  "session_id": "<uuid>", "max_iterations": 100,
  "task_prompt": "<original user request>",
  "current_task_id": null,
  "started_at": "<ISO 8601 timestamp>",
  "project_path": "<absolute path to project root>",
  "files_modified": [],
  "error_history": [],
  "completed_task_learnings": []
})

Step 3: Pick Next Task

Read task list:

tasks = omh_state(action="read", mode="ralph-tasks", instance_id="{instance_id}")
  1. If ALL tasks have passes: true → go to Step 7 (Final Review)
  2. Find eligible tasks: passes=false AND all dependencies met
  3. If no eligible task but incomplete tasks remain → dependency deadlock → set phase="blocked", write state, exit
  4. Among eligible tasks, pick by priority (lowest number first)

Parallel execution: if 2-3 independent tasks are eligible (no shared file footprint, no dependency between them), batch them into one delegate_task call.

Step 4: Execute

Delegate to an executor subagent:

delegate_task(
    goal="[omh-role:executor] Implement this task:\n\n{task.title}\n{task.description}\n\nAcceptance Criteria:\n{task.acceptance_criteria}",
    context="Project Context:\n{tech stack, conventions, relevant paths}\n\nPrevious Feedback (if retry):\n{task.verifier_verdict}\n\nLearnings from prior tasks:\n{state.data.completed_task_learnings}"
)

The [omh-role:executor] marker in the goal causes the OMH plugin to automatically inject the executor role prompt into the subagent's system prompt — no inlining needed. (Fallback without plugin: replace marker with omh_state(action="load_role", role="executor") and pass the returned prompt text in context.)

Parse the executor's response: COMPLETE → Step 5, PARTIAL → Step 5, BLOCKED → record blocker, add discovered task if needed, update state, exit.

Step 5: Verify

Part A: Gather evidence

evidence = omh_gather_evidence(commands=[
    "{project build command}",
    "{project test command}",
    "{project lint command}"
])

Use the project's actual build/test/lint commands. The tool captures output, enforces timeouts, and returns {results, all_pass, summary}.

Part B: Delegate to verifier

delegate_task(
    goal="[omh-role:verifier] Verify whether this task's acceptance criteria are met:\n\n{task.title}\n{task.acceptance_criteria}\n\nExecutor Report:\n{task.executor_report}",
    context="Evidence:\n{evidence.results}"
)

Parse the verifier's response:

  • APPROVE / PASS: Set task.passes = true. Append to learnings: {task_id, summary, files_changed, gotchas}. Append to .omh/logs/ralph-progress.md.
  • REQUEST_CHANGES / FAIL: Record task.verifier_verdict. Check 3-strike rule (Step 6).

Step 6: Error Handling

3-Strike Circuit Breaker: Construct error fingerprint {task_id, category, error_key}. Add to task.error_fingerprints. If 3 fingerprints share the same category + error_key: mark task blocked, log the error, continue to next eligible task on next invocation. If ALL remaining tasks are blocked: write phase="blocked", report, exit.

Cancel detection (if user says "stop", "cancel", "abort"):

omh_state(action="cancel", mode="ralph", instance_id="{instance_id}", reason="user request")

Then write phase="cancelled" to state, exit with resume instructions.

Step 7: Final Review

When all tasks have passes: true:

evidence = omh_gather_evidence(commands=["{build command}", "{test command}"])

delegate_task(
    goal="[omh-role:architect] Review the complete implementation for architectural soundness.\n\nOriginal Plan:\n{source plan text}\n\nTasks Completed:\n{summary of all tasks + learnings}",
    context="Evidence:\n{evidence.results}\n\nFiles Changed Across All Tasks:\n{aggregate file list}"
)
  • APPROVE: Write {active: false, phase: "complete"}, clear state files, keep progress log.
  • REQUEST_CHANGES: Add new tasks with discovered: true, set phase="execute".

Step 8: Update State and Exit

After every action:

omh_state(action="write", mode="ralph", instance_id="{instance_id}", data={...updated state...})

Exit cleanly. The caller re-invokes for the next iteration.

Pitfalls

  • Never skip the planning gate. No plan = no execution.
  • Never trust executor claims without verifier evidence. The verifier must see omh_gather_evidence output.
  • Don't run evidence inside the verifier delegation. Gather evidence BEFORE delegating.
  • Don't conflate verifier and architect. Different jobs, different prompts, different phases.
  • Respect the 3-strike rule. Same error 3 times → surface the fundamental issue.
  • Feed learnings forward. Include completed_task_learnings in every executor delegation.
  • Use [omh-role:NAME] markers — the OMH plugin injects role prompts automatically into subagent sessions. Never inline role prompt text manually. Available roles: executor, verifier, architect, planner, critic, analyst, security-reviewer, code-reviewer, test-engineer, debugger. Fallback without plugin: omh_state(action="load_role", role="NAME") and pass returned prompt in context.

Sentinel Convention

Other skills detect ralph status:

  • omh_state(action="check", mode="ralph", instance_id="{instance_id}") → {exists, active, phase, stale}
  • phase="complete" → ralph finished successfully
  • phase="blocked" → ralph needs intervention

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Omh Ralph?

execute plan: 1 task/call, verify evidence, iron law

Perché usare Omh Ralph su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Omh Ralph è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Omh Ralph in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/witt3rd/oh-my-hermes/tree/master/plugins/omh/skills/omh-ralph. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Omh Ralph?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Omh Ralph?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Omh Ralph: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Omh Ralph è gratuita?

Sì. È pubblicata su GitHub da witt3rd con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇