Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Scripting fm, Apple's Foundation Models CLI

The article introduces `fm`, a command-line tool for interacting with Apple's Foundation Models (presumably large language models). It explains how to use `fm` for scripting, including piping input, setting parameters like temperature and system prompts, and embedding calls in shell scripts for automation and tool use.

Background

- Apple's foundation models (fm) are the company's in-house AI/ML models, comparable to Google's Gemini or OpenAI's GPT family. They power features like on-device intelligence and more private, Apple-controlled inference. - The Foundation Models CLI (command-line interface) is a tool called `fm` that lets macOS developers and power users interact with these models directly from the terminal, rather than through a graphical app. - "Scripting fm" means using shell scripts or other automation tools to send prompts to Apple's models and process the output programmatically — a more developer-focused, repeatable way to use AI than a point-and-click chat interface. - Pete Goldsmith is a developer and blogger who writes about Apple platform engineering and Swift. This post, dated July 2, 2026 (a future date), is likely speculative or a fictional deep-dive based on announced capabilities.

Related stories