Bibliography Coverage
LIBRARY-FIRST RULE: ALWAYS check Paperpile (paperpile search-library) when assessing coverage.
Compare a project's .bib file against a Paperpile project/topic folder to identify gaps between the project bibliography and the reference library.
When to Use
- After a literature search, to see what % of the topic collection is cited
- Before submitting a paper, to catch references you forgot to cite
- When reviewing a Paperpile project/topic folder, to find items not yet in any project's
.bib - After a bibliography-quality check, as a complementary completeness check
When NOT to Use
- Finding new references — use an installed literature-discovery workflow or scholarly search
- Validating .bib quality (missing fields, DOI issues, preprint staleness) — use an installed bibliography validator
- Building a .bib from scratch — use
bib-parseor an installed literature workflow
Inputs
- Project
.bibfile — detected automatically (same logic asbib-validate: look forreferences.bib, then any.bibin the project) - Paperpile folder — resolved from:
- Explicit
--topic <slug>argument - Project's
CLAUDE.mdor Atlas topic frontmatter - Directory name if inside a research project
- If no collection can be resolved, report an error and suggest specifying
--topic
Workflow
1. Load Project Bibliography
Parse the .bib file to extract all entry keys and titles.
2. Load Paperpile Folder
- Call
paperpile get-foldersto find the relevant full topic path - Call
paperpile get-items-by-folder "<full path>"to get items in that folder - Extract item keys (citekey) and titles
Paperpile's labelsNamed and foldersNamed are distinct. Project/topic
collections use folders. If a leaf occurs under multiple parents, stop and
request or derive the full path; never silently choose one.
Graceful degradation: If the paperpile CLI is unavailable, skip with a warning — report .bib-only stats.
Live mode (main session; paperpile-mode.sh status): the folder listing above comes from the local export, which lags up to a day, so a paper filed or saved since then looks like "Cited but Not in Folder". For each item that would land in that bucket, confirm with the connector before reporting it as needing filing: look the items up with get_references_from_library by citekeys/dois (up to 100 per call), and for folder membership list the folder directly with get_references_from_library and folder_id (page with the returned cursor; find the ID with get_collections_from_library, and use IDs, never names, because several folders share a name). Label connector-confirmed items pending export. The folder listing route follows the tool schema and has not been exercised here; if it misbehaves, fall back to the export result with a caveat. A failed live call falls back to the export result with a one-line caveat. See