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: add README files for orchestration, workspace config, and security credentials
Steven Enamakel243702aa2b64
diff --git a/crates/openhuman-core/src/agent/orchestration/README.md b/crates/openhuman-core/src/agent/orchestration/README.mdindex 0bebe469fe..2758d01129 100644--- a/crates/openhuman-core/src/agent/orchestration/README.md+++ b/crates/openhuman-core/src/agent/orchestration/README.md@@ -4,7 +4,7 @@workers from one parent session: agent teams, background command-center views,declarative multi-phase workflows, git-worktree isolation for parallel codingworkers, and the tool surface LLMs call to spawn/steer/wait-on sub-agents. The-lower-level `agent::harness` remains the execution engine — prompt+lower-level `agent::harness` remains the execution engine: promptconstruction, policy-filtered tools, model selection, and the sub-agent runloop itself.@@ -45,37 +45,37 @@ RPC/tool formatting, and OpenHuman's worktree policy.## Key files-- `mod.rs` — module wiring and re-exports.-- `ops.rs` / `types.rs` — `AgentOrchestrationSession`, `OrchestrationError`,+- `mod.rs`: module wiring and re-exports.+- `ops.rs` / `types.rs`: `AgentOrchestrationSession`, `OrchestrationError`,`AgentSnapshot`, `OrchestrationTaskStatus`, `SpawnAgentRequest`/`Response`,`WaitAgentOptions`/`Response`.-- `agent_teams/` — OpenHuman's live member-worker adapter for the generic+- `agent_teams/`: OpenHuman's live member-worker adapter for the generic`tinyagents_orchestration::teams` service: it supplies Config, the rootparent context, model/tool execution, progress tracing, and BUS-facinglifecycle behavior.-- `command_center/` — read-only grouped view of background agent runs+- `command_center/`: read-only grouped view of background agent runs(`ops.rs`) plus stop/retry/continue/follow-up transitions (`control.rs`).-- `workflow_runs/` — OpenHuman's live workflow execution and RPC adapters;+- `workflow_runs/`: OpenHuman's live workflow execution and RPC adapters;workflow definitions, durable state, validation, graphs, and neutral enginemechanics are imported directly from `tinyagents_orchestration::workflow`.-- `delegation.rs` — production worker for TinyAgents' durable+- `delegation.rs`: production worker for TinyAgents' durableplan→execute⇄review→finalize graph; every stage runs through `run_subagent`.- `spawn_parallel_agents` uses `tinyagents_graph::parallel::map_reduce` withOpenHuman-owned request validation, worktree policy, dispatch, workers, andresult formatting. The former parallel coordinator/request graph moduleswere removed; there is no OpenHuman forwarding layer around the graph API.-- `subagent_events.rs` — the single owner that constructs and publishes+- `subagent_events.rs`: the single owner that constructs and publishes`DomainEvent::Subagent{Spawned,Completed,Failed,AwaitingUser}`.-- `subagent_control.rs` — manual cancel/steer of detached background+- `subagent_control.rs`: manual cancel/steer of detached backgroundsub-agents; the manual counterpart to the automatic thread-closecancellation in `crate::threads`.-- `worktree.rs` / `worktree_schemas.rs` — `OpenHumanWorktreeIsolation` and the+- `worktree.rs` / `worktree_schemas.rs`: `OpenHumanWorktreeIsolation` and thelist/status/diff/remove RPC surface. They call`tinyagents_harness::workspace` directly rather than maintaining aliases.-- `subagent_sessions/` — durable subagent session records+- `subagent_sessions/`: durable subagent session records(`DurableSubagentSessionSummary`, `SubagentSessionStore`) used forreuse/dedup decisions across turns.-- `parent_context/builder.rs` — `build_root_parent` / `with_root_parent`, the+- `parent_context/builder.rs`: `build_root_parent` / `with_root_parent`, thesingle blessed entry point for constructing a root `ParentExecutionContext`outside an agent turn.- `running_subagents.rs` + `running_subagents/` (`registry.rs`, `roster.rs`,@@ -85,15 +85,15 @@ RPC/tool formatting, and OpenHuman's worktree policy.queue and idle-gated, debounced, batched delivery of finished backgroundruns back into chat; `run_ledger_finalize.rs` — global-bus subscriber thatsettles ledger rows for runs that outlive their spawning turn.-- `tools.rs` — declares the LLM-callable tool files under `tools/` (see+- `tools.rs`: declares the LLM-callable tool files under `tools/` (see[Agent tools](#agent-tools)).## Public surface-- `AgentOrchestrationSession`, `OrchestrationError` — `ops.rs`.+- `AgentOrchestrationSession`, `OrchestrationError`: `ops.rs`.- `AgentSnapshot`, `OrchestrationTaskStatus`, `SpawnAgentRequest`/`Response`,- `WaitAgentOptions`/`Response` — `types.rs`.-- `OpenHumanWorktreeIsolation` — `worktree.rs`; direct TinyAgents worktree+ `WaitAgentOptions`/`Response`: `types.rs`.+- `OpenHumanWorktreeIsolation`: `worktree.rs`; direct TinyAgents worktreetypes are `GitWorktreeBaseRef`, `GitWorktreeError`, and`GitWorktreeStatus` from `tinyagents_harness::workspace`.- Controller schema/registration pairs re-exported from `mod.rs`:@@ -146,7 +146,7 @@ races it against the inherited cancellation token. Execution itself routes throu## Persistence-- `tinyagents_session::run_ledger` — the `agent_runs`,+- `tinyagents_session::run_ledger`: the `agent_runs`,`agent_teams`/`agent_team_members`/`agent_team_tasks`, and `workflow_runs`tables plus the shared `run_events` log, backed by`{workspace}/session_db/sessions.db` (see `agent/session_db/mod.rs`). Every@@ -155,9 +155,9 @@ races it against the inherited cancellation token. Execution itself routes throu`agent_runs` row; `run_ledger_finalize.rs` settles it from the global eventbus so detached runs that outlive their spawning turn are not left `running`forever.-- `subagent_sessions/` — `SubagentSessionStore` writes+- `subagent_sessions/`: `SubagentSessionStore` writes`{workspace}/.openhuman/subagent_sessions.json` (atomic tmp-file rename).-- `delegation.rs` — checkpoints `DelegationState` through+- `delegation.rs`: checkpoints `DelegationState` through`tinyagents_graph::SqliteCheckpointer` in `graph_checkpoints.db` under theworkspace.@@ -171,26 +171,26 @@ what the harness exposes to the child.## Dependencies-- `agent::harness` — `run_subagent`, `fork_context::ParentExecutionContext`,+- `agent::harness`: `run_subagent`, `fork_context::ParentExecutionContext`,`definition::{AgentDefinition, AgentDefinitionRegistry}`.-- `tinyagents_graph::orchestration` — `DetachedTaskRegistry`,+- `tinyagents_graph::orchestration`: `DetachedTaskRegistry`,`OrchestrationTaskStatus`, `TaskId`.-- `tinyagents_session::run_ledger` — durable storage for teams, workflow runs,+- `tinyagents_session::run_ledger`: durable storage for teams, workflow runs,and agent run rows.-- `tinyagents_graph` — the graph engine used for workflow phase scheduling,+- `tinyagents_graph`: the graph engine used for workflow phase scheduling,agent-team routing, and parallel map/reduce fanout.-- `core::bus::BUS` — `DomainEvent::AgentOrchestration*` /+- `core::bus::BUS`: `DomainEvent::AgentOrchestration*` /`Subagent*` publication and subscription.-- `web_chat::progress_bridge` — the per-turn progress-channel counterpart to+- `web_chat::progress_bridge`: the per-turn progress-channel counterpart to`run_ledger_finalize.rs`'s global-bus settlement.## Used by- `crate::tools` (`tools/mod.rs`) re-exports every tool in `tools/` for theLLM tool-calling loop.-- `threads` — the automatic thread-close cancellation counterpart to+- `threads`: the automatic thread-close cancellation counterpart to`subagent_control.rs`'s manual cancel.-- `crate::core::all` — registers the five controller pairs above.+- `crate::core::all`: registers the five controller pairs above.## Notesdiff --git a/crates/openhuman-core/src/config/workspace/README.md b/crates/openhuman-core/src/config/workspace/README.mdindex 0772b68c99..26fb9453aa 100644--- a/crates/openhuman-core/src/config/workspace/README.md+++ b/crates/openhuman-core/src/config/workspace/README.md@@ -1,10 +1,10 @@# workspace-Owns workspace layout bootstrap and the editable "Persona Pack" prompt files (`SOUL.md`, `IDENTITY.md`) that drive the agent's personality. Two concerns live here: (1) `init_workspace` — the one-shot setup that creates the default directory tree and copies the bundled prompt/skills/heartbeat files into a fresh workspace (backs CLI `init`-style entrypoints); and (2) read/edit/reset RPCs over a tightly allowlisted set of persona files, so the settings UI can round-trip those prompts without ever exposing an arbitrary path under the workspace.+Owns workspace layout bootstrap and the editable "Persona Pack" prompt files (`SOUL.md`, `IDENTITY.md`) that drive the agent's personality. Two concerns live here: (1) `init_workspace`, the one-shot setup that creates the default directory tree and copies the bundled prompt/skills/heartbeat files into a fresh workspace (backs CLI `init`-style entrypoints); and (2) read/edit/reset RPCs over a tightly allowlisted set of persona files, so the settings UI can round-trip those prompts without ever exposing an arbitrary path under the workspace. It also carries an unrelated file-watcher state store (see `state.rs` below).## Responsibilities-- Initialize a fresh workspace: create the `memory`, `sessions`, `state`, `cron` directories, write bundled `SOUL.md` / `IDENTITY.md`, seed the skills dir README, and ensure `HEARTBEAT.md` — reporting created/overwritten/existing entries.+- Initialize a fresh workspace: create the `memory`, `sessions`, `state`, `cron` directories, write bundled `SOUL.md` / `IDENTITY.md`, seed the skills dir README, and ensure `HEARTBEAT.md` exists, reporting created/overwritten/existing entries.- Define the single source of truth for which workspace files are editable (the `BOOTSTRAP_FILES` allowlist via `bundled_default_contents`).- Read an editable persona file, falling back to the bundled default (with `is_default = true`) when the on-disk copy is missing.- Overwrite an editable persona file with user-supplied contents (size-capped, allowlist-enforced).diff --git a/crates/openhuman-core/src/security/credentials/README.md b/crates/openhuman-core/src/security/credentials/README.mdindex b1488fd5fe..261e7dcabf 100644--- a/crates/openhuman-core/src/security/credentials/README.md+++ b/crates/openhuman-core/src/security/credentials/README.md@@ -75,7 +75,7 @@ Note: `list_provider_credentials_by_prefix` and the Composio-direct/secret helpe## Events-`bus.rs` — `SessionExpiredSubscriber` (`name() == "credentials::session_expired_handler"`, domain filter `["auth"]`) **subscribes** to `DomainEvent::SessionExpired`. On a non-local session it flips the scheduler gate to signed-out and drops the rejected credential (`clear_session`); for a local offline session or an API-key runtime it re-enables the gate and no-ops. This module does not publish events directly (publishers of `SessionExpired` are 401-detection sites elsewhere). The host learns of the sign-out through the Socket.IO `auth:session_expired` bridge and `auth.get_state`.+`bus.rs`: `SessionExpiredSubscriber` (`name() == "credentials::session_expired_handler"`, domain filter `["auth"]`) **subscribes** to `DomainEvent::SessionExpired`. On a non-local session it flips the scheduler gate to signed-out and drops the rejected credential (`clear_session`); for a local offline session or an API-key runtime it re-enables the gate and no-ops. This module does not publish events directly (publishers of `SessionExpired` are 401-detection sites elsewhere). The host learns of the sign-out through the Socket.IO `auth:session_expired` bridge and `auth.get_state`.## Persistence