pkg/

directory
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0

Directories

Path Synopsis
Package api is the contract between Blitz's front ends and its engine: the Backend a front end drives, and the values, events and errors that cross it.
Package api is the contract between Blitz's front ends and its engine: the Backend a front end drives, and the values, events and errors that cross it.
Package client is a workspace held by the Blitz service, reached over its socket: an api.Backend, so front ends drive it exactly as they drive a local *engine.Workspace.
Package client is a workspace held by the Blitz service, reached over its socket: an api.Backend, so front ends drive it exactly as they drive a local *engine.Workspace.
Package config loads Blitz's settings: one TOML file, .env.toml, in ~/.blitz (or $MODENV_PREFIX, or --config), with a workspace's own settings laid over it from ~/.blitz/workspaces, API keys resolved from the OS keychain, and environment variables applied last.
Package config loads Blitz's settings: one TOML file, .env.toml, in ~/.blitz (or $MODENV_PREFIX, or --config), with a workspace's own settings laid over it from ~/.blitz/workspaces, API keys resolved from the OS keychain, and environment variables applied last.
configtest
Package configtest configures Blitz for tests.
Package configtest configures Blitz for tests.
Package engine is Blitz without a user interface: it opens a workspace (registries, tools, sessions, the model and the engine) and exposes what a front end needs as an api.Backend.
Package engine is Blitz without a user interface: it opens a workspace (registries, tools, sessions, the model and the engine) and exposes what a front end needs as an api.Backend.
agents
Package agents loads the agents a workspace offers: the built-in ones and Markdown files with YAML frontmatter from ~/.blitz/agents (and the project's, when it's trusted), each a name, a description, a system prompt, the tools it may use and optionally its own model (spec_agents_014).
Package agents loads the agents a workspace offers: the built-in ones and Markdown files with YAML frontmatter from ~/.blitz/agents (and the project's, when it's trusted), each a name, a description, a system prompt, the tools it may use and optionally its own model (spec_agents_014).
agents/builtin
Package builtin holds the agents Blitz ships with, as Markdown files embedded in the binary.
Package builtin holds the agents Blitz ships with, as Markdown files embedded in the binary.
audit
Package audit writes an append-only JSONL record of what tools did and what the user approved or denied.
Package audit writes an append-only JSONL record of what tools did and what the user approved or denied.
breaker
Package breaker is a small circuit breaker for dependencies that fail persistently (MCP servers, model APIs): after a run of failures calls are refused for a cooldown that grows with each failed trial.
Package breaker is a small circuit breaker for dependencies that fail persistently (MCP servers, model APIs): after a run of failures calls are refused for a cooldown that grows with each failed trial.
browser
Package browser drives a Chromium-family browser through the Chrome DevTools Protocol for the agent's browser tool (spec_parity_027 §5.2): its own throwaway profile, never the user's, with every request it makes going through a proxy that applies the web rules.
Package browser drives a Chromium-family browser through the Chrome DevTools Protocol for the agent's browser tool (spec_parity_027 §5.2): its own throwaway profile, never the user's, with every request it makes going through a proxy that applies the web rules.
browser/browsertest
Package browsertest is a fake DevTools page, to test code driving a browser without one: it answers the commands package browser sends as a simple page would, and records them.
Package browsertest is a fake DevTools page, to test code driving a browser without one: it answers the commands package browser sends as a simple page would, and records them.
commands
Package commands loads custom slash commands: Markdown files whose body is a prompt, from the user's and the project's command directories, plus the bundled ones.
Package commands loads custom slash commands: Markdown files whose body is a prompt, from the user's and the project's command directories, plus the bundled ones.
lsp
Package lsp talks to language servers for the agent's code intelligence (spec_parity_027 PAR-TOOL-03): definitions, references, hover, symbols and diagnostics, from servers started lazily per language.
Package lsp talks to language servers for the agent's code intelligence (spec_parity_027 PAR-TOOL-03): definitions, references, hover, symbols and diagnostics, from servers started lazily per language.
lsp/lsptest
Package lsptest is a fake language server for tests: the test binary runs it when started with BLITZ_FAKE_LSP=1 (call MaybeServe first in TestMain), and Launcher starts that.
Package lsptest is a fake language server for tests: the test binary runs it when started with BLITZ_FAKE_LSP=1 (call MaybeServe first in TestMain), and Launcher starts that.
mdpdf
Package mdpdf typesets Markdown as a PDF in pure Go, for the export_pdf tool (spec_filetools_006): GitHub-flavoured Markdown parsed by goldmark, laid out with fpdf in embedded Noto fonts, with an outline of the headings, page numbers, tables, highlighted code and the images the caller lets it read.
Package mdpdf typesets Markdown as a PDF in pure Go, for the export_pdf tool (spec_filetools_006): GitHub-flavoured Markdown parsed by goldmark, laid out with fpdf in embedded Noto fonts, with an outline of the headings, page numbers, tables, highlighted code and the images the caller lets it read.
memory
Package memory loads project instruction files (AGENTS.md, CLAUDE.md, GEMINI.md, BLITZ.md), the files they import, and rule files, which are added to the agents' system prompt.
Package memory loads project instruction files (AGENTS.md, CLAUDE.md, GEMINI.md, BLITZ.md), the files they import, and rule files, which are added to the agents' system prompt.
runtime
Package runtime runs the agent: it wraps Google's ADK runner, builds the agent tree with its tools and sub-agents, runs a prompt as a turn within its limits, delivers steering mid-turn, answers side questions without touching history, compacts history, and records usage and traces.
Package runtime runs the agent: it wraps Google's ADK runner, builds the agent tree with its tools and sub-agents, runs a prompt as a turn within its limits, delivers steering mid-turn, answers side questions without touching history, compacts history, and records usage and traces.
search
Package search is workspace search: an index of what a workspace holds (its files, the text of its PDFs and notebooks, its chats, its notes), kept on disk per workspace, brought up to date by scans that read only what changed, and searched by words (SQLite FTS5, ranked by BM25) and by substrings for code (spec_search_035).
Package search is workspace search: an index of what a workspace holds (its files, the text of its PDFs and notebooks, its chats, its notes), kept on disk per workspace, brought up to date by scans that read only what changed, and searched by words (SQLite FTS5, ranked by BM25) and by substrings for code (spec_search_035).
session
Package session stores conversations: each session's metadata and its messages and events on disk, snapshots to branch from, search over a session's history, and the store ADK reads the conversation from (spec_sessions_017).
Package session stores conversations: each session's metadata and its messages and events on disk, snapshots to branch from, search over a session's history, and the store ADK reads the conversation from (spec_sessions_017).
skills
Package skills loads the skills a workspace offers: a SKILL.md with frontmatter and instructions, optionally scripts, from the built-in set, ~/.blitz/skills and (when trusted) the project; and the policy that caps what their scripts may do (spec_skills_013).
Package skills loads the skills a workspace offers: a SKILL.md with frontmatter and instructions, optionally scripts, from the built-in set, ~/.blitz/skills and (when trusted) the project; and the policy that caps what their scripts may do (spec_skills_013).
skills/builtin
Package builtin holds the skills Blitz ships with (a SKILL.md each), embedded in the binary.
Package builtin holds the skills Blitz ships with (a SKILL.md each), embedded in the binary.
table
Package table reads delimited tables (CSV, TSV) for the desktop app's table viewer and workspace search (spec_files_029, spec_search_035): their delimiter and encoding (Latin-1 is decoded), a profile of their columns, and pages of rows matched by a search across columns, filters on columns and a sort, streamed so a file of hundreds of megabytes isn't loaded whole.
Package table reads delimited tables (CSV, TSV) for the desktop app's table viewer and workspace search (spec_files_029, spec_search_035): their delimiter and encoding (Latin-1 is decoded), a profile of their columns, and pages of rows matched by a search across columns, filters on columns and a sort, streamed so a file of hundreds of megabytes isn't loaded whole.
tools
Package tools is everything the agent can do and the rules it does it under: file tools through the workspace's sandbox (with checkpoints for undo), shell commands under the command policy and the OS sandbox, approvals and permission rules, web fetch and search, MCP servers, skill scripts, images, the task list and questions to the user (spec_filetools_006, spec_shell_007, spec_approvals_005).
Package tools is everything the agent can do and the rules it does it under: file tools through the workspace's sandbox (with checkpoints for undo), shell commands under the command policy and the OS sandbox, approvals and permission rules, web fetch and search, MCP servers, skill scripts, images, the task list and questions to the user (spec_filetools_006, spec_shell_007, spec_approvals_005).
workers
Package workers reads workers: scheduled workflows a workspace defines in workers/<name>/WORKER.md (ROADMAP item 24).
Package workers reads workers: scheduled workflows a workspace defines in workers/<name>/WORKER.md (ROADMAP item 24).
Package fileview shows files and folders in the system's own programs: a folder in the file manager, an image or PDF in its viewer, a file selected in its folder.
Package fileview shows files and folders in the system's own programs: a folder in the file manager, an image or PDF in its viewer, a file selected in its folder.
Package i18n translates user-interface text.
Package i18n translates user-interface text.
Package images prepares pictures and PDFs for models and keeps them out of session files.
Package images prepares pictures and PDFs for models and keeps them out of session files.
Package legal holds Blitz's license terms, embedded in every program: the Apache License 2.0, the NOTICE (Blitz's copyright and Code Puppy's MIT notice) and the notices of the third-party software the programs include.
Package legal holds Blitz's license terms, embedded in every program: the Apache License 2.0, the NOTICE (Blitz's copyright and Code Puppy's MIT notice) and the notices of the third-party software the programs include.
Package loginitem starts the Blitz service (blitzd) at login and controls it: a launchd agent on macOS, a systemd user unit on Linux.
Package loginitem starts the Blitz service (blitzd) at login and controls it: a launchd agent on macOS, a systemd user unit on Linux.
Package mcpauth signs Blitz in to MCP servers over HTTP with OAuth (spec_parity_027 PAR-MCP-04): the authorization-code flow with PKCE, through a local callback or a code pasted over SSH, with the client registered dynamically.
Package mcpauth signs Blitz in to MCP servers over HTTP with OAuth (spec_parity_027 PAR-MCP-04): the authorization-code flow with PKCE, through a local callback or a code pasted over SSH, with the client registered dynamically.
Package observability provides the diagnostic log and OpenTelemetry export.
Package observability provides the diagnostic log and OpenTelemetry export.
Package pageserver puts the desktop page in front of the service: Proxy forwards the page's API calls to the service's socket (the desktop app's web view and a Server both use it), and a Server serves the page itself to a browser, on a loopback port only whoever holds its link can use.
Package pageserver puts the desktop page in front of the service: Proxy forwards the page's API calls to the service's socket (the desktop app's web view and a Server both use it), and a Server serves the page itself to a browser, on a loopback port only whoever holds its link can use.
Package pdftext reads PDF files: whether data is one, its page count and its text, page by page (spec_images_011).
Package pdftext reads PDF files: whether data is one, its page count and its text, page by page (spec_images_011).
Package plugins installs and loads Blitz plugins (spec_parity_027 §7.2): a directory with a plugin.toml bundling skills, commands, agents, hooks and MCP servers.
Package plugins installs and loads Blitz plugins (spec_parity_027 §7.2): a directory with a plugin.toml bundling skills, commands, agents, hooks and MCP servers.
Package redact masks secrets in text before it is written to disk.
Package redact masks secrets in text before it is written to disk.
Package sandboxsetup is Linux's OS sandbox, from outside the engine: whether bubblewrap can run here, and, where AppArmor's restriction on unprivileged user namespaces stops it (Ubuntu 24.04 and later), an AppArmor profile that lets bwrap alone have them, installed with the user's password (sudo or pkexec).
Package sandboxsetup is Linux's OS sandbox, from outside the engine: whether bubblewrap can run here, and, where AppArmor's restriction on unprivileged user namespaces stops it (Ubuntu 24.04 and later), an AppArmor profile that lets bwrap alone have them, installed with the user's password (sudo or pkexec).
Package secrets keeps Blitz's secrets (API keys) out of its settings files: in the macOS Keychain, in the Secret Service on Linux (GNOME Keyring, KWallet), or, where neither is available, in an owner-only file beside the settings.
Package secrets keeps Blitz's secrets (API keys) out of its settings files: in the macOS Keychain, in the Secret Service on Linux (GNOME Keyring, KWallet), or, where neither is available, in an owner-only file beside the settings.
Package shellpath finds programs as the user's terminal would: on the PATH an interactive login shell sets, which a GUI app or a login item doesn't inherit (Homebrew, the Google Cloud SDK, ~/.local/bin).
Package shellpath finds programs as the user's terminal would: on the PATH an interactive login shell sets, which a GUI app or a login item doesn't inherit (Homebrew, the Google Cloud SDK, ~/.local/bin).
Package signin signs in to model providers with each vendor's own tool (gcloud, ant, aws, az), for the Blitz service, so the credentials land where the service reads them.
Package signin signs in to model providers with each vendor's own tool (gcloud, ant, aws, az), for the Blitz service, so the credentials land where the service reads them.
Package socket is where the per-user Blitz service listens and how clients reach it: a Unix socket that only its user can open.
Package socket is where the per-user Blitz service listens and how clients reach it: a Unix socket that only its user can open.
Package textutil holds small string helpers shared by tools and the TUI.
Package textutil holds small string helpers shared by tools and the TUI.
Package worktree gives work its own git worktree, so it can change files without touching the checkout the user works in (spec_parity_027 §8.2): <repo>/.blitz/worktrees/<name> on the branch blitz/<name>, from HEAD or another ref, with the untracked files .worktreeinclude lists (a .env, say) copied in.
Package worktree gives work its own git worktree, so it can change files without touching the checkout the user works in (spec_parity_027 §8.2): <repo>/.blitz/worktrees/<name> on the branch blitz/<name>, from HEAD or another ref, with the untracked files .worktreeinclude lists (a .env, say) copied in.

Jump to

Keyboard shortcuts

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