Skip to content

Add comprehensive AI paper review with cached translation support#4

Merged
Axect merged 2 commits intomainfrom
dev
Feb 16, 2026
Merged

Add comprehensive AI paper review with cached translation support#4
Axect merged 2 commits intomainfrom
dev

Conversation

@Axect
Copy link
Owner

@Axect Axect commented Feb 16, 2026

Summary

Add a comprehensive AI-powered paper review system with map-reduce architecture. Reviews are generated section-by-section with incremental caching, so interrupted reviews resume automatically. Cached reviews load instantly for immediate translation and saving.

Changes

New Files

  • services/review_service.py — Map-reduce review engine (12-section pipeline with per-section AI prompts, caching, and translation)
  • cli/review.py — CLI command (axp review <arxiv_id>) with progress bar, --translate, --force, --status, --delete options
  • tui/screens/review_screen.py — TUI modal screen with [s] save, [t] translate, [esc] close
  • tests/test_review_service.py — Unit tests for review service

Modified Files

  • core/models.py — Add ReviewSectionType enum, ReviewSection, PaperReview dataclasses
  • core/database.py — Add paper_review_sections table and index
  • cli/main.py — Register review command
  • tui/workers.py — Add PaperReviewService to ServiceBridge
  • tui/screens/daily.py, search.py, paper_detail.py — Add Review [w] button and keybinding
  • tests/test_database.py — Update expected tables/indexes

Key Features

  • 12-section analysis: Executive summary, key contributions, section summaries, methodology, math formulations, figures, tables, experiments, strengths/weaknesses, related work, glossary, questions
  • Incremental caching: Each section cached individually in SQLite; partial reviews resume from last completed section
  • Instant cache loading: Cached reviews (even partial) display immediately without re-running full text extraction
  • Translation support: Translate reviews to configured language; save exports both original and translated files (_review.md + _review_ko.md)
  • Full text extraction: Integrates with arxiv-doc-builder for full paper analysis; falls back to abstract-only

Checklist

  • All tests pass (uv run pytest --cov)
  • Linting passes (uv run ruff check src/ tests/)
  • Formatting passes (uv run ruff format --check src/ tests/)

Axect and others added 2 commits February 17, 2026 00:53
Introduce map-reduce paper review system that generates 12-section
analysis (executive summary, methodology, math, experiments, etc.)
with per-section caching. Reviews load instantly from cache and
support translation with both original and translated files saved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace f-string escape sequences with variables for Python 3.11
- Add `from None` to exception re-raise (B904)
- Remove unused imports and fix import sorting in tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Axect Axect merged commit 785d828 into main Feb 16, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant