Inspect a broken book file and search it manually
When an indexer failed on an uploaded book, Claude used shell commands to identify the file type and search the text directly.
- What they did
- A commenter uploaded a book into Claude’s web chat, but the retrieval indexer crashed on it. Claude then ran Unix commands to figure out how the file was structured, and used grep to scan the book contents by hand.
- How it went
- That let Claude work around the broken indexer and still search the book. The commenter said the result was surprising. No details were given about how accurate the search was, what the format turned out to be, or how long it took.
- Tips
- If automated indexing fails, ask the agent to inspect the file’s structure first, then extract searchable text without changing the original. Keep the task read-only until you know the file is safe to process.
Try it yourself with Claude Code
I have a file at [path] that my normal tools cannot read reliably, and I need to search it for [topic or phrase]. First, inspect the file’s structure and identify the format using command-line tools. Then extract any readable text into a separate plain-text file and search that text for the target. Show the matching passages with their locations. Do not alter the original file. Before you do anything irreversible, pause and ask me to approve it.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Search papers and save notes to Zotero
A researcher used Claude to find papers, check a personal Zotero library, and write short literature notes back into Zotero or Obsidian.
Use search agents to map AI bot naming trends
A writer used a Claude swarm to gather thousands of bot names and compare patterns by gender, industry, and launch year.
Track competitor prices in a shared sheet
They set up an agent to check competitor sites on a schedule and log pricing and contact details into Google Sheets.
Automate daily arXiv paper tracking in Notion
They used n8n to pull fresh arXiv results, condense each paper with Gemini, and file the entries in Notion with email and Feishu alerts.
Summarize Reddit discussions into Notion pages
An n8n flow collects Reddit threads, lets Gemini pull out themes, and posts the findings into Notion.
Have Comet gather Reddit pain points into NotebookLM
A newsletter writer used Comet to pull Reddit threads about browser frustrations into NotebookLM and expand the set automatically.