่ฟ”ๅ›ž็›ฎๅฝ•

claude-paper

alaliqing/claude-paper

๐Ÿ“– Cross-agent research paper toolkit for Claude Code, Codex, OpenCode, and DeepSeek Harnessโ€”quick summaries, deep study materials, code demos, and a local web viewer.

294

ๆ˜Ÿๆ ‡

24

Fork

MIT

่ฎธๅฏ่ฏ

2026-02-10

ๅˆ›ๅปบไบŽ

2026-08-14

ๆœ€่ฟ‘ๆŽจ้€

README

<div align="center">

Claude Paper

Transform research papers into comprehensive learning environments

English | ไธญๆ–‡

License: MIT Node Version Agent Skills

A research-paper learning plugin for Claude Code, Codex, OpenCode, and DeepSeek Harness. It preserves the same study workflow, generated materials, code demonstrations, and interactive web viewer across supported agents.

<table> <tr> <td align="center"> <img src="assets/screenshot1.png" alt="Library View" width="100%"/> <br/> <sub>Library View - Browse and search your paper collection</sub> </td> <td align="center"> <img src="assets/screenshot2.png" alt="Reading View" width="100%"/> <br/> <sub>Reading View - Study papers with rich formatting and math support</sub> </td> </tr> </table>

</div>

Features

  • Automatic PDF parsing - Extract title, authors, abstract, links, and complete paper text
  • Context-safe previews - Save complete text to paper.txt while keeping a 50k preview in metadata
  • Code repository detection - Automatically finds GitHub, arXiv, CodeOcean links
  • Quick paper summaries - Screen a paper with a concise 300โ€“500 word overview before a deep study
  • Adaptive learning materials - Generates README, summary, insights, Q&A based on paper complexity
  • Code demonstrations - Clean implementations with Jupyter notebooks and original code integration
  • Interactive web viewer - Nuxt.js interface with math equation support (KaTeX)
  • Intelligent assessment - Difficulty levels and paper type detection for adaptive content generation

Quick Start

Install all supported agents

Install Claude Code, Codex, OpenCode, and DeepSeek Harness with one commandโ€”no repository clone required:

npx --yes @zlzliqing/claude-paper@latest install

The default all target covers all four agents. For Claude Code, the installer uses the official Claude CLI to register the package-local marketplace and install or update the user-scoped plugin. For the other agents, it installs the shared Skills and OpenCode commands where applicable.

Install only selected agents when needed:

npx --yes @zlzliqing/claude-paper@latest install --target claude-code
npx --yes @zlzliqing/claude-paper@latest install --target codex
npx --yes @zlzliqing/claude-paper@latest install --target opencode
npx --yes @zlzliqing/claude-paper@latest install --target deepseek-harness

Upgrade an existing installation with the same formal distribution channel:

# Upgrade all supported agents
npx --yes @zlzliqing/claude-paper@latest upgrade

# Keep upgrading only the agents selected during installation
npx --yes @zlzliqing/claude-paper@latest upgrade --target codex,opencode

The default upgrade target is all. If the existing installation only targets selected agents, pass the same --target list during upgrade so no additional agent integrations are added.

The npm package copies its packaged plugin runtime to the user data directory, installs the generated compatibility Skills in ~/.agents/skills/ when a shared-Skills host is selected, and adds OpenCode commands when OpenCode is selected. It initializes ~/claude-papers/ only when the library does not already exist. Restart the selected agents after installation or upgrade.

Claude Code Marketplace-only alternative

If you only use Claude Code, you can still install directly from its marketplace:

/plugin marketplace add alaliqing/claude-paper
/plugin install claude-paper

Claude Paper currently runs through Agent Skills; no separate MCP server installation or configuration is required.

