| name | paper-analyzer |
| description | Deep paper breakdown (does not write vault notes). Use when user says 'analyze this paper', 'break down this paper', 'is this paper any good', or sends an arXiv ID/PDF with no save intent. Do NOT use when user wants the paper saved — that's wiki-ingest. |
Paper Analyzer
Analyze research papers with intelligent extraction that never loads entire PDFs into context. Uses section-based extraction adapted to paper length, multi-agent analysis for complex papers, and quality scoring to ensure thorough coverage.
Key Innovation
Smart extraction adapts to paper structure. Even 100+ page papers stay within token budget because we extract only the critical sections (methods, results, experiments), never the full document.
Quick Start
When you receive a paper to analyze (arXiv ID, URL, or PDF path):
-
Acquire the paper if needed:
commonplace paper:fetch <arxiv-id-or-url>
-
Get paper info (minimal tokens):
commonplace paper:extract <pdf> info
-
Smart extraction (adapts to paper length):
commonplace paper:smart-extract <pdf> --save /tmp/<paper-slug>-extracted.txt
- <20 pages: Extracts everything except references
- 20-50 pages: Critical + high-importance sections only
- 50+ pages: Introduction + critical sections only
--save writes the extracted section text to a plain text file — reused later by the groundedness check in the reflection step (see paper-reflection-agent)
-
Enrich metadata from external sources:
commonplace paper:enrich --arxiv-id <id>
-
Extract figure/table captions for reference:
commonplace paper:figures <pdf>
-
Analyze citations to understand the paper's context:
commonplace paper:citations <pdf>
Analysis Workflow
Simple Papers (< 20 pages, single domain)
Use single-agent analysis:
- Run smart-extract with
--save (gets nearly everything)
- Read
references/analysis_structure.md for the analysis framework
- Write the analysis following the output template at
assets/output_template.md
- Run quality check
Complex Papers (20+ pages, multi-domain, dense methodology)
Use multi-agent analysis for deeper coverage:
- Run smart-extract with
--save
- Dispatch
paper-methodology-analyst and paper-results-interpreter agents in parallel
- Synthesize their outputs into a cohesive narrative
- Dispatch
paper-reflection-agent to review quality (scores 0-100) — pass it the --save file path so it can run the groundedness check
- If score < 80: extract additional sections identified as gaps, revise, re-score
- Write final analysis using the output template
Critical — agent context isolation: Subagents have completely isolated context windows. They cannot see the parent conversation, files you've read, or scripts you've run. Every agent prompt must be self-contained and include:
- The absolute PDF path (e.g.
/tmp/papers/foo.pdf)
- The extracted section text you want them to analyze (paste it inline)
- A clear task description (agents can run
commonplace commands directly — it's on PATH)
Agents do have full tool access (Bash, Read, etc.) — the problem is they won't know what to operate on unless you tell them explicitly in the prompt.
The reflection loop is what makes analyses thorough — the reflection agent catches missing details, unsupported claims, and gaps that a single pass would miss.
Multi-Paper Comparison
When comparing multiple papers:
- Read
references/comparison_framework.md
- Run comparison script:
commonplace paper:compare <analysis1.md> <analysis2.md>
- Synthesize cross-paper insights using the framework's dimensions
Quality Check
After writing an analysis, verify its completeness:
commonplace paper:quality <analysis.md> --min-score 60
The quality scorer checks for:
- Required sections (Core Contribution, Methodology, Results, etc.)
- Content depth (specific numbers, metrics, comparisons)
- Adequate length (target 2000+ words)
- No unfilled template placeholders
Target score: 80+ for production analyses. Scores below 60 indicate significant gaps.
Output Format
Analyses use the template at assets/output_template.md. Key sections:
- Metadata: Title, authors, publication, links, tags
- Core Contribution: 2-3 sentences on what's new and why it matters
- Background & Motivation: Problem, limitations, why this matters
- Methodology: Overview, key components, architecture, equations, experimental setup
- Results: Main findings with tables, ablation studies, surprising findings
- Critical Assessment: Strengths, weaknesses, methodological quality
- Key Takeaways: 5 main points
- Connections: Papers this builds on, related contemporary work
PDF Extraction Limitations
The TypeScript PDF extraction (pdfjs-dist) handles most academic papers well but has known issues with:
- Scanned PDFs: No OCR — text extraction will be empty or garbled
- Heavy math notation: Complex equations may not extract cleanly
- Multi-column layouts: Generally handled but some IEEE/ACM formats may have text ordering issues
If extracted text looks garbled or truncated, note this in the analysis and work with whatever is available. The metadata enrichment (arXiv abstract, Semantic Scholar) can fill gaps.
Reference Files
references/analysis_structure.md — Detailed guide on structuring paper analyses with examples
references/comparison_framework.md — Framework for multi-paper comparative analysis
assets/output_template.md — Markdown template for analysis output