{"version":1,"type":"story","url":"https://digestai.news/story/claude-code-grep-fails-on-pdfs-and-pptx-files","json":"https://digestai.news/story/claude-code-grep-fails-on-pdfs-and-pptx-files.json","markdown":"https://digestai.news/story/claude-code-grep-fails-on-pdfs-and-pptx-files.md","slug":"claude-code-grep-fails-on-pdfs-and-pptx-files","headline":"Claude Code grep fails on PDFs and PPTX files","summary":"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.\n\nBinary 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.\n\nUsers 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.","keyPoints":["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."],"whyItMatters":"This workaround improves the reliability of local AI agents for document retrieval. It helps users avoid empty search results when using Claude Code with common office file formats, optimizing token usage and workflow efficiency.","category":{"slug":"agents","name":"Agents & Tools","url":"https://digestai.news/category/agents"},"entities":{"companies":["Microsoft"],"models":["Claude Code"],"people":["Sakashi"]},"firstPublishedAt":"2026-11-28T07:35:00Z","updatedAt":"2026-11-28T07:35:00Z","sourceCount":1,"hasPrimarySource":false,"sources":[{"outlet":"note.com","title":"Claude Code's grep Can't Search Inside PPTX or PDF Files: Convert Them to MD in Advance","url":"https://note.com/micnote/n/n443df32e7d2c?hl=en","publishedAt":"2026-11-28T07:35:00Z","type":"press","primary":false,"lead":true}],"sourceNotes":null,"discussions":[],"thread":null,"cite":{"text":"Digest AI, \"Claude Code grep fails on PDFs and PPTX files\", 28 November 2026, https://digestai.news/story/claude-code-grep-fails-on-pdfs-and-pptx-files","publisher":"Digest AI","title":"Claude Code grep fails on PDFs and PPTX files","datePublished":"2026-11-28T07:35:00Z","url":"https://digestai.news/story/claude-code-grep-fails-on-pdfs-and-pptx-files"},"generatedBy":"Written by Digest AI's editorial model from the linked sources; the sources are the record.","license":"Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse"}