System Requirements

  • Node.js: 20.19.x, or 22.12.0 and higher
  • npm: Comes with Node.js
  • Agent host: Claude Code, Codex, OpenCode, or DeepSeek Harness
  • Claude Code CLI: Required when all or claude-code is selected
  • poppler-utils: For PDF image extraction (install via system package manager)
    • macOS: brew install poppler
    • Ubuntu/Debian: sudo apt-get install poppler-utils
    • Arch Linux: sudo pacman -S poppler

Usage

Quickly Summarize a Research Paper

Ask the selected agent for a quick summary, or use the host command directly:

# Claude Code
/claude-paper:summary /path/to/paper.pdf

# OpenCode
/claude-paper-summary /path/to/paper.pdf

In Codex or DeepSeek Harness, ask for a quick paper summary or explicitly load the claude-paper-summary Skill. This creates quick-summary.md while preserving the PDF, complete paper.txt, and metadata in the shared paper library.

Study a Research Paper

Simply ask the selected agent to study a paper:

Help me study the paper at ~/Downloads/attention-is-all-you-need.pdf

You can also use URLs:

# Direct PDF URL
Help me study the paper at https://arxiv.org/pdf/1706.03762.pdf

# arXiv abstract URL (automatically converted to PDF)
Help me study the paper at https://arxiv.org/abs/1706.03762

The agent will automatically trigger the study workflow and:

  1. Parse the PDF and extract metadata
  2. Analyze paper complexity and type
  3. Generate adaptive learning materials
  4. Create code demonstrations (if applicable)
  5. Extract and include original code (if available)
  6. Extract key figures and images
  7. Update the global search index
  8. Launch the web viewer automatically

Launch Web Viewer

# Claude Code
/claude-paper:webui

# OpenCode
/claude-paper-webui

In Codex or DeepSeek Harness, ask the agent to start the Claude Paper web viewer or explicitly load the claude-paper-webui Skill.

Opens the interactive web interface at http://localhost:5815 where you can:

  • Browse all studied papers
  • View generated materials with math rendering
  • Access code demonstrations and notebooks
  • Search through your paper library

Paper Storage Structure

Papers are organized in ~/claude-papers/papers/{paper-slug}/:

~/claude-papers/
โ”œโ”€โ”€ papers/
โ”‚   โ””โ”€โ”€ {paper-slug}/
โ”‚       โ”œโ”€โ”€ paper.pdf                     # Original PDF file
โ”‚       โ”œโ”€โ”€ paper.txt                     # Complete extracted text
โ”‚       โ”œโ”€โ”€ meta.json                     # Paper metadata (title, authors, etc.)
โ”‚       โ”œโ”€โ”€ quick-summary.md               # Concise screening summary (quick workflow)
โ”‚       โ”œโ”€โ”€ README.md                     # Quick navigation and overview
โ”‚       โ”œโ”€โ”€ summary.md                    # Detailed summary
โ”‚       โ”œโ”€โ”€ insights.md                   # Key insights (most important!)
โ”‚       โ”œโ”€โ”€ method.md                     # Methodology (if complex)
โ”‚       โ”œโ”€โ”€ mental-model.md              # Paper categorization (if needed)
โ”‚       โ”œโ”€โ”€ reflection.md                # Future directions (if needed)
โ”‚       โ”œโ”€โ”€ qa.md                         # Learning questions
โ”‚       โ”œโ”€โ”€ index.html                    # Interactive HTML explorer
โ”‚       โ”œโ”€โ”€ images/                       # Extracted figures and tables
โ”‚       โ”‚   โ”œโ”€โ”€ fig1.png
โ”‚       โ”‚   โ””โ”€โ”€ fig2.png
โ”‚       โ””โ”€โ”€ code/                         # Code demonstrations
โ”‚           โ”œโ”€โ”€ core-demo.py              # Clean reference implementation
โ”‚           โ””โ”€โ”€ concept-demo.ipynb        # Interactive Jupyter notebook
โ”‚
โ””โ”€โ”€ index.json                           # Global search index

Architecture

Plugin Structure

