# Repository Briefing: awizemann/scarf
> Source: https://repoforai.com/repo/awizemann/scarf (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/awizemann/scarf
- **Official Docs / Website**: https://awizemann.github.io/scarf/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Swift
- **License**: MIT
- **Engineering Health**: A+ (88/100 · Maintenance 35/35 · Adoption 13/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v3.9.1 (2026-11-25) — https://github.com/awizemann/scarf/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: MCP, Self-Hosted
- **Momentum**: 928 ★ total (+0 24h / +6 7d) · 63 forks
- **Topics**: `ai-agent`, `gui`, `hermes`, `macos`, `macos-app`, `swift`, `swiftui`, `terminal`
- **When to Use**: Best for: Apple-platform users already running Hermes who want searchable sessions, project dashboards, and multi-host administration over direct SSH. Skip if: You need a cross-platform team console, a bundled agent or inference server, or a fully sandboxed Mac client; terminal-only Hermes is simpler for shell-first workflows.

## Overview
```text
### Architecture & Core Mechanics
Scarf is a native Hermes client, not an agent runtime. It uses feature-oriented MVVM, Swift 6 strict concurrency, and SwiftUI. A single Xcode project houses the Mac and iOS apps and the shared ScarfCore, ScarfDesign, and ScarfIOS packages. The client reads Hermes configuration, logs, memory, and skills directly. It opens local `state.db` strictly read-only to avoid WAL contention and routes management operations through the `hermes` CLI.

Each Mac window binds to one host. Remote windows use system SSH, read SQLite state from atomic snapshots, and start ACP chat with `ssh -T host -- hermes acp`. SwiftTerm provides a separate terminal path for `hermes chat`, Sparkle handles Mac updates, and ScarfGo uses Citadel for SSH. At the project level, Scarf watches `.scarf/dashboard.json` for changes and embeds HTML/CSS/JS mini-apps in a restricted `WKWebView`, with a rate-limited bridge whose permissions default to deny.

### Key Capabilities & Differentiators
Rich Chat streams Markdown, reasoning, tool calls, and permission prompts over ACP; the terminal path preserves the native Hermes interaction. Operators can search full session history, inspect tool calls, track token and per-model costs where supported, and export Markdown, HTML, Quarto, or JSONL with secret redaction. Separate panes handle memory, skills, cron, gateways, MCP servers, and configuration, with controls exposed according to each host's capabilities.

Project chats start in the project's working directory so Hermes can load its context files. Project dashboards and Fleet group activity across machines; Fleet can flag config drift and push model presets, boards, and cron settings. On capable hosts, the model pane discovers Ollama, LM Studio, vLLM, and llama.cpp locally or over SSH and surfaces context-window and vision warnings. The optional Hermes proxy exposes an OpenAI-compatible endpoint; Scarf itself does not serve models.

### Trade-offs & Limitations
Compared with the Hermes CLI, Scarf is most useful when troubleshooting spans sessions or hosts: searchable history, tool-call inspection, cost views, and project dashboards are easier to navigate than separate terminal sessions. Compared with a hosted agent console, direct SSH avoids operating a Scarf relay but leaves account provisioning, key management, and host reachability with the operator. Capability gating lets old and new Hermes hosts coexist, but it also means the same workflow may expose different controls on different servers.

Read-only SQLite access limits direct database writes; it does not make Scarf a read-only admin tool. CLI-backed actions can still change configuration, skills, boards, or schedules, and Fleet pushes can affect multiple hosts. The Mac build runs outside the app sandbox to read `~/.hermes/` and launch Hermes, so review the app's local access and the privileges of remote SSH accounts. No relay does not mean no outbound traffic: Mac usage analytics can be disabled, and optional GPT-Live sends voice and recent chat context directly to OpenAI.

### Hardware & Deployment Guide
Install the signed, notarized Mac build from GitHub Releases on macOS 15 or later; universal builds cover Intel and Apple Silicon, and Sparkle delivers updates. ScarfGo is distributed through the App Store and requires iOS 18.6 or later. Source builds need Xcode 16 or later; `scripts/local-build.sh` provides an unsigned Debug path. Each host needs Hermes v0.6.0 or later, and Mac remote connections require key-based SSH, `sqlite3` and `pgrep` on the remote PATH, and read access to `~/.hermes/`.

No Scarf backend is required. The Mac client reuses system SSH settings; ScarfGo instead generates an Ed25519 key on-device, and the operator authorizes its public key on the host. A green SSH connection with an empty dashboard warrants running the built-in host diagnostics. Release v3.8.0 stopped canceling chats on navigation, v3.9.0 added Hermes v0.23.0 support, and v3.9.1 extended that to v0.23.4 and fixed discovery of gateways started by Hermes v0.23.
```

## Key Capabilities
```text
- State access: The local SQLite database is opened read-only; remote reads use atomic snapshots, and management operations go through the Hermes CLI.
- Host isolation: Each Mac window binds to one server; system SSH supports existing ssh-agent, ProxyJump, and ControlMaster setups.
- Chat transport: Rich Chat uses ACP, while SwiftTerm runs `hermes chat`; v3.8.0 keeps chats running when users switch conversations.
- Project extension: `.scarf/dashboard.json` drives live widgets, while embedded mini-apps use a default-deny, rate-limited bridge.
- Compatibility: Host version and capability checks hide unavailable controls; v3.9.1 targets Hermes v0.23.4 and recognizes gateways started by Hermes v0.23.
- Mobile credentials: ScarfGo generates its Ed25519 key on-device and stores the private key in the iOS Keychain.
```

## Quick Start / Clone
```bash
xattr -d com.apple.quarantine /Applications/Scarf.app
```
