lectern

module
v2.10.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT

README

Lectern

Mission control for AI coding agents.

release license MIT single Go binary platforms Linux, macOS, Windows Android app

Quickstart · Docs · Screenshots · Android · Releases

The Lectern sessions dashboard with demo agents

Lectern runs coding agents such as Claude Code, Codex and Gemini CLI on your
own computer, and lets you follow them, approve what they do and review their
changes from your terminal, browser or phone.

curl -fsSL https://raw.githubusercontent.com/JeremiahM37/lectern/main/install.sh | sh
lectern claude    # start an agent in this folder, then: lectern up (browser) · lectern phone (QR)

Other platforms and the full walkthrough are in Quick start.

Quick start

You need Git and, for real work, an agent CLI such as Claude Code, Codex or Gemini CLI. Without one you can still try Lectern with its built-in demo agent.

macOS and Linux

curl -fsSL https://raw.githubusercontent.com/JeremiahM37/lectern/main/install.sh | sh

Or on macOS with Homebrew: brew install JeremiahM37/tap/lectern

Windows (PowerShell, with Git for Windows installed)

irm https://raw.githubusercontent.com/JeremiahM37/lectern/main/install.ps1 | iex

Or with Scoop: scoop bucket add jeremiahm37 https://github.com/JeremiahM37/scoop-bucket && scoop install lectern

Then, in a project folder:

cd ~/myapp
lectern claude    # start your first agent here (or: lectern codex, lectern gemini)
lectern up        # open the web dashboard in your browser
lectern phone     # show a QR code to pair a phone on the same Wi-Fi

The agent keeps running when you leave the terminal (Ctrl+] then d), and the same session shows up in the browser and on your phone. On a new install the agent asks before risky actions, such as running a command or editing a file, and you can answer from any of them.

New to Lectern? Getting started walks through your first session: install, start an agent, approve from the browser and the phone, then review and commit the change.

lectern doctor checks your setup and prints a fix for anything missing. lectern update installs a new release. lectern help lists every command.

Work across the Lectern terminal client and browser

Watch the one-minute walkthrough · Screenshots

Demo projects with scripted agent responses.

In your terminal

Run lectern with no arguments for the terminal dashboard: every session on every machine, a live preview, and the keys for what you can do next along the bottom. Press Enter to attach to one, Ctrl+] then d to leave.

Attached to a session in the terminal, with the key bar on topDashboard, attach, leave and pick another session
Attached, with the key bar Attach, leave, pick another

The same sessions appear in the browser dashboard above and on your phone. More in the terminal client guide.

Demo projects with scripted agent responses.

What you can do

  • Watch and talk to agents. Every session has a terminal and a chat view. See which sessions are working, idle or waiting for you.
  • Approve or deny. A pending request shows the command or the diff, with Allow once, Allow for this session or Deny, on the desktop and on the phone.
  • Review and commit. Review & merge shows what the agent changed. Leave comments for the agent, stage what you want and commit. On your main branch it offers a new branch first.
  • Use your phone. The phone layout is installable as an app, with notifications when an agent needs you. On Android there is also a native app (the APK is on each release) that approves from the notification and updates itself.
A pending approval in the phone layout

Terminal client · Phone supervision · Review · Screenshots in sessions

Going further

Everything above runs on one computer. Lectern can also manage agents across several machines.

Run work where it belongs

A coding task needs somewhere to run, a workspace of its own, and a way to bring you back when it needs a decision. Lectern connects those pieces across the machines you already use.

  1. Choose the machine and project. Work locally, on a server over SSH, in an existing Proxmox LXC, or in a fresh sandbox for each task attempt.
  2. Dispatch to your agent of choice. Queue work with per-machine concurrency limits. Task attempts get separate git worktrees; race agents on the same problem or use a lead agent to review delegated work.
  3. Supervise and review from anywhere. Return to the terminal, inspect changes, answer an approval on your phone, or continue the conversation with another agent.
flowchart LR
    U["Terminal · Web · Phone · MCP"] --> L["Lectern<br/>Projects, task queue, sessions & approvals"]
    L --> W["Workstation<br/>Local execution"]
    L --> S["Servers & VPSes<br/>SSH execution"]
    L --> E["Disposable environments<br/>Proxmox · Docker · Script hooks"]
    W & S & E --> A["Claude Code · Codex · Gemini CLI · Custom agents"]
    A --> R["Changes, checks & requests for approval"]
    R --> U