claude-paper/
โ”œโ”€โ”€ package.json                       # npm distribution manifest
โ”œโ”€โ”€ bin/
โ”‚   โ””โ”€โ”€ claude-paper.mjs              # npx install and upgrade entry point
โ”œโ”€โ”€ .claude-plugin/
โ”‚   โ””โ”€โ”€ marketplace.json              # Claude Code marketplace catalog
โ”œโ”€โ”€ .codex-plugin/
โ”‚   โ””โ”€โ”€ plugin.json                   # Codex plugin manifest
โ”œโ”€โ”€ .agents/skills/                   # OpenCode and DSH discovery entries
โ”œโ”€โ”€ .opencode/commands/               # OpenCode slash-command wrappers
โ”œโ”€โ”€ skills/                           # Codex packaged Skill adapters
โ”œโ”€โ”€ scripts/
โ”‚   โ”œโ”€โ”€ sync-agent-adapters.mjs       # Deterministic adapter generator
โ”‚   โ””โ”€โ”€ install-agent-adapters.mjs    # Cross-agent installer and upgrader
โ”œโ”€โ”€ plugin/
โ”‚   โ”œโ”€โ”€ .claude-plugin/
โ”‚   โ”‚   โ””โ”€โ”€ plugin.json              # Plugin manifest
โ”‚   โ”œโ”€โ”€ skills/
โ”‚   โ”‚   โ”œโ”€โ”€ study/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ SKILL.md             # Study workflow definition
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ scripts/
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ parse-pdf.js    # PDF parsing utility
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ extract-images.py  # Image extraction
โ”‚   โ”‚   โ”œโ”€โ”€ summary/
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ SKILL.md             # Quick summary workflow definition
โ”‚   โ”‚   โ””โ”€โ”€ webui/
โ”‚   โ”‚       โ””โ”€โ”€ SKILL.md             # Web viewer workflow definition
โ”‚   โ”œโ”€โ”€ commands/
โ”‚   โ”‚   โ””โ”€โ”€ webui.md                # /webui command
โ”‚   โ”œโ”€โ”€ hooks/
โ”‚   โ”‚   โ”œโ”€โ”€ hooks.json              # Session lifecycle hooks
โ”‚   โ”‚   โ””โ”€โ”€ check-install.sh        # Installation verification
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ””โ”€โ”€ web/                    # Nuxt.js web viewer
โ”‚   โ”‚       โ”œโ”€โ”€ components/         # Vue components
โ”‚   โ”‚       โ”œโ”€โ”€ composables/        # Vue composables
โ”‚   โ”‚       โ”œโ”€โ”€ server/             # API endpoints
โ”‚   โ”‚       โ””โ”€โ”€ package.json
โ”‚   โ””โ”€โ”€ package.json
โ””โ”€โ”€ README.md

Key Components

  1. Study Skill - Main workflow agent that orchestrates deep paper processing
  2. Summary Skill - Concise paper-screening workflow
  3. PDF Parser - Extracts text, metadata, and code links using pdf-parse
  4. Image Extractor - Python script for PDF figure extraction
  5. Web Viewer - Nuxt.js application with Nitro API server
  6. Hooks System - Claude Code lifecycle setup
  7. Agent Adapters - Generated discovery and invocation wrappers for Codex, OpenCode, and DeepSeek Harness

Development

Running Tests

# Verify cross-agent adapters and reviewed canonical Claude Skills
npm test

# Verify generated adapters are synchronized
npm run check:adapters

# Test PDF parsing
node plugin/skills/study/scripts/parse-pdf.js /path/to/paper.pdf

# Test web viewer
cd plugin/src/web
npm run dev

# Test full workflow
cd /path/to/claude-paper
claude --plugin-dir ./plugin
/claude-paper:study /path/to/paper.pdf

Verifying the npm Distribution

# Runs adapter checks and tests before producing the publishable tarball
npm pack --dry-run

Building for Production

# Build web viewer
cd plugin/src/web
npm run build

# The built viewer will be in .output/

