Claude Code grep fails on PDFs and PPTX files
A recent post highlights a limitation in Claude Code's file search capabilities. The tool relies on grep to search local files rather than building a vector index or using RAG. While this approach keeps data current and allows flexible re-searching, it only works on plain text formats like Markdown, TXT, and CSV.
What you can do with it
AI at Work →Convert office files to text with markitdown
What you get You get searchable text files that Claude Code can read without errors.
Converts PDF, PowerPoint, Word, and Excel files to Markdown.
- Who for
- operations and founders
- Cost
- free
- Effort
- minutes
Use it for
- Prepare documents for AI search
- Convert office files to text
- Organize local knowledge bases
How to set it up · From the article
- Install with pip install 'markitdown[all]'
- Run markitdown on your files to create .md versions
- Use grep to verify the text is searchable
Watch out Complex layouts may lose structure during conversion
Key points from the news
- Claude Code uses grep for search, which cannot read compressed formats like PDF or PPTX.
- Microsoft's markitdown tool converts PDF, PPTX, DOCX, and XLSX files to searchable Markdown.
- Pre-converting documents to Markdown avoids repeated token costs and ensures search accuracy.
Binary formats such as PDF, PPTX, DOCX, and XLSX are compressed archives that grep cannot read directly, resulting in zero search hits. The author recommends converting these files to Markdown in advance using Microsoft's open-source tool, markitdown. This one-time conversion allows Claude Code to search the content effectively. The post notes that while converting on every search is possible, it wastes tokens and effort, making pre-conversion the more efficient workflow for local document management.
Users can verify the conversion by running grep on the new Markdown files to ensure keywords are found. The author suggests starting with a single folder of frequently used documents to test the process. This workflow aligns with a trend of using local file systems for AI agents, avoiding the complexity of external APIs or MCP connections for simple document retrieval.

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Agents & Tools
All →- Anthropic launches Claude Ship, Sheets, Whiteboards, and Meetings · 5 src
- Gamers use AI tools to clone GTA 6 after Xbox build leak · 2 src
- Anthropic's Claude Code expands beyond coding with web and remote features · 5 src
- Developer details remote Claude Code setup on Mac mini via Tailscale · 1 src
- Guide details how to migrate Claude Code settings and history to a new PC · 1 src
Comments
via GitHub Discussions