Litreview — Academic Literature Orientation
Portability: Works anywhere with outbound HTTPS — the default search lane is free keyless APIs (PubMed E-utilities + OpenAlex, no account, no key, no MCP). The Consensus MCP is an optional enhancement lane used only when connected in this session. Node.js with
docxpackage is required for document generation, and (in CLI)bash_tool. 任何具备外网 HTTPS 的执行环境均可运行(CLI 需 bash_tool)。
Produce a launching pad — not a finished literature review, but an orientation document that gives a researcher entering an unfamiliar field everything they need to start reading and searching with confidence. Think: what a generous colleague who knows the field would tell you over coffee.
Search Lanes
| Lane | When | How |
|---|---|---|
| Free lane (default) | Always available; no key, no plan, no MCP | PubMed E-utilities + OpenAlex via free_search.py or direct HTTPS (URL templates below) |
| Consensus lane (optional enhancement) | Only when Consensus MCP tools are available in this session | Run Consensus queries in addition to the free lane for its synthesized answer cards |
Lane check (one runtime check — replaces all tier detection): if the Consensus MCP tools are not available in this session, use the free lane — do not attempt tier detection, do not parse marketing copy, do not ask the user about their Consensus plan. If Consensus IS available, additionally run its searches and merge results (dedupe by DOI/title).
Free-lane URL templates (exact)
PubMed E-utilities (keyless; etiquette: ≤3 requests/second):
- Search → PMIDs:
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=<urlencoded-query>&retmode=json&retmax=20&sort=relevance
— read esearchresult.idlist (PMIDs) and esearchresult.count.
- PMIDs → metadata:
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=pubmed&id=<pmid1,pmid2,...>&retmode=json
— per result[<pmid>] read title, authors[].name, pubdate, fulljournalname, articleids[] (the idtype: "doi" entry).
- Era-gating: append
&datetype=pdat&mindate=2021&maxdate=3000(recent) or&maxdate=2015(historical). - Paper URL:
https://pubmed.ncbi.nlm.nih.gov/<PMID>/.
OpenAlex (keyless; add &mailto=<email> for the polite pool — faster + more reliable):
- Search:
https://api.openalex.org/works?search=<urlencoded-query>&per-page=20&mailto=<email>
— per results[] read display_name (title), publication_year, cited_by_count, doi, id (OpenAlex URL), authorships[].author.display_name, primary_location.source.display_name (venue).
- Era-gating:
&filter=from_publication_date:2021-01-01or&filter=to_publication_date:2015-12-31. - Review articles:
&filter=type:review.
OpenAlex's cited_by_count is the citation-count source for the cross-search intelligence layer (PubMed esummary returns no counts).
Agent Integrity Rules (Research-Pack Convention)
Inherited from the research-pack convention; kept verbatim in this repository (upstream cross-skill consistency audit no longer applies here).
- Source discipline. Only cite papers returned by THIS session's searches (free lane and/or Consensus). Training knowledge labeled
[Not from search — model knowledge]and excluded from cited count. Sparse results stated explicitly, never silently filled. - Counting discipline. Three numbers tracked: searches executed / unique papers received (deduplicated by DOI/title) / papers cited. Every cited paper has a retrievable URL from this session (PubMed, DOI, OpenAlex, or Consensus). Use
citation_tracker.pyfor deterministic counts. - Rate-limit etiquette. PubMed E-utilities: ≤3 requests/second keyless. OpenAlex: polite pool via
mailto. Consensus (if connected): 1 query/sec, sequential execution mandatory. Default discipline: sequential, 1 query/sec across all lanes. - Retry policy. On failure → wait 3s → retry once → log. After 3 consecutive failures: stop, alert user, share what was collected.
- Lane check. One runtime check at session start: Consensus MCP tools available or not. No tier detection, ever.