Configuration

Environment Variables

No configuration required! The plugin uses sensible defaults:

  • Papers directory: ~/claude-papers/
  • Web viewer port: 5815
  • Metadata preview limit: 50,000 characters; complete extracted text remains in paper.txt

Advanced Customization

You can modify behavior by editing the skill file at: plugin/skills/study/SKILL.md


Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests if applicable
  5. Commit your changes (git commit -m 'add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.


Acknowledgments

ๆ›ดๅคšใ€Œ็ฝ‘้กตไธŽๆต่งˆๅ™จใ€ๆ’ไปถ

zhuzhiliao

ไฝœ่€… imsai-sh

็ซน็Ÿฅไบ† โ€”โ€” ไธ€่ฝฌๅฐฑๅ“‡ๅ“‡ๅซ็š„ไผ ็ปŸ็Žฉๅ…ท๏ผŒWeb ๆจกๆ‹Ÿ็‰ˆใ€‚้›ถไพ่ต–ๅ•ๆ–‡ไปถ๏ผŒ็œŸๅฎžๅฝ•้Ÿณ้‡‡ๆ ท๏ผŒ็งปๅŠจ็ซฏไผ˜ๅ…ˆใ€‚

็ฝ‘้กตไธŽๆต่งˆๅ™จHTML

openbiliclaw

ไฝœ่€… whiteguo233

ๆœฌๅœฐ็งๆœ‰ใ€ๅผ€ๆบ็š„่‡ช่ฟ›ๅŒ–่ทจๅนณๅฐ AI ๅ†…ๅฎนๅ‘็Žฐ Agent๏ผšๅ…ˆ็†่งฃไฝ ๏ผŒๅ†ไธปๅŠจไปŽ B็ซ™ใ€ๅฐ็บขไนฆใ€ๆŠ–้Ÿณใ€YouTubeใ€Xใ€็ŸฅไนŽใ€Redditใ€ๅพฎๅš็ญ‰ๅนณๅฐไธŽๅผ€ๆ”พ Web ๅฏปๆ‰พๅ†…ๅฎนใ€‚๏ผˆๆ”ฏๆŒ deepseek harness ๆ’ไปถ๏ผ‰ | Local-first open-source cross-platform AI content discovery agent: understands you, then proactively finds content across Bilibili, Xiaohongshu, Douyin, YouTube, X, Zhihu, Reddit, Weibo and the open web.๏ผˆsupport deepseek harness plugin๏ผ‰

็ฝ‘้กตไธŽๆต่งˆๅ™จPython

deepseek-harness-desktop

ไฝœ่€… anywhere-labs

ไธบ DeepSeek Harness ็”Ÿๆ€ๆ‰“้€ ็š„็ŽฐไปฃๅŒ–ๆกŒ้ข็ซฏไฝ“้ชŒ

็ฝ‘้กตไธŽๆต่งˆๅ™จTypeScript

abu-cowork

ไฝœ่€… pm-shawn

Open-source alternative to Claude Cowork โ€” a local-first AI agent desktop app ยท multi-model ยท self-evolving skills ยท privacy-first ยท multi-Harness roadmap ยท DeepSeek Harness integration in progress

็ฝ‘้กตไธŽๆต่งˆๅ™จTypeScript

DSH Plugins ๆ˜ฏ็‹ฌ็ซ‹็š„ DeepSeek Harness plugins ็คพๅŒบๅฏผ่ˆช็ซ™๏ผŒไธŽ DeepSeek ๅฎ˜ๆ–นๆ— ๅ…ณ๏ผŒไนŸไธไปฃ่กจๅฎ˜ๆ–น่ƒŒไนฆใ€‚็ฌฌไธ‰ๆ–นๆ’ไปถๆœช็ปๅฎ‰ๅ…จๅฎก่ฎก๏ผŒๅฎ‰่ฃ…ๅ‰่ฏทๅฎกๆŸฅๆบ็ ใ€‚