Today, placement is explicit: a project selects its machine and the scheduler runs its queued tasks there. Automatic placement by GPU, RAM or OS requirements is a future direction, not a current feature. Worktrees separate changes; use a sandbox when you also need execution isolation.

Execution environment What Lectern does
Your workstation Runs the installed agent CLIs locally, with persistent terminals on Linux, macOS and Windows.
SSH server or VPS Runs agents and manages workspaces remotely. Import SSH aliases, use jump hosts, and reconnect to sessions.
Existing Proxmox LXC Executes through pct from the Proxmox host.
Disposable sandbox Creates a Proxmox template clone, Docker container, or environment supplied by trusted script hooks for each attempt. Saves results before configured cleanup.

Run a shared server · SSH machines · Sandbox providers and lifecycle · Isolation options and limits

Machines and projects in the current desktop UI

Keep the agent choice yours

Claude Code, Codex and Gemini CLI are built in. Add OpenCode, Aider, Goose, Cursor and other runners from the catalog, or configure a custom CLI. Agent capabilities vary; Lectern exposes what each runner supports.

Switch a session to another agent with a saved handoff. Adopt Claude and Codex sessions started outside Lectern, search saved conversations, and restore ended sessions when the agent has resumable history.

Agent catalog and capabilities · Delegated builds · Replay evals

Reach it from anywhere

Phone pairing on the same Wi-Fi needs nothing extra. Away from home, use Tailscale, a public tunnel with device pairing, or the optional end-to-end encrypted relay.

Start work from a claude.ai or supported ChatGPT connector, too: send a design or attachment into a session on your machine. Chat connectors cannot approve agent actions.

Remote access · Relay · Chat connectors

The everyday details

  • Files travel with the work. Open a remote PDF or file path an agent prints; the native client opens it locally, while the web app has a built-in viewer. Drop files into the web workspace or upload them to a session. Files · Paths and links
  • Review and follow-through. Inspect diffs, run checks, open PRs, and send failed CI results back to the agent. Review · CI loop
  • Continuity. Restore sessions, handle provider rate limits, track usage and budgets, and bring project knowledge through optional Grimoire integration. Rate limits · Budgets · Memory
  • A browser beside the work. Watch the agent's browser, take over, or send a page element's context back to the agent. Browser tools

More screenshots and file demonstrations · Full guide

Other ways to install

Docker docker run -d -p 127.0.0.1:9110:9110 -e LECTERN_INSECURE_LISTEN=1 -v lectern-data:/data ghcr.io/jeremiahm37/lectern:latest
Go go install github.com/JeremiahM37/lectern/v2/cmd/lectern@latest
deb / rpm Packages are attached to each release.

On the machine that runs Lectern, agents need only git and the agent's own CLI: Lectern keeps their terminals alive itself, on Linux, macOS and Windows (how). Other machines reached over SSH need the lectern binary installed, or tmux and python3. The web terminal is built in. To try it with fake agents and no setup: LECTERN_MOCK=1 lectern serve (it listens on 127.0.0.1 only).

Documentation

Getting started Install, first agent, approvals on the web and phone, review and commit
Full guide Everything in depth: sessions, tasks, auth, phone alerts, delegated builds, local models
Use from claude.ai / ChatGPT The chat connector: setup, what a chat can do, troubleshooting
Terminal client Dashboard keys, multi-window, lectern claude, send-file
Agents Catalog, capabilities per agent, custom agents
Scribe Lectern's own coding agent (lectern code): terminal, headless/CI, and inside Lectern sessions
Mobile sessions Chat cards, approvals, voice mode
Remote Control Open a claude session in claude.ai/code and the Claude app too
Browser Browser pane, Design Mode, agent browser tools, computer use
Remote access Phone pairing and tunnels without Tailscale
Local runtime · Shared server · Docker How the private runtime works, building from source, a server for several machines, containers

Lectern was called AgentDeck until v2.3. Old AGENTDECK_* settings still work.

MIT © Jeremiah Mackey

Directories

