Directories
¶
| Path | Synopsis |
|---|---|
|
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. |
|
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. |
|
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). |
|
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. |
|
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. |
|
Package headless is Scribe's non-interactive runner.
|
Package headless is Scribe's non-interactive runner. |
|
Package hooks runs user hook commands on agent events.
|
Package hooks runs user hook commands on agent events. |
|
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. |
|
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. |
|
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). |
|
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). |
|
copilot
Package copilot implements llm.Provider for GitHub Copilot.
|
Package copilot implements llm.Provider for GitHub Copilot. |
|
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). |
|
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, ...). |
|
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. |
|
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. |
|
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). |
|
Package mcp is Scribe's Model Context Protocol client.
|
Package mcp is Scribe's Model Context Protocol client. |
|
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. |
|
Package nvim drives an editor that Scribe runs beside the chat.
|
Package nvim drives an editor that Scribe runs beside the chat. |
|
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. |
|
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. |
|
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. |
|
telegram
Package telegram is Scribe's Telegram surface.
|
Package telegram is Scribe's Telegram surface. |
|
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. |
|
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. |
|
Package skills discovers, renders, installs and removes Scribe skills.
|
Package skills discovers, renders, installs and removes Scribe skills. |
|
Package symedit is Scribe's symbol-addressed editing tool, ast_edit.
|
Package symedit is Scribe's symbol-addressed editing tool, ast_edit. |
|
Package tools holds the tools Scribe's agent can call.
|
Package tools holds the tools Scribe's agent can call. |
|
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. |
|
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. |
|
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). |
|
Package tui is Scribe's full-screen terminal interface (bubbletea v1).
|
Package tui is Scribe's full-screen terminal interface (bubbletea v1). |
|
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. |
|
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 |
|
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. |
|
icons
Package icons maps Scribe's icon names to glyphs.
|
Package icons maps Scribe's icon names to glyphs. |
|
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`. |
|
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. |
|
theme
Package theme holds Scribe's colour palettes.
|
Package theme holds Scribe's colour palettes. |
Click to show internal directories.
Click to hide internal directories.