smif

module
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: MIT

README

smif

All your Claude Code sessions. One calm terminal.
See which one waits for you, what each one runs now, and answer any of them without hunting for the tab.

smif.dev · Install · Docs

Latest release macOS and Linux MIT licence

Install

curl -fsSL https://smif.dev/install.sh | sh
smif

smif finds your open sessions on its own, with no config. It needs Claude Code 2.1 and git, on macOS or Linux.

Other ways to install

The script puts smif in ~/.local/bin and checks its checksum (read it). Set SMIF_INSTALL_DIR for another folder.

go install github.com/appnice/smif/cmd/smif@latest   # Go 1.27.2 or newer

Binaries are on the release page. They are not notarized, so on macOS a file saved from a browser needs xattr -d com.apple.quarantine smif.

See every session

Row Meaning
! 3m … needs you Stopped on a permission prompt or a question
▶ 4m12s … Bash npm run build Working, and the step it runs now
● new An answer you have not read
○ Idle

tab jumps to the next session that needs you. o brings its tab to the front.

smif never answers a permission prompt for you.

Answer from one place

enter opens a chat with the selected session.

  • Idle: smif types your prompt into its tab. This works in Terminal.app, iTerm2, tmux and herdr.
  • Busy or waiting: the text waits in a queue and goes in when the session is idle. ctrl+f asks a read-only fork instead, which needs smif init.

A long paste stays whole, ctrl+v attaches an image, and smif warns you before it sends something that looks like a secret.

Key Does
tab Next session that needs you
enter Chat
o Go to the session's tab
p Send a saved prompt
n New session in the same folder
m Machines
y Copy the newest code block
Y Copy the newest answer
mouse drag Select inside one pane and copy
? All keys

Other machines

Two laptops joined by ssh. Sessions on the other device join the list on your laptop. One starts to wait and your laptop tells you. If you allowed writing, a line goes back over ssh. A permission prompt stays yours.

Press m in smif, or run smif remote add. Pick a machine from your network, ~/.ssh/config or Tailscale, or type an address, and smif sets it up. You type the password once.

You can read its sessions here, and a session that starts to wait notifies you. Writing to them is off until you turn it on for that machine with w. See docs/usage.md.

Stop watching the screen

smif sends a notification when a session starts to wait, or answers after a long turn.

With smif install, the status line of each session names the others:

! shop waits · ● docs, scraper answered

smif install also adds hooks, /smif, the MCP server and a background service. It backs up every file it changes.

Send messages between projects

Sessions can ask each other things, like mail between projects:

ask the web agent if v2.3 is live

The message waits on disk. Your rules decide what handles it, and your open sessions are not interrupted.

Message Handled by You get
A question with a known answer A script, no model An answer in about 25 ms
A crash or a code question A background claude -p with locked tools A summary, and a fix as a branch to merge
A note, like a finished build The digest One line in /smif
A decision for you You A notification

Set it up with smif install and smif init. See docs/messages.md.

Other agents

Claude Code and Codex are checked against a real agent. The rest come from reading their source, so expect faults.

Agent Support
Claude Code Everything
Codex See, type when idle, queue. Cannot see an approval prompt, so no needs you
Qwen Code, OpenCode, GitHub Copilot CLI, Factory Droid Read only, not verified
21 more, in a herdr pane Name, folder and state, not verified
Any other agent, with [harnesses.<name>] in the config Name and folder, see docs/agents.md

Mail also works between Claude Code and Codex, so one can ask the other to review a diff (docs/messages.md). Forks work with Claude Code only. See docs/agents.md.

How it works

Claude Code's session files, transcripts and hooks feed the local smifd daemon (SQLite, a Unix socket with mode 0600, one per user), which feeds the smif view, the status line inside every session, notifications and your terminal tabs.

smif reads the files Claude Code already writes, and one local daemon keeps the state. Nothing leaves your machine: no server, no cloud, no telemetry. The exceptions are the machines you add and a phone ping that you turn on with daemon.notify_url: it sends the agent or folder name and what happened, with no prompt or answer (docs/safety.md).

