README Source History Refs Reviews Compare Notes Search Review guide State the case for Smith before anyone reads its spec (#130) 233aa0107ea817e61d897b3e1546007bd690c5c9
Oliver Jan Krylow <oliver@bugabinga.net > · 26 Jul 2026
SSH signature · not checked
Browse files Compare with HEAD
The repository had no first contact. A reader arriving at the root found a
navigation index written for agents and a 3000-line specification, neither of
which answers why the project should exist. The case itself was already
written — the owner's comment on #12 names the two costs that pushed Smith out
of pi, and those are the argument, so the "Why Smith" section is built from
them rather than from invented positioning.
Wrote it against what the spec actually claims, which meant dropping the more
attractive version twice: Smith answers the extension-sharing complaint with
one plugin API its own built-ins are written against, but not distribution, and
the Cargo-only rule governs the Rust workspace rather than every artifact.
Performance figures are labelled targets because the workspace is stubs.
One new file, `README.md`, at the repo root; SPEC coverage for it stays
unwritten pending owner approval.
Closes #12 Changed files (1) Diff layout Auto Unified Split
new file mode 100644+112 / −0 text lines
3 + A coding-agent TUI written in Rust, extended in Lua.5 + > **Status: specification.** Smith is being specified before it is built. The6 + > workspace crates are stubs; the product described below does not run yet.7 + > [`docs/SPEC.md`](docs/SPEC.md) is the canonical description of what it will8 + > be, and it is considerably further along than the code.12 + [pi](https://github.com/earendil-works/pi) is Smith's starting point and its13 + philosophical ancestor. It is well designed, and it hits a sweet spot: handle14 + the annoying LLM details, stay minimal, stay extensible. Smith exists because15 + two of its costs are structural rather than incidental — they follow from16 + implementation choices that cannot be patched out from the outside.18 + **The runtime.** Node and npm carry a dependency-security surface that has to19 + be re-audited continuously, and a performance floor a terminal UI keeps20 + bumping into. Smith is a single Rust binary. The targets it is specified21 + against are a stripped release under 20MB and `--help` under 100ms22 + (§13) — targets, not measurements, until there is something to measure.24 + **Sharing extensions.** This is the deeper one. pi's extension mechanism has25 + good hooks and a broadly stable API, but its audience is a single developer or26 + a small team. Extensions are hard to share across a community, because a27 + principled interface and an IPC channel are missing. The symptom is visible in28 + the ecosystem: dozens of separate subagent extensions, some of them29 + dependencies of other extensions that needed subagent functionality, with no30 + common contract to depend on. For a consumer of community extensions that is a31 + mess, and the rational response is to give up and maintain your own — which is32 + the outcome an extension system is supposed to prevent.34 + Smith's answer is to make the plugin API the *only* extension API. Everything35 + user-visible — tools, slash commands, themes, keybindings, prompts, layouts,36 + feature UI — is a Lua plugin, and the built-in tools are written against the37 + same interface third-party plugins get (§9). An interface its own author must38 + use is one that stays honest. Plugins declare identity and dependencies in a39 + manifest, run sandboxed, and talk over a typed, versioned SDK rather than40 + reaching into internals.42 + Two more things fall out of the design rather than being features bolted on:44 + - **Provider independence.** The agent loop depends on `StreamFn` — a request45 + in, a stream of provider events out — and on nothing else (§5.4). Providers46 + are adapted to that shape, so the loop has no idea which one it is talking48 + - **Sessions you can replay.** Conversation state is a tree, stored as CBOR,49 + and a recorded trace can be re-executed deterministically without touching a50 + live provider (§6.5, §6.6, §6.11).52 + **Who it is for.** People who live in a terminal, want their coding agent to53 + start instantly and stay out of the way, and expect to reshape it — and to be54 + able to use what someone else built without adopting their dependency tree.56 + **What Smith is not.** Not a pi fork and not pi-compatible: no shared data, no57 + shared formats, no code lineage. Not a GUI, not an IDE plugin, and not an58 + onboarding wizard — the first run has no setup flow, and a missing credential59 + is reported as an error that names the env var to set.63 + Interactive TUI, a non-interactive eval mode, and a JSON-RPC stdio mode, over64 + one agent loop (§1). Conversation history is a tree you can navigate, separate65 + from a VCS-backed timeline of what your files looked like — moving through the66 + conversation does not move your working copy, and vice versa. Mid-run67 + corrections queue as steers rather than forcing a cancel.72 + smith/ shared types, StreamFn, AgentTool, config, Lua runtime73 + smith-ai/ providers, auth, model registry, provider streams74 + smith-core/ agent loop, sessions, tools75 + smith-tui/ terminal UI76 + smith-harness/ wiring, plugin management, the Lua SDK78 + xtask/ custom build tasks81 + `docs/` holds project management rather than code: the specification, the82 + invariants every contributor and agent follows, research notes, and execution83 + plans. `prototypes/` holds disposable programs written to prove or disprove a84 + specific spec claim (§18).88 + Cargo is the only build system for the Rust workspace — there is no Makefile,89 + justfile, or script to learn, and anything cargo does not do natively lives in95 + cargo run -p xtask -- check 98 + Smith tracks latest stable Rust on edition 2024. A pinned nightly is used for99 + exactly one thing — the `cargo-pup` architecture gate — and never for product104 + - [`docs/SPEC.md`](docs/SPEC.md) — what to build. Canonical.105 + - [`docs/PROJECT-INVARIANTS.md`](docs/PROJECT-INVARIANTS.md) — the rules that106 + do not bend without explicit approval.107 + - [`docs/plans/AGENTIC-DEVELOPMENT.md`](docs/plans/AGENTIC-DEVELOPMENT.md) —108 + how Smith is developed, which is itself specified: the work is carried out109 + by agents against the spec, through the workflows in `.github/`.110 + - [`CLAUDE.md`](CLAUDE.md) — the navigation index.112 + Section marks above (§N) refer to `docs/SPEC.md`.