repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

docs: acp deferred in to-discuss

b7b7118b1503b2e20828540d19c7406ad430d118

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (5)

+9 / −3 text lines

Diff layout

.system/RULES.md

Modified

+2 / −0 text lines

6565Allowed deps:
67Library edges; tests may depend on any workspace crate.
6769- `smith`: none.
6870- `smith-ui`: only `smith`.
6971- `smith-core`, `smith-ai`: only `smith`.

Cargo.lock

Modified

+0 / −1 text lines

14381438version = "0.1.0"
14391439dependencies = [
14401440 "futures",
1441 "serde_json",
14421441 "smith",
14431442 "smith-ai",
14441443 "smith-core",

TO_DISCUSS.md

Modified

+1 / −0 text lines

1919- smith-web: SSE skeleton first (std-only possible), websocket when live input and multi-viewer arrive — websocket forces the async runtime decision. Sequence: formalize smith-rpc as first smith-ui consumer, then smith-web.
2020- Fleet / remote effects: p2p multiplexing of machines, tools, plugin instances across smith peers. Layer: beside the effect layer, not smith-ui. Trust tier for fleet peers is the spec-worthy core. Candidate transport: iroh. Trigger: multi-machine usage hurts.
2121- smith-mcp: MCP is a UI for agents and humans; smith-as-MCP-server consumes smith-ui so plugin features translate naturally into MCP (progress notifications, resources, tools). Frontend, not adapter mode. Trigger: external-harness integration wanted.
22- ACP (Agent Client Protocol): editor-facing agent protocol; technical shape and smith layer unclear to us both — likely a frontend sibling of smith-rpc and smith-mcp, but unverified. Deferred. Trigger: editor integration wanted.
2324## Rethinks

smith-harness/Cargo.toml

Modified

+0 / −1 text lines

1212smith-core = { path = "../smith-core", version = "0.1.0" }
1313smith-ai = { path = "../smith-ai", version = "0.1.0" }
1414futures = { workspace = true }
15serde_json = { workspace = true }

xtask/src/main.rs

Modified

+6 / −1 text lines

534534fn has_dependency(manifest: &str, crate_name: &str) -> bool {
535 // Library edges only: the manifest up to the dev-dependency table.
536 let library = manifest
537 .split("[dev-dependencies]")
538 .next()
539 .unwrap_or(manifest);
535540 let table = format!("[dependencies.{crate_name}]");
536541 let assignment = format!("{crate_name} =");
537 manifest.lines().any(|line| {
542 library.lines().any(|line| {
538543 let trimmed = line.trim_start();
539544 trimmed.starts_with(&table) || trimmed.starts_with(&assignment)
540545 })