{"slug":"literature-review-agent","title":"literature-review-agent","summary":"Step 3 of the PaperOrchestra pipeline (arXiv:2604.05018). Execute the literature search strategy from outline.json — discover candidate papers via web search, verify them through Semantic Scholar (Levenshtein > 70 fuzzy title match, temporal cutoff, dedup by paperId), cross-corro","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-09-24T15:42:13.755728Z","repo":{"url":"https://github.com/Ar9av/PaperOrchestra","stars":752,"forks":105,"license":null,"updatedAt":"2026-11-04T06:52:41Z"},"bodyHtml":"<hr>\n<h2>name: literature-review-agent\ndescription: Step 3 of the PaperOrchestra pipeline (arXiv:2604.05018). Execute the literature search strategy from outline.json — discover candidate papers via web search, verify them through Semantic Scholar (Levenshtein &gt; 70 fuzzy title match, temporal cutoff, dedup by paperId), cross-corroborate against Crossref + OpenAlex to flag hallucinated citations, build a BibTeX file, and draft Introduction + Related Work using ≥90% of the verified pool. Runs in parallel with the plotting-agent. TRIGGER when the orchestrator delegates Step 3 or when the user asks to \"find citations for my paper\", \"draft the related work\", or \"build the bibliography\".</h2>\n<h1>Literature Review Agent (Step 3)</h1>\n<p>Faithful implementation of the Hybrid Literature Agent from PaperOrchestra\n(Song et al., 2026, arXiv:2604.05018, §4 Step 3, App. D.3, App. F.1 p.46).</p>\n<p><strong>Cost: ~20–30 LLM calls.</strong> This is one of the two longest steps (the other is\nplotting). Wall-time floor is set by Semantic Scholar's 1 QPS verification\nlimit.</p>\n<h2>Inputs</h2>\n<ul>\n<li><code>workspace/outline.json</code> — specifically <code>intro_related_work_plan</code> with the\nIntroduction search directions and the 2-4 Related Work methodology\nclusters</li>\n<li><code>workspace/inputs/conference_guidelines.md</code> — used to derive <code>cutoff_date</code></li>\n<li><code>workspace/inputs/idea.md</code>, <code>workspace/inputs/experimental_log.md</code> — for\nframing the Intro and grounding the Related Work positioning</li>\n</ul>\n<h2>Outputs</h2>\n<ul>\n<li><code>workspace/citation_pool.json</code> — verified Semantic Scholar metadata for\nevery paper that survived verification</li>\n<li><code>workspace/refs.bib</code> — BibTeX file generated from the verified pool</li>\n<li><code>workspace/drafts/intro_relwork.tex</code> — drafted Introduction and Related\nWork sections, written into the template, with the rest of the template\npreserved verbatim</li>\n</ul>\n<h2>Two-phase pipeline (App. D.3)</h2>\n<pre><code>PHASE 1 — Parallel Candidate Discovery\n   For each search direction in introduction_strategy.search_directions:\n   For each limitation_search_query in each related_work cluster:\n     - Use the host's web search tool to discover up to ~10 candidate papers.\n     - Run up to 10 discovery queries in parallel (host-permitting).\n     - Collect (title, snippet, url) tuples — no verification yet.\n   → PRE-DEDUP before Phase 2 (see Step 1.5 below)\n\nPHASE 2 — Sequential Citation Verification (1 QPS, with cache)\n   For each candidate (after pre-dedup), sequentially:\n     0. Check s2_cache.json first (scripts/s2_cache.py --check).\n        If HIT: use cached response, skip live S2 call. No throttle needed.\n        If MISS: proceed with live request below.\n     1. Query Semantic Scholar by title:\n          GET https://api.semanticscholar.org/graph/v1/paper/search?query=&lt;title&gt;\n              &amp;fields=title,abstract,year,authors,venue,externalIds&amp;limit=5\n        (Public endpoint, no key. Throttle to 1 QPS for live requests only.)\n     2. Store the S2 response in cache: s2_cache.py --store.\n     3. Pick the top hit. Check Levenshtein title ratio against the original\n        candidate title. If ratio &lt; 70: discard.\n     4. Bonus: if year and venue exactly align with hints, add a +5 point\n        match-quality bonus.\n     5. Require: abstract is non-empty.\n     6. Require: paper.year (or month if known) strictly predates cutoff_date.\n        Months default to day-1: e.g., \"October 2024\" → 2024-10-01.\n     7. If all checks pass, add to verified pool.\n   After all candidates are verified, dedup by Semantic Scholar paperId.\n</code></pre>\n<p>The host agent does the LLM/web work; the deterministic helpers in <code>scripts/</code>\ndo the math.</p>\n<h2>Step-by-step</h2>\n<h3>0. Derive <code>cutoff_date</code></h3>\n<p>Parse <code>conference_guidelines.md</code> for the submission deadline. The paper aligns\nresearch cutoff with venue submission deadline (App. D.1):</p>\n<table>\n<thead>\n<tr>\n<th>Venue</th>\n<th>Cutoff</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CVPR 2025</td>\n<td>Nov 2024</td>\n</tr>\n<tr>\n<td>ICLR 2025</td>\n<td>Oct 2024</td>\n</tr>\n<tr>\n<td>Other</td>\n<td>One month before the stated submission deadline</td>\n</tr>\n</tbody>\n</table>\n<p>Encode as <code>YYYY-MM-DD</code>. Months default to day-1 (e.g., <code>2024-10-01</code>).</p>\n<h3>1. Phase 1: Parallel Candidate Discovery</h3>\n<p>From <code>outline.json</code>:</p>\n<ul>\n<li>All <code>introduction_strategy.search_directions</code> (3-5 queries)</li>\n<li>For each cluster in <code>related_work_strategy.subsections</code>:\n<ul>\n<li>The cluster's <code>sota_investigation_mission</code> becomes a search query</li>\n<li>All <code>limitation_search_queries</code> (1-3 each)</li>\n</ul>\n</li>\n</ul>\n<p>For each query, <strong>use your host's web search tool</strong> (e.g., <code>WebSearch</code> in\nClaude Code, <code>@web</code> in Cursor, the search tool in Antigravity). Collect the\ntop ~10 candidates per query: title, abstract snippet, source URL.</p>\n<p>If your host supports parallel sub-tasks, fire up to 10 concurrent search\nqueries. If not, run sequentially — slower but functionally equivalent.</p>\n<h4>Optional: Exa as a Phase 1 backend</h4>\n<p>If your host has no native web search, OR you want a research-paper-focused\nbackend with better signal-to-noise, you can use <a href=\"https://exa.ai\">Exa</a> via\nthe bundled <code>scripts/exa_search.py</code> helper. It is <strong>opt-in</strong> and reads\n<code>EXA_API_KEY</code> from the environment — the repo never commits a key.</p>\n<pre><code>export EXA_API_KEY=\"your-key-here\"   # get one at https://dashboard.exa.ai/\npython skills/literature-review-agent/scripts/exa_search.py \\\n    --query \"Sparse attention long context transformers\" \\\n    --num-results 15 \\\n    --discovered-for \"related_work[2.1]\"\n</code></pre>\n<p>Output is a normalized candidate list ready to merge into\n<code>raw_candidates.json</code>. Phase 2 verification (Semantic Scholar fuzzy match,\ncutoff, dedup) is unchanged. See <code>references/exa-search-cookbook.md</code> for\nthe full recipe, query patterns, cost estimates, and security notes.</p>\n<h4>Optional: Tavily as a Phase 1 backend</h4>\n<p>If your host has no native web search, OR you want an LLM-optimized search\nbackend with high relevance scoring, you can use <a href=\"https://tavily.com\">Tavily</a>\nvia the bundled <code>scripts/tavily_search.py</code> helper. It is <strong>opt-in</strong> and reads\n<code>TAVILY_API_KEY</code> from the environment — the repo never commits a key.</p>\n<pre><code>export TAVILY_API_KEY=\"tvly-your-key-here\"   # get one at https://app.tavily.com\npython skills/literature-review-agent/scripts/tavily_search.py \\\n    --query \"Sparse attention long context transformers\" \\\n    --num-results 15 \\\n    --academic \\\n    --discovered-for \"related_work[2.1]\"\n</code></pre>\n<p>Output is a normalized candidate list ready to merge into\n<code>raw_candidates.json</code>. Phase 2 verification (Semantic Scholar fuzzy match,\ncutoff, dedup) is unchanged. See <code>references/tavily-search-cookbook.md</code> for\nthe full recipe, query patterns, cost estimates, and security notes.</p>\n<p>Combine all discovered candidates into a single working list. Tag each with\nthe originating query ID so you can later attribute it to \"intro\" vs\n\"related_work[i]\".</p>\n<h3>1.5. Pre-dedup before Phase 2</h3>\n<p><strong>Always run this before starting Phase 2.</strong> Multiple search queries routinely\nreturn the same papers (e.g., \"Attention is All You Need\" appears in almost\nevery NLP discovery query). Verifying duplicates wastes 30-40% of S2 quota\nat 1 QPS.</p>\n<pre><code>python skills/literature-review-agent/scripts/pre_dedup_candidates.py \\\n    --in workspace/raw_candidates.json \\\n    --out workspace/deduped_candidates.json\n# Prints: \"150 candidates → 97 unique (53 duplicates removed)\"\n</code></pre>\n<p>Use <code>workspace/deduped_candidates.json</code> as input to Phase 2.</p>\n<h3>2. Phase 2: Sequential Verification via Semantic Scholar (with cache)</h3>\n<p>For each candidate in <code>deduped_candidates.json</code>, in <strong>sequential</strong> order:</p>\n<p><strong>Step A — check cache first</strong> (no S2 call, no throttle needed):</p>\n<pre><code>python skills/literature-review-agent/scripts/s2_cache.py \\\n    --cache workspace/cache/s2_cache.json \\\n    --check \"&lt;candidate title&gt;\"\n# exit 0 + prints JSON → use cached response, skip Step B\n# exit 1 → proceed to Step B\n</code></pre>\n<p><strong>Step B — live S2 request</strong> (cache MISS only, throttle to 1 QPS):</p>\n<p><strong>Preferred:</strong> use the bundled <code>scripts/s2_search.py</code> helper — it handles\nauth, retries, and 429 back-off automatically:</p>\n<pre><code>python skills/literature-review-agent/scripts/s2_search.py \\\n    --query \"&lt;URL-decoded candidate title&gt;\" --limit 5\n# If SEMANTIC_SCHOLAR_API_KEY is set the key is forwarded automatically.\n# If not, the public unauthenticated endpoint is used (≤1 QPS, still works).\n</code></pre>\n<p>Check whether the key is configured before starting Phase 2:</p>\n<pre><code>python skills/literature-review-agent/scripts/s2_search.py --check-key\n</code></pre>\n<p><strong>Fallback:</strong> if you prefer your host's URL fetch tool, GET:</p>\n<pre><code>https://api.semanticscholar.org/graph/v1/paper/search?query=&lt;URL-encoded title&gt;&amp;limit=5&amp;fields=title,abstract,year,authors,venue,externalIds\n</code></pre>\n<p>Add header <code>x-api-key: &lt;SEMANTIC_SCHOLAR_API_KEY&gt;</code> if the env var is set.\nBe polite: ≤1 request per second for live requests. Cache hits are free.</p>\n<p><strong>Step C — store in cache</strong> (after every successful live request):</p>\n<pre><code>python skills/literature-review-agent/scripts/s2_cache.py \\\n    --cache workspace/cache/s2_cache.json \\\n    --store \"&lt;candidate title&gt;\" \\\n    --response '&lt;full S2 JSON response&gt;'\n</code></pre>\n<p>For the top hit:</p>\n<pre><code>python skills/literature-review-agent/scripts/levenshtein_match.py \\\n    --candidate \"Original candidate title\" \\\n    --found \"S2 returned title\"\n# prints integer 0-100. Discard if &lt; 70.\n</code></pre>\n<p>Then check the temporal cutoff:</p>\n<pre><code>python skills/literature-review-agent/scripts/check_cutoff.py \\\n    --paper-year 2024 \\\n    --paper-month 9 \\\n    --cutoff 2024-10-01\n# exit 0 if strictly predates, exit 1 if not\n</code></pre>\n<p>If both checks pass AND the abstract is non-empty, append the paper's full\nS2 metadata to the verified pool.</p>\n<h3>3. Dedup and assemble the pool</h3>\n<p>After all candidates are verified:</p>\n<pre><code>python skills/literature-review-agent/scripts/dedupe_by_id.py \\\n    --in raw_pool.json \\\n    --out workspace/citation_pool.json\n</code></pre>\n<p>The dedupe script keys on <code>paperId</code> (Semantic Scholar's internal unique ID),\nfalling back to <code>externalIds.DOI</code>, then <code>externalIds.ArXiv</code>, then a\nnormalized title.</p>\n<p>The script also computes and writes <code>min_cite_paper_count</code> =\n<code>floor(0.9 * len(papers))</code> — the minimum number of papers the writing step\nmust cite (the paper's ≥90% integration rule, App. D.3).</p>\n<p><strong>Immediately after dedupe_by_id.py</strong>, validate and auto-fix the pool schema:</p>\n<pre><code>python skills/literature-review-agent/scripts/validate_pool.py \\\n    --pool workspace/citation_pool.json --fix\n# Catches and fixes authors-as-strings, reports missing required fields.\n# Must pass before proceeding to Step 4.\n</code></pre>\n<h3>3.5. Cross-index verification (Crossref + OpenAlex)</h3>\n<p>Semantic Scholar is one index and can return a plausible record for a paper\nthat does not exist, or attach wrong metadata. Re-check every S2-verified\npaper against two <strong>independent</strong> indices before building the bibliography —\nthis is the practical defense against hallucinated citations leaking in.</p>\n<pre><code># Optional but recommended: a polite-pool email gives faster, more reliable\n# service. The repo never commits an address.\nexport PAPER_ORCHESTRA_MAILTO=\"you@example.com\"\n\npython skills/literature-review-agent/scripts/cross_verify.py \\\n    --pool workspace/citation_pool.json --inplace\n# Annotates each paper with a `cross_verification` field and writes\n# workspace/cross_verification_report.json.\n# exit 0 = all corroborated; exit 1 = WARN (something flagged or an index\n# was unreachable); exit 2 = usage error.\n</code></pre>\n<p>This is a <strong>WARN gate, not a hard gate</strong> (like <code>validate_consistency.py</code>): it\nflags suspicious citations but does not block the pipeline or delete anything.\nReview the <code>low</code> and <code>conflict</code> tiers in the report:</p>\n<ul>\n<li><code>high</code> — corroborated by ≥1 external index → keep.</li>\n<li><code>medium</code> — corroborated but year disagrees → keep, spot-check the year.</li>\n<li><code>low</code> — not found in Crossref or OpenAlex → <strong>review by hand</strong>. Note that\narXiv-only preprints (no DOI) are a common benign cause; <code>low</code> means\n\"could not corroborate,\" not \"fabricated.\" S2 already confirmed it exists.</li>\n<li><code>conflict</code> — pool DOI disagrees with the external DOI → likely wrong record.</li>\n</ul>\n<p>Drop only the entries you genuinely cannot corroborate, then re-run\n<code>dedupe_by_id.py</code> onward. If both indices are unreachable (offline), the script\ndegrades gracefully and the pipeline continues on S2 verification alone.</p>\n<p>See <code>references/cross-index-verification.md</code> for the full rationale, confidence\ntiers, and the arXiv false-positive note.</p>\n<h3>4. Build the BibTeX file</h3>\n<pre><code>python skills/literature-review-agent/scripts/bibtex_format.py \\\n    --pool workspace/citation_pool.json \\\n    --out workspace/refs.bib\n</code></pre>\n<p>The script generates citation keys deterministically from `firstauthor + year</p>\n<ul>\n<li>first significant word of title<code>(e.g.,</code>vaswani2017attention<code>). It writes out only </code>@article<code>/</code>@inproceedings<code>/</code>@misc<code>entries — never invents fields. It also writes the canonical</code>bibtex_key<code>back into each paper record in</code>citation_pool.json`.</li>\n</ul>\n<p><strong>Immediately after bibtex_format.py</strong>, sync keys in <code>intro_relwork.tex</code>:</p>\n<pre><code>python skills/literature-review-agent/scripts/sync_keys.py \\\n    --pool workspace/citation_pool.json \\\n    --tex  workspace/drafts/intro_relwork.tex \\\n    --inplace\n# Replaces every \\cite{agent_key} with \\cite{canonical_bibtex_key}.\n# Eliminates citation_coverage gate failures caused by key mismatch.\n</code></pre>\n<p>These two steps replace the manual Python snippets that were previously\nrequired. The pipeline is now:</p>\n<pre><code>dedupe_by_id → validate_pool --fix → cross_verify --inplace → bibtex_format → sync_keys\n</code></pre>\n<h3>5. Draft Introduction + Related Work</h3>\n<p>This is where you (the host agent) actually write text. Load the\n<strong>verbatim Literature Review Agent prompt</strong> at <code>references/prompt.md</code>.\nSubstitute the template placeholders:</p>\n<table>\n<thead>\n<tr>\n<th>Placeholder</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>intro_related_work_plan</code></td>\n<td>full JSON object from <code>outline.json</code></td>\n</tr>\n<tr>\n<td><code>project_idea</code></td>\n<td>contents of <code>idea.md</code></td>\n</tr>\n<tr>\n<td><code>project_experimental_log</code></td>\n<td>contents of <code>experimental_log.md</code></td>\n</tr>\n<tr>\n<td><code>citation_checklist</code></td>\n<td>the BibTeX keys from <code>refs.bib</code></td>\n</tr>\n<tr>\n<td><code>collected_papers</code></td>\n<td>list of <code>{key, title, abstract}</code> from <code>citation_pool.json</code></td>\n</tr>\n<tr>\n<td><code>paper_count</code></td>\n<td><code>len(citation_pool.papers)</code></td>\n</tr>\n<tr>\n<td><code>min_cite_paper_count</code></td>\n<td>from <code>citation_pool.json</code></td>\n</tr>\n<tr>\n<td><code>cutoff_date</code></td>\n<td>the date you derived in Step 0</td>\n</tr>\n</tbody>\n</table>\n<p><strong>Also prepend the Anti-Leakage Prompt</strong> from\n<code>../paper-orchestra/references/anti-leakage-prompt.md</code>.</p>\n<p><strong>Also append the Introduction and Related Work templates</strong> from\n<code>skills/shared/section_rhetoric.md</code>. Two constraints from that file do most\nof the work here:</p>\n<ul>\n<li>The Introduction's Part 2 must state a technical challenge as <em>limitation\nplus cause</em>. \"Prior methods are slow\" is a symptom; \"prior methods\nre-encode the full context at every step, so latency grows linearly in\ndialogue length\" is a challenge the method can then attack. A Part 2\nwithout a cause makes Part 3 unwritable.</li>\n<li>Each Related Work paragraph runs: scope sentence → representative methods →\nthe limitation of that group <em>tied to our challenge</em> → transition. Grouping\nis by technical theme, never by year. The <code>min_cite_paper_count</code> gate\nmeasures coverage, not positioning — a draft can pass it and still be a\ncitation dump.</li>\n</ul>\n<p>Run your LLM with the combined prompt against <code>template.tex</code>. The agent's\njob is to fill in the empty Introduction and Related Work sections of the\ntemplate <strong>and leave everything else untouched</strong>. Output: the full\n<code>template.tex</code> with those two sections filled. Save to\n<code>workspace/drafts/intro_relwork.tex</code>.</p>\n<h3>5b. Append §2 to research_brief.md</h3>\n<p>After <code>intro_relwork.tex</code> is drafted and before the citation coverage check,\nappend §2 to <code>workspace/research_brief.md</code> (see <code>skills/shared/research_brief_template.md</code>).</p>\n<p>Template:</p>\n<pre><code>## §2 · Literature Landscape\n_Written by: literature-review-agent, Step 3_\n\n**What the literature says about the core claim:** &lt;2-3 sentence synthesis&gt;\n\n**Strongest prior work (must address in the paper):**\n- &lt;bibtex_key&gt;: &lt;why this is the strongest comparator or predecessor&gt;\n\n**Gaps confirmed by the literature:** &lt;list&gt;\n\n**Baseline comparisons — verification status:**\n| Baseline | In citation_pool? | Confidence tier |\n|---|---|---|\n\n**Related Work cluster coverage:**\n| Cluster | Papers found | Notes |\n|---|---|---|\n\n**Anything the section-writing agent should know:** &lt;important context&gt;\n</code></pre>\n<p>This synthesises what was actually found — not what the outline assumed.</p>\n<h3>6. Verify ≥90% citation coverage</h3>\n<pre><code>python skills/literature-review-agent/scripts/citation_coverage.py \\\n    --tex workspace/drafts/intro_relwork.tex \\\n    --pool workspace/citation_pool.json\n# exit 0 if ≥90% of pool is cited; exit 1 otherwise\n</code></pre>\n<p>If the gate fails, re-prompt the writing step explicitly listing the missing\nkeys and asking the agent to integrate them where contextually appropriate.</p>\n<h2>Critical rules from the prompt</h2>\n<p>These are excerpted from <code>references/prompt.md</code>. The host agent MUST honor\nthem on the writing call:</p>\n<ul>\n<li><strong>Cite ONLY from <code>collected_papers</code>.</strong> Never invent BibTeX keys, never\nreference papers not in the pool.</li>\n<li><strong>Cite at least <code>min_cite_paper_count</code> of them</strong> in Intro + Related Work\ncombined.</li>\n<li><strong>TIMELINE RULE</strong>: Do not treat any papers published after <code>cutoff_date</code>\nas prior baselines to beat. They are concurrent work only.</li>\n<li><strong>EVALUATION RULE</strong>: Do not claim our method beats / achieves SOTA over a\nspecific cited paper UNLESS that paper is explicitly evaluated against in\n<code>experimental_log.md</code>. Frame other recent papers strictly as concurrent,\northogonal, or conceptual work.</li>\n<li><strong>Output format</strong>: return the full code for the updated <code>template.tex</code>,\nwith the two empty sections (Introduction and Related Work) filled in,\nand <strong>all the other code</strong> (packages, styles, other sections) <strong>identical\nto the original</strong> template.tex.</li>\n<li>Wrap output in <code>```latex ... ```</code> fences.</li>\n<li>Do not change <code>\\usepackage[capitalize]{cleveref}</code> to <code>cleverref</code> (there is\nno <code>cleverref.sty</code>).</li>\n</ul>\n<h2>Degraded mode (no web search)</h2>\n<p>If your host has no web search tool, switch to degraded mode:</p>\n<ol>\n<li>If the user has placed a pre-built <code>workspace/inputs/refs.bib</code> in the\nworkspace, load it directly into <code>workspace/refs.bib</code> and skip Phase 1\nand Phase 2.</li>\n<li>Otherwise, emit <code>workspace/drafts/intro_relwork.tex</code> containing the\ntemplate with two TODO markers in the Intro and Related Work sections,\nand tell the user the pipeline cannot complete Step 3 without web search.</li>\n</ol>\n<h2>Resources</h2>\n<ul>\n<li><code>references/prompt.md</code> — verbatim Literature Review Agent prompt from App. F.1</li>\n<li><code>references/discovery-pipeline.md</code> — Phase 1 + Phase 2 explained in detail</li>\n<li><code>references/verification-rules.md</code> — Levenshtein cutoff, year alignment, dedup</li>\n<li><code>references/citation-density-rule.md</code> — the ≥90% integration rule</li>\n<li><code>references/s2-api-cookbook.md</code> — Semantic Scholar URLs, fields, rate limits</li>\n<li><code>references/cross-index-verification.md</code> — Crossref + OpenAlex corroboration, confidence tiers, arXiv false-positive note</li>\n<li><code>references/exa-search-cookbook.md</code> — optional Exa backend for Phase 1 (research-paper-focused web search)</li>\n<li><code>references/tavily-search-cookbook.md</code> — optional Tavily backend for Phase 1 (LLM-optimized web search)</li>\n<li><code>scripts/pre_dedup_candidates.py</code> — <strong>NEW</strong> dedup Phase 1 candidates before Phase 2 (saves 30-40% S2 quota)</li>\n<li><code>scripts/s2_cache.py</code> — <strong>NEW</strong> persistent S2 response cache (eliminates re-verification on re-runs)</li>\n<li><code>scripts/validate_pool.py</code> — <strong>NEW</strong> validate &amp; auto-fix citation_pool.json schema (authors format)</li>\n<li><code>scripts/sync_keys.py</code> — <strong>NEW</strong> sync cite keys in .tex with canonical bibtex_keys after bibtex_format.py</li>\n<li><code>scripts/levenshtein_match.py</code> — fuzzy title match (ratio &gt; 70)</li>\n<li><code>scripts/check_cutoff.py</code> — date cmp w/ month → day-1 default</li>\n<li><code>scripts/dedupe_by_id.py</code> — dedup verified pool by S2 paperId</li>\n<li><code>scripts/bibtex_format.py</code> — build refs.bib from JSON pool</li>\n<li><code>scripts/citation_coverage.py</code> — ≥90% citation coverage gate</li>\n<li><code>scripts/s2_search.py</code> — <strong>NEW</strong> Semantic Scholar title-search helper; reads <code>SEMANTIC_SCHOLAR_API_KEY</code> from env (optional — falls back to unauthenticated)</li>\n<li><code>scripts/exa_search.py</code> — optional Exa Phase 1 backend (reads <code>EXA_API_KEY</code> from env)</li>\n<li><code>scripts/tavily_search.py</code> — optional Tavily Phase 1 backend (reads <code>TAVILY_API_KEY</code> from env)</li>\n<li><code>scripts/crossref_client.py</code> — <strong>NEW</strong> Crossref title/DOI lookup for cross-index corroboration (no key; reads <code>CROSSREF_MAILTO</code> / <code>PAPER_ORCHESTRA_MAILTO</code>)</li>\n<li><code>scripts/openalex_client.py</code> — <strong>NEW</strong> OpenAlex title/DOI lookup for cross-index corroboration (no key; reads <code>OPENALEX_MAILTO</code> / <code>PAPER_ORCHESTRA_MAILTO</code>)</li>\n<li><code>scripts/cross_verify.py</code> — <strong>NEW</strong> cross-corroborate the S2-verified pool against Crossref + OpenAlex; flags hallucinated citations (WARN gate)</li>\n<li><code>skills/shared/research_brief_template.md</code> — <strong>NEW</strong> §2 schema; append after intro_relwork.tex is drafted</li>\n<li><code>skills/shared/section_rhetoric.md</code> — <strong>NEW</strong> Introduction logic chain + Related Work paragraph template</li>\n</ul>\n","files":[{"path":"references/citation-density-rule.md","sizeBytes":2881,"isText":true},{"path":"references/cross-index-verification.md","sizeBytes":4556,"isText":true},{"path":"references/discovery-pipeline.md","sizeBytes":4892,"isText":true},{"path":"references/exa-search-cookbook.md","sizeBytes":9331,"isText":true},{"path":"references/prompt.md","sizeBytes":3294,"isText":true},{"path":"references/s2-api-cookbook.md","sizeBytes":4230,"isText":true},{"path":"references/serply-search-cookbook.md","sizeBytes":9091,"isText":true},{"path":"references/tavily-search-cookbook.md","sizeBytes":10093,"isText":true},{"path":"references/verification-rules.md","sizeBytes":5482,"isText":true},{"path":"scripts/bibtex_format.py","sizeBytes":5325,"isText":true},{"path":"scripts/check_cutoff.py","sizeBytes":2275,"isText":true},{"path":"scripts/citation_coverage.py","sizeBytes":3171,"isText":true},{"path":"scripts/crossref_client.py","sizeBytes":6144,"isText":true},{"path":"scripts/cross_verify.py","sizeBytes":12559,"isText":true},{"path":"scripts/dedupe_by_id.py","sizeBytes":3217,"isText":true},{"path":"scripts/exa_search.py","sizeBytes":6028,"isText":true},{"path":"scripts/keenable_search.py","sizeBytes":5319,"isText":true},{"path":"scripts/levenshtein_match.py","sizeBytes":2199,"isText":true},{"path":"scripts/openalex_client.py","sizeBytes":6129,"isText":true},{"path":"scripts/pre_dedup_candidates.py","sizeBytes":5032,"isText":true},{"path":"scripts/s2_cache.py","sizeBytes":3570,"isText":true},{"path":"scripts/s2_search.py","sizeBytes":7190,"isText":true},{"path":"scripts/serply_search.py","sizeBytes":6755,"isText":true},{"path":"scripts/sync_keys.py","sizeBytes":4052,"isText":true},{"path":"scripts/tavily_search.py","sizeBytes":6236,"isText":true},{"path":"scripts/validate_pool.py","sizeBytes":4892,"isText":true},{"path":"SKILL.md","sizeBytes":22854,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"notes-only","suspicious":0,"notes":8,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-19T20:44:07.76324Z","sha256":"9ED9A8852BF3703793F5FFE1E81C92AB1F2FDC6DE240052D1AE7000DD53A7FAC","sizeBytes":71579},"review":null,"source":{"repositoryUrl":"https://github.com/Ar9av/PaperOrchestra","path":"skills/literature-review-agent","license":null,"commit":"6a319132932ee031e2d759b0f7f5075cf77bd1cf","subtreeSha":"12F69C78AB0C25FA4FF9012E879B5C497F740BF0FD8B904A34DA41B236DFC768","lastSyncedAt":"2026-11-19T20:42:18.032343Z"},"reviewedAt":"2026-11-19T20:44:18.297473Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/Ar9av/PaperOrchestra/tree/main/skills/literature-review-agent"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install ar9av-paperorchestra@llmmart"},{"target":"git","command":"git clone https://github.com/Ar9av/PaperOrchestra.git"}]}