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(readme): standardize punctuation in public entry points and module references
Steven Enamakel3d70b7395196
diff --git a/crates/openhuman-core/README.md b/crates/openhuman-core/README.mdindex f26c74b2fc..d7d6e398c3 100644--- a/crates/openhuman-core/README.md+++ b/crates/openhuman-core/README.md@@ -121,12 +121,13 @@ what ships.## Public entry points-- [`run_core_from_args`](src/lib.rs) — the CLI entry point used by both+- [`run_core_from_args`](src/lib.rs): the CLI entry point used by both`crates/openhuman-cli/src/main.rs` and the desktop shell binary's `core`and `mcp` subcommands.Order: load dotenv, apply the startup restart delay, initialize the keyringmaster key, then dispatch to `core::cli`.-- [`CoreBuilder` → `CoreRuntime`](src/core/runtime/builder.rs) — the- embeddable composition API; `openhuman-embed` layers a typed facade over it.-- `openhuman-core serve` (alias `run`) — the standalone JSON-RPC/Socket.IO+- [`CoreBuilder` to `CoreRuntime`](src/core/runtime/builder.rs): the+ embeddable composition API. `openhuman-embed` layers a typed facade over+ it; see [`gitbooks/developing/embedding.md`](../../gitbooks/developing/embedding.md).+- `openhuman-core serve` (alias `run`): the standalone JSON-RPC/Socket.IOserver. Public endpoints: `GET /health`, `GET /schema`, `GET /events`.diff --git a/crates/openhuman-core/src/agent/tools/README.md b/crates/openhuman-core/src/agent/tools/README.mdnew file mode 100644index 0000000000..8d6e641fe0--- /dev/null+++ b/crates/openhuman-core/src/agent/tools/README.md@@ -0,0 +1,58 @@+# Agent tools++Tools that act on the agent loop itself, its todo list, or the user's stored+preferences, rather than on files, memory, or the network. `crate::tools`+re-exports everything here (`tools/mod.rs` re-exports `crate::agent::tools`),+and `tools::ops` registers them into the tool catalog; nothing outside this+crate should construct them directly.++## Contents++| Tool | File | Wire name (if different) |+| --- | --- | --- |+| `AskClarificationTool` | `ask_clarification.rs` | `ask_user_clarification` |+| `DelegateTool` | `delegate.rs` | `delegate` |+| `PlanExitTool` | `plan_exit.rs` | `plan_exit` |+| `RememberPreferenceTool` | `remember_preference.rs` | `remember_preference` |+| `SavePreferenceTool` | `save_preference.rs` | `save_preference` |+| `RunWorkflowTool`, `AwaitWorkflowTool` | `run_workflow.rs` | `run_workflow`, `await_workflow` |+| `TodoTool` | `todo.rs` | `todo` |++`RunWorkflowTool` and `AwaitWorkflowTool` are compiled in only with the+`skills` feature; a build without it omits both tools from the catalog+instead of registering them as disabled.++## Key types++- `AskClarificationTool` returns the question text as its own tool output; it+ does not pause anything by itself. The pause happens because callers list+ `ask_user_clarification` in the harness seam's `early_exit_tools`+ (`tinyagents::run_turn_via_tinyagents_shared`), and a successful call there+ steers the loop to `Pause` instead of feeding the result back to the model.+ Any caller that exposes this tool without that listing gets a tool that+ answers its own question, since the model reads a normal success and keeps+ going.+- `DelegateTool` hands a subtask to a named agent configured with its own+ provider and model, using `DelegateAgentConfig`; `DelegateToolDispatch` is+ the typed harness-side wrapper that supplies live thread and workspace+ context and makes cancellation explicit.+- `PlanExitTool` ends a plan-mode pass by returning the plan text plus+ `PLAN_EXIT_MARKER`. The mode switch itself lives outside this tool; nothing+ in this crate currently consumes the marker.+- `RememberPreferenceTool` pins an explicit `(class, key, value)` preference+ into the `user_profile` memory namespace. `SavePreferenceTool` stores a+ free-form preference into either the `general` or `situational` lane.+ `RunWorkflowTool` and `AwaitWorkflowTool` spawn a `crate::skills::runtime`+ workflow run and wait on its outcome.+- `TodoTool` is the model-facing side of the session's todo list; storage and+ status transitions belong to `crate::agent::todos`, which wraps the+ TinyAgents todo store.++## Where next++- `crate::tools` for the shared `Tool` trait, `ToolSpec`, and how these tools+ join the rest of the catalog.+- `crate::agent::orchestration` for the sub-agent spawn tools, which sit next+ to these conceptually but live separately because they carry more+ lifecycle state.+- `crate::agent::todos` for the store `TodoTool` reads and writes.diff --git a/crates/openhuman-core/src/desktop/accessibility/README.md b/crates/openhuman-core/src/desktop/accessibility/README.mdindex 5c0eb6b2c2..2e726be873 100644--- a/crates/openhuman-core/src/desktop/accessibility/README.md+++ b/crates/openhuman-core/src/desktop/accessibility/README.md@@ -9,11 +9,11 @@ Re-exported from `mod.rs`:- `pub fn clear_automation_denial` / `mark_system_events_denied` / `system_events_denied` (`automation_state.rs`): tracks whether macOS has denied AppleScript "System Events" automation, so callers can stop retrying until the user re-grants it.- `pub fn focused_text_context` / `focused_text_context_verbose` / `validate_focused_target` (`focus.rs`): query the OS for the currently focused text field.- `pub fn globe_listener_start` / `globe_listener_stop` / `globe_listener_poll` / `pub struct GlobeHotkeyPollResult` / `pub enum GlobeHotkeyStatus` (`globe.rs`): macOS Globe-key (Fn) hotkey monitor.-- `pub fn precompile_helper_background`, `helper.rs`, split into submodules `helper/process.rs` (process management, `pub(crate) helper_send_receive`), `helper/swift_focus.rs` / `helper/swift_paste.rs` / `helper/swift_overlay.rs` / `helper/swift_ax_actions.rs` (embedded Swift source pieces), and `helper/swift_source.rs` (assembles the full source), compile the Swift helper with `swiftc` on a background thread so the first request avoids compile latency. No caller outside this module today.-- Permission detection: `detect_permissions`, `detect_microphone_permission`, `microphone_denied_message`, `permission_to_str`, `request_microphone_access` (cross-platform); macOS-only `detect_accessibility_permission`, `detect_input_monitoring_permission`, `open_macos_privacy_pane`, `request_accessibility_access`, `permissions.rs`. Microphone detection probes `cpal` for a default input device and needs the `inference` feature; without it the result is `PermissionState::Unknown`.+- `pub fn precompile_helper_background`: `helper.rs`, split into submodules `helper/process.rs` (process management, `pub(crate) helper_send_receive`), `helper/swift_focus.rs` / `helper/swift_paste.rs` / `helper/swift_overlay.rs` / `helper/swift_ax_actions.rs` (embedded Swift source pieces), and `helper/swift_source.rs` (assembles the full source), compile the Swift helper with `swiftc` on a background thread so the first request avoids compile latency. No caller outside this module today.+- Permission detection: `detect_permissions`, `detect_microphone_permission`, `microphone_denied_message`, `permission_to_str`, `request_microphone_access` (cross-platform); macOS-only `detect_accessibility_permission`, `detect_input_monitoring_permission`, `open_macos_privacy_pane`, `request_accessibility_access`: `permissions.rs`. Microphone detection probes `cpal` for a default input device and needs the `inference` feature; without it the result is `PermissionState::Unknown`.- `pub fn extract_terminal_input_context` / `is_terminal_app` / `is_text_role` / `looks_like_terminal_buffer` (`terminal.rs`): terminal-window heuristics.- `pub fn normalize_ax_value` / `parse_ax_number` / `truncate_tail` (`text_util.rs`): AX value normalization.-- `pub struct ElementBounds` / `FocusedTextContext` / `PermissionKind` / `PermissionState` / `PermissionStatus`, `types.rs`.+- `pub struct ElementBounds` / `FocusedTextContext` / `PermissionKind` / `PermissionState` / `PermissionStatus`: `types.rs`.## Calls into@@ -24,10 +24,10 @@ Re-exported from `mod.rs`:## Called by-- `crates/openhuman-core/src/voice/server/hotkey_listener.rs`, `globe_listener_start` / `globe_listener_poll` for the Fn hotkey; `voice/server/pipeline.rs`, `focused_text_context_verbose` to capture the frontmost app at hotkey press.-- `crates/openhuman-core/src/voice/text_input.rs`, `validate_focused_target` before inserting dictated text.-- `crates/openhuman-core/src/voice/always_on/capture.rs`, `detect_microphone_permission`; `audio_capture.rs`, the same plus `microphone_denied_message` / `request_microphone_access` before opening the input device.-- `crates/openhuman-core/src/core/all_tests.rs`, asserts `detect_microphone_permission()` is `Unknown` when `inference` is compiled out.+- `crates/openhuman-core/src/voice/server/hotkey_listener.rs`: `globe_listener_start` / `globe_listener_poll` for the Fn hotkey; `voice/server/pipeline.rs`: `focused_text_context_verbose` to capture the frontmost app at hotkey press.+- `crates/openhuman-core/src/voice/text_input.rs`: `validate_focused_target` before inserting dictated text.+- `crates/openhuman-core/src/voice/always_on/capture.rs`: `detect_microphone_permission`; `audio_capture.rs`: the same plus `microphone_denied_message` / `request_microphone_access` before opening the input device.+- `crates/openhuman-core/src/core/all_tests.rs`: asserts `detect_microphone_permission()` is `Unknown` when `inference` is compiled out.## Tests