Reverse-engineer a book file format to search it
After the RAG indexer crashed on an uploaded book, Claude used Unix commands to work out the file format and grep the book manually. ·
Done withClaude
- What they did
- The commenter uploaded a book into the project context on Claude's web chat. The RAG indexer crashed on the file. Claude then used a series of Unix commands to work out the book's file format, and searched the contents with grep by hand. The source doesn't say whether the commenter prompted any of these steps.
- How it went
- Claude got around the crashed indexer and could search the book anyway. The commenter found this surprising. The source gives no details on accuracy, the file format, or how long it took.
Try it yourself with Claude Code
I have a file at [path to file] that my tools can't read properly, and it is a [book/document, format if known]. Use command-line tools to inspect its structure, work out the format, and extract the readable text into a plain text file. Then search it for [topic or phrase] and show me the matching passages with their locations. Don't modify the original file.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: HN · Aug 31, 2026
Related use cases
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Flag risks in a 50-page contract before signing
The poster uploaded a 50-page contract and Claude flagged an auto-renewal near the end and a liability term they would have missed.
Build and install Android apps on a phone remotely with Claude Code
A dev runs Claude Code on a build VM, directs it from the phone Claude app to build Android apps, then installs them onto their phone over the network via adb.
Find connections across 100 non-fiction books
Claude Code browses a personal library with CLI tools and surfaces trails of related excerpts across books.
Research and draft a social science paper with Deep Research
Author used ChatGPT Deep Research and Agent Mode for research help and writing assistance while writing an academic social science paper.
Run literature reviews over a folder of papers
Researchers point Claude Code at 50+ papers to extract bibliographies, find core cited works, and write relevance lists against a theme as files.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.