Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
otag
command
Command otag coordinates AI coding agents across projects and harnesses.
|
Command otag coordinates AI coding agents across projects and harnesses. |
|
internal
|
|
|
adapter
Package adapter defines the boundary between otag and a harness (Claude Code, Codex, OpenCode, ...).
|
Package adapter defines the boundary between otag and a harness (Claude Code, Codex, OpenCode, ...). |
|
adapter/builtin
Package builtin lists the adapters compiled into otag.
|
Package builtin lists the adapters compiled into otag. |
|
adapter/claude
Package claude is the Claude Code adapter.
|
Package claude is the Claude Code adapter. |
|
adapter/codex
Package codex connects a per-run Codex app-server and remote TUI to otag.
|
Package codex connects a per-run Codex app-server and remote TUI to otag. |
|
adapter/fake
Package fake is a scripted harness for tests and demos.
|
Package fake is a scripted harness for tests and demos. |
|
adapter/opencode
Package opencode is the otag adapter for OpenCode v2 (tested with v2.0.20).
|
Package opencode is the otag adapter for OpenCode v2 (tested with v2.0.20). |
|
apperr
Package apperr defines the stable, machine-readable errors exposed by the CLI.
|
Package apperr defines the stable, machine-readable errors exposed by the CLI. |
|
cli
Package cli implements the otag command line.
|
Package cli implements the otag command line. |
|
daemon
Package daemon is otag's background service (`otag daemon`, run by launchd): every tick it runs the quota collectors, reaps runs whose pane died, stops stalled runs, reminds about unanswered questions, starts fallback runs on another profile after a usage limit or a harness that would not launch, and shows new notifications.
|
Package daemon is otag's background service (`otag daemon`, run by launchd): every tick it runs the quota collectors, reaps runs whose pane died, stops stalled runs, reminds about unanswered questions, starts fallback runs on another profile after a usage limit or a harness that would not launch, and shows new notifications. |
|
db
Package db opens otag's SQLite database and applies embedded migrations.
|
Package db opens otag's SQLite database and applies embedded migrations. |
|
event
Package event appends rows to the events table.
|
Package event appends rows to the events table. |
|
guard
Package guard decides whether an agent's write or shell command is allowed: writes must stay inside the workspace and off the project's deny globs, and commands must not push or write outside it.
|
Package guard decides whether an agent's write or shell command is allowed: writes must stay inside the workspace and off the project's deny globs, and commands must not push or write outside it. |
|
identity
Package identity resolves which project and run a CLI invocation acts for.
|
Package identity resolves which project and run a CLI invocation acts for. |
|
msg
Package msg is otag's durable message outbox (phase 4, docs/MESSAGES.md): messages, their per-recipient deliveries and the delivery state machine.
|
Package msg is otag's durable message outbox (phase 4, docs/MESSAGES.md): messages, their per-recipient deliveries and the delivery state machine. |
|
notify
Package notify stores notifications for the human: rows in `notifications`, listed with `otag notify list` and acknowledged with `otag notify ack`.
|
Package notify stores notifications for the human: rows in `notifications`, listed with `otag notify list` and acknowledged with `otag notify ack`. |
|
paths
Package paths resolves otag's default file locations.
|
Package paths resolves otag's default file locations. |
|
proc
Package proc identifies local processes by pid plus birth (start) time, so a pid the kernel reused is never taken for the process otag started, and finds their descendants.
|
Package proc identifies local processes by pid plus birth (start) time, so a pid the kernel reused is never taken for the process otag started, and finds their descendants. |
|
quota
Package quota records how much of each account's provider quota is used.
|
Package quota records how much of each account's provider quota is used. |
|
registry
Package registry loads the desired-state TOML (accounts, profiles, projects), validates it and syncs it into the database.
|
Package registry loads the desired-state TOML (accounts, profiles, projects), validates it and syncs it into the database. |
|
run
Package run implements the run lifecycle: start a harness in a tmux window on a workspace, follow it through normalized hook events, and end it with done, fail, stop or a crash.
|
Package run implements the run lifecycle: start a harness in a tmux window on a workspace, follow it through normalized hook events, and end it with done, fail, stop or a crash. |
|
setup
Package setup is otag's first-run setup: it detects the agent CLIs and tools on the machine, proposes accounts, profiles and a project, renders them as commented TOML and writes the files atomically.
|
Package setup is otag's first-run setup: it detects the agent CLIs and tools on the machine, proposes accounts, profiles and a project, renders them as commented TOML and writes the files atomically. |
|
task
Package task implements tasks, their status machine and dependencies.
|
Package task implements tasks, their status machine and dependencies. |
|
tmux
Package tmux drives otag's private tmux server (`tmux -L otag`).
|
Package tmux drives otag's private tmux server (`tmux -L otag`). |
|
tui
Package tui is `otag tui`: a full-screen view of projects, tasks and runs with a live preview of the selected agent's pane.
|
Package tui is `otag tui`: a full-screen view of projects, tasks and runs with a live preview of the selected agent's pane. |
|
tui/attach
Package attach plans the TUI's full-screen attach to an agent's window (docs/TUI.md "Full-screen attach"): a nested tmux client of otag's server run with tea.ExecProcess, or, inside the user's own tmux, a full-screen display-popup that runs that client.
|
Package attach plans the TUI's full-screen attach to an agent's window (docs/TUI.md "Full-screen attach"): a nested tmux client of otag's server run with tea.ExecProcess, or, inside the user's own tmux, a full-screen display-popup that runs that client. |
|
tui/data
Package data reads what the TUI shows: an immutable Snapshot taken in one read transaction, a Watcher that notices commits made by any other connection, and pane liveness.
|
Package data reads what the TUI shows: an immutable Snapshot taken in one read transaction, a Watcher that notices commits made by any other connection, and pane liveness. |
|
tui/fixture
Package fixture is a hand-built data.Snapshot for the TUI's unit and golden tests: every row kind, at a fixed time.
|
Package fixture is a hand-built data.Snapshot for the TUI's unit and golden tests: every row kind, at a fixed time. |
|
tui/form
Package form is the TUI's dialog kit: text fields, text areas, selects, checkboxes, pick lists, read-only notes and buttons.
|
Package form is the TUI's dialog kit: text fields, text areas, selects, checkboxes, pick lists, read-only notes and buttons. |
|
tui/preview
Package preview holds the TUI's view of one agent pane: the last capture, sanitized to text and SGR colours, cropped to the preview's size, with a live (follow) mode and a scroll-locked history mode.
|
Package preview holds the TUI's view of one agent pane: the last capture, sanitized to text and SGR colours, cropped to the preview's size, with a live (follow) mode and a scroll-locked history mode. |
|
tui/style
Package style holds the TUI's colours, status glyphs and small text helpers.
|
Package style holds the TUI's colours, status glyphs and small text helpers. |
|
tui/tabs
Package tabs renders the right-hand tabs other than the preview: Needs and Inbox as items with inline actions, and the text of Details and Stats.
|
Package tabs renders the right-hand tabs other than the preview: Needs and Inbox as items with inline actions, and the text of Details and Stats. |
|
tui/tree
Package tree flattens a data.Snapshot into the rows of the TUI's left pane: projects, their coordinator, the "Ready to deliver" group, tasks by attention, review tasks under the task they review, and runs under their task.
|
Package tree flattens a data.Snapshot into the rows of the TUI's left pane: projects, their coordinator, the "Ready to deliver" group, tasks by attention, review tasks under the task they review, and runs under their task. |
|
tui/tuitest
Package tuitest builds isolated otag environments for the TUI's tests: a temporary database, config and data dir, a private tmux socket, and the fake harness.
|
Package tuitest builds isolated otag environments for the TUI's tests: a temporary database, config and data dir, a private tmux socket, and the fake harness. |
|
tui/tuitest/pastecheck
command
Command pastecheck is a test stand-in for an agent's input box with paste detection, the way Claude and Codex judge it: in raw mode, an Enter that arrives in the same read as text, or less than a threshold after the last text, is part of a paste and becomes a newline; only an Enter on its own submits.
|
Command pastecheck is a test stand-in for an agent's input box with paste detection, the way Claude and Codex judge it: in raw mode, an Enter that arrives in the same read as text, or less than a threshold after the last text, is part of a paste and becomes a newline; only an Enter on its own submits. |
|
tui/typing
Package typing is the TUI's typing mode (docs/TUI.md "Typing mode"): key events encoded for `tmux send-keys`, and the sender that delivers them to an agent's pane one tmux command per key, in order, holding Enter back until the agent can no longer take it for part of a paste.
|
Package typing is the TUI's typing mode (docs/TUI.md "Typing mode"): key events encoded for `tmux send-keys`, and the sender that delivers them to an agent's pane one tmux command per key, in order, holding Enter back until the agent can no longer take it for part of a paste. |
|
tui/wizard
Package wizard is otag's setup wizard (`otag init`, bare `otag` on a fresh machine, and the confirm step of `otag project add`): a short sequence of form pages built with the TUI's dialog kit (internal/tui/form) and theme.
|
Package wizard is otag's setup wizard (`otag init`, bare `otag` on a fresh machine, and the confirm step of `otag project add`): a short sequence of form pages built with the TUI's dialog kit (internal/tui/form) and theme. |
|
workspace
Package workspace prepares the directory an agent works in: a git worktree on branch otag/<task> outside the repository (mode "worktree"), or the project itself ("same").
|
Package workspace prepares the directory an agent works in: a git worktree on branch otag/<task> outside the repository (mode "worktree"), or the project itself ("same"). |
Click to show internal directories.
Click to hide internal directories.
