internal/

directory
v0.3.0 Latest Latest
Warning

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

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

Directories

Path Synopsis
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.
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).
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).
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).
Package config loads and validates ~/.config/smif/config.toml (RFC 7.6).
Package config loads and validates ~/.config/smif/config.toml (RFC 7.6).
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.
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.
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).
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).
codex
Package codex is the Codex CLI provider (ADR-0019).
Package codex is the Codex CLI provider (ADR-0019).
copilot
Package copilot is the GitHub Copilot CLI provider (ADR-0019).
Package copilot is the GitHub Copilot CLI provider (ADR-0019).
droid
Package droid is the Factory Droid provider (ADR-0019).
Package droid is the Factory Droid provider (ADR-0019).
opencode
Package opencode is the OpenCode V2 provider (ADR-0019).
Package opencode is the OpenCode V2 provider (ADR-0019).
qwen
Package qwen is the Qwen Code provider (ADR-0019).
Package qwen is the Qwen Code provider (ADR-0019).
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).
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.
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).
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).
Package paths resolves Smif's config, data and socket locations.
Package paths resolves Smif's config, data and socket locations.
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).
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.
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).
claude
Package claude runs Claude Code workers headless (RFC 6.3).
Package claude runs Claude Code workers headless (RFC 6.3).
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).
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.
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.
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).
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).
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).
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.
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).

Jump to

Keyboard shortcuts

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