with one click
cyclus-research
parallel web research; subagents→synthesis→cite-verify
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
parallel web research; subagents→synthesis→cite-verify
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
TaskExecutionKind: execute a plan to completion with per-task verification
Design a well-formed Cyclus loop: RECOGNIZE→SPECIFY→DECOMPOSE via Planner+Architect+Critic consensus (≤3 rounds)
ConsensusKind: Planner+Architect+Critic deliberate to produce a verified implementation plan
pipeline: interview→plan→execute→QA→verify (idea→code)
Multi-role consensus triage of an issue backlog.
Socratic reqs interview; clarify vague/ambiguous goals
| name | cyclus-research |
| description | parallel web research; subagents→synthesis→cite-verify |
| version | 2.0.0 |
| metadata | {"hermes":{"tags":["research","web","synthesis","parallel","omh"],"category":"omh","requires_toolsets":["terminal","omh","web"]}} |
This skill implements an InformationSeekingKind loop.
Turn results: FindingsAdded | Sufficient.
Terminal states: InformationSufficient | InformationExhausted | Cancelled.
SufficiencyFn: At each round, evaluate whether gaps have closed using the
gap-tracking state stored in the work item. The Sufficient terminal is reached
when the gap list is empty or the evaluator judges evidence sufficient.
.omh/research/{slug}-report.md
with status: confirmed for this topic — view it insteadweb toolset is available in this Hermes install (see Prerequisites)This skill fail-fasts if any of the following are missing:
web toolset — provides web_search AND web_extract. If either
is unavailable, print:
cyclus-research requires the `web` toolset (web_search + web_extract); aborting.
and exit before doing any work.cyclus_queue tool — always available (zero-config embedded SQLite backend).
Use cyclus_queue for all state tracking; no manual JSON fallback is needed or
supported..omh/ for state, plan, findings, report, log.Hermes discovery: hermes skills list | grep cyclus-research should
return this skill once installed.
mkdir -p ~/.hermes/skills/omh && ln -snf <repo>/plugins/omh/skills/cyclus-research ~/.hermes/skills/omh/cyclus-research
Parent dir creation MUST precede the symlink.
Five invocation phases, exit-safe between any two:
| # | Phase | Reads | Writes | Subagents |
|---|---|---|---|---|
| 1 | decompose | user query | {slug}-plan.md, state.phase=search | none |
| 2 | search | plan, state, findings/ | new findings file(s), state.completed_subtopics, phase | 1-3 researcher subagents (parallel; role loaded via skill_view) |
| 3 | gap_check | all findings | optional _followup.md OR direct phase flip | 0 or 1 researcher subagent (role loaded via skill_view) |
| 4 | synthesize | all findings (parent inlines) | {slug}-report.md status: draft, phase=verify | 1 synthesist subagent (role loaded via skill_view) |
| 5 | verify | report + findings (parent inlines) | confirmed frontmatter / state mutate / blocked | 1 verifier subagent (role loaded via skill_view) |
Per-instance state. Each research session lives in the OMH queue under
mode="research" and instance_id="{slug}" (the slug minted in Phase 1).
Intermediate state is written to the state_path file via
cyclus_queue(action="write_state", ...). Multiple topics can be in flight
concurrently — the slug IS the instance_id, and every subsequent
cyclus_queue(...) call passes instance_id="{slug}". Per-session
artifacts (plan, findings, report) are slug-keyed under .omh/research/.
The earlier research-{id}.json and research-state.json (singleton)
wordings from older specs are superseded.
Parent owns the filesystem. All web tool use happens inside delegated
subagents. The parent reads findings files and inlines their contents
into synthesist's and verifier's context field. Subagents return
text only.
Roles are loaded via skill_view, never inlined. Before each delegation, load the role prompt:
role_prompt = skill_view(name="cyclus", file_path="references/role-{name}.md")
Pass the loaded text in the delegation's context field under a ## Role
heading. If skill_view returns empty or raises, abort with:
"Role prompt unavailable — cannot dispatch without role context."
Before starting any new research session:
new_slug. We need it to disambiguate enumeration below..omh/research/*-plan.md
files to find known slugs. For each slug, call
cyclus_queue(action="status", mode="research", instance_id="{slug}") to
read its queue status. Items with status of PENDING, RUNNING, or
BLOCKED are considered active.cancel_requested=1, log
CANCELLED slug={slug} and call
cyclus_queue(action="complete", mode="research", instance_id="{slug}", terminal_state="Cancelled")..omh/research/{slug}-report.md has frontmatter status: confirmed,
the previous run crashed after writing the sentinel but before calling
complete(). Treat as completed: log
REPORT_CONFIRMED_RECOVERED slug={slug}, then call
cyclus_queue(action="complete", mode="research", instance_id="{slug}", terminal_state="InformationSufficient").topic in its
state file matches the new request, jump directly to Phase 2/3/4/5 for
THAT slug (use its existing instance_id); do not mint new_slug.{slug}-report.md
exists with status: confirmed matching the new topic, prompt:
refresh (mint a new slug and re-run) / view existing report / cancel.new_slug. Concurrent
active research on different topics is permitted; do not block.cyclus_queue(action="status", mode="research", instance_id="{slug}");
if cancel_requested=1, call
cyclus_queue(action="complete", mode="research", instance_id="{slug}", terminal_state="Cancelled")
and exit.slug = kebab(topic)[:40] + '-' + YYYYMMDD + '-' + random4
where random4 is 4 lowercase-hex chars.
kebab() = lowercase, replace runs of non-alphanumeric with -,
strip leading/trailing -, truncate to 40 chars..omh/research/{slug}-plan.md with frontmatter:
---
status: planning
topic: {original user topic}
slug: {slug}
subtopics:
- name: {subtopic 1 name}
queries: [{q1}, {q2}, {q3}]
- ...
---
cyclus_queue(action="post", mode="research", instance_id="{slug}", kind="InformationSeekingKind", name="{topic}")cyclus_queue(action="claim", mode="research", instance_id="{slug}")cyclus_queue(action="write_state", mode="research", instance_id="{slug}", state={...}):
{
"phase": "search",
"slug": "{slug}",
"topic": "{topic}",
"subtopic_count": N,
"completed_subtopics": [],
"started_at": "{ISO-8601}",
"session_id": "{uuid4}",
"synthesis_attempts": 0
}
cyclus_queue(action="release", mode="research", instance_id="{slug}")STARTED slug={slug} and PLAN_WRITTEN slug={slug} subtopics=N.This phase is re-entrant: it dispatches one batch of up to 3
researcher subagents per invocation, then exits. Re-invoke to dispatch
the next batch. Re-entry is driven by state.completed_subtopics.
cyclus_queue(action="claim", mode="research", instance_id="{slug}").
Check cancel_requested in the result; if set, call
cyclus_queue(action="complete", terminal_state="Cancelled") and exit.
Read current state from the state_path in the claimed item.{slug}-plan.md frontmatter.pending = [s for s in plan.subtopics if s.name not in state.completed_subtopics].batch = pending[:3] (up to 3 in parallel).researcher_prompt = skill_view(name="cyclus", file_path="references/role-researcher.md")
delegate_task(tasks=[
{
"goal": "<self-contained: topic, subtopic name, exact queries to run, output template>",
"context": "<plan excerpt for this subtopic; no other subagent's findings>\n\n## Role\n{researcher_prompt}",
},
...up to 3...
])
Each task's goal is fully self-contained — no inter-subagent dependencies..omh/research/{slug}-findings/{subtopic-slug}.md with
frontmatter capturing subtopic, source_urls, and credibility
tags pulled from the subagent's returned SOURCES block.state.completed_subtopics (extend the list) and persist via
cyclus_queue(action="write_state", mode="research", instance_id="{slug}", state=...).cyclus_queue(action="release", mode="research", instance_id="{slug}").pending becomes empty after the write, set
state.phase = "gap_check" BEFORE releasing (order: findings →
completed_subtopics → phase flip → write_state → release → exit).BATCH_COMPLETE batch=N subtopics=[name1,name2,...] per batch.Pitfalls specific to Phase 2:
kebab(subtopic.name)[:60]. If
two subtopics kebab to the same slug, append -2, -3, etc.web_search or web_extract directly. All
web tool use is inside the delegated researcher subagents. The parent's
job is dispatch and disk.The parent skill never calls web_search or web_extract directly;
all web tool use happens inside delegated subagents.
Claim the work item:
cyclus_queue(action="claim", mode="research", instance_id="{slug}").
Check cancel_requested; if set, call complete(terminal_state="Cancelled") and exit.
Read all .omh/research/{slug}-findings/*.md files. From each, extract
the GAPS: bullet list. Concatenate, then dedup lexically
(case-insensitive trim-compare; preserve first occurrence).
TWO branches only:
(a) 0 gaps — SufficiencyFn satisfied. Set state.phase = "synthesize",
call cyclus_queue(action="write_state", mode="research", instance_id="{slug}", state=...)
with updated state, call cyclus_queue(action="release", mode="research", instance_id="{slug}"),
log GAP_CHECK_COMPLETE gaps=0, exit.
(b) ≥1 gap — Load researcher role and delegate ONE subagent:
researcher_prompt = skill_view(name="cyclus", file_path="references/role-researcher.md")
delegate_task(
goal="<self-contained: research the following gaps: {deduped_gap_list}>",
context="<deduped gap list>\n\n## Role\n{researcher_prompt}"
)
Parent writes the returned text to
.omh/research/{slug}-findings/_followup.md (atomic). Set
state.phase = "synthesize", call write_state with updated state,
call release, log GAP_CHECK_COMPLETE gaps=N, exit.
No threshold tiers. No N-versus-M gap branching. No inline web_search branch. Two branches only — that is the contract.
Claim the work item:
cyclus_queue(action="claim", mode="research", instance_id="{slug}").
Check cancel_requested; if set, call complete(terminal_state="Cancelled") and exit.
Parent INLINES findings. Read ALL files under
.omh/research/{slug}-findings/ (including _followup.md if
present). Concatenate their full contents into the delegation's
context field. The synthesist subagent has no filesystem access.
Budget escape (verified safe). If the concatenated payload exceeds the orchestrator's tool-arg budget (≈40KB+ across 5+ findings files is a soft threshold), the parent MAY summarize each findings file's SYNTHESIS section while preserving:
[N] block verbatim (titles + URLs + tags + dates)_followup block verbatim (it is usually the smallest and
most claim-dense)
Do NOT drop or paraphrase any URL, citation tag, or numeric claim.
Dogfooded 2026-04: a 5-subtopic + 1-followup run with summarized
SYNTHESIS bodies + verbatim source lists passed verification at
high confidence with all 28 globally-renumbered citations intact.
When in doubt, prefer full inline; summarize only when forced.Load synthesist role and dispatch ONE task:
synthesist_prompt = skill_view(name="cyclus", file_path="references/role-research-synthesist.md")
delegate_task(
goal="<self-contained: produce report per synthesist role template; topic={topic}; reference inlined plan + findings>",
context="<plan frontmatter + every findings file content, fully inlined>\n\n## Role\n{synthesist_prompt}",
)
Retry context. If state.synthesis_attempts > 0, append the
prior verifier's REQUEST_CHANGES feedback (stored in
state.last_verifier_feedback) to the goal as:
Address these prior verifier findings:
{feedback}
Parent always overwrites .omh/research/{slug}-report.md with
the returned text. Frontmatter starts at status: draft. NO -v2
suffixing. Prior verdicts live only in state, not on disk.
C3 propagation. Parent does NOT edit the returned report. Any
(insufficient sources for this subtopic) strings remain verbatim.
Set state.phase = "verify", call
cyclus_queue(action="write_state", mode="research", instance_id="{slug}", state=...),
call cyclus_queue(action="release", mode="research", instance_id="{slug}"),
log REPORT_DRAFT, exit.
Claim the work item:
cyclus_queue(action="claim", mode="research", instance_id="{slug}").
Check cancel_requested; if set, call complete(terminal_state="Cancelled") and exit.
Parent INLINES report + findings. Read {slug}-report.md AND
all {slug}-findings/*.md files. Concatenate BOTH into the
verifier delegation's context field. Verifier subagent has no
filesystem access.
Tools allowlist (A5). When dispatching, pass a tools allowlist
EXCLUDING write/edit/filesystem tools where Hermes supports
per-call tool scoping. If Hermes lacks per-call scoping, document
in Known Gaps and rely on the prose READ-ONLY contract in
role-research-verifier.md.
Load verifier role and dispatch ONE task:
verifier_prompt = skill_view(name="cyclus", file_path="references/role-research-verifier.md")
delegate_task(
goal="<self-contained: verify report per verifier role; topic={topic}>",
context="<report + all findings files, fully inlined>\n\n## Role\n{verifier_prompt}",
)
Parse the returned VERDICT.
On VERDICT: PASS — STRICT ORDER (NEVER reverse):
{slug}-report.md with frontmatter status: confirmed (atomic; idempotent sentinel; THIS is the source-of-truth and must land FIRST).REPORT_CONFIRMED slug={slug} to the event log.cyclus_queue(action="complete", mode="research", instance_id="{slug}", terminal_state="InformationSufficient").Phase 0 self-heals if a crash occurs between step 1 and step 3 (it detects the confirmed sentinel and completes the orphan queue item).
On VERDICT: FAIL with state.synthesis_attempts < 3:
state.synthesis_attempts.state.last_verifier_feedback.state.phase = "synthesize".cyclus_queue(action="write_state", mode="research", instance_id="{slug}", state=...).cyclus_queue(action="release", mode="research", instance_id="{slug}").VERIFY_FAIL slug={slug} and SYNTHESIS_RETRY attempt={N}.On VERDICT: FAIL with state.synthesis_attempts == 3:
state.phase = "blocked".cyclus_queue(action="write_state", mode="research", instance_id="{slug}", state={..., "phase": "blocked"}).cyclus_queue(action="release", mode="research", instance_id="{slug}").VERIFY_FAIL slug={slug} and BLOCKED_RETRIES_EXHAUSTED slug={slug}.Append-only events to .omh/logs/research-{session_id}.log. Events are
decisions and phase transitions only — never findings content (matches
the cyclus-interview convention).
Documented event vocabulary:
STARTED slug={slug}PLAN_WRITTEN slug={slug} subtopics=NBATCH_COMPLETE batch=N subtopics=[...]GAP_CHECK_COMPLETE gaps=NREPORT_DRAFTVERIFY_PASSVERIFY_FAILSYNTHESIS_RETRY attempt=NBLOCKED_RETRIES_EXHAUSTED slug={slug}REPORT_CONFIRMED slug={slug}REPORT_CONFIRMED_RECOVERED slug={slug}BLOCKED slug={slug}CANCELLEDDownstream skills (cyclus-interview, cyclus-plan, cyclus-autopilot) detect a completed research session by:
.omh/research/{slug}-report.md with frontmatter `status: confirmed`
This file is the durable contract. Queue state is intermediate tracking;
the sentinel file written before complete() is the source of truth.
web_search or web_extract from the parent. All web
tool use happens inside delegated researcher subagents.skill_view before each delegation; pass in context.
Role bodies live in plugins/omh/references/role-*.md. Never inline
role text in the skill body itself.write_state,
call release(), and exit cleanly after its outputs. Long-running phases
that span multiple delegations are not exit-safe.random4 suffix keeps
same-topic same-day re-runs from clobbering each other.role-research-verifier.md in that case. (A5)