docs/index.md
EzAgent documentation
EzAgent is an LLM harness connecting the daemon, CLI/TUI clients and external capability providers over socket/JSONL RPC. Sessions persist in SQLite; each leaf conversation runs in isolation.
This index points to current code and documentation owners. Implementation detail and durable regressions live with the code. For test commands, fixtures and validation ownership, use the short test guide.
Start here
AgentHub owners
AgentHub is an unreleased implementation. The contract inventory routes to its current contracts. These pages describe the implementation, not alternate protocol versions or historical acceptance results.
The package links below are under internal/agenthub/ unless stated otherwise.
| Area | Documentation | Code |
|---|---|---|
| Identity and credential evidence | Identity | identity |
| Signed public records | Records | records |
| Direct trust and invitations | Direct handshake, invitation | invitation, invitationwire |
| Bilateral Hub pairing | Pairing handshake | pairing, pairingwire |
| Client bootstrap, eligibility and recovery | Client bootstrap | endpoint, clienttransport, frontend |
| Signed directory and peer synchronization | Directory | directory, peersync |
| Durable state, RAM and WAL | Storage | store, state |
| Configuration and resource bounds | Configuration, service | config, service |
| Local administration and typed client | Local control, typed library | admin, controlsocket, pkg/ezhubapi |
| Authorization and service composition | Service | authorization, service |
| Role-separated TLS, mux and peer links | Link | hoptls, mux, peer |
| Gateway selection and application handoff | Gateway, application | gateway, application |
| Routing and exact-link lookup | Routing | routing |
| Relay lanes and immutable attachment | Relay | relay |
| Fixed sessions, endpoint carriers and circuit recovery | Circuit | circuit |
| Restricted routed Hub pairing | Relay, service | restrictedpairing |
| JSONL handoff | JSONL proxy | jsonlproxy |
| Literal corpora and reusable fixtures | AgentHub fixture guide | testdata, testkit, control literal test |
Application handoff preserves ordinary EzAgent JSONL and does not select CWD, root or leaf. Saved addresses and stable-authority successor consent remain local deliberate decisions; signed lineage and route discovery are not trust. Operational renewal under the accepted authority is automatic.
Other package guides
- Client transport and byte assembly: frontend, frontend/stream.
- Addon tunnel framing, stream state, and reusable adapters: tunnel pipe.
- Outbound Unix connections and owned SSH forwards: remote destinations.
- Source-local port provider and macro setup: ez-agent-tunnel.
- Shared helpers: incident-only audit, native bridges and shared MCP, WebFetch help ownership, IPC sockets, JSONL transport, JSON extraction, tools, watchdogs.
- Daemon execution: service, per-leaf agent.
- Ruby packaging: wrapper, runtime packaging, launcher, runtime payload, extension libraries.
- Extension payloads: Ruby Workflow 0.1 visualizer, CSV encoding.
Test ownership
Package tests own component contracts. The Python suites own shipped-process integration; tests/conftest.py owns isolated daemon fixtures. The Ruby runtime has a nested Go module and Ruby source tests.
Use focused checks while editing and follow
cache and timing guidance. One integration owner
runs the shared build and selected offline aggregate. Choose
computer-use checks for affected interactions,
not as an automatic full journey. Live OpenAI is opt-in.
Keep executable tests and their data with code, not under docs/.
Rules when changing the system
Update the owning documentation when behavior, contracts or package boundaries change. The daemon coordinates external capability processes rather than embedding capability logic. Preserve per-leaf isolation.
Session storage is schema v2: v1 plus sparse provider-native thinking attached to assistant turns. Further schema or durable orchestration changes require explicit approval. Follow the approval boundaries in AGENTS.md before adding a third-party dependency or changing the EzAgent JSONL contract. When protocol frames change, update the JSONL API catalog. Use the test isolation rules for daemon work. Never inspect auth files or stop the running orchestrator.