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(agent): add README for agent registry module
Steven Enamakeldd1d833ef56d
diff --git a/crates/openhuman-core/src/agent/registry/README.md b/crates/openhuman-core/src/agent/registry/README.mdindex bb4f4b5c30..503151421c 100644--- a/crates/openhuman-core/src/agent/registry/README.md+++ b/crates/openhuman-core/src/agent/registry/README.md@@ -77,7 +77,7 @@ subagent, and `chat -> chat` / `reasoning -> reasoning` delegation isrejected (the pair rule is `validate_tier_transition` in the harness; unknownsubagent ids are tolerated here as a separate integrity concern).`BUILTINS` is also the registration point for archetypes that live with-other domains: `agent_memory` (`memory/agent/agent/`), `skill_setup`+other domains: `skill_setup`(`skills/catalog/agent/`, feature `skills`), and`workflow_builder` and `flow_discovery` (`flows/agents/`, feature `flows`).Workspace-level overrides (`<workspace_dir>/agents/*.toml`, with a@@ -86,20 +86,16 @@ Workspace-level overrides (`<workspace_dir>/agents/*.toml`, with a`AgentDefinitionRegistry::load` re-runs `validate_tier_hierarchy` after thatmerge.-The 16 archetypes in this directory:+The 12 archetypes in this directory:| Archetype | Role || --- | --- |-| `archivist` | Background: extracts lessons from a completed session into `MEMORY.md` and FTS5 || `critic` | Workflow-run worker: adversarial, read-only cross-check of claims, diffs and code. Not a chat delegate |-| `flow_memory_agent` (feature `flows`) | Read-only context/memory retrieval for automation-flow `agent` nodes (`agent_ref`) |-| `goals_agent` | Background: keeps `MEMORY_GOALS.md` fresh from session context || `image_agent` | Image generation/edit specialist || `morning_briefing` | Proactive scheduled daily summary (tasks, calendar, email, skills) on a named, read-only tool belt || `orchestrator` | Default user-facing `chat`-tier agent; direct-first, delegates only when it materially helps || `planner` | Workflow-run worker (`reasoning` tier): decomposes a question into research angles, or researches one angle. Read-only; not a chat delegate || `presentation_agent` (feature `documents`) | Builds decks from evidence; owns grounding/citations/image verification |-| `profile_memory_agent` | Profile, persona, preferences, people-graph specialist || `summarizer` | Runtime-dispatched only: compresses oversized tool results for the orchestrator, and synthesizes workflow-run reports || `task_manager_agent` | Task-source/workflow/artifact specialist: proactive feeds, workflow bundles, artifacts || `trigger_reactor` | One or two tool calls in direct reaction to an external trigger, no planning |@@ -108,7 +104,7 @@ The 16 archetypes in this directory:| `vision_agent` | Read-only image understanding: describe, OCR, locate UI elements |The orchestrator's chat delegates (its `[subagents]` allowlist) are-`task_manager_agent`, `profile_memory_agent`, `agent_memory`, `vision_agent`,+`task_manager_agent`, `vision_agent`,`image_agent`, `video_agent`, `presentation_agent`, `skill_setup`,`workflow_builder` and `flow_discovery`. `planner` and `critic` stayregistered only for the `parallel_research_cross_check` workflow-run template@@ -126,8 +122,7 @@ playbooks are now inline skill guides on tool packs (`coding`, `web3`,too; see [`tools/toolpacks/README.md`](../../tools/toolpacks/README.md#inline-skill-guides).Running an installed skill is the orchestrator's own `run_workflow`.-`flow_memory_agent` is `#[cfg]`-gated out of both the module list and-`BUILTINS` when `flows` is disabled; `presentation_agent` stays compiled but+`presentation_agent` stays compiled but`builtin_enabled` drops it from `load_builtins` without `documents`, inlockstep with its `generate_presentation` tool.diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rsindex 31b783827f..6e03627c7e 100644--- a/crates/openhuman-core/src/tools/ops.rs+++ b/crates/openhuman-core/src/tools/ops.rs@@ -453,21 +453,6 @@ pub fn all_tools_with_runtime(Box::new(WorkflowInstallFromUrlTool::new(config.clone())),#[cfg(feature = "skills")]Box::new(WorkflowUninstallTool),- // Learning (user-profile facet cache) tools. Reads ship default-ON;- // every mutator ships default-OFF via `tools::user_filter`- // (learning_manage toggle) — they persistently rewrite the assistant's- // model of the user. enrich_profile also flags external_effect.- Box::new(LearningListFacetsTool),- Box::new(LearningGetFacetTool),- Box::new(LearningCacheStatsTool),- Box::new(LearningUpdateFacetTool),- Box::new(LearningPinFacetTool),- Box::new(LearningUnpinFacetTool),- Box::new(LearningForgetFacetTool),- Box::new(LearningRebuildCacheTool),- Box::new(LearningResetCacheTool),- Box::new(LearningSaveProfileTool),- Box::new(LearningEnrichProfileTool),// Task & productivity tools (issue: agent-tool expansion).// Read/observe + bounded-write tools are registered here; the// destructive/overextending siblings (artifact_delete,@@ -576,10 +561,15 @@ pub fn all_tools_with_runtime(Box::new(WorkspaceInitTool),];- log::debug!(- "[tools::ops][memory_search] registered memory_vector_search, memory_chunk_context, \- memory_hybrid_search, memory_store_raw_search, memory_store_raw_chunks, memory_store_kinds"- );+ // The single `memory` tool (recall | fetch | learn | forget), registered+ // only while memory is on: with no usable engine (signed out, no CortexDB+ // key) the model is not offered a tool that can only fail.+ if crate::memory::engine::is_on(root_config) {+ tools.push(Box::new(crate::memory::MemoryTool::new(config.clone())));+ tracing::debug!("[tools::ops] registered memory tool");+ } else {+ tracing::debug!("[tools::ops] memory off; memory tool not registered");+ }// `juice_find` / `juice_extract` / `juice_summarize`: only while a handle can name them.tools.extend(crate::inference::tokenjuice::repl_tools_for(root_config));@@ -604,14 +594,6 @@ pub fn all_tools_with_runtime(security.clone(),)));- // Long-term goals list tool. Used primarily by the background- // `goals_agent` (which filters to it via its `[tools] named` allowlist);- // also available to the main agent for explicit edits. One `op`-dispatched- // tool, not four — see the module docs on `memory::tools::goals`.- tools.push(Box::new(crate::memory::tools::goals::GoalsTool::new(- root_config.workspace_dir.clone(),- )));-// Thread-level goal tools (Codex-style per-thread completion contract).// Visible only to agents that allowlist them (orchestrator). The target// thread is resolved from the ambient `thread_id`, so no thread arg is@@ -839,17 +821,6 @@ pub fn all_tools_with_runtime(// Image metadata is always available for user-provided images.tools.push(Box::new(ImageInfoTool::new(security.clone())));- // Tool effectiveness stats (enabled when learning is on)- tracing::debug!(- learning_enabled = root_config.learning.enabled,- tool_tracking_enabled = root_config.learning.tool_tracking_enabled,- "evaluating ToolStatsTool registration"- );- if root_config.learning.enabled && root_config.learning.tool_tracking_enabled {- tools.push(Box::new(ToolStatsTool::new()));- tracing::debug!("ToolStatsTool registered");- }-// Add delegation tool when agents are configuredif !agents.is_empty() {let delegate_agents: HashMap<String, DelegateAgentConfig> = agents@@ -945,9 +916,7 @@ pub fn all_tools_with_runtime(tracing::debug!("[lsp] capability gate off (set OPENHUMAN_LSP_ENABLED=1 to register)");}- // Two INDEPENDENT post-filters over the assembled list (kernel.md §3.7's- // separate axes — a narrowed DomainSet must not narrow capabilities, and- // vice versa):+ // Post-filters over the assembled list://// 1. DomainSet (#4796): drop tools whose DomainGroup is disabled under the// ambient CoreContext. With no active context, or under@@ -956,14 +925,7 @@ pub fn all_tools_with_runtime(// are dropped so agent turns can't call a domain that isn't live;// only the memory + threads tools survive (the mapped harness families)// — see `tool_group` for the classification and its Platform-default- // caveat.- // 2. Memory capability (M5.3): drop tools whose memory family the bound- // driver does not advertise — see `tool_capability`.- //- // Both default OPEN: with no ambient context and with nothing bound the- // list is unchanged. Absence beats a stub that errors — a- // registered-but-failing memory tool teaches the model the capability- // exists and makes it retry (the `flows` compile-gate's reasoning).+ // caveat. Default OPEN: with no ambient context the list is unchanged.let before = tools.len();let domains = crate::core::runtime::context::CoreContext::current().map(|c| c.domains());let mut tools: Vec<Box<dyn Tool>> = if let Some(set) = domains {@@ -977,13 +939,10 @@ pub fn all_tools_with_runtime(};let after_domains = tools.len();- tools.retain(|t| crate::core::all::capability_allowed(tool_capability(t.name())));- let after_capabilities = tools.len();-- // 3. ToolGroups: a group an embedder set to `Off` is not registered at all.+ // 2. ToolGroups: a group an embedder set to `Off` is not registered at all.// `Advertised` and `Withheld` both keep the tool here — they differ only// in whether its schema reaches the provider, which is decided later by- // `strip_packed_from_visible`. Same default-open rule as the two filters+ // `strip_packed_from_visible`. Same default-open rule as the filter// above: with no ambient context every group is `Withheld`, so nothing// is dropped and the desktop list is unchanged.{@@ -993,7 +952,7 @@ pub fn all_tools_with_runtime(log::debug!("[tools::ops][post-filter] {before} assembled → {after_domains} after DomainSet → \- {after_capabilities} after memory capabilities → {} after ToolGroups",+ {} after ToolGroups",tools.len());@@ -1105,16 +1064,6 @@ fn tool_group(name: &str) -> crate::core::all::DomainGroup {"notify_user",];const THREADS_EXTRA: &[&str] = &["goal_get", "goal_set", "goal_complete"];- // Memory extras not covered by the `memory_`/`goals_` prefixes. `goals`- // has no trailing underscore since the four `goals_*` tools collapsed into- // one `op`-dispatched tool, so it needs an entry here rather than a prefix.- const MEMORY_EXTRA: &[&str] = &[- "remember_preference",- "save_preference",- "update_memory_md",- "tool_stats",- "goals",- ];// MCP: every MCP tool name is `mcp_` prefixed (mcp_registry_*,// mcp_call_tool, mcp_list_servers, mcp_list_tools).@@ -1144,17 +1093,8 @@ fn tool_group(name: &str) -> crate::core::all::DomainGroup {{return DomainGroup::Voice;}- // Memory family (harness-kept): memory_* store/search/etc + goals_* + extras.- //- // The bare `memory` name is matched explicitly: the collapsed tool drops- // the `memory_` prefix its members carry, so prefix matching alone would- // land it in `Platform` and leave the whole memory surface callable under- // a `DomainSet { platform: true, memory: false }`.- if name == crate::memory::tools::MEMORY_TOOL_NAME- || name.starts_with("memory_")- || name.starts_with("goals_")- || MEMORY_EXTRA.contains(&name)- {+ // Memory family (harness-kept): the single `memory` tool.+ if name == crate::memory::MEMORY_TOOL_NAME {return DomainGroup::Memory;}// Threads family (harness-kept): thread_* + per-thread goal + search.