logoalt Hacker News

runjaketoday at 3:59 PM2 repliesview on HN

> Can we start with Siri for the terminal?

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

Replies

runjaketoday at 5:25 PM

I realized my piping stuff example wasn't good enough. Here's a better one:

  pbpaste | fm respond --instructions 'Summarize in five bullets. Preserve dates, owners, and decisions.'