Convert Claude Code or Codex into the most intelligent Deep Research Agent. Collect, search, and synthesize web research into a persistent, searchable wiki that builds on itself. Hosted API + MCP: hyperresearch.ai
Python agentsagentskillscitationsclaude-codecodexcodex-plugincodex-skilldeep-researchdeep-research-agentdeepresearchmcp-serverresearchresearch-agentresearch-tools
skill: fetch resilience, breadcrumb discipline, mandatory dissent fetch
Jordan9c226cbf7828
diff --git a/src/hyperresearch/skills/research-collect.md b/src/hyperresearch/skills/research-collect.mdindex d19cffd..d60a18e 100644--- a/src/hyperresearch/skills/research-collect.md+++ b/src/hyperresearch/skills/research-collect.md@@ -55,14 +55,19 @@ Collect is **primary-source-heavy for the artifact itself, then secondary for thRun Semantic Scholar / OpenAlex only if the enumerable set has a scholarly classification literature. For fictional / pop-culture / product / historical enumerations, skip it — the reference wikis and primary sources are the authoritative tier.-### Adversarial round+### Adversarial round — MANDATORY, run all three before proceeding-Still required. Run the dispatcher's adversarial searches to catch:-- Missing members the consensus list omits-- Disputed members (is this really in the set?)-- Members that get grouped differently in non-mainstream sources+A collect report with no engagement with classification disputes is a transcription, not research. Run all three searches and **fetch at least one source that explicitly disputes the consensus list / classification**:-A collect report with no engagement with classification disputes is a transcription, not research.+```+WebSearch("<topic> disputed contested membership classification")+WebSearch("missing from <consensus list> <topic> overlooked")+WebSearch("<topic> alternative classification non-mainstream taxonomy")+```++If the set has a "minor" / "non-canonical" / "rejected" / "lost" / "obscure" tier (e.g., apocryphal works, deprecated species, withdrawn standards), search for it explicitly and fetch one such source. The audit at Step 11 verifies at least one source flagged a missing or disputed member — a corpus that only contains consensus-list confirmations fails the comprehensiveness check.++Specific dispute patterns to watch for: members the consensus list omits, members whose membership is contested, members that get grouped differently in non-mainstream sources, ordering / hierarchy disputes within the set.---diff --git a/src/hyperresearch/skills/research-compare.md b/src/hyperresearch/skills/research-compare.mdindex 6ba509f..54a990e 100644--- a/src/hyperresearch/skills/research-compare.md+++ b/src/hyperresearch/skills/research-compare.md@@ -75,9 +75,9 @@ Compare is a **3-tier source hierarchy** that privileges the artifact itself, thNever use commentary as the sole source for a factual claim about an entity. Use it only to characterize positioning or reception.-### Adversarial round+### Adversarial round — MANDATORY, run all four before proceeding-Required — specifically for the market leader. A compare report without at least one source critical of the dominant entity is advocacy, not evaluation.+Required — specifically for the market leader. A compare report without at least one source critical of the dominant entity is advocacy, not evaluation. **Fetch at least one source that explicitly criticizes the leading entity** (a postmortem, a "why we migrated away" blog, a dissenting analyst report, a public outage retrospective, a regulatory complaint).```WebSearch("<market-leader entity> problems limitations")@@ -86,6 +86,10 @@ WebSearch("moving away from <market-leader entity>")WebSearch("<method A> vs <method B> when <method A> wins")```+The audit at Step 11 verifies at least one body section engages the critique with substance. A compare draft that recommends X without engaging "people who tried X and switched to Y" lacks the experiential evidence that distinguishes a real evaluation from a marketing summary.++For symmetric comparisons (no clear leader, e.g., "Postgres vs MySQL"), run the adversarial searches against EACH entity — every option must have at least one critical voice in the corpus.+### Academic sweep — only when comparing methods, not productsIf the comparison is between academic methods, algorithms, or theoretical approaches (e.g., "PPO vs SAC for continuous control"), run Semantic Scholar first. If the comparison is between products or services, skip the academic sweep and go straight to vendor docs + analyst reports.diff --git a/src/hyperresearch/skills/research-forecast.md b/src/hyperresearch/skills/research-forecast.mdindex 6f6a45c..26423e8 100644--- a/src/hyperresearch/skills/research-forecast.md+++ b/src/hyperresearch/skills/research-forecast.md@@ -63,9 +63,9 @@ Forecast is **secondary-heavy** — triangulation across many institutional persAcademic papers are the wrong sources for forecasting. Citation-ranked scholarship describes what's known about the past, not what will happen. Skip Semantic Scholar / arXiv / OpenAlex / PubMed for forecast queries.-### Adversarial round — mandatory+### Adversarial round — MANDATORY, run all five before proceeding-Run these before proceeding past the seed fetch:+A forecast without explicit engagement with the failure case is not analysis — it is advocacy. Run all five searches and **fetch at least one source that explicitly argues the bear case** (a contrarian analyst report, a named-skeptic op-ed, a historical-failure post-mortem):```WebSearch("<topic> bear case downside risk")@@ -75,7 +75,9 @@ WebSearch("<topic> worst case scenario")WebSearch("<topic> historical failure analogous case")```-A forecast without explicit engagement with the failure case is not analysis — it is advocacy.+The audit at Step 11 verifies the bear case gets substantive coverage — at minimum a full paragraph engaging the contrarian position at its strongest, ideally a full section. A one-paragraph dismissal is strawmanning, not stress-testing.++If the dominant forecast has a named skeptic (e.g., "consensus says soft landing but Roubini predicts X"), search for the skeptic by name. Named-contrarian search produces sharper dissent than generic "criticism of X".---diff --git a/src/hyperresearch/skills/research-synthesize.md b/src/hyperresearch/skills/research-synthesize.mdindex 0b97ad5..85503a4 100644--- a/src/hyperresearch/skills/research-synthesize.md+++ b/src/hyperresearch/skills/research-synthesize.md@@ -110,16 +110,21 @@ WebSearch("<topic> 批評 論文") # JapaneseNon-English sources count toward voice diversity at Checkpoint 1.-### Adversarial round+### Adversarial round — MANDATORY, run all four before proceeding-Required. Find the strongest dissenting reading / dissenting mechanism explanation / dissenting theoretical position. Your thesis must engage it with substance, not a one-sentence dismissal.+Find the strongest dissenting reading / dissenting mechanism explanation / dissenting theoretical position. Your thesis must engage it with substance, not a one-sentence dismissal. **Fetch at least one source that explicitly argues against the dominant interpretation.**```WebSearch("<topic> criticism limitations")WebSearch("against <dominant reading> <topic>")-WebSearch("<topic> reappraisal new reading")+WebSearch("<topic> reappraisal revisionist new reading")+WebSearch("<topic> overrated wrong contested")```+The audit at Step 11 verifies at least one body section engages the dissenting reading with substance (a paragraph or more, not a sentence). A synthesize draft built entirely from sources that agree with each other is advocacy — the corpus must contain the strongest counter-voice you could find, even if your draft ultimately rejects it.++If the dominant reading has a named opponent (e.g., "the Lacanians say X but Žižek argues Y"), search for the opponent by name, not just by topic. Named-critic search produces sharper dissent than generic "criticism of X".+### Source diversity — at least one non-academic voiceIf the subject has practitioners (applied economists, engineers, policy analysts, industry users, operators), **at least one non-academic voice is mandatory.** A synthesize corpus built entirely of peer-reviewed papers plus lecture notes is a monoculture — the thesis loses its grip on reality when nobody in the corpus has actually *used* the thing.diff --git a/src/hyperresearch/skills/research.md b/src/hyperresearch/skills/research.mdindex 5c89da5..93b3f39 100644--- a/src/hyperresearch/skills/research.md+++ b/src/hyperresearch/skills/research.md@@ -220,6 +220,48 @@ Each iteration is a research director: the analyst reads one source, proposes whSpawn `hyperresearch-fetcher` on ONLY those 3–5. Do NOT batch-fetch 20 URLs upfront — half get wasted on sources the loop would tell you to skip.+#### When a fetch fails — try harder before giving up++PDF hosts on academic faculty pages, ResearchGate, SSRN, and publisher sites are notoriously flaky (403, paywall walls, junk content, login walls). When a fetch returns `error`, `JUNK_CONTENT`, `AUTH_REQUIRED`, or any non-success status, **do NOT silently move on if the source is high-priority.** A high-priority source is one that:++- Is the seminal paper an analyst specifically named as a `next_target`+- Is the canonical source for the question (e.g., the original Maskin-Riley paper for an asymmetric-auctions query)+- Is the only voice from a missing tier (e.g., the only practitioner perspective in a corpus of academic papers)++For high-priority failures, work through this fallback chain in order — stop as soon as one succeeds:++1. **Try alternative URLs for the same paper:**+ - arXiv preprint version (`arxiv.org/abs/<id>` or `arxiv.org/pdf/<id>`)+ - Author's personal page (search `"<author surname> <paper title> filetype:pdf"`)+ - Department / institutional repository (search `"<paper title> site:<institution>.edu"`)+ - SSRN, RePEc, NBER, OpenAlex, Semantic Scholar mirror+ - Google Scholar's "All N versions" link+2. **Try the visible-browser flag** on the original URL: `$HPR fetch "<url>" --visible ...`. The `--visible` flag runs the browser non-headless; many sites that block headless requests succeed when the browser is visible. Cost: ~5-10s slower per fetch.+3. **Try the user's authenticated profile** if one is configured: `$HPR fetch "<url>" --profile research ...`. Login profiles bypass paywalls on sites the user has logged into. If no profile is configured, the user can create one via `hyperresearch setup`.+4. **As a last resort**, search for a **summary or review** of the paper that captures its key claims (e.g., a textbook chapter that summarizes the result). Note this in the source's frontmatter `summary:` field as `(via summary, original PDF unavailable)`.+5. **If all four fail and the source is genuinely irreplaceable**, surface the failure to the user — don't ship a draft that depends on a source you couldn't read.++Document failures in the scaffold's "Where each source will land" section. The auditor will see the explicit gap and can flag whether the draft works around it correctly.++**Low-priority fetch failures** (a peripheral source the analyst flagged with low confidence) — skip and move on. Don't waste five fallback attempts on a tangential source.++#### Mandatory `--suggested-by` discipline at fetch time++Every `$HPR fetch` call from Phase 2 onward MUST pass `--suggested-by <source-note-id>` AT FETCH TIME. Do NOT batch-fetch a list of next_targets first and then backfill breadcrumbs later — that produces disconnected provenance graphs that the rooted-tree lint catches as errors at Checkpoint 2.++The pattern is: analyst returns `next_targets[]` with each target's `proposed_by` source id → main agent fetches each target with the corresponding `--suggested-by` flag in the same call. One subprocess per target, with the breadcrumb baked in.++```bash+# CORRECT — breadcrumb at fetch time+$HPR fetch "<url>" --suggested-by <source-id> --suggested-by-reason "<why>" -j++# WRONG — fetch first, append breadcrumb later+$HPR fetch "<url>" -j # creates seed-style note+$HPR note edit <new-id> ... # tries to graft a breadcrumb after the fact+```++Backfilling is supported (the fetch CLI is idempotent on re-call with `--suggested-by`), but the resulting provenance graph has disconnected components — the new note's breadcrumb points at the suggester, but if the suggester was itself a seed, the chain looks artificial. The rooted-tree provenance lint flags this and the audit-gate blocks save until you connect the islands.+**Phase 2 — Guided reading iterations.** For each fresh note, spawn the **`hyperresearch-analyst`** agent (Sonnet, registered at `.claude/agents/hyperresearch-analyst.md`) with `mode=guided`:```@@ -640,11 +682,12 @@ for dom, count in domains.most_common(10):```**Pass conditions:**-- [ ] At least one note fetched from each mandatory adversarial search+- [ ] At least one note fetched from each mandatory adversarial search in your modality file+- [ ] **At least one source explicitly dissents from / criticizes the dominant view.** "Dominant view" is what the bulk of your corpus implicitly endorses; the dissenting source must contradict it directly (not just complicate it). State the dominant view in writing and identify which source is the dissent. If you cannot identify one, you have NOT satisfied the adversarial round — go fetch one before proceeding.- [ ] No single domain represents >30% of fetched sources (voice diversity)- [ ] At least 5 unique non-reference voices (critical essays, named-author blog posts, peer-reviewed papers — NOT listicles or reference wikis)-**On failure:** run additional searches with diversified queries, vary the source types, seek named voices. Return to Step 2.+**On failure:** run additional searches with diversified queries, vary the source types, seek named voices. For the dissent gap specifically: search for the named opponent of the dominant figure ("Roubini on inflation" rather than "inflation criticism"), look for retractions/withdrawals, look for "we tried X and switched to Y" postmortems. Return to Step 2.### Checkpoint 2 — after Steps 5–6 (post-curate)