Repository navigation
Architecture
Jackson Sá edited this page Oct 21, 2026
·
1 revision
| Crate | What it is |
|---|---|
agentux-api |
The API's types (runs, sessions, requests, events, limits), the JSON-RPC envelope and method names, and an async client. Shared by agentuxd, aux and the cockpit's backend |
agentux-config |
Parsing and strict validation of agentux.yaml, the built-in pipeline, detected checks, isolation |
agentux-store |
SQLite: projects, runs, attempts, requests, sessions, harness limits, and the event log every change goes through |
agentux-worktree |
Creating and removing run worktrees and aux/<run> branches |
agentux-harness |
Starting a harness (Claude Code, Codex, OpenCode, Antigravity) as an ACP agent and talking to it |
agentux-bus |
The agent bus: messages between a run's sessions and the human, as an MCP server |
agentuxd |
The daemon: the engine (run state machine), the ACP executor, checks, the socket server, terminals, preferences, limits, quota, notifications, secrets |
agentux-gateway |
The node gateway: reporting to Command, the command connection, the node policy |
aux-cli |
aux |
agentux-fake-agent |
A scriptable in-process ACP agent for tests |
-
runs.start(from the cockpit oraux run) reads the project'sagentux.yaml— or builds the built-in pipeline — gives each role a harness (the human's choice, the user's preferences, agents that are usable and not at a limit) and stores the run. - A driver task per run moves it through phases: setup (the worktree), then each step of the pipeline. Every transition is one store transaction that also appends an event; subscribers (
events.subscribe) get it after the commit. - Agent steps go to the executor: it opens (or reuses) the role's ACP session, sends the step's prompt with the plan and feedback, streams the session's events into the store, and returns an outcome. Implement and custom steps are committed by the daemon.
- Approvals, permissions, questions, budget and usage limits create requests; the run waits until the human answers or, for limits, the limit resets.
- Gates run the checks (on the host or in a rootless Podman container) and loop back on failure; reviews loop back on requested changes; pull_request pushes and opens the PR.
- A daemon restart resumes every unfinished run; the interrupted step runs again.
-
~/.local/state/agentux/agentuxd.db— the store ($XDG_STATE_HOME). -
$XDG_RUNTIME_DIR/agentux/agentuxd.sock— the API socket. -
~/.config/agentux/agents.yaml— the user's agent preferences. -
~/.config/agentux/node.json,~/.local/state/agentux/gateway*.json— the node gateway.