The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs: address review — scope the local_only claim and name defining crates
Shanu75cb2c053d95
diff --git a/gitbooks/features/model-routing/local-and-byok-models.md b/gitbooks/features/model-routing/local-and-byok-models.mdindex e0bbf9ad07..13f250f1e0 100644--- a/gitbooks/features/model-routing/local-and-byok-models.md+++ b/gitbooks/features/model-routing/local-and-byok-models.md@@ -25,7 +25,12 @@ This page covers how to set up the two self-owned options and, importantly, **wh| **Inference data leaves your machine** | Yes, to the OpenHuman backend | Yes, to your chosen provider | No || **API keys to manage** | None | One per provider | None |-Speech is configured separately from the LLM workload fields: STT and TTS routing strings live under `voice_providers` (Settings → Voice), not under `*_provider`. There is no local STT engine: speech-to-text is either the hosted proxy or a third-party API you supply a key for, while TTS keeps a local option in Piper.+Speech is configured separately from the LLM workload fields, and the two halves are easy to confuse. `voice_providers` holds the third-party provider **definitions** (slug, endpoint, key, default model or voice); editing one does not change which provider is actually used. The **active route** is picked separately:++- STT reads `stt_provider`, falling back to the legacy `local_ai.stt_provider`, and finally to `voice_server.stt_engine` when neither names a provider.+- TTS reads `tts_provider`, falling back to the legacy `local_ai.tts_provider`, and finally to `cloud`.++There is no local STT engine: speech-to-text is either the hosted proxy or a third-party API you supply a key for, while TTS keeps a local option in Piper.That last row is deliberately about **inference data only**. Sign-in, managed integration OAuth, billing, and hosted features such as meeting agents still use the OpenHuman backend even when inference is entirely yours, so running local models is not by itself a guarantee that nothing leaves the machine. If you want a hard guarantee that no inference leaves the machine, use [Privacy Mode](../privacy-mode.md), which enforces the local-only path in the Rust core rather than relying on configuration alone.diff --git a/gitbooks/features/obsidian-wiki/retrieval.md b/gitbooks/features/obsidian-wiki/retrieval.mdindex 5762451eaf..29c4fb6f31 100644--- a/gitbooks/features/obsidian-wiki/retrieval.md+++ b/gitbooks/features/obsidian-wiki/retrieval.md@@ -34,7 +34,7 @@ The historical `query_global` and `query_topic` modes were **removed**: source t## The `RetrievalHit` shape-Every primitive emits `RetrievalHit` (`tree/retrieval/types.rs`, engine-owned under `vendor/tinymemory`). The important fields:+Every primitive emits `RetrievalHit`. Retrieval is engine-owned: `crates/openhuman-core/src/memory/tree/retrieval/` is only the JSON-RPC layer, and the primitives live under `vendor/tinymemory` in `crates/tinymemory-core/src/tree/retrieval/`, whose `types.rs` re-exports the shapes defined in the vendored `tinycortex` crate (`src/memory/retrieval/types.rs`). The important fields:- `node_id`, `node_kind` - `leaf` (a raw `mem_tree_chunks` row) or `summary` (a sealed `mem_tree_summaries` row). Consumers branch on this (e.g. "only `drill_down` on summaries").- `tree_id` / `tree_kind` / `tree_scope` / `level` - provenance, so a UI can say "from Slack #eng".@@ -72,7 +72,7 @@ It is a pure read-only SELF-JOIN over `mem_tree_entity_index` - no new tables, n## Deterministic walk (`walk` / `smart_walk`, no LLM)-`walk` and `smart_walk` both route through `fast_retrieve` (`tree/retrieval/fast.rs`, engine-owned under `vendor/tinymemory`), an **E2GraphRAG-style** algorithm that replaces the old agentic turn-by-turn loops. It never invokes an LLM. Routing is decided purely by query entities and co-occurrence-graph hop distance:+`walk` and `smart_walk` both route through `fast_retrieve` (`crates/tinymemory-core/src/tree/retrieval/fast.rs` under `vendor/tinymemory`), an **E2GraphRAG-style** algorithm that replaces the old agentic turn-by-turn loops. It never invokes an LLM. Routing is decided purely by query entities and co-occurrence-graph hop distance:1. Extract query entities `Eq` (spaCy NLP, regex fallback).2. `Eq` empty -> **global**: dense rerank over the summary tree.diff --git a/gitbooks/features/obsidian-wiki/scoring.md b/gitbooks/features/obsidian-wiki/scoring.mdindex 1b691088f7..e22527a83f 100644--- a/gitbooks/features/obsidian-wiki/scoring.md+++ b/gitbooks/features/obsidian-wiki/scoring.md@@ -37,7 +37,7 @@ Two goals, both in service of a dense, relevant tree:| `entity_density` | Distinct entities per token, capped at ~1 entity / 100 tokens. More entities → more substantive. | 1.0 || `llm_importance` | LLM-derived importance rating in `[0.0, 1.0]`. Off by default; weight `2.0` once an LLM extractor is wired in. | 0.0 |-`interaction` is deliberately the strongest signal - direct user engagement is the clearest proxy for "this mattered to a human." Weights live in `SignalWeights` (`score/signals/types.rs`); `combine` / `combine_cheap_only` in `score/signals/ops.rs` produce the normalised total (the cheap variant excludes the `llm_importance` term). Scoring is engine-owned: these files live under `vendor/tinymemory` (in the vendored `tinycortex` crate), not in `crates/openhuman-core`.+`interaction` is deliberately the strongest signal - direct user engagement is the clearest proxy for "this mattered to a human." Weights live in `SignalWeights` (`signals/types.rs`); `combine` / `combine_cheap_only` in `signals/ops.rs` produce the normalised total (the cheap variant excludes the `llm_importance` term). Scoring is engine-owned: both files are defined in the vendored `tinycortex` crate under `vendor/tinymemory` (`src/memory/score/signals/`) and re-exported through `tinymemory-core`, not in `crates/openhuman-core`.---@@ -80,7 +80,7 @@ Extraction enriches a chunk and feeds both the `entity_density` / `llm_importanc- **`RegexEntityExtractor`** - always on, deterministic, cheap. Once-compiled patterns pull mechanical identifiers: email, URL, handle (`@alice` and Discord-style `alice#1234`), and hashtag. UTF-8 safe (spans are char offsets).- **`LlmEntityExtractor`** - consulted only on borderline chunks. A single structured-JSON call asks the model for semantic NER (Person / Organization / Location / Topic / …) plus an importance rating, with span recovery and a soft warn-and-empty fallback on transport failure.-The two are chained by **`CompositeExtractor`**, which runs a sequence of extractors and tolerates per-extractor failures. Outputs are merged (`ExtractedEntities::merge` deduplicates entities and takes the max importance), then **canonicalised** by `score/resolver.rs` - lowercasing emails, stripping leading `@`/`#`, and assigning stable `canonical_id` strings - so the same person or topic resolves to one identity across chunks.+The two are chained by **`CompositeExtractor`**, which runs a sequence of extractors and tolerates per-extractor failures. Outputs are merged (`ExtractedEntities::merge` deduplicates entities and takes the max importance), then **canonicalised** by `resolver.rs` - defined in the vendored `tinycortex` crate at `src/memory/score/resolver.rs` and re-exported through `tinymemory-core`'s `tree/score/mod.rs` - lowercasing emails, stripping leading `@`/`#`, and assigning stable `canonical_id` strings - so the same person or topic resolves to one identity across chunks.---diff --git a/gitbooks/features/obsidian-wiki/sources.md b/gitbooks/features/obsidian-wiki/sources.mdindex 9899fc172f..01e1f1a596 100644--- a/gitbooks/features/obsidian-wiki/sources.md+++ b/gitbooks/features/obsidian-wiki/sources.md@@ -16,7 +16,7 @@ The domain only _defines connectors and reads from them_. The ingestion engine a## Source kinds-Every source is a single flat `MemorySourceEntry` (`sources/types.rs`, engine-owned under `vendor/tinymemory`) whose `kind` discriminator (the `SourceKind` enum) decides which fields are required. Validation is enforced at add/update time by `validate()`, not the type system. The kinds:+Every source is a single flat `MemorySourceEntry` (defined in `crates/tinymemory-sources/src/types.rs` under `vendor/tinymemory`, and re-exported through `tinymemory-core`'s `sources/types.rs`) whose `kind` discriminator (the `SourceKind` enum) decides which fields are required. Validation is enforced at add/update time by `validate()`, not the type system. The kinds:| Kind | `SourceKind` | What it ingests || ----------------- | -------------- | --------------------------------------------------------------------------------------------------- |diff --git a/gitbooks/features/privacy-mode.md b/gitbooks/features/privacy-mode.mdindex 68bc00d468..4df30c95ac 100644--- a/gitbooks/features/privacy-mode.md+++ b/gitbooks/features/privacy-mode.md@@ -1,8 +1,10 @@---description: >-One switch, enforced in the Rust core: local-only mode blocks every cloud- model call and every data-carrying egress, permitting only on-device runtimes- (Ollama, LM Studio, MLX, local OpenAI-compatible endpoints).+ model call, plus network tools, web search, integrations and cloud embeddings,+ permitting only on-device runtimes (Ollama, LM Studio, MLX, local+ OpenAI-compatible endpoints). Voice is the documented exception: there is no+ local speech-to-text engine, so transcription still leaves the device.icon: lock---@@ -12,11 +14,11 @@ Most assistants' privacy stories are a paragraph in a system prompt. OpenHuman'sThe `[privacy]` config block defines three modes:-| Mode | What it means |-| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| **`standard`** _(default)_ | Normal operation: managed cloud routing, BYO providers, and local models all available. |-| **`local_only`** | **No inference leaves the device.** Every external chat provider (the managed cloud, BYO cloud keys, even CLI delegates like Claude Code) is refused at construction time, and network tools, web search, integrations, and cloud embeddings are refused at their egress points. Only local runtimes pass: Ollama, LM Studio, MLX, and local OpenAI-compatible endpoints. |-| **`sensitive`** | Foundation for the upcoming PII-aware tier (detection, redaction, destination disclosure). Today it behaves like `standard`. |+| Mode | What it means |+| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| **`standard`** _(default)_ | Normal operation: managed cloud routing, BYO providers, and local models all available. |+| **`local_only`** | **No inference leaves the device.** Every external chat provider (the managed cloud, BYO cloud keys, even CLI delegates like Claude Code) is refused at construction time, and network tools, web search, integrations, and cloud embeddings are refused at their egress points. Only local runtimes pass: Ollama, LM Studio, MLX, and local OpenAI-compatible endpoints. Voice is the one exception, because no local STT engine exists. |+| **`sensitive`** | Foundation for the upcoming PII-aware tier (detection, redaction, destination disclosure). Today it behaves like `standard`. |## Why "enforced" matters@@ -36,7 +38,7 @@ Inference is no longer the only chokepoint. `local_only` is also enforced at theOne deliberate exemption: backend **control-plane** round-trips (sign-in, session, team, billing, and the integration connection-management and catalog reads) keep flowing, because blocking them breaks the app for no privacy gain. They carry auth tokens, ids, and routing metadata, never user content.-**Voice is not covered.** There is no local speech-to-text engine, so dictation and transcription still reach the hosted STT proxy even under `local_only`. If that matters for your threat model, leave voice off.+**Voice is not covered.** There is no local speech-to-text engine, so dictation and transcription still leave the device under `local_only` - to the hosted OpenHuman STT proxy, or to whichever third-party STT provider you configured. If that matters for your threat model, leave voice off.Privacy Mode governs **data egress**. It is orthogonal to the [autonomy tiers](privacy-and-security.md) (readonly / supervised / full), which govern what the agent may _do_. You can run a fully autonomous agent that never sends a byte of inference off-device.