by runjake · 2mo ago · 0 comments
It already exists in macOS 27: fm(1)
It is an extremely powerful tool, but here are the basics:
# Ask the default on-device model
fm respond 'Explain this shell error in plain English: permission denied'
# Start a conversation
fm chat --instructions 'Let's talk about economics.'
# Use the larger Private Cloud Compute model
fm respond --model pcc 'Are zebras and horses related?'
# Pipe stuff to a model
echo 'What is Swift?' | fm respond pbpaste | fm respond --instructions 'Summarize in five bullets. Preserve dates, owners, and decisions.'$ alias siri=fm
$ siri 'Hello darkness my old friend...'