A PDF reader with built-in AI chat, one-shot by Claude Code in 150 lines
Ask about the page you're reading and the chat already has its text. Claude Code built the Streamlit app in a single file, correctly, on the first attempt.
Done withClaude CodeSpotted· by HN user orange_puff· Oct 16, 2026
Result Page text added to every question automatically
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
They used Claude Code to get started on a PDF reader they wanted to build. The reader has a built-in LLM chat, and when you ask a question about the PDF you’re reading, the page text is automatically prepended to the question. It was built with Streamlit in about 150 lines and a single file.
How it went
They were impressed that Claude Code one-shot it, with nothing fancy or special needed beyond the original request.
Try it yourself with Claude Code
Describe a small, self-contained tool you want to build, such as a document reader with a built-in chat that uses the page you're viewing as context. Ask Claude Code to build it as a single-file app with a simple framework like Streamlit, and see how close it gets in one attempt before asking for any follow-up changes.
A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.
Markdown files should just open, so they asked Claude Code for a viewer. It opens instantly: faster, they say, than any other macOS app, and faster than Bitwarden's Chrome extension shows its fill menu.
Migrating a password reset flow, Claude Code and Opus produced code on par with a mid level developer. It needed close supervision throughout, and cost roughly 2 months of Pro subscription for about half a day's work.
A URL shortener side project ran on AWS. Claude Code wrote the GitHub Actions workflows for the move and fixed each failure as it came up. The writer reports zero downtime.
A 7-app monorepo needed an 8 GB memory setting and 25 seconds to typecheck. Claude Code made the changes for the move to oxlint, oxfmt and tsgo, and the team validated each step.
Turning plan files into Claude Code workflows took 5-6 hours each. A script that converts them deterministically, and flags what can move out of the LLM, cut that to 20-30 minutes at about 20% of the tokens.
An inherited app on Azure, an error, and a hunt that could easily take 1-2 days by hand. With CLI access to Azure and the repo, Claude Code ran the config and network checks and found the root cause in about 45 minutes.