SkillAgentSearch skills...

Seldon

A tool for interacting with Apple's Foundation model LLM's on Apple Intelligence supported Macs.

Install / Use

/learn @singe/Seldon
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

seldon

<img width="889" height="343" alt="image" src="./assets/logo.png" />

seldon lets you interact with Apple's on-device LLM Foundation models on macOS. It's a minimal native macOS chat app built with SwiftUI as a Swift Package. It has a UI, terminal REPL and single shot command mode as well as supporting tool calling.

Save money and privacy by using a local model, and save resources by using a built-in LLM without requiring third party applications.

By @singe

Build

swift build -c release

Packaging

Build artifacts with make:

make binary        # dist/seldon-macos-<arch>
make bundle        # dist/seldon-macos-<arch>-with-tools.tar.gz
make app           # dist/Seldon-macos-<arch>.app.zip
make release-assets

GUI Mode

Run the .app or run the binary.

seldon

This launches a native window (Seldon Chat). <img width="940" height="962" alt="image" src="./assets/screenshot.png" />

CLI Mode

Interactive terminal mode:

seldon --cli

--cli streams the model output as it is generated.

Single-shot headless mode (for scripts):

seldon --prompt "What is psychohistory?"

--prompt prints a single final response (no streaming), then exits.

Optional sampling temperature for CLI modes (0.0 to 2.0):

seldon --cli --temperature 0.2
seldon --prompt "Tell me where to find the second foundation" --temperature=0.7

The same --temperature value is also applied to GUI mode if you launch seldon with that flag.

Tool Calling

Pass a tools YAML file to enable Foundation Models tool calling:

seldon --tools tools.example.yaml
seldon --cli --tools tools.example.yaml
seldon --prompt "search the web for hari seldon and describe the top result" --tools tools.example.yaml

Example config is included at tools.example.yaml with three basic tools:

  • web_search implemented by tools/web_search.py
  • fetch_url implemented by tools/fetch_url.py
  • calculator implemented by tools/calculator.py

System Prompt

Change the system prompt passed to the LLM with --system:

seldon --system "you are Hari Seldon"

This will work for the GUI, cli or prompt mode.

Foundation Models support

  • The app uses Apple's on-device Foundation Models API when available.
  • In this environment, LanguageModelSession is available on macOS 26.0+.
  • On older macOS versions (or SDKs without FoundationModels), the UI still runs and shows a clear unsupported message when you send a prompt.

Related Skills

View on GitHub
GitHub Stars23
CategoryCustomer
Updated9d ago
Forks2

Languages

Swift

Security Score

75/100

Audited on Mar 19, 2026

No findings