openOnyx (openonyx) User Manual
Welcome to the official manual for openonyx, the deterministic coding-agent CLI, TUI, and embedded Web PWA harness built on the OnYX microkernel (onyx-core → onyx-soul-agents → onyx-workspace → open-onyx).
Unlike conventional terminal coding assistants backed by mutable message arrays, openonyx records every decision, read, edit, and command inside a deterministic EAV graph featuring:
- Compressed milestone snapshots (
snapshots.onyxpack) with 64-bit FNV-1a checksums and truncated-tail crash tolerance. - Centralized session vault (
.onyx/vault/+--auto-save) auto-ignored by Git so workspace roots stay clean. - Non-destructive time-travel & forking (
/rewind,/fork,chat --resume --tick,rewind --interactive). - Interactive Time Debugger (
TimeFreeze, SDD-07): pause the session at any tick (TUI:Alt+←/→,Ctrl+T,/time,/go,/step,/step-llm; Web:#tick-pill→ amber bar) over a RAM tick-boundary ring + on-disk milestones; 0-token primitives sealed intoONYXTR2(0 network, 0 disk:!cmd,/read,/inject,/step) and safe surgery on the frozen graph with/graph(inspect/drop-mem/edit-mem/set-goal); 100 % ephemeral until the branch is confirmed. - Asynchronous subagents in isolated Git worktrees (
spawn_subagent//spawn, 3-way merge with Scent-Heated Merge,--max-subagents, and optional external CLI harness drivers via[[external_drivers]]), plusspawn_agent(isolated: true): synchronous children in isolatedonyx/sub/agent-*worktrees with 3-way reconciliation that never touchesHEADor the root until merged. - Multi-model benchmarking (
openonyx bench): identical snapshot/tick, throwaway per-candidate worktrees (rewind + RAII), liveprovider:modelor offlinereplay:<label>=<file.tr>candidates, sandboxed--verify, 9-column Markdown table + JSON report via--out; the root stays 100 % intact. - Verify-on-Edit (
[verify]/[[verify.rules]]in.onyx/config.toml): after each successfulfs_edit/fs_write, runs the rules whoseglobmatches the edited file (plus Scent-impactedscope:testfiles) in the sandbox and injects[verify: PASS|FAIL|BLOCKED]into the tool observation, subject to Workspace Trust and[permissions].deny. - Hot-swappable LLM targets (
[[llm_profiles]],/profile//provider//model//effort, liveprovider/modelheader and credential-free Web selector), including a native Anthropic provider (Messages API, ephemeral prompt caching, and budgeted extended thinking via--thinking-budget). - Dynamic MCP tools (
[mcp.servers.<name>],stdioandhttptransports): each tool is exposed asmcp__<server>__<tool>, always approval-gated,DenyinPLAN/EXPLORE, behind the Workspace Trust gate, with per-server failure isolation andopenonyx doctorauditing. - Modular
F1..F5TUI views (Chat, Agents, Sprout, Plan & Diff, Timeline) with aCtrl+Kcommand palette and/view. - Transactional Git checkpoints (
/undo) without mutatingHEADor your staging index. - 100% offline deterministic replay (
ONYXTR2, 0 network calls, 0 disk writes). - Defense-in-depth security:
blake3Workspace Trust (openonyx trust//trust),PLAN/BUILD/EXPLOREmodes,.onyx/config.tomlrules (deny > ask > allow), Scent-Heated Approvals, OS sandboxing withenv_clear(), Control Plane RO protection, and RAIIProcessJobprocess-tree teardown. - Embedded Web UI / PWA (
openonyx serve): pure-stdHTTP/1.1 + SSE server (0tokio) ready for desktop browsers, mobile phones, or HTTPS reverse proxies, withblake3constant-time auth (HttpOnlycookie /Bearer) and explicit--cors-originsupport for external frontends. - Semantic AST navigation, Scent 2.0 (
onyx-scent:scent_outline+scent_impact+scent_references): 7 languages (Rust, Python, Java, TypeScript, JavaScript, Go, C/C++),EntityKind::{TypeAlias, Component}kinds, incremental binary cache.onyx/scent.idx(ONYXSCI1, sub-20 ms reloads) and thescent outline|impact|referencesCLI; plus local process/container orchestration (sprout.toml).
Table of Contents
| Chapter | Topics |
|---|---|
| 01. First Steps (Quickstart) | Build/install, configure Gemini / OpenAI / Ollama / vLLM, --auto-save, first interactive TUI session to Settled, diff approvals, Tab Plan/Build, and /undo. |
| 02. TUI & Daily Workflow | Compact 3-row header with live provider/model, Braille emblem, --effort, live vault:<session> badge, live telemetry, Memory & Trace scroll, Live Plan & Services (Sprout) panels, tiered context + /compact [focus], /new, modular F1..F5 views + Ctrl+K palette + /view, multi-agent supervision (spawn_agent, /agent, Ctrl+Tab), and hot-swapping the LLM target (/profile, /provider, /model, /effort). |
| 03. Modes, Permissions & OS Sandbox | PLAN, BUILD, and EXPLORE modes; declarative .onyx/config.toml ([permissions], [sandbox], and [verify] Verify-on-Edit), deny > ask > allow, --ignore-deny, --auto-approve elevation, MCP servers ([mcp.servers.<name>], mcp__<server>__<tool>, approval gate, Deny in PLAN/EXPLORE), Control Plane RO protection, env_clear(), RAII ProcessJob, and Linux (bwrap + AppArmor fallback) / macOS / Windows drivers. |
| 04. Time-Travel, Snapshots & Forking | Session vault (.onyx/vault/ & --auto-save), snapshots.onyxpack, automatic milestone tags, /undo (including untracked fs_write cleanup), live /rewind [tick] & /fork [name], chat --resume --tick, rewind --interactive, offline replay (ONYXTR2), inspect, and doctor. |
| 05. Tools, Scent, Sprout & Skills | Full 24-tool reference (including the async subagent tools spawn_subagent / subagent_status / subagent_merge / subagent_discard, spawn_agent(isolated: true) isolated worktrees, and external CLI harness drivers) plus dynamic mcp__* tools, Scent 2.0 AST navigation (7 languages, scent_outline + scent_impact + scent_references, .onyx/scent.idx ONYXSCI1 cache, scent CLI), local service & container orchestration (sprout.toml, /services, /service), project instructions (ONYX.md/AGENTS.md), authoring custom skills, and headless automation (openonyx run). |
| 06. CLI Reference & Troubleshooting | Complete subcommand, flag, and environment-variable tables (including --thinking-budget, ANTHROPIC_*, and the full openonyx bench reference: --models live/replay candidates, --verify, --out, --goal), OpenAI/vLLM and Anthropic SSE EOF resilience & retries, openonyx doctor checklist (with MCP server audit), and practical Windows/Linux/macOS troubleshooting. |
Recommended Reading Paths
- First day with
openonyx: start with 01. First Steps, then read 02. TUI & Daily Workflow. - Running local LLMs (Ollama, vLLM, LM Studio): see local provider setup in 01. First Steps,
--effortin 02. TUI & Daily Workflow, and SSE retry resilience in 06. CLI Reference & Troubleshooting. - Strict security / corporate environments: read 03. Modes, Permissions & OS Sandbox.
- Branching experiments & reproducible audits: read 04. Time-Travel, Snapshots & Forking.
- Local microservices & containers: see Sprout in 05. Tools, Scent, Sprout & Skills.
Prerequisites
- Rust
1.85or newer (the repository pins1.85.1inrust-toolchain.tomlwithedition = "2024"). - Git on
PATH(required for reversible/undocheckpoints,rewind,git_status, andgit_diff). - Access to an LLM:
- A Google AI Studio (
GEMINI_API_KEY) key, or - An OpenAI / OpenRouter (
OPENAI_API_KEY) key, or - An Anthropic (
ANTHROPIC_API_KEY) key for the native provider (--provider anthropic), or - Any local OpenAI-compatible
/v1/chat/completionsserver such as Ollama, vLLM, or LM Studio (no API key required).
- A Google AI Studio (
- Optional:
docker,nerdctl, orpodmanfor--sandbox strict-containerorkind = "container"services insprout.toml;bwrap(Bubblewrap) on Linux for filesystem sandboxing.