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

Tip: Create ~/Developer in Your Mac User Folder for AI Projects
If you're building with a Terminal chatbot, make yourself a Developer directory to store all your projects.
How to Get a Custom Alert When Your iPhone Reaches Full Charge »
MakeUseOF has put together a guide for using Shortcuts to set up Personal Automations that go off when your phone is fully charged.
Stephen Robles’ Top 5 iOS 18.4 Beta Features – Ambient Music, Recipes, and Shortcuts Actions! »
Stephen Robles has a preview of what’s new in iOS 18.4 – including the new Open Conversation action in Shortcuts.
How to Use ChatGPT With Siri on Your iPhone »
Nelson Aguilar from CNET shares how to take advantage of all that ChatGPT has to offer – using today's tech, like Shortcuts.