DigestAI news desk

Cut through the AI noise.

Agents & Tools4 min read

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.

1 source

What you can do with it

AI at Work →
markitdown by Microsoft

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

  1. Install with pip install 'markitdown[all]'
  2. Run markitdown on your files to create .md versions
  3. Use grep to verify the text is searchable

Watch out Complex layouts may lose structure during conversion

Try it ↗ What happened · note.com Get more customersRun the business

markitdown in the tool directory

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.

Full story from note.com · by Takahiro Sakashita · via Search: Claude CodeOpen source ↗
Topics · follow one to build your own front page

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.

Comments

via GitHub Discussions

More in Agents & Tools

All →

Related stories