repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

README.md

Raw

Smith

A fast, extensible coding-agent TUI written in Rust and extended in Lua.

Status: specification. Product behavior is specified; production crates are still skeletal.

Product

Smith combines:

Smith is not a Pi fork and does not preserve Pi APIs or data formats.

Architecture

smith/          shared contracts
smith-core/     agent runtime and sessions
smith-ai/       providers and authentication
smith-tui/      terminal frontend
smith-harness/  orchestration and Lua SDK
smith-cli/      executable
xtask/          Cargo orchestration

The agent runtime depends on StreamFn, not concrete providers. Rust owns typed contracts and high-frequency primitives; Lua owns user-facing extensibility.

Build

Cargo is the only build interface.

cargo check
cargo test --workspace
cargo fmt --all --check
cargo run -p xtask -- check

Smith follows latest stable Rust on edition 2024.

Documentation

Services

Markdown source
File outline
# Smith

A fast, extensible coding-agent TUI written in Rust and extended in Lua.

> **Status: specification.** Product behavior is specified; production crates are still skeletal.

## Product

Smith combines:

- an interactive terminal UI;
- non-interactive evaluation;
- JSON-RPC over stdio for alternate frontends;
- provider-independent streaming;
- append-only branching sessions with deterministic replay;
- VCS operation-level undo and time travel;
- a sandboxed Lua plugin system used by built-ins and user extensions alike.

Smith is not a Pi fork and does not preserve Pi APIs or data formats.

## Architecture

```text
smith/          shared contracts
smith-core/     agent runtime and sessions
smith-ai/       providers and authentication
smith-tui/      terminal frontend
smith-harness/  orchestration and Lua SDK
smith-cli/      executable
xtask/          Cargo orchestration
```

The agent runtime depends on `StreamFn`, not concrete providers. Rust owns typed contracts and high-frequency primitives; Lua owns user-facing extensibility.

## Build

Cargo is the only build interface.

```sh
cargo check
cargo test --workspace
cargo fmt --all --check
cargo run -p xtask -- check
```

Smith follows latest stable Rust on edition 2024.

## Documentation

- [`docs/SPEC.md`](docs/SPEC.md) — complete product contract.
- [`docs/PROJECT-INVARIANTS.md`](docs/PROJECT-INVARIANTS.md) — development boundaries.
- [`docs/research/`](docs/research/) — retained evidence and ecosystem research.
- [`prototypes/`](prototypes/) — isolated validation programs.
- [`CLAUDE.md`](CLAUDE.md) — repository navigation and agent rules.

## Services

- Source: <https://vcs.bugabinga.net/smith>
- CI: <https://ci.bugabinga.net>