PSA: AI Terminal bots can query macOS Spotlight using mdfind

For anyone using Claude Code or OpenClaw, try querying Spotlight with Apple's own Terminal tool `mdfind.`

From Cheng Lou on X:

Public service announcement for all of you running Claude Code/Clawd: macOS’ Spotlight comes as a terminal tool, mdfind, that can fuzzy & exact query your entire computer in real time. Ask your bot to use it!

No RAG, no prescriptive structure, no external tool, super optimized

Super useful if you’re using something like OpenClaw (renamed from Clawd) for advanced AI access to your Mac.

Plus, you can run shortcuts from the command line as well.

View the original.

Posts You Might Like

Apple Tests ‘Apple GPT,’ Develops Generative AI Tools to Catch OpenAI »
According to Bloomberg, Apple is testing their own generative AI tool called "Ajax" internally – here's why I think it needs to take advantage of Shortcuts.
Fuoco lets you easily edit Portrait Mode photos »
If you've shot with Portrait Mode and want to change focus points—both in and out—Fuoco is the app for you.
Check out Apple “Shortcuts for Developers” Page
From the Apple Developer website – a starting point for developers looking to understand Shortcuts and get started with App Intents.
25 Apple Vision Pro Secrets & Hidden Features from Andru Edwards
Creator Andru Edwards has a great 13-minute video walking you through helpful tips for Apple Vision Pro – bet there’s at least one you didn’t know about.