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

TaskDocumentationCode
Run the CLI or terminal UI, including client-local /hubCLI/TUI guide, terminal UI, frontend ownershipcmd/ez-agent, pkg/cli, pkg/tui, internal/frontend
Run the native Muse external-provider bridgeMuse bridge, external provider contractcmd/ezagent-muse-code-bridge, internal/musebridge
Run the native Claude Code external providerClaude bridge, external provider contractcmd/ezagent-claude-code-bridge, internal/claudebridge
Run or operate the daemonService guidecmd/ez-agent-service, pkg/service
Run, deploy or administer AgentHubHub guide, deployment examplescmd/ez-agent-hub, internal/agenthub
Configure providers, models or loginConfiguration, configurator, OAuthpkg/service/config, pkg/oauth
Set up remote model selection, automatic SSH/direct access or host relay policyConfigurator, provider exports, remote destinationsProvider host owners, upstream relay
Change a shipped tool, plugin, macro or skillBuiltin capabilities, hello provider examplecmd/ez-agent-builtin
Write an addon or review frames and lifecycleAddon API, JSONL API catalogpkg/protocol, pkg/ezagentapi
Understand session trees and persistenceSession storagepkg/service/session
Extend or orchestrate with RubyRuby addon, Workflow lifecycle for authors, API library, exact Workflow referenceez-agent-ruby
Fetch documents, use WebSockets or access authorized MCP servicesWebFetch command, WebFetch internals, Ruby WebFetch adapterinternal/webfetch, cmd/ez-agent-webfetch
Run focused or integration testsTest guidejustfile, tests, package *_test.go files
Find build identity or license generationBuild information, license generatorpkg/buildinfo, cmd/genlicenses

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.

AreaDocumentationCode
Identity and credential evidenceIdentityidentity
Signed public recordsRecordsrecords
Direct trust and invitationsDirect handshake, invitationinvitation, invitationwire
Bilateral Hub pairingPairing handshakepairing, pairingwire
Client bootstrap, eligibility and recoveryClient bootstrapendpoint, clienttransport, frontend
Signed directory and peer synchronizationDirectorydirectory, peersync
Durable state, RAM and WALStoragestore, state
Configuration and resource boundsConfiguration, serviceconfig, service
Local administration and typed clientLocal control, typed libraryadmin, controlsocket, pkg/ezhubapi
Authorization and service compositionServiceauthorization, service
Role-separated TLS, mux and peer linksLinkhoptls, mux, peer
Gateway selection and application handoffGateway, applicationgateway, application
Routing and exact-link lookupRoutingrouting
Relay lanes and immutable attachmentRelayrelay
Fixed sessions, endpoint carriers and circuit recoveryCircuitcircuit
Restricted routed Hub pairingRelay, servicerestrictedpairing
JSONL handoffJSONL proxyjsonlproxy
Literal corpora and reusable fixturesAgentHub fixture guidetestdata, 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

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.