internal/

directory
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: MIT

Directories

Path Synopsis
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, ...).
builtin
Package builtin lists the adapters compiled into otag.
Package builtin lists the adapters compiled into otag.
claude
Package claude is the Claude Code adapter.
Package claude is the Claude Code 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.
fake
Package fake is a scripted harness for tests and demos.
Package fake is a scripted harness for tests and demos.
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).
Package apperr defines the stable, machine-readable errors exposed by the CLI.
Package apperr defines the stable, machine-readable errors exposed by the CLI.
Package cli implements the otag command line.
Package cli implements the otag command line.
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.
Package db opens otag's SQLite database and applies embedded migrations.
Package db opens otag's SQLite database and applies embedded migrations.
Package event appends rows to the events table.
Package event appends rows to the events table.
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.
Package identity resolves which project and run a CLI invocation acts for.
Package identity resolves which project and run a CLI invocation acts for.
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.
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`.
Package paths resolves otag's default file locations.
Package paths resolves otag's default file locations.
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.
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.
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.
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.
Package task implements tasks, their status machine and dependencies.
Package task implements tasks, their status machine and dependencies.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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").

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL