<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Quan Zhan</title>
    <description>The latest articles on DEV Community by Quan Zhan (@zhanquan2026).</description>
    <link>https://dev.to/zhanquan2026</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4178000%2Fb6589fea-85c5-4415-99f2-843e9fc59df8.png</url>
      <title>DEV Community: Quan Zhan</title>
      <link>https://dev.to/zhanquan2026</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zhanquan2026"/>
    <language>en</language>
    <item>
      <title>I turned my open-source paper-reading CLI into a desktop app — and gave it an honesty rule</title>
      <dc:creator>Quan Zhan</dc:creator>
      <pubDate>Fri, 23 Oct 2026 10:15:19 +0000</pubDate>
      <link>https://dev.to/zhanquan2026/i-turned-my-open-source-paper-reading-cli-into-a-desktop-app-and-gave-it-an-honesty-rule-14j1</link>
      <guid>https://dev.to/zhanquan2026/i-turned-my-open-source-paper-reading-cli-into-a-desktop-app-and-gave-it-an-honesty-rule-14j1</guid>
      <description>&lt;p&gt;Every week, my "to read" folder gained ten PDFs and lost none. The classic fixes didn't work for me: pasting papers into a chat window one at a time is slow, and the summaries I got back had a worse problem — they sounded confident about things the paper never said. Numbers that appeared from nowhere. Methods described in more detail than the paper itself gave.&lt;/p&gt;

&lt;p&gt;So I built the tool I actually wanted. It started as &lt;strong&gt;PaperLens&lt;/strong&gt;, a small open-source CLI (MIT) of about 130 lines of Python: extract text from a PDF with pypdf, feed it to a model with one strict, structured prompt, and get back a Markdown report with the same five sections every time — TL;DR, key contributions, method, key results, reproduction notes. Three backends: a local Ollama model, Groq, and an "echo" dry-run mode that prints the exact prompt instead of sending anything, so you can inspect what would leave your machine.&lt;/p&gt;

&lt;p&gt;The CLI worked. But it only worked for people comfortable in a terminal, one paper at a time, with no way to see a queue, preview a report, or export a whole batch into notes. That's the gap &lt;strong&gt;PaperLens Pro&lt;/strong&gt; fills — the same engine, grown into a desktop app.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed going from CLI to app
&lt;/h2&gt;

&lt;p&gt;The interface is Tkinter — unfashionable, but it's in the Python standard library, it's small, and it runs the same on Windows and macOS. On top of the unchanged engine I added:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;batch queue&lt;/strong&gt;: add PDFs one by one, by folder, or by drag and drop. Each paper gets a row and a status; one corrupt file fails on its own row instead of killing the batch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In-app preview&lt;/strong&gt; and &lt;strong&gt;one-click export&lt;/strong&gt; — one &lt;code&gt;.md&lt;/code&gt; per paper, or a single combined file for Obsidian, Notion, or a lab wiki.&lt;/li&gt;
&lt;li&gt;A fourth backend: any &lt;strong&gt;OpenAI-compatible endpoint&lt;/strong&gt; with your own key and base URL, next to Ollama (local, offline), Groq, and the echo dry-run. Keys live in a local settings file on your machine and are never written into reports or logs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two honest constraints carried over from the CLI. Long papers are excerpted to 12,000 characters to fit the model's context window, and the app tells you when that happens — the report covers the excerpt, not the full text. And scanned, image-only PDFs have no extractable text; they need OCR first, and the docs say so up front.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honesty rule
&lt;/h2&gt;

&lt;p&gt;The one design decision I care most about is in the prompt. It instructs the model: &lt;em&gt;if the paper's text doesn't cover something, write "unclear" — do not fill the gap with something plausible.&lt;/em&gt; A report that admits a gap is useful; a report that invents a BLEU score is worse than no report, because you'll cite it. The sample report shipped in the package was generated from &lt;em&gt;Attention Is All You Need&lt;/em&gt;, and you can see exactly where the "unclear" markers land. Whatever model you plug in, I'd rather you verify its output against a report structure that was designed to show its seams.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I ship source code instead of an .exe
&lt;/h2&gt;

&lt;p&gt;PaperLens Pro is delivered as a source package with double-click launchers, not a signed installer. Partly that's practical — I'm an individual developer and code-signing certificates are a real cost — but it turned into a feature I now prefer: you can read every line of what touches your unpublished manuscripts, tweak the prompt, and make it yours. The launchers create a private environment and install the two small dependencies (pypdf, tkinterdnd2) on first run, and the package includes notes for building your own standalone executable with PyInstaller if you want one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bundle, and a second tool
&lt;/h2&gt;

&lt;p&gt;Today I also packaged the rest of my researcher workflow around the app. The &lt;strong&gt;Researcher Stack Bundle&lt;/strong&gt; is PaperLens Pro at its regular $39, with three things I sell separately added free: the original PaperLens Toolkit ($9 — the CLI, tutorial, and prompt templates, for one-paper-at-a-time terminal reading), the AI Prompt Pack for Researchers ($19 — ten paper-reading workflows with worked examples, written for chat LLMs), and my LaTeX Templates Bundle ($12 — six compile-ready templates, since reading is only half the job). $79 of list price, $39 total, and the bundle page states the one overlap between the packs up front rather than hiding it.&lt;/p&gt;

&lt;p&gt;The other new tool is unrelated to papers: &lt;strong&gt;Claude Skills Manager&lt;/strong&gt; ($19), a small desktop window for managing Claude Code skills — installing packs from a zip or folder, flipping skills on and off, backups and restores. It asks before overwriting anything, and it validates archives before extracting a single byte (absolute paths, &lt;code&gt;..&lt;/code&gt; traversal and symlink entries are rejected outright). I built it because my own &lt;code&gt;~/.claude/skills&lt;/code&gt; folder had outgrown me managing it by hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Researcher Stack Bundle ($39): &lt;a href="https://zhanquan.gumroad.com/l/wbwkxc" rel="noopener noreferrer"&gt;https://zhanquan.gumroad.com/l/wbwkxc&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;PaperLens Pro on its own ($39): &lt;a href="https://zhanquan.gumroad.com/l/tyqszk" rel="noopener noreferrer"&gt;https://zhanquan.gumroad.com/l/tyqszk&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Claude Skills Manager ($19): &lt;a href="https://zhanquan.gumroad.com/l/kantvo" rel="noopener noreferrer"&gt;https://zhanquan.gumroad.com/l/kantvo&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;The original PaperLens engine is open source (MIT), if you'd rather start from the CLI and build up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you read papers in bulk, tell me where the reports break down for your field — the "unclear" rule came from my own frustration, and the next fix probably will too.&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>ai</category>
      <category>productivity</category>
    </item>
    <item>
      <title>PaperLens: Read Research Papers with an Open-Weight Model Running on Your Own Machine</title>
      <dc:creator>Quan Zhan</dc:creator>
      <pubDate>Mon, 19 Oct 2026 07:22:08 +0000</pubDate>
      <link>https://dev.to/zhanquan2026/paperlens-read-research-papers-with-an-open-weight-model-running-on-your-own-machine-487j</link>
      <guid>https://dev.to/zhanquan2026/paperlens-read-research-papers-with-an-open-weight-model-running-on-your-own-machine-487j</guid>
      <description>&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;I'm an undergraduate student, and I read a lot of papers — optimization algorithms, &lt;br&gt;
optics, whatever my coursework drags me into. The bottleneck isn't finding papers, &lt;br&gt;
it's &lt;em&gt;digesting&lt;/em&gt; them: a 12-page PDF takes me an evening, and half of that evening &lt;br&gt;
goes to re-reading the method section.&lt;/p&gt;

&lt;p&gt;Proprietary AI APIs would solve this, but they charge per token and — worse for a &lt;br&gt;
student — they'd see every unpublished manuscript or thesis draft I upload. I wanted &lt;br&gt;
a paper-reading assistant where the intelligence is free and the data never leaves &lt;br&gt;
my laptop.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Slow and Steady tie-in:&lt;/strong&gt; This week's theme celebrates building things that reward laziness (happy International Sloth Day, Oct 20). PaperLens is my sloth move: instead of spending an evening re-reading every method section myself, I let a free, local model do the slow, repetitive digesting — and I save my energy for the thinking that actually matters.&lt;/p&gt;
&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;PaperLens&lt;/strong&gt;: a ~130-line Python CLI. Point it at a PDF, get back a structured &lt;br&gt;
Markdown report:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;TL;DR&lt;/strong&gt; — problem + headline result in two sentences&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Key contributions&lt;/strong&gt; — bullet list&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Method&lt;/strong&gt; — explained in plain language&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Key results&lt;/strong&gt; — the numbers that matter&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reproduction notes&lt;/strong&gt; — what you'd need to reproduce it, with honest "unclear" 
flags instead of invented details
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt

&lt;span class="c"&gt;# Fully local: data never leaves your machine&lt;/span&gt;
ollama pull qwen3:8b
python paperlens.py paper.pdf &lt;span class="nt"&gt;-o&lt;/span&gt; report.md

&lt;span class="c"&gt;# Or Groq Cloud free tier (open-weight Llama, no credit card needed)&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;GROQ_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your_key_here
python paperlens.py paper.pdf &lt;span class="nt"&gt;--backend&lt;/span&gt; groq &lt;span class="nt"&gt;-o&lt;/span&gt; report.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;The pipeline is deliberately boring:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PDF → text (pypdf) → structured prompt → open-weight model → Markdown report
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Extract&lt;/strong&gt; — &lt;code&gt;pypdf&lt;/code&gt; pulls raw text from the PDF (&lt;code&gt;.txt&lt;/code&gt; also works, handy for 
testing).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Constrain&lt;/strong&gt; — long papers are truncated to 12,000 characters so they fit the 
context window; the user is told when this happens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt&lt;/strong&gt; — one fixed template demands exactly the five sections above and 
instructs the model to say "unclear" rather than hallucinate when text is missing. 
This is the whole "prompt engineering": narrow the job, forbid invention.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run&lt;/strong&gt; — three backends, all stdlib HTTP, no SDK needed:

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ollama&lt;/code&gt; (default): local server, zero cost, zero data egress&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;groq&lt;/code&gt;: free-tier cloud inference of open-weight models, OpenAI-compatible&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;echo&lt;/code&gt;: dry-run that prints the prompt — lets anyone verify the pipeline without 
a GPU or API key&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;p&gt;Python stdlib + &lt;code&gt;pypdf&lt;/code&gt;. That's it — one dependency. I wanted something a first-year &lt;br&gt;
student could read end to end in one sitting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why open matters here
&lt;/h2&gt;

&lt;p&gt;Three reasons, all practical:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cost.&lt;/strong&gt; Reading 100 papers through a proprietary API is a student-budget problem. 
A local 8B model or a free-tier endpoint makes it $0.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy.&lt;/strong&gt; Students and researchers routinely work with unpublished manuscripts. 
With the Ollama backend, the paper never leaves the device — there is no trust 
decision to make.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auditability.&lt;/strong&gt; The entire pipeline fits in one short file. If the summary looks 
wrong, you can read the prompt and see exactly what the model was asked. Try that 
with a black-box reading app.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  My agent session
&lt;/h2&gt;

&lt;p&gt;I built PaperLens with an AI coding agent: I described the pipeline I wanted, it &lt;br&gt;
drafted the code, and I directed the testing — including a real PDF-extraction test &lt;br&gt;
with a generated PDF and an end-to-end dry run. The agent wrote fast; I kept the &lt;br&gt;
design boring on purpose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/yniantongtian-oss/paperlens" rel="noopener noreferrer"&gt;https://github.com/yniantongtian-oss/paperlens&lt;/a&gt; — MIT licensed, PRs welcome.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prize categories:&lt;/strong&gt; submitted for the Hacktoberfest Open-Source AI Challenge: Week 3.&lt;/p&gt;

</description>
      <category>hf26challenge</category>
      <category>devchallenge</category>
      <category>hacktoberfest</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
