Directories
¶
| Path | Synopsis |
|---|---|
|
Package a2a implements the server half of the Agent2Agent (A2A) protocol v1.0 (Linux Foundation) over its JSON-RPC 2.0 binding: the public Agent Card, the request/response envelope, the Task object, and the mapping from Lectern's board columns onto the protocol's task states.
|
Package a2a implements the server half of the Agent2Agent (A2A) protocol v1.0 (Linux Foundation) over its JSON-RPC 2.0 binding: the public Agent Card, the request/response envelope, the Task object, and the mapping from Lectern's board columns onto the protocol's task states. |
|
Package agentevents ingests the push-based lifecycle and usage signals an agent reports about itself — Claude Code's settings-driven hooks and statusline, and (where 0.155 supports it) Codex's hooks.json/notify — and turns them into session state, per contract in docs/agent-events.md section 2.
|
Package agentevents ingests the push-based lifecycle and usage signals an agent reports about itself — Claude Code's settings-driven hooks and statusline, and (where 0.155 supports it) Codex's hooks.json/notify — and turns them into session state, per contract in docs/agent-events.md section 2. |
|
Package agents is the coding-agent adapter seam.
|
Package agents is the coding-agent adapter seam. |
|
Package alerts pushes a phone notification when an interactive session needs its operator — docs/agent-events.md section 3.
|
Package alerts pushes a phone notification when an interactive session needs its operator — docs/agent-events.md section 3. |
|
The CI-aware PR loop's API surface (internal/ciloop, docs/ci-loop.md): arming a watch when the commit button opens a PR, the manual "watch this PR" endpoint for a PR the agent opened itself, and the card view.
|
The CI-aware PR loop's API surface (internal/ciloop, docs/ci-loop.md): arming a watch when the commit button opens a PR, the manual "watch this PR" endpoint for a PR the agent opened itself, and the card view. |
|
Package app wires every component together.
|
Package app wires every component together. |
|
Package auth resolves who is making a request — a local process on this box, a tailnet user identified through tailscaled, or a bearer token — and decides what mode of gating the control plane runs under.
|
Package auth resolves who is making a request — a local process on this box, a tailnet user identified through tailscaled, or a bearer token — and decides what mode of gating the control plane runs under. |
|
Package autonomy contains the deterministic daily experiment policy.
|
Package autonomy contains the deterministic daily experiment policy. |
|
Package awareness gives interactive agent sessions visibility into what OTHER live sessions (and running task attempts) are doing in the same repository, so two agents working the same checkout — or two worktrees of it — don't duplicate or collide with each other's work.
|
Package awareness gives interactive agent sessions visibility into what OTHER live sessions (and running task attempts) are doing in the same repository, so two agents working the same checkout — or two worktrees of it — don't duplicate or collide with each other's work. |
|
Package broker is the approval gate: the hook blocks here until a human — or expiry — decides.
|
Package broker is the approval gate: the hook blocks here until a human — or expiry — decides. |
|
Package budget closes the "hard stop / spend alerts" competitive gap: daily/weekly USD caps (overall and optionally per agent), a per-task budget_usd field, Claude 5h/7d quota-threshold alerts, and a cost-anomaly check — all built on top of the account's own usage_daily/attempts history (internal/store) and delivered through the existing sinks.Notifier (docs/agent-events.md section 3), the same way internal/alerts and internal/autonomy already extend that infrastructure rather than duplicating it.
|
Package budget closes the "hard stop / spend alerts" competitive gap: daily/weekly USD caps (overall and optionally per agent), a per-task budget_usd field, Claude 5h/7d quota-threshold alerts, and a cost-anomaly check — all built on top of the account's own usage_daily/attempts history (internal/store) and delivered through the existing sinks.Notifier (docs/agent-events.md section 3), the same way internal/alerts and internal/autonomy already extend that infrastructure rather than duplicating it. |
|
Package bus is the in-process SSE fan-out.
|
Package bus is the in-process SSE fan-out. |
|
Package checks runs a project's check command against a session's worktree when its agent stops, and stores the result for the card to show.
|
Package checks runs a project's check command against a session's worktree when its agent stops, and stores the result for the card to show. |
|
Package ciloop is the CI-aware PR loop (docs/ci-loop.md): once Lectern opens a pull request for a task or session on a project that opted in, it watches the PR's checks through the target's own `gh`, and when they fail it sends the owning agent a short failure report — failing job names and a trimmed, redacted log tail — asking it to fix them.
|
Package ciloop is the CI-aware PR loop (docs/ci-loop.md): once Lectern opens a pull request for a task or session on a project that opted in, it watches the PR's checks through the target's own `gh`, and when they fail it sends the owning agent a short failure report — failing job names and a trimmed, redacted log tail — asking it to fix them. |
|
Package claims is the Claim board's logic half: a shared, vendor-neutral record of who is doing what in a repository, so agents from different vendors (Claude Code, Codex, ACP agents) and humans coordinate instead of duplicating work on the same checkout.
|
Package claims is the Claim board's logic half: a shared, vendor-neutral record of who is doing what in a repository, so agents from different vendors (Claude Code, Codex, ACP agents) and humans coordinate instead of duplicating work on the same checkout. |
|
Package config holds every knob lectern reads from the environment.
|
Package config holds every knob lectern reads from the environment. |
|
Package console is a terminal client for the same API used by the web UI.
|
Package console is a terminal client for the same API used by the web UI. |
|
Package creds provisions agent authentication onto targets.
|
Package creds provisions agent authentication onto targets. |
|
Package ctxbundle stages the files a dispatched agent should read before it starts.
|
Package ctxbundle stages the files a dispatched agent should read before it starts. |
|
Package delegation is the "Delegated builds" feature: a lead agent plans a piece of work and reviews the result, and a cheaper worker agent does the implementation in between, as a Lectern task in its own worktree.
|
Package delegation is the "Delegated builds" feature: a lead agent plans a piece of work and reviews the result, and a cheaper worker agent does the implementation in between, as a Lectern task in its own worktree. |
|
Package desktop gives a target a private graphical display the operator can watch from a browser.
|
Package desktop gives a target a private graphical display the operator can watch from a browser. |
|
Package drivers is the one seam between "an unattended agent run" and everything that wants to start one: the scheduler (queued attempts today launched by tmux + a polled events.jsonl file, unchanged), the new steering endpoint, and — the reason this package exists standalone rather than as scheduler-internal helpers — future best-of-N and agent-eval workers that want to start a run directly, with no task, board or database involved.
|
Package drivers is the one seam between "an unattended agent run" and everything that wants to start one: the scheduler (queued attempts today launched by tmux + a polled events.jsonl file, unchanged), the new steering endpoint, and — the reason this package exists standalone rather than as scheduler-internal helpers — future best-of-N and agent-eval workers that want to start a run directly, with no task, board or database involved. |
|
Package evals holds the pieces of the agent-test-suite ("evals") feature that do not need the database or a live target: the `.lectern/evals/*.yaml` suite format and its parsing/validation, and pure result-aggregation math (leaderboards, run comparison) that the API layer feeds real rows into.
|
Package evals holds the pieces of the agent-test-suite ("evals") feature that do not need the database or a live target: the `.lectern/evals/*.yaml` suite format and its parsing/validation, and pure result-aggregation math (leaderboards, run comparison) that the API layer feeds real rows into. |
|
Package executor abstracts "run a command / move a file on a machine".
|
Package executor abstracts "run a command / move a file on a machine". |
|
Package forward carries TCP from a port on the control plane to a service that only listens on a target's localhost.
|
Package forward carries TCP from a port on the control plane to a service that only listens on a target's localhost. |
|
Package hooks embeds the two agent-side Python scripts staged into every worktree.
|
Package hooks embeds the two agent-side Python scripts staged into every worktree. |
|
Package isolation builds the per-agent-process sandbox a session or task attempt can run inside, as a fast, no-clone alternative to the full LXC clone in internal/sandbox: bubblewrap (no daemon, Linux only) or a disposable Docker container.
|
Package isolation builds the per-agent-process sandbox a session or task attempt can run inside, as a fast, no-clone alternative to the full LXC clone in internal/sandbox: bubblewrap (no daemon, Linux only) or a disposable Docker container. |
|
Package limits makes Lectern usage-limit aware: it recognises when an agent CLI has been stopped by its provider's usage limit, records a hold with the reset time, and applies the session's or project's policy — notify, wait and resume at the reset, or hand the work to another agent.
|
Package limits makes Lectern usage-limit aware: it recognises when an agent CLI has been stopped by its provider's usage limit, records a hold with the reset time, and applies the session's or project's policy — notify, wait and resume at the reset, or hand the work to another agent. |
|
Package mcp exposes lectern over the Model Context Protocol on stdio, so any MCP client — Claude Code, an mcpo bridge, a chat bot — can file and steer tasks.
|
Package mcp exposes lectern over the Model Context Protocol on stdio, so any MCP client — Claude Code, an mcpo bridge, a chat bot — can file and steer tasks. |
|
Package mediapost is the one way a file or link reaches Lectern's media feed.
|
Package mediapost is the one way a file or link reaches Lectern's media feed. |
|
Package memory is lectern's seam onto a durable knowledge store.
|
Package memory is lectern's seam onto a durable knowledge store. |
|
Package nativeidentity is the single read-only native conversation identity implementation shared by the API history reader and session recovery.
|
Package nativeidentity is the single read-only native conversation identity implementation shared by the API history reader and session recovery. |
|
Package oauth is the authorization server for Lectern's public MCP web connector (Streamable HTTP), ported from Grimoire's grimoire-mcp OAuth server — the same owner's MIT-licensed sibling project, already live in production for exactly this problem.
|
Package oauth is the authorization server for Lectern's public MCP web connector (Streamable HTTP), ported from Grimoire's grimoire-mcp OAuth server — the same owner's MIT-licensed sibling project, already live in production for exactly this problem. |
|
Package onboard holds the small set of environment checks a brand-new install needs answered before its first session: which agent CLIs are on PATH, and whether tmux/git are available.
|
Package onboard holds the small set of environment checks a brand-new install needs answered before its first session: which agent CLIs are on PATH, and whether tmux/git are available. |
|
Package outcomes closes the "cost per outcome" competitive gap: tying every dollar spent to what it produced (a passing check, an accepted change, kept lines, an eval pass), per agent and model.
|
Package outcomes closes the "cost per outcome" competitive gap: tying every dollar spent to what it produced (a passing check, an accepted change, kept lines, an eval pass), per agent and model. |
|
Package pairing lets a phone with no Tailscale reach Lectern through an ordinary public tunnel (Cloudflare Tunnel, `tailscale funnel`, ...) without handing it the operator's static LECTERN_AUTH_TOKEN.
|
Package pairing lets a phone with no Tailscale reach Lectern through an ordinary public tunnel (Cloudflare Tunnel, `tailscale funnel`, ...) without handing it the operator's static LECTERN_AUTH_TOKEN. |
|
Package policy holds a project's "always allow" rules, evaluated server-side before a human is ever paged.
|
Package policy holds a project's "always allow" rules, evaluated server-side before a human is ever paged. |
|
Package push is the web-push (VAPID) notification sink.
|
Package push is the web-push (VAPID) notification sink. |
|
Package relay holds the pieces of Lectern's end-to-end encrypted relay that both ends share: key material, the Noise handshake between a phone and the host, the framing of HTTP and WebSocket traffic inside that encrypted channel, and the relay's own routing frames.
|
Package relay holds the pieces of Lectern's end-to-end encrypted relay that both ends share: key material, the Noise handshake between a phone and the host, the framing of HTTP and WebSocket traffic inside that encrypted channel, and the relay's own routing frames. |
|
client
Package client is a Go implementation of the phone's side of the relay (the browser's is frontend/src/relay).
|
Package client is a Go implementation of the phone's side of the relay (the browser's is frontend/src/relay). |
|
host
Package host is the Lectern side of the end-to-end encrypted relay (docs/relay.md).
|
Package host is the Lectern side of the end-to-end encrypted relay (docs/relay.md). |
|
server
Package server is `lectern relay`: a single-process, stateless router of opaque frames between a Lectern host and that host's paired devices.
|
Package server is `lectern relay`: a single-process, stateless router of opaque frames between a Lectern host and that host's paired devices. |
|
Package replay builds eval cases from a project's own merged-PR history — "replay evals" (docs/replay-evals.md): the answer to "which agent/model is best for MY repository" ground-truthed against what actually landed, not a hand-written prompt.
|
Package replay builds eval cases from a project's own merged-PR history — "replay evals" (docs/replay-evals.md): the answer to "which agent/model is best for MY repository" ground-truthed against what actually landed, not a hand-written prompt. |
|
Package routines turns a job you keep asking for into one you can press a button for, or schedule.
|
Package routines turns a job you keep asking for into one you can press a button for, or schedule. |
|
Package sandbox owns the ephemeral LXC lifecycle: clone template, start, run, destroy.
|
Package sandbox owns the ephemeral LXC lifecycle: clone template, start, run, destroy. |
|
Package scheduler promotes queued attempts, tails running ones and finalises results.
|
Package scheduler promotes queued attempts, tails running ones and finalises results. |
|
Package scratch reclaims throwaway workspaces nobody is using.
|
Package scratch reclaims throwaway workspaces nobody is using. |
|
Package sessions is lectern's second execution mode: an INTERACTIVE agent you work with, rather than a task you hand off.
|
Package sessions is lectern's second execution mode: an INTERACTIVE agent you work with, rather than a task you hand off. |
|
Package shellq renders values as shell words.
|
Package shellq renders values as shell words. |
|
Package sinks fans notifications out to web-push, a Discord webhook and ntfy, best-effort and never blocking the caller.
|
Package sinks fans notifications out to web-push, a Discord webhook and ntfy, best-effort and never blocking the caller. |
|
Package skills manages project skill intent and target-local materialization.
|
Package skills manages project skill intent and target-local materialization. |
|
Package state is the task state machine — the single source of truth for which board moves are legal.
|
Package state is the task state machine — the single source of truth for which board moves are legal. |
|
Package store is lectern's SQLite persistence layer: schema, typed row accessors, and the small JSON helpers the rest of the service shares.
|
Package store is lectern's SQLite persistence layer: schema, typed row accessors, and the small JSON helpers the rest of the service shares. |
|
Package terminal is one-click terminal attach: spawn a ttyd on the control plane that wraps `tmux attach` (locally, over ssh, or via pct) for a running attempt.
|
Package terminal is one-click terminal attach: spawn a ttyd on the control plane that wraps `tmux attach` (locally, over ssh, or via pct) for a running attempt. |
|
Package testutil contains small safety helpers shared by real-process tests.
|
Package testutil contains small safety helpers shared by real-process tests. |
|
Package triggers lets a project pick up work on its own — from a labelled GitHub issue, an @mention in a PR/issue comment, a Slack message, a /lectern slash command, or a labelled Linear issue — the way Devin, Cursor, Codex, Tembo and Charlie already do.
|
Package triggers lets a project pick up work on its own — from a labelled GitHub issue, an @mention in a PR/issue comment, a Slack message, a /lectern slash command, or a labelled Linear issue — the way Devin, Cursor, Codex, Tembo and Charlie already do. |
|
Package version carries the single source of truth for the release string.
|
Package version carries the single source of truth for the release string. |
|
Package workflows describes the optional, bundled project workflows.
|
Package workflows describes the optional, bundled project workflows. |
|
Package worktree owns the git worktree lifecycle and diff capture, all through the Executor interface so it works identically on every target kind.
|
Package worktree owns the git worktree lifecycle and diff capture, all through the Executor interface so it works identically on every target kind. |
Click to show internal directories.
Click to hide internal directories.