Skip to content

About

Learn to peer review with a calm, single-file web page: the paper on one side, a plain-language version on the other, scrolling together. Notes taken per section collect into a review draft that you can compare with a reference review. An AI coding agent builds the page from any PDF by following AGENTS.md. Includes a fictional example paper.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Paper Review Trainer

Turn a research paper into a single web page that helps you learn to peer review.

The paper on the left, the same section in plain words on the right, linked by a highlighter ribbon

The real paper sits on the left. On the right is the same paper in plain words, cut into short parts. Both sides scroll together, and a highlighter band shows which lines of the paper the current part is about. Under each part you can take notes. All notes are collected at the bottom of the page, ready to copy into a review. Below them is a reference review, folded away until you have written your own.

The page is designed to be calm and easy to follow for readers who find long, dense papers hard going, including readers with ADHD. Text size, light or dark mode and a focus mode can be set in the View menu.

Try it first

Download this repository (green Code button, then Download ZIP) and open example/example_review_trainer.html in your browser. It needs no installation and no internet.

The example paper (example/example_paper.pdf) is fictional. It was written for practice and contains deliberate flaws. Try to find them before you open the reference review at the bottom.

What you need for your own paper

A paper A PDF with selectable text. Scanned PDFs need OCR first.
An AI coding agent An assistant that works in a folder on your computer: it reads and writes files, runs terminal commands and can look at images. See the options below.
Python Version 3.10 or newer. uv is the easiest way to get it, and the agent can do the setup for you.
Disk space and time About 200 MB for the test browser. An agent needs roughly 15 to 45 minutes per paper.

The agent does the reading and writing: it explains each part of the paper in plain words, writes the reference review, has its own text fact-checked and runs 13 automatic tests on the finished page. The instructions it follows are in AGENTS.md. The Python tools in tool/ do the mechanical work.

Which agent?

Prices and free allowances change often. This is the state in October 2026; check the linked pages for the current terms.

Agent Cost Notes
Claude Code Paid Claude plan (Pro or Max) or API credits This project was built and tested with it.
GitHub Copilot (agent mode in VS Code, or Copilot CLI) Free for verified students through GitHub Education; a smaller free tier for everyone The student plan includes agent mode with a monthly allowance of AI credits. Probably the best free option if you are a student.
Antigravity or Gemini CLI (Google) Free tier with daily limits In June 2026 Google moved its free tier for individuals from Gemini CLI to Antigravity CLI. A free Gemini API key also works with Gemini CLI, with a daily request limit.
Codex CLI (OpenAI) Paid ChatGPT plan or API key At the time of writing the free ChatGPT plan does not include the CLI (pricing).
Open-source agents such as OpenCode, Cline or Aider, with a local model from Ollama or LM Studio Free Everything stays on your computer. You need a powerful machine, and the model must be able to read images. Small local models write noticeably weaker reviews and make more factual mistakes.
Your university Often free Many universities license one of these tools for students and staff. Ask your IT service or library.

Whichever you use, the reference review is only as good as the model behind it. Read it critically, and ideally have someone who knows the field look at it before you rely on it.

Privacy and reviewing rules

With a cloud-based agent, the paper's text is sent to the company that runs the model, and free tiers may use what you send to train their models. Practise on published papers, such as open-access articles or arXiv preprints. Don't give an agent a paper you are reviewing for a conference or journal unless the venue's policy allows it and the service keeps your data confidential. Many venues forbid it. A local model keeps everything on your computer.

Quick start

  1. Download or clone this repository and put your PDF into the papers/ folder.

  2. Start your agent in the repository folder.

  3. Ask it:

    Build a review trainer for papers/my_paper.pdf. Follow AGENTS.md.

    You can add who will read it and which venue's review form to use, for example: The reader is a first-year PhD student. Use the NeurIPS review form.

  4. When the agent is done, open projects/<name>/<name>_review_trainer.html in your browser.

Using the page

  • Read a part on the right. The highlighted lines on the left are the ones it covers. Click a grey line chip such as L212 to jump to that spot.
  • Each part ends with Reviewer's eye: a question that sends you to a specific table, figure or line. These questions lead to the points a careful reviewer would raise.
  • Write notes in the box under each part. Click Strength, Weakness, Question or Minor to tag a line. Select text in the paper to quote it into your notes with its line number.
  • At the bottom, your notes are collected by part or as a review draft. Copy them, or download them as a text file.
  • Then open the reference review and compare. Where you disagree with it, write down why. Those are the best points to discuss with your supervisor.

Notes are saved in your browser on that computer only. Copy or download them before you clear your browser data or switch computers.

For supervisors

  • Read the reference review before you give the page to a student. AI-written reviews can contain errors even after the fact-check.

  • To change any text, edit projects/<name>/content.html and rebuild:

    uv run python tool/build.py --work projects/<name>/work --content projects/<name>/content.html --out projects/<name>/<name>_review_trainer.html
    
  • Share the finished HTML file directly. It contains the paper, so don't put it on a public website unless the paper is public.

Without an agent

The tools work without any AI. You can write the plain-language parts and the review yourself, which is also a good exercise for a reading group. Start from templates/content_skeleton.html and look at example/content.html for a complete example. The format is described in AGENTS.md, Steps 3 to 5.

uv sync
uv run playwright install chromium
uv run python tool/extract.py papers/my_paper.pdf projects/my_paper/work
cp templates/content_skeleton.html projects/my_paper/content.html
# write projects/my_paper/content.html, then:
uv run python tool/build.py --work projects/my_paper/work --content projects/my_paper/content.html --out projects/my_paper/my_paper_review_trainer.html
uv run python tool/test_page.py projects/my_paper/my_paper_review_trainer.html projects/my_paper/shots

Without uv, create a virtual environment, run pip install -r requirements.txt and python -m playwright install chromium, and use python instead of uv run python.

What's in this repository

Path Contents
AGENTS.md Step-by-step instructions for the AI agent. CLAUDE.md and GEMINI.md point to it.
tool/extract.py Reads the PDF: page images, text and a citable label for every line. Uses the paper's printed line numbers if it has them, and numbers the lines itself if not (two-column layouts included).
tool/build.py Combines the paper and your content.html into one HTML file. It checks that the parts cover the paper without gaps and that every line citation exists.
tool/engine.html The page itself (layout, scrolling, notes).
tool/test_page.py 13 automatic checks in a real browser, plus screenshots.
tool/fonts/ Atkinson Hyperlegible Next, a font designed for legibility, with its licence.
templates/ The skeleton for content.html.
example/ The fictional example: paper, source, content and finished page.
papers/, projects/ Your PDFs and work. Git ignores both, so they stay on your computer.

Limitations

  • PDFs without a text layer have to be run through OCR first.
  • Very unusual layouts (three columns, text in sidebars) can confuse the line order. The highlight is then slightly off, but the page still works.
  • The build rejects em dashes in the written text. This is a deliberate style choice to keep the prose plain. Remove the check in tool/build.py if you don't want it.

Licence

Copyright (c) 2026 Philipp Wicke. The code, the instructions and the example are released under the MIT License.

The font in tool/fonts/ is Atkinson Hyperlegible Next by the Atkinson Hyperlegible Next Project Authors, under the SIL Open Font License 1.1 (tool/fonts/OFL.txt).

This project was developed with the help of Claude Code.

About

Learn to peer review with a calm, single-file web page: the paper on one side, a plain-language version on the other, scrolling together. Notes taken per section collect into a review draft that you can compare with a reference review. An AI coding agent builds the page from any PDF by following AGENTS.md. Includes a fictional example paper.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages