Read-only mirror of github.com/ondeinference/ed.
Mirrored from https://github.com/ondeinference/ed.git
Synced Nov 23, 01:00 UTC
Slim the README to match our other repos
Cut the pitch essay, showcase list, API walkthrough and crate tables. Add badges, an install section and a "Use it your way" list that now covers ed-acp-tauri and ed-claude. The quick start no longer pins a version. The API detail lives in crates/ed-agent/README.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Seto Elkahfi committed
Nov 2, 2026 at 12:05 UTC
42751e60f777c814dfeaacd28a2fd337fe204d3c
1 file changed
+71
-71
README.md
+71
-71
@@ -1,52 +1,41 @@
1
-# Ed
2
-
3
-**Embed Ed.** Your app gets a brain. Your users keep their data.
4
-
5
-Ed is an agent you drop into an application. It loads an open-weights model,
6
-keeps the conversation, calls only the host tools you register, and hands back
7
-replies. The model runs on the user's device — there is no metered inference
8
-API and private context does not need to leave the device.
9
-
10
-## Why it exists
11
-
12
-Seven applications needed the same thing: load a model, know whether it's ready,
13
-keep a conversation, hand back a reply. Seven times somebody wrote it again. Two
14
-of them ended up byte-identical in three files.
15
-
16
-None of that code was interesting. It was the wiring between an inference engine
17
-that reports status by polling and a user interface that needs to be told —
18
-plus the flattening of `Result<InferenceResult, _>` into one payload a view can
19
-render either way. Ed is that layer, written once.
20
-
21
-It deliberately doesn't own sessions, persistence, model catalogues, or
22
-downloads. Those differ per application and stay yours.
23
-
24
-## Onde runs the model. Ed makes it a feature.
25
-
26
-[Onde](https://ondeinference.com) is the inference engine: weights, quantisation,
27
-Metal and CPU backends, tokens out. Ed is the part above it your users touch.
28
-
29
-## See it live
1
+<p align="center">
2
+ <img src="https://raw.githubusercontent.com/ondeinference/onde/refs/heads/main/assets/onde-inference-logo.svg" alt="Onde Inference" width="96">
3
+</p>
4
+
5
+<h1 align="center">Ed</h1>
6
+
7
+<p align="center">
8
+ Embed Ed. Your app gets a brain. Your users keep their data.
9
+</p>
10
+
11
+<p align="center">
12
+ <a href="https://crates.io/crates/ed-agent"><img src="https://img.shields.io/crates/v/ed-agent?style=flat-square&labelColor=17211D&color=235843&label=ed-agent" alt="ed-agent on crates.io"></a>
13
+ <a href="https://crates.io/crates/ed-acp"><img src="https://img.shields.io/crates/v/ed-acp?style=flat-square&labelColor=17211D&color=235843&label=ed-acp" alt="ed-acp on crates.io"></a>
14
+ <a href="https://github.com/ondeinference/ed-swift"><img src="https://img.shields.io/github/v/release/ondeinference/ed-swift?style=flat-square&labelColor=17211D&color=235843&label=Swift" alt="Swift"></a>
15
+ <a href="https://github.com/ondeinference/ed/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/ondeinference/ed/ci.yml?style=flat-square&labelColor=17211D&color=235843&label=CI" alt="CI"></a>
16
+ <a href="#license"><img src="https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-235843?style=flat-square&labelColor=17211D" alt="License"></a>
17
+</p>
18
+
19
+Ed is the agent layer above [Onde](https://ondeinference.com). It loads an
20
+open-weights model, keeps the conversation, calls only the host tools you
21
+register and hands back replies. The model runs on the user's device, so there
22
+is no metered inference API and private context stays put. The `ed-acp` crates
23
+build ACP agents (Onde Code, SplitFire Agent, siGit) on the same base.
24
+
25
+Ed doesn't own sessions, persistence, model catalogues or downloads. Those
26
+differ per application and stay yours.
27
+
28
+## Install
29
+
30
+```sh
31
+cargo add ed-agent # embedded chat
32
+cargo add ed-acp # ACP agent
33
+```
34
31
-- **[smbCloud MailX](https://smbcloudmail.com/en-us)** — siMail drafts replies,
32
- summarises long threads, and helps triage the inbox. The mail never leaves the
33
- machine to get read.
34
-- **[Siti AI](https://github.com/getsigit/siti)** — a private assistant for
35
- macOS, iOS, and Android, and the open reference app: its source is public, so
36
- it's the codebase to read for a full integration.
37
-- **[Pepak Basa Jawa Komplit](https://apps.apple.com/se/app/pepak-basa-jawa-komplit/id6752241812)**
38
- — Joko, a Javanese tutor who answers offline, which matters where the app is
39
- used.
40
-- **[Rumi Learn Persian](https://apps.apple.com/se/app/rumi-l%C3%A4r-dig-persiska/id6753832408)**
41
- — Rumi, a Persian tutor, same model, same device.
35
+For Swift, add the package from [`ondeinference/ed-swift`](https://github.com/ondeinference/ed-swift).
36
37
## Quick start
38
45
-```toml
46
-[dependencies]
47
-ed-agent = "1.2"
48
-```
49
-
39
```rust
40
use ed_agent::{Ed, GgufModelConfig};
41
@@ -57,39 +46,50 @@ let reply = ed.send("Summarise this thread.").await;
46
println!("{}", reply.reply.unwrap_or_default());
47
```
48
60
-Stream a reply with `Ed::stream` (plain chat) or let `Ed::run` forward deltas to
61
-`EventSink::text_delta`. `Ed::restore_history` loads a saved conversation,
62
-`Ed::generate` is a one-shot call that leaves the history alone, and
63
-`Ed::set_system_prompt` / `set_sampling` change the model's settings. These
64
-three need a loaded model. Persistence stays yours; implement `SessionStore`
65
-over whatever you already have.
49
+Streaming, history, tools and approvals are covered in [`crates/ed-agent`](crates/ed-agent).
50
67
-Construct with `Ed::with_agent` to provide the executor for registered tools
68
-and the approval handler for mutating tools. Read-only tools run directly;
69
-mutating tools must receive `AllowOnce` or `AllowForSession` first.
51
+## Use it your way
52
71
-## Crates
53
+- **In your app:** [`ed-agent`](crates/ed-agent), plus [`ed-agent-tauri`](crates/ed-agent-tauri) for Tauri and [`ed-agent-ffi`](crates/ed-agent-ffi) for Swift.
54
+- **As an ACP agent:** [`ed-acp`](crates/ed-acp) with a `Profile`, and [`ed-acp-tui`](crates/ed-acp-tui) for a terminal UI.
55
+- **Inside a Tauri app:** [`ed-acp-tauri`](crates/ed-acp-tauri) runs an ACP agent in process or an external stdio agent.
56
+- **With Claude:** [`ed-claude`](crates/ed-claude), a profile on the Anthropic API with the user's key.
57
+- **With MCP servers:** [`ed-mcp`](crates/ed-mcp). Onde accounts: [`ed-onde-account`](crates/ed-onde-account). Tests: [`ed-acp-testkit`](crates/ed-acp-testkit).
58
73
-| Crate | What it's for |
74
-| --- | --- |
75
-| [`ed-agent`](crates/ed-agent) | The agent. No framework dependency. |
76
-| [`ed-agent-ffi`](crates/ed-agent-ffi) | UniFFI bridge used by the Swift XCFramework. |
77
-| [`ed-agent-tauri`](crates/ed-agent-tauri) | Tauri bindings: a sink that emits to the webview, the commands it invokes, and `EdSessions` for apps with a chat history and webview-answered approvals. |
59
+## In production
60
79
-The Onde Agent Platform crates, for agents that editors drive over the Agent Client Protocol
80
-(ACP). SplitFire Agent is built on them.
61
+[smbCloud MailX](https://smbcloudmail.com/en-us), [Siti AI](https://github.com/getsigit/siti) (the open reference app),
62
+[Pepak Basa Jawa Komplit](https://apps.apple.com/se/app/pepak-basa-jawa-komplit/id6752241812) and
63
+[Rumi](https://apps.apple.com/se/app/rumi-l%C3%A4r-dig-persiska/id6753832408).
64
82
-| Crate | What it's for |
83
-| --- | --- |
84
-| [`ed-acp`](crates/ed-acp) | An ACP v1 server: sessions, auth, the turn loop on Onde Cloud, tool approval, workspace tools and MCP. A product supplies a `Profile`. |
85
-| [`ed-acp-tui`](crates/ed-acp-tui) | A terminal UI for any ACP agent. |
86
-| [`ed-mcp`](crates/ed-mcp) | MCP client glue over `rmcp`, the official Rust SDK: stdio and streamable HTTP servers, bearer tokens, tool namespacing, timeouts, progress and cancellation. With the `agent` feature, `McpExecutor` serves a toolset to Ed as tools. |
87
-| [`ed-onde-account`](crates/ed-onde-account) | Onde Inference account client: sign in, activate an app and get its Onde Cloud API key through ondeinference.com, with no Onde secrets in the host app. |
88
-| [`ed-acp-testkit`](crates/ed-acp-testkit) | Mock Onde Cloud endpoint, raw ACP client, the ACP registry probe and the ACP v1 conformance suite. |
65
+## Docs
66
90
-Free the intelligence.
67
+Each crate has its own README:
68
+[`ed-agent`](crates/ed-agent/README.md),
69
+[`ed-agent-tauri`](crates/ed-agent-tauri/README.md),
70
+[`ed-agent-ffi`](crates/ed-agent-ffi),
71
+[`ed-acp`](crates/ed-acp/README.md),
72
+[`ed-acp-tui`](crates/ed-acp-tui/README.md),
73
+[`ed-acp-tauri`](crates/ed-acp-tauri),
74
+[`ed-claude`](crates/ed-claude),
75
+[`ed-mcp`](crates/ed-mcp/README.md),
76
+[`ed-onde-account`](crates/ed-onde-account/README.md),
77
+[`ed-acp-testkit`](crates/ed-acp-testkit/README.md).
78
+
79
+## Contributing
80
+
81
+Open pull requests against `development`. Before you push:
82
+
83
+```sh
84
+cargo fmt --all -- --check && cargo clippy --locked --workspace --all-targets -- -D warnings && cargo test --locked --workspace
85
+```
86
+
87
+## License
88
+
89
+MIT or Apache-2.0, at your option. See [LICENSE-MIT](LICENSE-MIT) and [LICENSE-APACHE](LICENSE-APACHE).
90
91
## Copyright
92
93
+Free the intelligence.
94
+
95
© 2026 [Onde Inference](https://ondeinference.com).
95
-Licensed under MIT or Apache-2.0.