pkg/

directory
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 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.
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.
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.
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 i18n translates user-interface text.
Package i18n translates user-interface text.
Package images prepares pictures for vision models and keeps them out of session files.
Package images prepares pictures for vision 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 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 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