Path Synopsis
cmd
lectern command
Command lectern is the control plane: one binary that serves the API, the PWA and the scheduler that drives every dispatched agent.
Command lectern is the control plane: one binary that serves the API, the PWA and the scheduler that drives every dispatched agent.
lectern/localruntime
Package localruntime starts the per-user Lectern control plane used by the local CLI.
Package localruntime starts the per-user Lectern control plane used by the local CLI.
internal
a2a
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.
accounts
Package accounts is everything CLI-specific about running one agent CLI under several logins (docs/accounts.md): which environment variable moves a CLI's config directory, how that CLI lays out a conversation inside it, how to sign an account in, and which account a usage limit should move work to.
Package accounts is everything CLI-specific about running one agent CLI under several logins (docs/accounts.md): which environment variable moves a CLI's config directory, how that CLI lays out a conversation inside it, how to sign an account in, and which account a usage limit should move work to.
agentevents
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.
agents
Package agents is the coding-agent adapter seam.
Package agents is the coding-agent adapter seam.
alerts
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.
api
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.
app
Package app wires every component together.
Package app wires every component together.
auth
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.
autonomy
Package autonomy contains the deterministic daily experiment policy.
Package autonomy contains the deterministic daily experiment policy.
awareness
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.
backup
Package backup writes everything a Lectern server knows into one archive and puts it back: the database (sessions, tasks, projects, workflows, approvals, settings), posted media, the ~/.lectern folder (plugins, hooks, Scribe chats), the agents' own chat transcripts for every workspace a session ran in, and the server's LECTERN_* configuration.
Package backup writes everything a Lectern server knows into one archive and puts it back: the database (sessions, tasks, projects, workflows, approvals, settings), posted media, the ~/.lectern folder (plugins, hooks, Scribe chats), the agents' own chat transcripts for every workspace a session ran in, and the server's LECTERN_* configuration.
broker
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.
browser
Package browser drives a real Chromium on a target over the Chrome DevTools Protocol, for the session Browser pane, Design Mode and the agent browser tools (docs/browser.md).
Package browser drives a real Chromium on a target over the Chrome DevTools Protocol, for the session Browser pane, Design Mode and the agent browser tools (docs/browser.md).
budget
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.
bus
Package bus is the in-process SSE fan-out.
Package bus is the in-process SSE fan-out.
checks
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.
ciloop
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.
claims
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.
clipboard
Package clipboard lets an agent running on the Lectern host read the clipboard of the device the person is driving it from.
Package clipboard lets an agent running on the Lectern host read the clipboard of the device the person is driving it from.
clipboard/xhost
Package xhost gives a machine a real clipboard that headless sessions can reach: a private Xvfb plus a selection owner Lectern fills from the device the person is using.
Package xhost gives a machine a real clipboard that headless sessions can reach: a private Xvfb plus a selection owner Lectern fills from the device the person is using.
config
Package config holds every knob lectern reads from the environment.
Package config holds every knob lectern reads from the environment.
conflicts
Package conflicts predicts semantic conflicts between concurrent agent sessions working one repository.
Package conflicts predicts semantic conflicts between concurrent agent sessions working one repository.
console
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.
console/mods
Package mods runs plugin mods (docs/mods.md) inside the terminal console.
Package mods runs plugin mods (docs/mods.md) inside the terminal console.
creds
Package creds provisions agent authentication onto targets.
Package creds provisions agent authentication onto targets.
ctxbundle
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.
decisionlog
Package decisionlog records every decision a person, a policy or a witness check made about an agent's work, and how long the thing waited for it (docs/decision-log.md).
Package decisionlog records every decision a person, a policy or a witness check made about an agent's work, and how long the thing waited for it (docs/decision-log.md).
delegation
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.
desktop
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.
drivers
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.
effects
Package effects checks the claims an agent makes about the world ("pushed", "restarted the service", "it is live at …") by probing the effect itself.
Package effects checks the claims an agent makes about the world ("pushed", "restarted the service", "it is live at …") by probing the effect itself.
evals
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.
executor
Package executor abstracts "run a command / move a file on a machine".
Package executor abstracts "run a command / move a file on a machine".
filelinks
Package filelinks finds what a click on terminal output points at: a web address or a file path, including a path an agent's TUI hard-wrapped across rows.
Package filelinks finds what a click on terminal output points at: a web address or a file path, including a path an agent's TUI hard-wrapped across rows.
forward
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.
gitbash
Package gitbash finds the bash that ships with Git for Windows.
Package gitbash finds the bash that ships with Git for Windows.
helpers
Package helpers holds the target-side helpers: small programs Lectern runs on an agent machine to read or change something there — a workspace file operation, a native conversation search, an agent hook.
Package helpers holds the target-side helpers: small programs Lectern runs on an agent machine to read or change something there — a workspace file operation, a native conversation search, an agent hook.
helpers/helperstest
Package helperstest runs target-side helpers the way a target does — as a separate process with its own environment, working directory, stdin and exit status — so a test can hold a Go helper and the Python script it replaces to the same observable behaviour.
Package helperstest runs target-side helpers the way a target does — as a separate process with its own environment, working directory, stdin and exit status — so a test can hold a Go helper and the Python script it replaces to the same observable behaviour.
hooks
Package hooks embeds the two agent-side Python scripts staged into a worktree on a target without a lectern binary.
Package hooks embeds the two agent-side Python scripts staged into a worktree on a target without a lectern binary.
isolation
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.
limits
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.
mcp
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.
mediapost
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.
memory
Package memory is lectern's seam onto a durable knowledge store.
Package memory is lectern's seam onto a durable knowledge store.
nativeidentity
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.
oauth
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.
onboard
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.
outcomes
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.
pairing
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.
pluginpkg
Package pluginpkg is the plugin package format: the lectern-plugin.yaml manifest, its validation, the content hash consent is pinned to, the capability list a person reviews, and the plugins bundled into the binary.
Package pluginpkg is the plugin package format: the lectern-plugin.yaml manifest, its validation, the content hash consent is pinned to, the capability list a person reviews, and the plugins bundled into the binary.
plugins
Package plugins installs plugins, keeps the consent that pins each one, and hands their contributions to the places Lectern already has: the agent catalog, project workflows, agent MCP config, lifecycle hooks and the UI.
Package plugins installs plugins, keeps the consent that pins each one, and hands their contributions to the places Lectern already has: the agent catalog, project workflows, agent MCP config, lifecycle hooks and the UI.
policy
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.
ptyhost
Package ptyhost is Lectern's own terminal keeper: one small process per user per machine that owns pseudo-terminals, so agents and shells outlive the Lectern server, its restarts and its upgrades, with nothing but the lectern binary installed (docs/ptyhost.md).
Package ptyhost is Lectern's own terminal keeper: one small process per user per machine that owns pseudo-terminals, so agents and shells outlive the Lectern server, its restarts and its upgrades, with nothing but the lectern binary installed (docs/ptyhost.md).
push
Package push is the web-push (VAPID) notification sink.
Package push is the web-push (VAPID) notification sink.
relay
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.
relay/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).
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).
relay/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.
replay
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.
routines
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.
sandbox
Package sandbox owns the ephemeral LXC lifecycle: clone template, start, run, destroy.
Package sandbox owns the ephemeral LXC lifecycle: clone template, start, run, destroy.
scheduler
Package scheduler promotes queued attempts, tails running ones and finalises results.
Package scheduler promotes queued attempts, tails running ones and finalises results.
scratch
Package scratch reclaims throwaway workspaces nobody is using.
Package scratch reclaims throwaway workspaces nobody is using.
scribe/agent
Package agent is Scribe's agent loop: it builds each model request, streams the response, runs tool calls, and reports everything it does as Events.
Package agent is Scribe's agent loop: it builds each model request, streams the response, runs tool calls, and reports everything it does as Events.
scribe/app
Package app assembles a Scribe session: config, model registry, tools, code map, language servers, memory, hooks, MCP servers, session storage and the agent itself.
Package app assembles a Scribe session: config, model registry, tools, code map, language servers, memory, hooks, MCP servers, session storage and the agent itself.
scribe/app/smoke command
Command smoke runs one headless turn against a real model (dev only).
Command smoke runs one headless turn against a real model (dev only).
scribe/computer
Package computer runs the actions of Anthropic's computer-use tool on this machine.
Package computer runs the actions of Anthropic's computer-use tool on this machine.
scribe/config
Package config loads Scribe's settings: a global file at $LECTERN_HOME/scribe/config.json (default ~/.lectern/scribe/config.json) merged with an optional project file at <repo>/.scribe/config.json.
Package config loads Scribe's settings: a global file at $LECTERN_HOME/scribe/config.json (default ~/.lectern/scribe/config.json) merged with an optional project file at <repo>/.scribe/config.json.
scribe/headless
Package headless is Scribe's non-interactive runner.
Package headless is Scribe's non-interactive runner.
scribe/hooks
Package hooks runs user hook commands on agent events.
Package hooks runs user hook commands on agent events.
scribe/lecternbridge
Package lecternbridge connects a Scribe session that runs inside a Lectern session to Lectern.
Package lecternbridge connects a Scribe session that runs inside a Lectern session to Lectern.
scribe/llm
Package llm is Scribe's provider-neutral model interface: one message format, one tool-spec format and one streaming event type that every provider adapter (Anthropic Messages, OpenAI-compatible chat completions, Gemini) translates to and from.
Package llm is Scribe's provider-neutral model interface: one message format, one tool-spec format and one streaming event type that every provider adapter (Anthropic Messages, OpenAI-compatible chat completions, Gemini) translates to and from.
scribe/llm/anthropic
Package anthropic implements llm.Provider over the Anthropic Messages API (POST /v1/messages with stream=true).
Package anthropic implements llm.Provider over the Anthropic Messages API (POST /v1/messages with stream=true).
scribe/llm/codex
Package codex runs models from a ChatGPT subscription through the official codex CLI: model calls go through `codex exec`, and sign-in, account status, rate limits and the model list go through `codex app-server` (JSON-RPC over stdio).
Package codex runs models from a ChatGPT subscription through the official codex CLI: model calls go through `codex exec`, and sign-in, account status, rate limits and the model list go through `codex app-server` (JSON-RPC over stdio).
scribe/llm/copilot
Package copilot implements llm.Provider for GitHub Copilot.
Package copilot implements llm.Provider for GitHub Copilot.
scribe/llm/ollama
Package ollama is Scribe's adapter for Ollama's native chat API (POST /api/chat).
Package ollama is Scribe's adapter for Ollama's native chat API (POST /api/chat).
scribe/llm/openai
Package openai is Scribe's adapter for OpenAI-compatible Chat Completions servers (OpenAI, DeepSeek, OpenRouter, Groq, Ollama, LM Studio, ...).
Package openai is Scribe's adapter for OpenAI-compatible Chat Completions servers (OpenAI, DeepSeek, OpenRouter, Groq, Ollama, LM Studio, ...).
scribe/llm/proxy
Package proxy is the "proxy" provider: a local CLIProxyAPI sidecar that relays existing chat subscriptions as an API on 127.0.0.1:8317.
Package proxy is the "proxy" provider: a local CLIProxyAPI sidecar that relays existing chat subscriptions as an API on 127.0.0.1:8317.
scribe/llm/registry
Package registry is Scribe's provider table: the built-in providers, the user's custom OpenAI-compatible providers from config, the key store, model listing with a short cache, and "provider/model" resolution.
Package registry is Scribe's provider table: the built-in providers, the user's custom OpenAI-compatible providers from config, the key store, model listing with a short cache, and "provider/model" resolution.
scribe/lsp
Package lsp is Scribe's Language Server Protocol client: a JSON-RPC 2.0 connection over stdio with Content-Length framing, a catalog of known servers, and a Manager that runs one server per (language, project root).
Package lsp is Scribe's Language Server Protocol client: a JSON-RPC 2.0 connection over stdio with Content-Length framing, a catalog of known servers, and a Manager that runs one server per (language, project root).
scribe/mcp
Package mcp is Scribe's Model Context Protocol client.
Package mcp is Scribe's Model Context Protocol client.
scribe/memory
Package memory is Scribe's durable memory: short records the agent saves so later sessions can recall them.
Package memory is Scribe's durable memory: short records the agent saves so later sessions can recall them.
scribe/nvim
Package nvim drives an editor that Scribe runs beside the chat.
Package nvim drives an editor that Scribe runs beside the chat.
scribe/redact
Package redact replaces secrets in text with "[redacted]" before the text reaches a sink: tool results, session files and logs.
Package redact replaces secrets in text with "[redacted]" before the text reaches a sink: tool results, session files and logs.
scribe/remote
Package remote holds what every phone surface shares: one-time pairing codes, the per-chat allowlist, and the throttle that keeps progress messages from flooding a phone.
Package remote holds what every phone surface shares: one-time pairing codes, the per-chat allowlist, and the throttle that keeps progress messages from flooding a phone.
scribe/remote/discord
Package discord is Scribe's Discord surface, and it is notify-only.
Package discord is Scribe's Discord surface, and it is notify-only.
scribe/remote/telegram
Package telegram is Scribe's Telegram surface.
Package telegram is Scribe's Telegram surface.
scribe/repomap
Package repomap is Scribe's code map: a ranked index of a repository's files, symbols and references.
Package repomap is Scribe's code map: a ranked index of a repository's files, symbols and references.
scribe/session
Package session persists Scribe's conversations, per-turn file checkpoints and prompt history.
Package session persists Scribe's conversations, per-turn file checkpoints and prompt history.
scribe/skills
Package skills discovers, renders, installs and removes Scribe skills.
Package skills discovers, renders, installs and removes Scribe skills.
scribe/symedit
Package symedit is Scribe's symbol-addressed editing tool, ast_edit.
Package symedit is Scribe's symbol-addressed editing tool, ast_edit.
scribe/tools
Package tools holds the tools Scribe's agent can call.
Package tools holds the tools Scribe's agent can call.
scribe/tools/exec
Package exec holds Scribe's execution tools: shell (foreground and background), project (detected test, lint, build and run commands) and git.
Package exec holds Scribe's execution tools: shell (foreground and background), project (detected test, lint, build and run commands) and git.
scribe/tools/fs
Package fs holds Scribe's file tools: read, write_file, edit_file, multi_edit, undo_edit, list_dir, glob and grep.
Package fs holds Scribe's file tools: read, write_file, edit_file, multi_edit, undo_edit, list_dir, glob and grep.
scribe/tools/web
Package web holds Scribe's web tools: web_search (SearXNG or DuckDuckGo HTML) and fetch_page (a readable-text fetch with an SSRF guard).
Package web holds Scribe's web tools: web_search (SearXNG or DuckDuckGo HTML) and fetch_page (a readable-text fetch with an SSRF guard).
scribe/tui
Package tui is Scribe's full-screen terminal interface (bubbletea v1).
Package tui is Scribe's full-screen terminal interface (bubbletea v1).
scribe/tui/chat
Package chat renders Scribe's chat transcript: user and assistant messages, system rows, streamed text, reasoning, tool calls and sub-agents.
Package chat renders Scribe's chat transcript: user and assistant messages, system rows, streamed text, reasoning, tool calls and sub-agents.
scribe/tui/chat/cmd/sample command
Command sample prints a static render of a rich transcript at width 100, so the chat layout can be checked by eye: go run ./internal/scribe/tui/chat/cmd/sample
Command sample prints a static render of a rich transcript at width 100, so the chat layout can be checked by eye: go run ./internal/scribe/tui/chat/cmd/sample
scribe/tui/cmd/demo command
Command demo runs Scribe's full-screen UI against the scripted FakeBackend, so the interface can be tried without a model or a project.
Command demo runs Scribe's full-screen UI against the scripted FakeBackend, so the interface can be tried without a model or a project.
scribe/tui/icons
Package icons maps Scribe's icon names to glyphs.
Package icons maps Scribe's icon names to glyphs.
scribe/tui/render/cmd/sample command
Command sample prints Markdown, highlighted code and a diff in the default Scribe theme, so the rendering can be eyeballed with `go run`.
Command sample prints Markdown, highlighted code and a diff in the default Scribe theme, so the rendering can be eyeballed with `go run`.
scribe/tui/term
Package term runs a program on a pseudo-terminal and keeps its screen in a terminal emulator, so the TUI can draw the program inside a pane.
Package term runs a program on a pseudo-terminal and keeps its screen in a terminal emulator, so the TUI can draw the program inside a pane.
scribe/tui/theme
Package theme holds Scribe's colour palettes.
Package theme holds Scribe's colour palettes.
sessions
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.
sessions/backend
Package backend is the seam between Lectern and whatever keeps its terminals alive on a target: tmux, or Lectern's own PTY host (docs/ptyhost.md).
Package backend is the seam between Lectern and whatever keeps its terminals alive on a target: tmux, or Lectern's own PTY host (docs/ptyhost.md).
shellq
Package shellq renders values as shell words.
Package shellq renders values as shell words.
sinks
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.
skills
Package skills manages project skill intent and target-local materialization.
Package skills manages project skill intent and target-local materialization.
sshconfig
Package sshconfig reads the control plane's ~/.ssh/config so its hosts can become Lectern targets in one click (docs/ssh.md).
Package sshconfig reads the control plane's ~/.ssh/config so its hosts can become Lectern targets in one click (docs/ssh.md).
state
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.
store
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.
terminal
Package terminal is one-click terminal attach: spawn a terminal server on the control plane that wraps the attach command (`tmux attach` or `lectern pty attach-session`, locally, over ssh, or via pct) for a running attempt or session.
Package terminal is one-click terminal attach: spawn a terminal server on the control plane that wraps the attach command (`tmux attach` or `lectern pty attach-session`, locally, over ssh, or via pct) for a running attempt or session.
terminal/webterm
Package webterm is Lectern's own web terminal server.
Package webterm is Lectern's own web terminal server.
testutil
Package testutil contains small safety helpers shared by real-process tests.
Package testutil contains small safety helpers shared by real-process tests.
testutil/lecternbin
Package lecternbin lets a test binary stand in for the lectern binary on a target.
Package lecternbin lets a test binary stand in for the lectern binary on a target.
testutil/ptytest
Package ptytest gives a test its own PTY host socket.
Package ptytest gives a test its own PTY host socket.
tmuxkeys
Package tmuxkeys turns on tmux's extended keys for Lectern's sessions, so a program can tell Shift+Enter from Enter through tmux (docs/workspace.md).
Package tmuxkeys turns on tmux's extended keys for Lectern's sessions, so a program can tell Shift+Enter from Enter through tmux (docs/workspace.md).
trackers
Package trackers reads and acts on the places work is tracked outside Lectern: pull requests and issues on GitHub (through the target's own `gh`) and GitLab (through the target's own `glab`), and issues in Linear and Jira (through their HTTP APIs with a key stored like a trigger source's).
Package trackers reads and acts on the places work is tracked outside Lectern: pull requests and issues on GitHub (through the target's own `gh`) and GitLab (through the target's own `glab`), and issues in Linear and Jira (through their HTTP APIs with a key stored like a trigger source's).
triggers
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 or Jira 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 or Jira issue — the way Devin, Cursor, Codex, Tembo and Charlie already do.
version
Package version carries the single source of truth for the release string.
Package version carries the single source of truth for the release string.
vocab
Package vocab holds the words Lectern shows people, so the web app, the phone, the terminal client and the CLI say the same thing (docs/design/simple-ui.md "Vocabulary").
Package vocab holds the words Lectern shows people, so the web app, the phone, the terminal client and the CLI say the same thing (docs/design/simple-ui.md "Vocabulary").
voice
Package voice transcribes dictation on the Lectern host with whisper.cpp, for phones whose browser has no usable speech recognition (the Android app's WebView has none) or whose owner would rather the audio stay on their own machine than go to a browser vendor's speech service.
Package voice transcribes dictation on the Lectern host with whisper.cpp, for phones whose browser has no usable speech recognition (the Android app's WebView has none) or whose owner would rather the audio stay on their own machine than go to a browser vendor's speech service.
witness
Package witness records the state of a git worktree that a human was looking at when they were asked to approve something, so the durable effect (a push, a merge, a deploy, a commit) can be re-checked against that state before it runs.
Package witness records the state of a git worktree that a human was looking at when they were asked to approve something, so the durable effect (a push, a merge, a deploy, a commit) can be re-checked against that state before it runs.
workflows
Package workflows stages project workflows and plugin skills onto targets.
Package workflows stages project workflows and plugin skills onto targets.
worktree
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.
tools
stress command
Command stress is Lectern's scale benchmark driver.
Command stress is Lectern's scale benchmark driver.
Package web embeds the lectern PWA so the binary is fully self-contained: one file to deploy, and the UI works with no internet access.
Package web embeds the lectern PWA so the binary is fully self-contained: one file to deploy, and the UI works with no internet access.

Jump to

Keyboard shortcuts

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