Uninstall

smif uninstall

This puts back every file byte for byte. Your data stays in ~/Library/Application Support/smif or ~/.local/share/smif until you delete it.

Docs

To work on smif, run make check, or make check-linux for Docker.

License

MIT

Directories

Path Synopsis
Command bench is Smif's benchmark (docs/rfc-benchmark.md, tiers S, R and T).
Command bench is Smif's benchmark (docs/rfc-benchmark.md, tiers S, R and T).
cmd
smif command
Command smif is the Smif CLI, daemon, MCP server, hooks and status line in one static binary (RFC 4.1).
Command smif is the Smif CLI, daemon, MCP server, hooks and status line in one static binary (RFC 4.1).
internal
api
Package api is Smif's wire protocol: newline-delimited JSON-RPC 2.0 over a Unix socket (RFC 5.4), plus the request and response types of every method in RFC 7.1.
Package api is Smif's wire protocol: newline-delimited JSON-RPC 2.0 over a Unix socket (RFC 5.4), plus the request and response types of every method in RFC 7.1.
audit
Package audit mirrors committed audit rows into the append-only daily JSONL log (RFC 8.1, 8.3).
Package audit mirrors committed audit rows into the append-only daily JSONL log (RFC 8.1, 8.3).
auth
Package auth manages agent tokens, run-scoped worker tokens and peer credential checks (RFC 5.4, 8.2).
Package auth manages agent tokens, run-scoped worker tokens and peer credential checks (RFC 5.4, 8.2).
blob
Package blob is content-addressed attachment storage under blobs/sha256/ab/cd<rest> (RFC 8.1).
Package blob is content-addressed attachment storage under blobs/sha256/ab/cd<rest> (RFC 8.1).
config
Package config loads and validates ~/.config/smif/config.toml (RFC 7.6).
Package config loads and validates ~/.config/smif/config.toml (RFC 7.6).
daemon
Package daemon wires Smif together: the socket API, the store, the router, the scheduler, the supervisor and the runners.
Package daemon wires Smif together: the socket API, the store, the router, the scheduler, the supervisor and the runners.
envelope
Package envelope defines the immutable message envelope (RFC 5.1) and the limits checked at ingress.
Package envelope defines the immutable message envelope (RFC 5.1) and the limits checked at ingress.
harness
Package harness is the layer between the daemon and each coding agent's own files (ADR-0019).
Package harness is the layer between the daemon and each coding agent's own files (ADR-0019).
harness/claude
Package claude is the Claude Code provider (ADR-0019): session files, transcripts, the file status, the fork route, the process name and the history of past sessions (history.go, ADR-0021).
Package claude is the Claude Code provider (ADR-0019): session files, transcripts, the file status, the fork route, the process name and the history of past sessions (history.go, ADR-0021).
harness/codex
Package codex is the Codex CLI provider (ADR-0019).
Package codex is the Codex CLI provider (ADR-0019).
harness/copilot
Package copilot is the GitHub Copilot CLI provider (ADR-0019).
Package copilot is the GitHub Copilot CLI provider (ADR-0019).
harness/droid
Package droid is the Factory Droid provider (ADR-0019).
Package droid is the Factory Droid provider (ADR-0019).
harness/opencode
Package opencode is the OpenCode V2 provider (ADR-0019).
Package opencode is the OpenCode V2 provider (ADR-0019).
harness/qwen
Package qwen is the Qwen Code provider (ADR-0019).
Package qwen is the Qwen Code provider (ADR-0019).
install
Package install adds and removes Smif's hooks, status line, slash command, MCP registration and service unit (RFC 7.3, 7.4, R-OPS-1).
Package install adds and removes Smif's hooks, status line, slash command, MCP registration and service unit (RFC 7.3, 7.4, R-OPS-1).
machines
Package machines adds another machine to the session list (ADR-0024): it finds candidates, and it runs the one setup both `smif remote add` and the Machines screen use.
Package machines adds another machine to the session list (ADR-0024): it finds candidates, and it runs the one setup both `smif remote add` and the Machines screen use.
mcpserver
Package mcpserver is the stdio MCP server interactive sessions and onward-enabled workers use to send mail (RFC 7.2).
Package mcpserver is the stdio MCP server interactive sessions and onward-enabled workers use to send mail (RFC 7.2).
notify
Package notify raises OS notifications for needs_human, dead letters and budget exhaustion (RFC 7.4).
Package notify raises OS notifications for needs_human, dead letters and budget exhaustion (RFC 7.4).
paths
Package paths resolves Smif's config, data and socket locations.
Package paths resolves Smif's config, data and socket locations.
presence
Package presence turns Claude Code hook and status-line payloads into presence updates (RFC 6.4, 7.4).
Package presence turns Claude Code hook and status-line payloads into presence updates (RFC 6.4, 7.4).
router
Package router decides, in code, how a message is handled (RFC 6.1, 6.6, R-ISO-3): allowlists first, then hop and thread guards, then the first matching rule.
Package router decides, in code, how a message is handled (RFC 6.1, 6.6, R-ISO-3): allowlists first, then hop and thread guards, then the first matching rule.
runner
Package runner defines the handler interface and the structured result every handler returns (RFC 6.3, 7.5, R-RUN-2).
Package runner defines the handler interface and the structured result every handler returns (RFC 6.3, 7.5, R-RUN-2).
runner/claude
Package claude runs Claude Code workers headless (RFC 6.3).
Package claude runs Claude Code workers headless (RFC 6.3).
runner/codex
Package codex runs a read-only mail worker on `codex exec` (ADR-0022).
Package codex runs a read-only mail worker on `codex exec` (ADR-0022).
runner/command
Package command runs deterministic command handlers (RFC 7.5): the envelope on stdin, one JSON result object on stdout, no LLM.
Package command runs deterministic command handlers (RFC 7.5): the envelope on stdin, one JSON result object on stdout, no LLM.
scheduler
Package scheduler orders runnable messages and enforces concurrency caps (RFC 6.5, R-CON-1): one worker per agent, a global worker cap, and a separate command-handler pool.
Package scheduler orders runnable messages and enforces concurrency caps (RFC 6.5, R-CON-1): one worker per agent, a global worker cap, and a separate command-handler pool.
statusline
Package statusline renders Smif's status-line segment and wraps an existing status-line command (RFC 7.4, R-HUM-1).
Package statusline renders Smif's status-line segment and wraps an existing status-line command (RFC 7.4, R-HUM-1).
store
Package store owns Smif's SQLite database: messages, runs, presence, cursors, budgets, blobs, threads and the audit table (RFC 8.1).
Package store owns Smif's SQLite database: messages, runs, presence, cursors, budgets, blobs, threads and the audit table (RFC 8.1).
supervisor
Package supervisor runs handler processes in their own process group so a timeout or cancel kills the whole tree with kill(-pgid) (RFC 4.2, 6.7).
Package supervisor runs handler processes in their own process group so a timeout or cancel kills the whole tree with kill(-pgid) (RFC 4.2, 6.7).
ui
Package ui is the human terminal UI (`smif ui`): a Bubble Tea program that polls the daemon socket with the human token and draws the overview.
Package ui is the human terminal UI (`smif ui`): a Bubble Tea program that polls the daemon socket with the human token and draws the overview.
workspace
Package workspace manages per-agent git worktrees and thread branches (RFC 6.4, D5).
Package workspace manages per-agent git worktrees and thread branches (RFC 6.4, D5).
site
demo/fakeclaude command
Command claude stands in for a Claude Code process in the site's recordings (director.py): it waits until it is killed, while its tty echoes whatever Smif types.
Command claude stands in for a Claude Code process in the site's recordings (director.py): it waits until it is killed, while its tty echoes whatever Smif types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL