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): update paths after agent_registry move
Steven Enamakel7eeac83dc6ba
diff --git a/crates/openhuman-core/src/agent/README.md b/crates/openhuman-core/src/agent/README.mdindex 43fae5bcd0..aa709600d2 100644--- a/crates/openhuman-core/src/agent/README.md+++ b/crates/openhuman-core/src/agent/README.md@@ -218,20 +218,20 @@ coding workers, and background completion delivery. See### Agent definitions, registry and prompts-An `AgentDefinition` ([`harness/host_definition.rs`](./harness/host_definition.rs), vocabulary in `tinyagents-definition`) is an archetype: id, tier,+An `AgentDefinition` ([`../agent_registry/host_definition.rs`](../agent_registry/host_definition.rs), vocabulary in `tinyagents-definition`) is an archetype: id, tier,prompt source, model spec, `ToolScope`, `SandboxMode`, iteration policy and-allowed sub-agents. Built-ins live in `registry/agents/<id>/` as an+allowed sub-agents. Built-ins live in `../agent_registry/agents/<id>/` as an`agent.toml` plus `prompt.md` (orchestrator, planner, critic, summarizer,trigger_triage, trigger_reactor, vision_agent and others). Customdefinitions are TOML files under `<workspace>/agents/*.toml`, with-`~/.openhuman/agents/*.toml` as a fallback (`tinyagents_definition::DefinitionSet::load_dirs`, driven from [`harness/host_definition.rs`](./harness/host_definition.rs)).+`~/.openhuman/agents/*.toml` as a fallback (`tinyagents_definition::DefinitionSet::load_dirs`, driven from [`../agent_registry/host_definition.rs`](../agent_registry/host_definition.rs)).`AgentDefinitionRegistry` holds the merged set; `agent.reload_definitions`rebuilds it.-`registry/` is the user-facing layer over those definitions: enable and+`../agent_registry/` is the user-facing layer over those definitions: enable anddisable, custom agents, model pins, tool allow and deny lists, and sub-agentpolicy, persisted at `Config.agent_registry` and exposed as the-`agent_registry` RPC namespace. `library/` projects definitions into a+`agent_registry` RPC namespace. `../agent_registry/library/` projects definitions into adisplay-safe `AgentDefinitionDisplay` for the UI.`prompts/` holds the bundled identity files (`SOUL.md`, `IDENTITY.md`,@@ -304,12 +304,12 @@ Definitions, prompts and context:| Path | What it does || --- | --- |-| `registry/` | `agent_registry` RPC; built-in archetypes under [`registry/agents/`](./registry/agents/) ([README](registry/README.md)) |+| [`../agent_registry/`](../agent_registry/) | `agent_registry` RPC; built-in archetypes under [`agents/`](../agent_registry/agents/) ([README](../agent_registry/README.md)) || `prompts/` | Bundled identity files, `SystemPromptBuilder`, prompt sections ([README](prompts/README.md)) || `context/` | `ContextManager` per session and the channel prompt builder ([README](context/README.md)) || [`context_breakdown.rs`](./context_breakdown.rs) | `agent.context_breakdown`: system/tools/history split of prompt size for the UI || `debug/` | Dumps the exact system prompt and prompt-size report for an agent |-| `library/` | Display-safe projection of definitions (`AgentDefinitionDisplay`) |+| [`../agent_registry/library/`](../agent_registry/library/) | Display-safe projection of definitions (`AgentDefinitionDisplay`) |Persistence, setup and RPC:@@ -341,7 +341,7 @@ Persistence, setup and RPC:- `AgentProgress` (`progress.rs`): turn, iteration, tool, text and thinkingdeltas, cost updates and the `Subagent*` family.- `AgentDefinition`, `AgentDefinitionRegistry`, `ToolScope`, `SandboxMode`- (`harness/host_definition.rs` + `tinyagents-definition`): what an agent is.+ (`../agent_registry/host_definition.rs` + `tinyagents-definition`): what an agent is.- `ParentExecutionContext` ([`harness/fork_context.rs`](./harness/fork_context.rs)): explicit parentstate a sub-agent reads from the run context (`parent`); `orchestration::parent_context::build_root_parent`builds one for runs with no parent turn.diff --git a/crates/openhuman-core/src/agent/harness/README.md b/crates/openhuman-core/src/agent/harness/README.mdindex a75d89be64..4843cccf0f 100644--- a/crates/openhuman-core/src/agent/harness/README.md+++ b/crates/openhuman-core/src/agent/harness/README.md@@ -39,7 +39,6 @@ used here (not defined here) by [`fork_context.rs`](./fork_context.rs).| Module | Role || --- | --- |-| [`host_definition.rs`](./host_definition.rs) | The host side of agent definitions: `AgentExt` (prompt omissions, TokenJuice profile, MCP flag, prompt builder) over `tinyagents_definition::AgentDefinition<X>`, plus `AgentDefinitionRegistry` (a `DefinitionSet<AgentExt>` with the process/context singleton) and user-definition path resolution. The vocabulary (`ModelSpec`, `ToolScope`, `SandboxMode`, `AgentTier`, `PromptSource`, ...) and the TOML directory loader live in `tinyagents-definition`. Built-ins come from `crate::agent_registry::agents`. || `fork_context.rs` | The `ParentExecutionContext` snapshot a spawning agent hands to sub-agents, carried explicitly on the run context. `fork_context.rs` also carries the `RunQueue` handle (from `tinyagents_harness::run_queue`) down to a forked turn. || `graph.rs` | `run_channel_turn_via_graph` (`pub(crate)`): the channel/CLI turn graph, thin over `TurnSpec::run`; called by the `agent.run_turn` native-bus handler in [`agent/bus.rs`](../bus.rs). || `artifact_offload/` | The `outputs/` / `workspace/` convention under `action_dir`: prompt half (`contract.rs`) and host policy half (`policy.rs`); mechanics (thresholds, path resolution, pointer rendering, the writer) live in `tinyagents_harness::artifacts` and are re-exported here. |diff --git a/crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation_tests.rsindex 54fae2b1f4..98a0d9ee8d 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation_tests.rs@@ -147,7 +147,8 @@ fn prompt_documents_the_stripped_envelope_fields() {// resume a paused worker. The unadvertised hand-off fields must NOT be// taught there any more: a prompt naming fields the schema does not offer// sends the model arguments it cannot see.- const ORCHESTRATOR_PROMPT: &str = include_str!("../../registry/agents/orchestrator/prompt.md");+ const ORCHESTRATOR_PROMPT: &str =+ include_str!("../../../agent_registry/agents/orchestrator/prompt.md");for needle in ["blocking: true", "continue_subagent"] {assert!(diff --git a/crates/openhuman-core/src/agent/triage/README.md b/crates/openhuman-core/src/agent/triage/README.mdindex 848411ca43..9f89e98f1c 100644--- a/crates/openhuman-core/src/agent/triage/README.md+++ b/crates/openhuman-core/src/agent/triage/README.md@@ -103,10 +103,10 @@ Re-exported from [`mod.rs`](./mod.rs):## Related-- [`crates/openhuman-core/src/agent_registry/agents/trigger_triage/`](../registry/agents/trigger_triage/): the+- [`crates/openhuman-core/src/agent_registry/agents/trigger_triage/`](../../agent_registry/agents/trigger_triage/): theclassifier agent definition; `prompt.md` describes the JSON contract`decision.rs` parses.-- [`crates/openhuman-core/src/agent_registry/agents/trigger_reactor/`](../registry/agents/trigger_reactor/): the+- [`crates/openhuman-core/src/agent_registry/agents/trigger_reactor/`](../../agent_registry/agents/trigger_reactor/): thesingle-step sub-agent `react` decisions dispatch to.- [`crates/openhuman-core/src/cron/scheduler_gate/README.md`](../../cron/scheduler_gate/README.md): the LLM-permitgate the local arm waits on.diff --git a/crates/openhuman-core/src/agent_registry/README.md b/crates/openhuman-core/src/agent_registry/README.mdindex f89724b8ea..78a3de894a 100644--- a/crates/openhuman-core/src/agent_registry/README.md+++ b/crates/openhuman-core/src/agent_registry/README.md@@ -136,13 +136,13 @@ ranking works.`DomainGroup::Agent`.- [`config/schema/`](../../config/schema/): `Config.agent_registry: AgentRegistryConfig` is thepersisted store every `ops.rs` function reads and writes.-- [`agent_registry/host_definition.rs`](../harness/host_definition.rs): seeds the+- [`host_definition.rs`](./host_definition.rs): seeds theprocess-global `AgentDefinitionRegistry` from `registry::agents::load_builtins()`;TinyAgents validates the merged hierarchy when workspace overrides load.-- [`agent/session_host/builder/factory.rs`](../session_host/builder/factory.rs):+- [`agent/session_host/builder/factory.rs`](../agent/session_host/builder/factory.rs):`Agent::from_config_for_agent` falls back to `find_custom_in_config` +`definition_from_registry_entry` when an id is not in the harness registry.-- [`agent/schemas.rs`](../schemas.rs): `agent.graph_topologies` and `agent.registry_snapshot`+- [`agent/schemas.rs`](../agent/schemas.rs): `agent.graph_topologies` and `agent.registry_snapshot`enumerate `load_builtins()`.- `flows/` (`ops/inference_readiness.rs`, `ops/builder_gates.rs`,`builder_tools/kind_reads.rs`, `tinyflows/caps/agent.rs`): resolve a flowdiff --git a/docs/gitbooks/en/developing/architecture/agent-harness.md b/docs/gitbooks/en/developing/architecture/agent-harness.mdindex 528b865be4..05de5ab201 100644--- a/docs/gitbooks/en/developing/architecture/agent-harness.md+++ b/docs/gitbooks/en/developing/architecture/agent-harness.md@@ -625,13 +625,13 @@ The harness shell lives under `crates/openhuman-core/src/agent/`, with the tinya| `harness/graph.rs` | The channel/CLI bus turn route into the tinyagents runner. || `subagent_host/` | Direct OpenHuman planner/executor/persistence adapters for `tinyagents-orchestration::subagent`; product prompt/tool/model/security/artifact/progress behavior remains here. || `orchestration/subagent_sessions/` | Durable reusable sub-agent identity, compatibility matching, persisted status/history. |-| `harness/host_definition.rs` | Host extension and registry over `tinyagents_definition::AgentDefinition`. |+| `agent_registry/host_definition.rs` | Host extension and registry over `tinyagents_definition::AgentDefinition`. || `subagent_host/ops/runner.rs` | Integration-tool ranking and the host execution leaf; generic lifecycle stays in `tinyagents-orchestration`. || `tinyagents/payload_summarizer.rs` | The model call behind TinyJuice's oversized-tool-result summary. || `session_host/tool_progress.rs` | Surviving OpenHuman seam: `TurnProgress`. || `message_convert.rs` | Concrete durable/provider conversion around canonical tool-call dialect APIs. || `triage/` | External-trigger classification + escalation. |-| `registry/agents/` | Built-in archetypes: one subdirectory per agent. |+| `agent_registry/agents/` | Built-in archetypes: one subdirectory per agent. || `hooks.rs` / `stop_hooks.rs` | Post-turn and mid-turn hook surfaces. || `cost.rs` | Per-turn USD/token accounting. || `progress.rs` | Real-time progress events to the UI. |