papi
Original:🇺🇸 English
Translated
This skill should be used when the user wants to interact with their paper database — listing papers, searching content, showing paper details, adding papers, or exporting context. Matches queries like "search papers for X", "add this arXiv paper", "show equations from paper Y", "what papers do I have". Prefer CLI over MCP RAG tools for direct lookups.
7installs
Sourcehummat/paperpipe
Added on
NPX Install
npx skill4agent add hummat/paperpipe papiTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Paper Reference Assistant (CLI)
Entry point skill. Use CLI first; MCP RAG tools only when CLI is insufficient.
papiFor specialized workflows, invoke dedicated skills:
- — RAG queries requiring synthesis
/papi-ask - — verify code against paper
/papi-verify - — compare papers for decision
/papi-compare - — ground responses with citations
/papi-ground - — create project notes
/papi-curate
Setup
bash
papi path # DB location (default ~/.paperpipe/; override via PAPER_DB_PATH)
papi list # available papers
papi list | grep -i "keyword" # check if paper exists before searchingWhen NOT to Use MCP RAG
- Paper name known →
papi show <paper> -l summary - Exact term search →
papi search --rg "term" - Checking equations →
papi show <paper> -l eq - Only use RAG when above methods fail or semantic matching required
Decision Tree
| Question | Tool |
|---|---|
| "What does paper X say about Y?" | |
| "Does my code match the paper?" | |
| "Which paper mentions X?" | |
| "Compare approaches across papers" | |
| "Need citable quote with page number" | |
| "Cross-paper synthesis" | |
Search Commands
bash
papi search --rg "query" # literal text match (fast, no LLM) — NOT regex by default!
papi search --rg --regex "pattern" # regex patterns (add --regex explicitly)
papi search "query" # ranked BM25
papi search --hybrid "query" # ranked + exact boost
papi search "query" -p paper1,paper2 # limit search to specific papers
papi ask "question" # PaperQA2 RAG
papi ask "question" --backend leann # LEANN RAG
papi notes {name} # open/print implementation notesSearch Escalation (cheapest first)
- — exact text, fast, no LLM
papi search --rg "X" - — ranked BM25 (requires
papi search "X"first)papi index --backend search - — ranked + exact boost
papi search --hybrid "X" - — semantic search, returns file paths for follow-up
leann_search() - — formal citations (DOI, page numbers)
retrieve_chunks() - — full RAG synthesis
papi ask "..."
MCP Tool Selection (when papi CLI insufficient)
| Tool | Speed | Output | Best For |
|---|---|---|---|
| Fast | Snippets + file paths | Exploration, finding which paper to dig into |
| Slower | Chunks + formal citations | Verification, citing specific claims |
| Slowest | Synthesized answer | Cross-paper questions, "what does literature say" |
- Check available indexes: or
leann_list()list_pqa_indexes() - Embedding priority: Voyage AI → Google/Gemini → OpenAI → Ollama
Adding Papers
bash
papi add 2303.13476 # arXiv ID
papi add https://arxiv.org/abs/... # URL
papi add 2303.13476 1706.03762 "Attention Is All You Need" # multiple at once (mixed sources OK)
papi add --pdf /path/to.pdf # local PDF
papi add --pdf "https://..." # PDF from URL
papi add --from-file papers.bib # bulk importPer-Paper Files
Located at : , , , , , .
{db}/papers/{name}/equations.mdsummary.mdsource.texnotes.mdpaper.pdffigures/If agent can't read , export to repo:
Use to include extracted figures in export.
~/.paperpipe/papi export <papers...> --level equations --to ./paper-context/--figuresSee for full command reference and per-file details.
references/commands.md