Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(about-app): add catalog modules for conversation intelligence, data, tests, and workflows

Steven Enamakeld1fc4933a121
diff --git a/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs b/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs
index 221de59e2a..3c45a6ba5e 100644
--- a/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs
+++ b/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs
@@ -235,18 +235,88 @@ Capability {
description: "After the assistant replies, a small local/summarization-role model call proposes 2-3 short follow-up prompts the user might ask next, shown as tappable chips below the reply. Skipped for background delivery and parallel sub-agent turns; disabled entirely via `web_chat.suggestions_enabled = false` in config.toml.",
how_to: "Automatic after any main chat reply; tap a suggestion chip to send it, or ignore it",
status: CapabilityStatus::Beta,
- privacy: CODING_SESSION_TO_BACKEND,
+ privacy: RAW_TO_INFERENCE_PROVIDER,
},
Capability {
id: "intelligence.memory_activity_indicator",
name: "Memory Activity Indicator",
domain: "conversation",
category: CapabilityCategory::Intelligence,
- description: "Chat surfaces a brief indicator whenever the assistant stores or recalls a memory during the turn (`memory_store` / `memory_recall`). Never shows the stored content or the full recall query — only the category/namespace, or a short clipped preview of the query, plus a result count.",
+ description: "Chat surfaces a brief indicator whenever the assistant stores or recalls a memory during the turn (the `memory` tool's `learn` / `recall` / `fetch` / `forget` actions). Never shows the stored content or the full recall query — only the key/category/namespace, or a short clipped preview of the query, plus a result count.",
how_to: "Automatic whenever the assistant remembers or looks something up during a chat turn",
status: CapabilityStatus::Beta,
privacy: None,
},
+Capability {
+ id: "memory.engine",
+ name: "Memory Engine",
+ domain: "memory",
+ category: CapabilityCategory::Intelligence,
+ description: "Choose which engine stores and answers the assistant's memory: CortexDB hosted by TinyHumans (uses your signed-in session) or your own CortexDB (endpoint plus API key, kept in the OS keychain). With no usable engine memory is off: the memory tool is not registered, ingestion does nothing and memory RPCs answer MEMORY_OFF.",
+ how_to: "Connections > Memory (/connections?tab=brain&brain=engine). Programmatic: openhuman.memory_engines_list, memory_engine_get, memory_engine_set (RPC).",
+ status: CapabilityStatus::Beta,
+ privacy: MEMORY_TO_REMOTE_ENGINE,
+ },
+Capability {
+ id: "memory.ask",
+ name: "Ask Memory",
+ domain: "memory",
+ category: CapabilityCategory::Intelligence,
+ description: "Ask a question and get an answer synthesised by the memory engine with citations to the documents, conversations and learnings it came from, or switch to raw search to see the ranked hits (keyword, vector or hybrid, with metadata filters). The agent does the same through the `memory` tool's `recall` and `fetch` actions.",
+ how_to: "Connections > Memory > Ask (/connections?tab=brain&brain=ask), or ask in chat. Programmatic: openhuman.memory_recall and openhuman.memory_fetch (RPC).",
+ status: CapabilityStatus::Beta,
+ privacy: MEMORY_TO_REMOTE_ENGINE,
+ },
+Capability {
+ id: "memory.learnings",
+ name: "Learnings",
+ domain: "memory",
+ category: CapabilityCategory::Intelligence,
+ description: "Short durable facts, preferences and decisions the assistant keeps about you and your work. The agent stores one with the `memory` tool's `learn` action (tagged with the workspace, thread and agent it came from) and can `forget` it again; you can browse, add and delete them yourself.",
+ how_to: "Connections > Memory > Learnings (/connections?tab=brain&brain=learnings), or tell the assistant to remember something. Programmatic: openhuman.memory_learn, memory_forget, memory_items_list (RPC).",
+ status: CapabilityStatus::Beta,
+ privacy: MEMORY_TO_REMOTE_ENGINE,
+ },
+Capability {
+ id: "memory.conversations",
+ name: "Automatic Conversation Memory",
+ domain: "memory",
+ category: CapabilityCategory::Intelligence,
+ description: "Chats are stored as memory automatically: after a number of committed turns in a thread, or once the thread has been idle for a while, one conversation item is sent to the engine (thread, agent, workspace and tool names only; tool arguments are never stored). Can be turned off or tuned.",
+ how_to: "Connections > Memory > Conversations (/connections?tab=brain&brain=conversations). Programmatic: openhuman.memory_conversations_get and memory_conversations_set (RPC).",
+ status: CapabilityStatus::Beta,
+ privacy: MEMORY_TO_REMOTE_ENGINE,
+ },
+Capability {
+ id: "memory.documents",
+ name: "Document Sources",
+ domain: "memory",
+ category: CapabilityCategory::Intelligence,
+ description: "Sync documents into memory from a folder, a single file, a link, a GitHub repository, an RSS feed or a connected Composio toolkit. Each source syncs on demand and on its own schedule, and removing a source can optionally forget the items it brought in.",
+ how_to: "Connections > Memory > Documents (/connections?tab=brain&brain=documents). Programmatic: openhuman.memory_sources_list, memory_sources_add, memory_sources_remove, memory_sources_sync (RPC).",
+ status: CapabilityStatus::Beta,
+ privacy: MEMORY_TO_REMOTE_ENGINE,
+ },
+Capability {
+ id: "memory.context",
+ name: "Memory Context Brief",
+ domain: "memory",
+ category: CapabilityCategory::Intelligence,
+ description: "A periodically compiled brief of what memory knows (context.md in the workspace memory folder) is placed at the start of each new chat, inside <memory-context>, so the assistant begins informed. It refreshes on a schedule or on demand; resumed chats keep their original start. Interval and token budget are adjustable.",
+ how_to: "Connections > Memory > Context (/connections?tab=brain&brain=context). Programmatic: openhuman.memory_context_get, memory_context_refresh, memory_context_set (RPC).",
+ status: CapabilityStatus::Beta,
+ privacy: MEMORY_TO_REMOTE_ENGINE,
+ },
+Capability {
+ id: "memory.import",
+ name: "Import Previous Memory",
+ domain: "memory",
+ category: CapabilityCategory::Intelligence,
+ description: "Bring memory kept by an earlier OpenHuman version (documents, conversations and learnings) into the selected engine. The scan is local and read-only; the import uploads that data to the engine and only starts after explicit consent.",
+ how_to: "Connections > Memory > Engine (/connections?tab=brain&brain=engine). Programmatic: openhuman.memory_import_scan, memory_import_start (requires consent: true), memory_import_status (RPC).",
+ status: CapabilityStatus::Beta,
+ privacy: MEMORY_TO_REMOTE_ENGINE,
+ },
Capability {
id: "intelligence.context_breakdown",
name: "Context Window Breakdown",
@@ -426,7 +496,7 @@ Capability {
domain: "intelligence",
category: CapabilityCategory::Intelligence,
description: "Discover OpenHuman's MCP stdio tools and controller-backed tools from one local registry, including versions, routes, input/output schemas, allowed agents, and health state.",
- how_to: "Call openhuman.tool_registry_list over core JSON-RPC, or openhuman.tool_registry_get with a tool_id such as memory.search.",
+ how_to: "Call openhuman.tool_registry_list over core JSON-RPC, or openhuman.tool_registry_get with a tool_id such as memory.recall.",
status: CapabilityStatus::Beta,
privacy: LOCAL_RAW,
},
diff --git a/crates/openhuman-core/src/platform/about_app/catalog_data.rs b/crates/openhuman-core/src/platform/about_app/catalog_data.rs
index b0e094d9ba..e4f84c22ba 100644
--- a/crates/openhuman-core/src/platform/about_app/catalog_data.rs
+++ b/crates/openhuman-core/src/platform/about_app/catalog_data.rs
@@ -8,14 +8,14 @@ const LOCAL_RAW: Option<CapabilityPrivacy> = Some(CapabilityPrivacy {
destinations: &[],
});
-// A remote memory engine receives the memories the assistant stores and the
-// recall queries it runs. Local TinyCortex (the default) sends nothing.
+// Memory v2 always runs on a remote engine: it receives the documents, conversations
+// and learnings the assistant stores and the recall/fetch queries it runs.
const MEMORY_TO_REMOTE_ENGINE: Option<CapabilityPrivacy> = Some(CapabilityPrivacy {
leaves_device: true,
data_kind: PrivacyDataKind::Raw,
destinations: &[
"TinyHumans-hosted CortexDB (when selected)",
- "User-configured Supermemory, Mem0, Cognee, CortexDB or AgentMemory service (when selected)",
+ "User-configured CortexDB service (when selected)",
],
});
@@ -34,7 +34,7 @@ const DERIVED_TO_BACKEND: Option<CapabilityPrivacy> = Some(CapabilityPrivacy {
destinations: &["OpenHuman backend", "TinyHumans Neocortex"],
});
-const CODING_SESSION_TO_BACKEND: Option<CapabilityPrivacy> = Some(CapabilityPrivacy {
+const RAW_TO_INFERENCE_PROVIDER: Option<CapabilityPrivacy> = Some(CapabilityPrivacy {
leaves_device: true,
data_kind: PrivacyDataKind::Raw,
destinations: &["Configured OpenHuman inference provider"],
@@ -45,7 +45,7 @@ const CODING_SESSION_TO_BACKEND: Option<CapabilityPrivacy> = Some(CapabilityPriv
// managed cloud default or a user-selected remote model). The raw file content
// therefore leaves the device whenever a remote provider is active —
// `LOCAL_RAW` (leaves_device: false) under-reported this. Same shape as
-// `CODING_SESSION_TO_BACKEND`: raw payload to the configured provider.
+// `RAW_TO_INFERENCE_PROVIDER`: raw payload to the configured provider.
const AGENTS_MD_TO_INFERENCE_PROVIDER: Option<CapabilityPrivacy> = Some(CapabilityPrivacy {
leaves_device: true,
data_kind: PrivacyDataKind::Raw,
@@ -98,22 +98,6 @@ const GITHUB_RELEASES_METADATA: Option<CapabilityPrivacy> = Some(CapabilityPriva
destinations: &["GitHub Releases"],
});
-// GitHub repo memory source: the reader queries a repository's activity
-// (commits / issues / PRs) directly against the GitHub API — via the `gh`
-// CLI when available, otherwise the public REST API — not through the
-// OpenHuman backend. The *outbound* payload is metadata (which repo, which
-// activity, pagination) plus whatever auth `gh` carries; the fetched content
-// is archived locally under the vault and only its embeddings travel onward
-// (covered by the embedding-provider capability). Mirrors the
-// `GITHUB_RELEASES_METADATA` shape — third-party GitHub host, metadata-class
-// outbound — so the Privacy surface reflects that the request leaves the
-// device to a destination distinct from the managed backend.
-const GITHUB_REPO_SOURCE: Option<CapabilityPrivacy> = Some(CapabilityPrivacy {
- leaves_device: true,
- data_kind: PrivacyDataKind::Metadata,
- destinations: &["GitHub API (api.github.com)"],
-});
-
// Persona Pack fetches the published mascot manifest directly from GitHub raw
// content, then downloads the selected runtime asset from the manifest's
// declared file URL. The request is metadata-class (manifest and asset URLs),
diff --git a/crates/openhuman-core/src/platform/about_app/catalog_tests.rs b/crates/openhuman-core/src/platform/about_app/catalog_tests.rs
index a124ebbd7b..24d3590f86 100644
--- a/crates/openhuman-core/src/platform/about_app/catalog_tests.rs
+++ b/crates/openhuman-core/src/platform/about_app/catalog_tests.rs
@@ -205,9 +205,13 @@ fn catalog_includes_additional_user_facing_surfaces() {
"intelligence.agent_library",
"intelligence.embedding_provider_config",
"intelligence.embedding_provider_test",
- "intelligence.github_repo_memory_source",
- "intelligence.memory_source_sync_controls",
- "intelligence.coding_session_memory",
+ "memory.engine",
+ "memory.ask",
+ "memory.learnings",
+ "memory.conversations",
+ "memory.documents",
+ "memory.context",
+ "memory.import",
"conversation.subagent_mascots",
] {
assert!(
@@ -237,25 +241,9 @@ fn screen_intelligence_is_not_a_catalog_category_or_capability() {
);
}
-#[test]
-fn coding_session_memory_discloses_inference_boundary() {
- let capability = lookup("intelligence.coding_session_memory")
- .expect("coding-session memory capability registered");
- assert_eq!(capability.domain, "memory_sources");
- assert!(capability.description.contains("Codex"));
- assert!(capability.description.contains("Claude Code"));
- let privacy = capability.privacy.expect("privacy disclosure");
- assert!(privacy.leaves_device);
- assert_eq!(privacy.data_kind, PrivacyDataKind::Raw);
- assert_eq!(
- privacy.destinations,
- &["Configured OpenHuman inference provider"]
- );
-}
-
/// The two embeddings entries surface a Settings-side configuration panel.
/// They share the same domain (`embeddings`) but are listed under the
-/// Intelligence umbrella so they sit next to memory_tree_retrieval / mcp_server
+/// Intelligence umbrella so they sit next to the memory entries / mcp_server
/// in the in-app feature catalog. Pinning the relationships here defends
/// against an inadvertent recategorisation that would split them across the
/// UI's tab grouping.
@@ -363,89 +351,6 @@ fn embedding_provider_test_destinations_cover_all_providers() {
);
}
-/// The GitHub repo memory source (#3047) is a user-facing capability — it
-/// surfaces a browsable repo-grouped raw archive plus priority/entity
-/// enrichment that the agent should be able to describe when asked "can you
-/// read my GitHub repo?". Pin its catalog shape: it lives under the
-/// `memory_sources` Rust domain but the Intelligence UI umbrella (same split
-/// the embeddings entries use — Rust domain on `domain`, UI grouping on
-/// `category`), and its `how_to` points at the real Settings breadcrumb +
-/// RPC, not a stale path.
-#[test]
-fn github_repo_memory_source_is_registered_with_expected_shape() {
- let cap =
- lookup("intelligence.github_repo_memory_source").expect("github memory source registered");
-
- assert_eq!(
- cap.domain, "memory_sources",
- "domain should reflect the Rust `memory_sources` domain"
- );
- assert_eq!(cap.category, CapabilityCategory::Intelligence);
- assert_eq!(cap.status, CapabilityStatus::Beta);
-
- // how_to must point at the live Settings surface + the programmatic RPC,
- // so a future nav rename can't silently strand the breadcrumb.
- assert!(
- cap.how_to.contains("Memory Sources"),
- "how_to must name the Memory Sources surface, got: {}",
- cap.how_to
- );
- assert!(
- cap.how_to.contains("memory_sources_add"),
- "how_to must cite the programmatic RPC, got: {}",
- cap.how_to
- );
-
- // The description has to make clear this reads project *activity*, not
- // source code — that distinction is the whole point of the GitHub memory
- // source and keeps users from expecting code search.
- let desc = cap.description.to_lowercase();
- assert!(
- desc.contains("commits") && desc.contains("issues"),
- "description must enumerate the synced item types, got: {}",
- cap.description
- );
- assert!(
- desc.contains("not source code"),
- "description must clarify it ingests activity, not source code, got: {}",
- cap.description
- );
-}
-
-/// Privacy: the GitHub memory source reaches out to the GitHub API directly
-/// (via `gh` / public REST), so it must report `leaves_device = true` with
-/// GitHub as the destination — not the managed OpenHuman backend. Treating it
-/// as local-only or attributing it to the backend would under-report where the
-/// sync request actually goes (the exact under-reporting failure mode #2656's
-/// review flagged for the embeddings probe).
-#[test]
-fn github_repo_memory_source_reports_github_destination() {
- let cap =
- lookup("intelligence.github_repo_memory_source").expect("github memory source registered");
- let privacy = cap
- .privacy
- .expect("github memory source is privacy-annotated");
-
- assert!(
- privacy.leaves_device,
- "syncing a repo issues an outbound request to GitHub — must report leaves_device"
- );
-
- let haystack = privacy.destinations.join(" | ").to_lowercase();
- assert!(
- haystack.contains("github"),
- "destinations must name GitHub so the Privacy surface attributes the \
- request to the right third-party host, got: {:?}",
- privacy.destinations
- );
- assert!(
- !haystack.contains("openhuman backend"),
- "the reader talks to GitHub directly, not the managed backend — listing \
- the backend would mis-attribute the destination: {:?}",
- privacy.destinations
- );
-}
-
/// #4884: capability `how_to` breadcrumbs are user-facing and searchable, and
/// the agent paraphrases them. Guard against the stale navigation paths that
/// sent users to menus that do not exist (`Settings > Connections`,
@@ -484,10 +389,6 @@ fn catalog_how_to_uses_connections_nav_not_legacy_settings_paths() {
how_to("channels.connect_platform"),
"Connections > Channels"
);
- assert_eq!(
- how_to("intelligence.slack_memory_ingest"),
- "Connections > OAuth > Slack"
- );
assert_eq!(how_to("workflows.connect_google"), "Connections > OAuth");
}
@@ -585,3 +486,57 @@ fn local_ai_domain_is_populated_so_the_breadcrumb_check_is_not_vacuous() {
breadcrumb check exists for, found {count}"
);
}
+
+/// Memory v2 capabilities: one per Brain chip, each pointing at the live
+/// `/connections?tab=brain&brain=<chip>` surface and citing real RPC names.
+#[test]
+fn memory_v2_capabilities_cite_live_surface_and_rpcs() {
+ for (id, chip, rpc) in [
+ ("memory.engine", "engine", "memory_engine_set"),
+ ("memory.ask", "ask", "memory_recall"),
+ ("memory.learnings", "learnings", "memory_learn"),
+ ("memory.conversations", "conversations", "memory_conversations_set"),
+ ("memory.documents", "documents", "memory_sources_add"),
+ ("memory.context", "context", "memory_context_refresh"),
+ ] {
+ let cap = lookup(id).unwrap_or_else(|| panic!("missing `{id}`"));
+ assert!(
+ cap.how_to.contains(&format!("brain={chip}")),
+ "{id} how_to must name its chip, got: {}",
+ cap.how_to
+ );
+ assert!(
+ cap.how_to.contains(rpc),
+ "{id} how_to must cite `{rpc}`, got: {}",
+ cap.how_to
+ );
+ }
+ assert!(lookup("memory.import").expect("import").how_to.contains("memory_import_start"));
+}
+
+/// The v1 memory surface is gone; no catalog entry may advertise it.
+#[test]
+fn v1_memory_capabilities_are_not_advertised() {
+ for id in [
+ "intelligence.long_term_goals",
+ "intelligence.memory_tree_retrieval",
+ "intelligence.memory_pipeline_doctor",
+ "intelligence.agentmemory_backend",
+ "intelligence.tool_scoped_memory",
+ "intelligence.memory_sync_schedule",
+ "intelligence.memory_source_sync_controls",
+ "intelligence.coding_session_memory",
+ "intelligence.github_repo_memory_source",
+ "intelligence.slack_memory_ingest",
+ "intelligence.clickup_memory_ingest",
+ "intelligence.remember_preferences",
+ ] {
+ assert!(lookup(id).is_none(), "removed capability `{id}` is back");
+ }
+ for c in all_capabilities() {
+ let text = format!("{} {} {}", c.name, c.description, c.how_to);
+ for dead in ["memory_tree", "MEMORY.md", "PROFILE.md", "memory_goals", "TinyCortex"] {
+ assert!(!text.contains(dead), "`{}` still mentions `{dead}`", c.id);
+ }
+ }
+}
diff --git a/crates/openhuman-core/src/platform/about_app/catalog_workflows_automation.rs b/crates/openhuman-core/src/platform/about_app/catalog_workflows_automation.rs
index f54287e33e..5fa1ecc077 100644
--- a/crates/openhuman-core/src/platform/about_app/catalog_workflows_automation.rs
+++ b/crates/openhuman-core/src/platform/about_app/catalog_workflows_automation.rs
@@ -240,7 +240,7 @@ Capability {
domain: "flows",
category: CapabilityCategory::Automation,
description: "A read-only discovery agent (\"Flow Scout\") reads your memory, past \
- conversations, known people, connected apps, and existing flows to figure \
+ conversations, connected apps, and existing flows to figure \
out which automations would actually help you, then proposes a handful of \
concrete, buildable workflow suggestions. Each card explains why it was \
suggested; \"Build this\" hands it to the workflow builder to author a real \
@@ -255,8 +255,8 @@ Capability {
domain: "flows",
category: CapabilityCategory::Automation,
description: "A `memory` node inside a saved workflow graph, giving the flow direct, \
- in-graph memory access with no agent turn involved. It can recall/search/ \
- read style-flavour/look up people from your durable, cross-flow memory \
+ in-graph memory access with no agent turn involved. It can recall/search \
+ your durable, cross-flow memory \
(read-only — a flow can never write there) or from other flows' own \
memory (also read-only), and can remember/forget entries in its OWN \
private, flow-scoped memory namespace — never the user's personal memory, \