blitz

module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0

README

Blitz ⚡

CI Docs Coverage Latest release Go version Documentation

The zero-gimmick, high-performance Go coding agent.

Blitz reads your workspace, makes the change, checks it, and gets out of the way: no persona, no filler, no chatter. It's written in Go on Google's Agent Development Kit and runs Gemini, Claude, OpenAI-compatible or Ollama models.

Documentation: https://retail-cortex.github.io/blitz/

Why Blitz

  • Compiled Go. The CLI starts in about 20 ms and idles in about 40 MB; one static binary, no runtime to install.
  • Safe by default. Commands run in an OS sandbox (Seatbelt on macOS, bubblewrap on Linux), edits need your approval unless you've allowed them, and every turn can be undone.
  • Three ways in, one engine. blitz in the terminal, the per-user service blitzd (which also runs scheduled workers), and a desktop app laid out like an IDE. A session started in one continues in the others.
  • Works with what you have. AGENTS.md, CLAUDE.md and GEMINI.md load as project instructions; MCP servers, hooks, custom commands and Agent Skills all work.
  • Scriptable. JSON and streaming JSON output, limits on turns, cost and time, and distinct exit codes.

Install

Download the archive for your platform from the releases: macOS (darwin_arm64, darwin_amd64), Linux (linux_amd64, linux_arm64) or Windows (windows_amd64). Each holds blitz, blitzd, the blz shortcut (a link to blitz; not on Windows) and the license files; put its folder on your PATH. The desktop app is Blitz_<version>_macos_universal.dmg, blitz-desktop_<version>_<arch>.deb for Ubuntu 24.04, Debian 13 and later, or blitz-desktop-<version>-1-<arch>.pkg.tar.zst for Arch Linux (sudo pacman -U ./blitz-desktop-<version>-1-x86_64.pkg.tar.zst).

On Linux, the shell sandbox is required. Install bubblewrap (sudo apt install bubblewrap) and run blitz security: it says whether bubblewrap runs. On Ubuntu 24.04 and later, AppArmor restricts the user namespaces it needs; blitz security fix-apparmor (or Allow bubblewrap in the desktop app) installs an AppArmor profile that lets bwrap alone have them, asking for your password once. Until the sandbox works, workspaces don't open; to run the agent's commands unsandboxed instead, set [sandbox] shell = "auto" in ~/.blitz/.env.toml.

Verify a download against this repository's release workflow:

cosign verify-blob --bundle checksums.txt.sigstore.json \
  --certificate-identity-regexp '^https://github.com/retail-cortex/blitz/\.github/workflows/release\.yml@refs/tags/v' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com checksums.txt
sha256sum --ignore-missing -c checksums.txt

The macOS command-line binaries aren't notarized: clear the quarantine flag with xattr -d com.apple.quarantine blitz blitzd.

Chromebooks (ChromeOS's Linux development environment)

The Linux .deb runs in ChromeOS's Linux container (Crostini): amd64 on Intel Chromebooks such as the Pixelbook, arm64 on ARM ones. It hasn't been tested there yet; reports are welcome.

  • Debian version. The container is Debian 12 or 13 (cat /etc/debian_version); the package's libraries (GTK 3, NSS and the like) are in both. A Chromebook past its last ChromeOS update keeps its container's Debian updates, but may never move to a newer Debian.
  • Install. sudo apt install ./blitz-desktop_<version>_amd64.deb, which brings bubblewrap, the shell sandbox Blitz requires on Linux: blitz doctor says whether it works in the container, and if it can't, [sandbox] shell = "auto" in ~/.blitz/.env.toml runs commands without it. gVisor is unlikely to run there; skill scripts use bubblewrap instead.
  • A blank or garbled window. Some Chromebooks can't pass the graphics card through the VM: start the app with BLITZ_GPU=off blitz-desktop, then turn off Use the graphics card in Settings › Appearance to keep it so.
  • Projects. Linux sees its home directory and the folders shared with it in the Files app (under /mnt/chromeos/); open workspaces from there.
  • Keys. The container has no keyring, so API keys are kept in ~/.blitz/secrets.toml, readable only by you.
  • The service runs as a systemctl --user service in the container. ChromeOS stops the container when you shut down or leave Linux idle, so scheduled workers only run while it's up.

Quick start

blitz config init               # a commented ~/.blitz/.env.toml
blitz config set-key gemini     # your API key, into the OS keychain (or anthropic, openai)
blitz doctor                    # checks the settings, the key and the sandbox

cd ~/src/project
blitz                           # an interactive session
blitz "why does the build fail?"   # one prompt, then exit

In a session, ask for what you want. Blitz shows a diff before each edit and asks before commands run: y once, s for the session, a always, n no. /undo reverts the last turn and /help lists the commands. To use the desktop app and scheduled workers, start the service at login with blitz service install.

Getting started goes further, and the guide covers configuration, safety, models, extending and more.

Building from source

Blitz builds with Bazel 9.2, which downloads Go, Node, pnpm, buf, Hugo and every dependency at pinned versions. Install Bazelisk as bazel (it picks the version in .bazelversion); nothing else of that toolchain needs installing.

macOS (13 or later, Apple silicon or Intel)
xcode-select --install                   # or install Xcode, and: sudo xcode-select -s /Applications/Xcode.app
brew install bazelisk
git clone https://github.com/retail-cortex/blitz.git && cd blitz

The builds and tests are run with the full Xcode installed.

Linux (Ubuntu 24.04, Debian 13 and later, or Arch Linux)

Ubuntu 24.04 or Debian 13 and later:

sudo apt-get install -y git build-essential bubblewrap
sudo curl -fsSLo /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
sudo chmod +x /usr/local/bin/bazel       # bazelisk-linux-arm64 on ARM
git clone https://github.com/retail-cortex/blitz.git && cd blitz

Arch Linux:

sudo pacman -S --needed git base-devel bubblewrap
sudo curl -fsSLo /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
sudo chmod +x /usr/local/bin/bazel       # bazelisk-linux-arm64 on ARM
git clone https://github.com/retail-cortex/blitz.git && cd blitz

A C compiler (build-essential, base-devel) is for the tray's cgo and bubblewrap is the shell sandbox; Bazel downloads everything else, the desktop app's Electron included.

Windows

Building on Windows isn't supported: use WSL 2 and the Linux steps. The Windows archive cross-compiles on macOS or Linux (bazel build //release:archives).

Build, test and run
bazel build //:build-all                  # everything for this machine: //:build-all-linux or //:build-all-mac
bazel test //...                          # every test: Go, the desktop page, the protos

bazel run //:blitz -- doctor              # the CLI (arguments after --); built at bazel-bin/apps/cli/blitz
bazel run //:blitzd                       # the service, in the foreground
bazel run //:tray                         # the service in the system tray (Linux, macOS)
bazel run //:desktop                      # the desktop app (Electron), on this machine's service
bazel run //:desktop-web                  # the desktop page in a browser, http://localhost:5173/?fake
bazel run //:docs                         # the docs site, http://localhost:1313

bazel build //:mac-app                    # macOS: bazel-bin/apps/electron/packaging/darwin_<arm64|x64>/Blitz.app, for this Mac
bazel build //:windows-zip                # Windows (from any OS): bazel-bin/apps/electron/packaging/Blitz_windows_x64.zip
bazel build //:deb                        # Linux: bazel-bin/apps/electron/packaging/blitz-desktop_amd64.deb
sudo dpkg -i bazel-bin/apps/electron/packaging/blitz-desktop_amd64.deb   # reinstalls even at the same version
bazel build //:pacman                     # Arch Linux: bazel-bin/apps/electron/packaging/blitz-desktop.pkg.tar.zst
bazel build //:desktop-tar                # Linux: the tarball, which updates itself
bazel build --config=release //:archives  # the release archives, every platform, version from git

The short names are aliases in the root BUILD.bazel, which lists them; the full labels still work.

Common problems
  • "bazel: command not found" or the wrong Bazel version. Install Bazelisk as bazel; don't install Bazel itself.
  • doctor says the sandbox is unavailable on Ubuntu 24.04. AppArmor restricts unprivileged user namespaces, which bubblewrap needs: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 (or an AppArmor profile for bwrap). Inside Docker, the default seccomp profile blocks them too.
  • The sandbox or gVisor tests skip. They need bubblewrap (Linux) and runsc (RUNSC_PATH); CI fails if they skip, locally they don't.
  • Out of disk space. A full build with tests and every platform's archive takes several gigabytes under Bazel's output base; bazel clean frees the build outputs.
  • go build fails. Use Bazel: the API's generated Go code exists only in the build.

More in building from source.

Contributing

See CONTRIBUTING.md and the development guide. Maintainers are listed in OWNERS.txt.

License

Apache License 2.0: see LICENSE, NOTICE, and THIRD_PARTY_NOTICES for the software Blitz includes. Every program shows them: blitz license (and /license), blitzd --license, and the desktop app's Settings › About.

Blitz began as a Go port of Code Puppy by Mike Pfaffenberger (MIT).

Directories

Path Synopsis
apps
cli command
Command blitz is Blitz's command line: an interactive session (the REPL) in the current directory, a one-shot run with a prompt (`blitz "…"`, `blitz exec`), and the commands around them: doctor, config, service, workers and license.
Command blitz is Blitz's command line: an interactive session (the REPL) in the current directory, a one-shot run with a prompt (`blitz "…"`, `blitz exec`), and the commands around them: doctor, config, service, workers and license.
cli/internal/tui
Package tui is the CLI's interactive session: the prompt with its history and completion, the slash commands, streamed Markdown output, approvals and questions answered at the terminal, and Ctrl+C to stop a turn.
Package tui is the CLI's interactive session: the prompt with its history and completion, the slash commands, streamed Markdown output, approvals and questions answered at the terminal, and Ctrl+C to stop a turn.
electron/winexe command
Command winexe gives a Windows program Blitz's icon and details (the name Explorer, the taskbar and Task Manager show): it rewrites the resources of the Electron program the Windows zip ships as Blitz.exe (spec_038_electron EL-06).
Command winexe gives a Windows program Blitz's icon and details (the name Explorer, the taskbar and Task Manager show): it rewrites the resources of the Electron program the Windows zip ships as Blitz.exe (spec_038_electron EL-06).
electron/winsetup command
Command winsetup installs Blitz on Windows for the person running it, without an administrator, and uninstalls it (spec_038_electron EL-81).
Command winsetup installs Blitz on Windows for the person running it, without an administrator, and uninstalls it (spec_038_electron EL-81).
electron/winsetup/pack command
Command pack makes Blitz's Windows setup program: the setup program (winsetup, built for Windows) with the app's zip at its end, which it installs (spec_038_electron EL-81).
Command pack makes Blitz's Windows setup program: the setup program (winsetup, built for Windows) with the app's zip at its end, which it installs (spec_038_electron EL-81).
service command
blitzd is the per-user Blitz service: it holds every workspace a client opens (the desktop app, and the CLI when it attaches) and runs the workers' schedules.
blitzd is the per-user Blitz service: it holds every workspace a client opens (the desktop app, and the CLI when it attaches) and runs the workers' schedules.
service/internal/doctor
Package doctor checks a Blitz setup: configuration, credentials, models, the sandbox, permissions and integrations (blitz doctor runs it, through blitzd doctor, so the CLI needn't carry the engine).
Package doctor checks a Blitz setup: configuration, credentials, models, the sandbox, permissions and integrations (blitz doctor runs it, through blitzd doctor, so the CLI needn't carry the engine).
tray command
Command blitz-tray shows the Blitz service in the system tray: an icon with its state and, in its menu, Start, Stop and Restart, Open Blitz and Open the logs.
Command blitz-tray shows the Blitz service in the system tray: an icon with its state and, in its menu, Start, Stop and Restart, Open Blitz and Open the logs.
tray/internal/tray
Package tray is the Blitz tray icon's behaviour, apart from the icon library: what the service's state is, the menu for it, and what its items do.
Package tray is the Blitz tray icon's behaviour, apart from the icon library: what the service's state is, the menu for it, and what its items do.
build
analyzers/doccomment
Package doccomment is a nogo analyzer: every package has a package comment, and every exported declaration a doc comment (spec_030_release_readiness RR-12).
Package doccomment is a nogo analyzer: every package has a package comment, and every exported declaration a doc comment (spec_030_release_readiness RR-12).
pkg
a2ui
Package a2ui is the part of A2UI v0.9 (https://a2ui.org) a workflow's human task uses, on the service's side (spec_043_workflows WF-18): a form as the standard server-to-client messages any A2UI renderer can draw, and an answer (the client-to-server action message) checked against the form before a run goes on, so no client is trusted to have checked it.
Package a2ui is the part of A2UI v0.9 (https://a2ui.org) a workflow's human task uses, on the service's side (spec_043_workflows WF-18): a form as the standard server-to-client messages any A2UI renderer can draw, and an answer (the client-to-server action message) checked against the form before a run goes on, so no client is trusted to have checked it.
activity
Package activity counts the install as active, once a day it's used (spec_054_active_installs): the first time a front end is used on a day, it's marked in ~/.blitz/activity.json and a ping goes to Retail Cortex with the install's random ID, the day, the front end, the version, the platform and whether it went through a proxy (not which), and nothing else.
Package activity counts the install as active, once a day it's used (spec_054_active_installs): the first time a front end is used on a day, it's marked in ~/.blitz/activity.json and a ping goes to Retail Cortex with the install's random ID, the day, the front end, the version, the platform and whether it went through a proxy (not which), and nothing else.
api
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.
atomicfile
Package atomicfile replaces a file whole: readers see the old content or the new, never part of it, even after a crash part way through.
Package atomicfile replaces a file whole: readers see the old content or the new, never part of it, even after a crash part way through.
catalog
Package catalog checks an organization's catalog: a repository laid out as a workspace's .agents folder, whose agents, rules, skills, guardrails, commands, MCP servers and connectors every person's Blitz works under (spec_053_enterprise EN-30, EN-31).
Package catalog checks an organization's catalog: a repository laid out as a workspace's .agents folder, whose agents, rules, skills, guardrails, commands, MCP servers and connectors every person's Blitz works under (spec_053_enterprise EN-30, EN-31).
client
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.
config
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.
config/configtest
Package configtest configures Blitz for tests.
Package configtest configures Blitz for tests.
docx
Package docx writes Markdown as a Word document (.docx, Office Open XML) in pure Go, for Export as Word, the export_docx tool and /export (spec_006_filetools FS-75): GitHub-flavoured Markdown parsed by goldmark, written as WordprocessingML with Word's own heading, list, quote, code and table styles, so the navigation pane, a table of contents and restyling work as in any Word document.
Package docx writes Markdown as a Word document (.docx, Office Open XML) in pure Go, for Export as Word, the export_docx tool and /export (spec_006_filetools FS-75): GitHub-flavoured Markdown parsed by goldmark, written as WordprocessingML with Word's own heading, list, quote, code and table styles, so the navigation pane, a table of contents and restyling work as in any Word document.
engine
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.
engine/agents
Package agents loads the agents a workspace offers: the built-in ones and Markdown files with YAML frontmatter from ~/.blitz/agents, the project's .agents/agents (prompt text, loaded without trust; a project's agent may loosen the permission mode only once the project is trusted) and enabled plugins, each a name, a description, a system prompt, the tools it may use and optionally its own model (spec_014_agents).
Package agents loads the agents a workspace offers: the built-in ones and Markdown files with YAML frontmatter from ~/.blitz/agents, the project's .agents/agents (prompt text, loaded without trust; a project's agent may loosen the permission mode only once the project is trusted) and enabled plugins, each a name, a description, a system prompt, the tools it may use and optionally its own model (spec_014_agents).
engine/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.
engine/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.
engine/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.
engine/browser
Package browser drives a Chromium-family browser through the Chrome DevTools Protocol for the agent's browser tool (spec_027_parity §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_027_parity §5.2): its own throwaway profile, never the user's, with every request it makes going through a proxy that applies the web rules.
engine/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.
engine/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.
engine/compose
Package compose is the composer (spec_045_composer): a guided conversation that makes a workspace's component.
Package compose is the composer (spec_045_composer): a guided conversation that makes a workspace's component.
engine/connectors
Package connectors is how Blitz's agents reach the systems a team works with (spec_047_connectors): databases now, email and others later.
Package connectors is how Blitz's agents reach the systems a team works with (spec_047_connectors): databases now, email and others later.
engine/connectors/builtin
Package builtin holds the connector descriptors Blitz ships with (spec_047_connectors): categories/<id>.yaml and kinds/<id>.yaml, embedded in the binary.
Package builtin holds the connector descriptors Blitz ships with (spec_047_connectors): categories/<id>.yaml and kinds/<id>.yaml, embedded in the binary.
engine/databases
Package databases is the connectors' toolbox backend (spec_046_databases, spec_047_connectors): MCP Toolbox for Databases, run inside Blitz's process (third_party/mcp-toolbox/embed), serving a category's connection files (Toolbox YAML: sources, tools, toolsets) as one MCP server, its tools named <prefix>__<tool> (db__shop_list_tables).
Package databases is the connectors' toolbox backend (spec_046_databases, spec_047_connectors): MCP Toolbox for Databases, run inside Blitz's process (third_party/mcp-toolbox/embed), serving a category's connection files (Toolbox YAML: sources, tools, toolsets) as one MCP server, its tools named <prefix>__<tool> (db__shop_list_tables).
engine/datatable
Package datatable is a query's result in one shape every step and chat can read (spec_059_data DAT-01..DAT-05): its columns with portable types, its rows as arrays in the columns' order, its values as JSON's.
Package datatable is a query's result in one shape every step and chat can read (spec_059_data DAT-01..DAT-05): its columns with portable types, its rows as arrays in the columns' order, its values as JSON's.
engine/evals
Package evals reads and writes eval files (spec_042_evals): cases, each a prompt and the output expected of it, in a Markdown table in .agents/evals/<name>.md; scores an agent's output against a case; and keeps the runs.
Package evals reads and writes eval files (spec_042_evals): cases, each a prompt and the output expected of it, in a Markdown table in .agents/evals/<name>.md; scores an agent's output against a case; and keeps the runs.
engine/flows
Package flows reads, checks and writes workflows (spec_043_workflows): steps joined into a graph, in .agents/workflows/<name>.flow.yaml, beside the .md commands there.
Package flows reads, checks and writes workflows (spec_043_workflows): steps joined into a graph, in .agents/workflows/<name>.flow.yaml, beside the .md commands there.
engine/frontmatter
Package frontmatter reads and edits the YAML front matter of Markdown files (SKILL.md, rules) the way Studio's forms do: the fields a form edits are set, or removed when empty, and every other field is kept, in its order.
Package frontmatter reads and edits the YAML front matter of Markdown files (SKILL.md, rules) the way Studio's forms do: the fields a form edits are set, or removed when empty, and every other field is kept, in its order.
engine/gates
Package gates is the rules that gate an agent's turn (spec_041_gates): checks written in plain English in .agents/rules/<name>.md, with front matter when: before_agent or after_agent, judged in order by a model before the agent runs (on the prompt) or after (on its answer and the files it changed), each blocking, warning or asking for a revision.
Package gates is the rules that gate an agent's turn (spec_041_gates): checks written in plain English in .agents/rules/<name>.md, with front matter when: before_agent or after_agent, judged in order by a model before the agent runs (on the prompt) or after (on its answer and the files it changed), each blocking, warning or asking for a revision.
engine/harness
Package harness is what a workspace's harness learns from its runs (spec_048_harness_learning): the evidence of what went wrong in its sessions, drawn from the audit log without a model, for the reflector and /skills update and /agents update to propose changes from.
Package harness is what a workspace's harness learns from its runs (spec_048_harness_learning): the evidence of what went wrong in its sessions, drawn from the audit log without a model, for the reflector and /skills update and /agents update to propose changes from.
engine/health
Package health is a workspace's dashboard (spec_044_health): the facts about what it holds and how its runs go, taken from what it already records (no model call), and the judge's verdicts on each item's quality, kept with their history.
Package health is a workspace's dashboard (spec_044_health): the facts about what it holds and how its runs go, taken from what it already records (no model call), and the judge's verdicts on each item's quality, kept with their history.
engine/jsonl
Package jsonl appends records to the JSON Lines files Blitz keeps (sessions' transcripts and events, jobs' runs) so that a crash part way through a write costs only the record it tore.
Package jsonl appends records to the JSON Lines files Blitz keeps (sessions' transcripts and events, jobs' runs) so that a crash part way through a write costs only the record it tore.
engine/lsp
Package lsp talks to language servers for the agent's code intelligence (spec_027_parity 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_027_parity PAR-TOOL-03): definitions, references, hover, symbols and diagnostics, from servers started lazily per language.
engine/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.
engine/mdpdf
Package mdpdf typesets Markdown as a PDF in pure Go, for the export_pdf tool (spec_006_filetools): 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_006_filetools): 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.
engine/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.
engine/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.
engine/runtime/wirefake
Package wirefake has fakes of the model APIs Blitz speaks (Anthropic's Messages API, the Gemini API and OpenAI's Responses API) that are as strict as the real ones (spec_056_conversation_adapters CA-150): each refuses, with the real API's status and words, what its documentation says it refuses.
Package wirefake has fakes of the model APIs Blitz speaks (Anthropic's Messages API, the Gemini API and OpenAI's Responses API) that are as strict as the real ones (spec_056_conversation_adapters CA-150): each refuses, with the real API's status and words, what its documentation says it refuses.
engine/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_035_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_035_search).
engine/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_017_sessions).
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_017_sessions).
engine/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_013_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_013_skills).
engine/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.
engine/specs
Package specs reads a project's specification as the project-spec agent (/spec) writes it, .agents/specs/NNN-<name>.md with README.md as the index, and checks it without a model (spec_057_spec_driven SDD-01..05): the title, the status, what each spec depends on, the requirements' IDs, "Done when" and the open questions.
Package specs reads a project's specification as the project-spec agent (/spec) writes it, .agents/specs/NNN-<name>.md with README.md as the index, and checks it without a model (spec_057_spec_driven SDD-01..05): the title, the status, what each spec depends on, the requirements' IDs, "Done when" and the open questions.
engine/table
Package table reads delimited tables (CSV, TSV) for the desktop app's table viewer and workspace search (spec_029_files, spec_035_search): 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_029_files, spec_035_search): 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.
engine/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_006_filetools, spec_007_shell, spec_005_approvals).
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_006_filetools, spec_007_shell, spec_005_approvals).
engine/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).
enterprise
Package enterprise connects Blitz to an organization's service (spec_053_enterprise §3): it finds out what the service offers (EN-11), signs the person in with the organization's identity provider and exchanges the provider's ID token for the service's own tokens (EN-12), and keeps those renewed.
Package enterprise connects Blitz to an organization's service (spec_053_enterprise §3): it finds out what the service offers (EN-11), signs the person in with the organization's identity provider and exchanges the provider's ID token for the service's own tokens (EN-12), and keeps those renewed.
enterprise/enterprisetest
Package enterprisetest has an identity provider and an organization's service for tests, as strict as the real ones (spec_053_enterprise EN-12): the provider checks PKCE, the client and its redirect, and keeps the device code pending once; the service rotates refresh tokens, ends a session whose spent one comes back, and serves the person's models with an ETag.
Package enterprisetest has an identity provider and an organization's service for tests, as strict as the real ones (spec_053_enterprise EN-12): the provider checks PKCE, the client and its redirect, and keeps the device code pending once; the service rotates refresh tokens, ends a session whose spent one comes back, and serves the person's models with an ETag.
fileview
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.
gitcred
Package gitcred answers Git's credential protocol for the organization's service (spec_053_enterprise EN-61): Git runs the helper with get, store or erase and the request's attributes on stdin (protocol=https, host=…); for get, the helper prints a username and password.
Package gitcred answers Git's credential protocol for the organization's service (spec_053_enterprise EN-61): Git runs the helper with get, store or erase and the request's attributes on stdin (protocol=https, host=…); for get, the helper prints a username and password.
guardrails
Package guardrails runs Blitz's guardrails on a model's request and reply, for a program that has those rather than an engine turn: a gateway between Blitz and the models (spec_053_enterprise EN-23).
Package guardrails runs Blitz's guardrails on a model's request and reply, for a program that has those rather than an engine turn: a gateway between Blitz and the models (spec_053_enterprise EN-23).
i18n
Package i18n translates user-interface text.
Package i18n translates user-interface text.
images
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.
jobspec
Package jobspec reads what a job's WORKER.md says about when and where it runs: its schedule (plain text or cron, in a time zone), where it runs (here, on the computer, or on the organization's service), what to do about missed times and its time limit.
Package jobspec reads what a job's WORKER.md says about when and where it runs: its schedule (plain text or cron, in a time zone), where it runs (here, on the computer, or on the organization's service), what to do about missed times and its time limit.
legal
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.
loginitem
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.
markdown
Package markdown parses Markdown the way Blitz's exporters read it (GitHub-flavoured, by goldmark, with $…$ and $$…$$ maths, a leading YAML front matter dropped, as the desktop preview reads it) and gives the plain text of its nodes, for the PDF and Word writers alike.
Package markdown parses Markdown the way Blitz's exporters read it (GitHub-flavoured, by goldmark, with $…$ and $$…$$ maths, a leading YAML front matter dropped, as the desktop preview reads it) and gives the plain text of its nodes, for the PDF and Word writers alike.
mcpauth
Package mcpauth signs Blitz in to MCP servers over HTTP with OAuth (spec_027_parity 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_027_parity PAR-MCP-04): the authorization-code flow with PKCE, through a local callback or a code pasted over SSH, with the client registered dynamically.
modelfacts
Package modelfacts keeps what Blitz has learned about models from their own refusals (spec_056_conversation_adapters CA-13, CA-14): a model that refused tools, images, a setting or a stream, or stated its context window or maximum output, has the fact saved per provider and model in ~/.blitz/models.learned.toml, with when and why, so every workspace and every restart knows it.
Package modelfacts keeps what Blitz has learned about models from their own refusals (spec_056_conversation_adapters CA-13, CA-14): a model that refused tools, images, a setting or a stream, or stated its context window or maximum output, has the fact saved per provider and model in ~/.blitz/models.learned.toml, with when and why, so every workspace and every restart knows it.
netutil
Package netutil provides race-free CA bundle loading, HTTP transport cloning, and bounded HTTP client construction without mutating http.DefaultTransport in place.
Package netutil provides race-free CA bundle loading, HTTP transport cloning, and bounded HTTP client construction without mutating http.DefaultTransport in place.
observability
Package observability provides the diagnostic log and OpenTelemetry export.
Package observability provides the diagnostic log and OpenTelemetry export.
orgsync
Package orgsync saves and shares an organization workspace with sync on (spec_053_enterprise EN-62 to EN-64): Blitz's service, not the window, runs it, so it goes on with the window closed.
Package orgsync saves and shares an organization workspace with sync on (spec_053_enterprise EN-62 to EN-64): Blitz's service, not the window, runs it, so it goes on with the window closed.
ostrash
Package ostrash moves files to the system's trash, where the person can see, restore or empty them as any other deleted file (spec_029_files FIL-37a), and puts them back.
Package ostrash moves files to the system's trash, where the person can see, restore or empty them as any other deleted file (spec_029_files FIL-37a), and puts them back.
pagehost
Package pagehost answers the desktop page's calls to the program that serves it: the Electron app's sidecar (blitz-tray --serve), and the tray's page in a browser on Windows.
Package pagehost answers the desktop page's calls to the program that serves it: the Electron app's sidecar (blitz-tray --serve), and the tray's page in a browser on Windows.
pageserver
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.
pdftext
Package pdftext reads PDF files: whether data is one, its page count and its text, page by page (spec_011_images).
Package pdftext reads PDF files: whether data is one, its page count and its text, page by page (spec_011_images).
plugins
Package plugins installs and loads Blitz plugins (spec_027_parity §7.2): a directory with a plugin.toml bundling skills, commands, agents, hooks and MCP servers.
Package plugins installs and loads Blitz plugins (spec_027_parity §7.2): a directory with a plugin.toml bundling skills, commands, agents, hooks and MCP servers.
redact
Package redact masks secrets in text before it is written to disk.
Package redact masks secrets in text before it is written to disk.
runmerge
Package runmerge adds a job run's changes, on the run's own branch, to its workspace's main (blitz-enterprise spec_009_jobs JB-10): the runner does it as the run ends, as the job says, and Blitz when someone adds a run's changes later.
Package runmerge adds a job run's changes, on the run's own branch, to its workspace's main (blitz-enterprise spec_009_jobs JB-10): the runner does it as the run ends, as the job says, and Blitz when someone adds a run's changes later.
sandboxsetup
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).
secrets
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.
secretscan
Package secretscan finds API keys and other secrets in files about to be committed, for the pre-commit hook a harness gets (spec_051_secret_hooks): known key formats anywhere, and long random values assigned to key-like names in .env and config files.
Package secretscan finds API keys and other secrets in files about to be committed, for the pre-commit hook a harness gets (spec_051_secret_hooks): known key formats anywhere, and long random values assigned to key-like names in .env and config files.
selfupdate
Package selfupdate finds, checks and installs Blitz's releases, for `blitz update` and for the desktop app updating itself: the latest release from GitHub, versions compared, a release's files downloaded and checked against its checksums.txt and that file's signature (the release workflow's, made keylessly with Sigstore, checked here without cosign), then put in place all at once or not at all.
Package selfupdate finds, checks and installs Blitz's releases, for `blitz update` and for the desktop app updating itself: the latest release from GitHub, versions compared, a release's files downloaded and checked against its checksums.txt and that file's signature (the release workflow's, made keylessly with Sigstore, checked here without cosign), then put in place all at once or not at all.
service
Package service runs the Blitz service: every workspace a client opens, served over the per-user socket, and the workers' schedules.
Package service runs the Blitz service: every workspace a client opens, served over the per-user socket, and the workers' schedules.
service/server
Package server serves Blitz's API (proto/blitz/v1) over Connect: one process holding every workspace a user opens, each an engine.Workspace.
Package server serves Blitz's API (proto/blitz/v1) over Connect: one process holding every workspace a user opens, each an engine.Workspace.
service/servicetest
Package servicetest runs the Blitz service in a test, for packages outside the service that test against it (the client, the CLI, the desktop app).
Package servicetest runs the Blitz service in a test, for packages outside the service that test against it (the client, the CLI, the desktop app).
shellpath
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).
signedin
Package signedin is the page a browser sign-in ends on, on this computer's callback (the organization's, spec_053_enterprise EN-12, and an MCP server's): a card on Blitz's glass saying how it went, with Open Blitz when the desktop app asked for it, in the organization's branding when it has one (EN-50).
Package signedin is the page a browser sign-in ends on, on this computer's callback (the organization's, spec_053_enterprise EN-12, and an MCP server's): a card on Blitz's glass saying how it went, with Open Blitz when the desktop app asked for it, in the organization's branding when it has one (EN-50).
signin
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.
skillreg
Package skillreg installs skills from registries (spec_013_skills SK-90..SK-96): a registry is a URL serving a JSON index of skills, each a .zip archive pinned by its SHA-256, as the Castor skills registry or anyone else can serve it.
Package skillreg installs skills from registries (spec_013_skills SK-90..SK-96): a registry is a URL serving a JSON index of skills, each a .zip archive pinned by its SHA-256, as the Castor skills registry or anyone else can serve it.
socket
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.
terminal
Package terminal runs the person's shell in a pseudo-terminal for the window's terminal tab (spec_062_terminal): one Manager a workspace, each Terminal keeping its recent output as scrollback that a watcher replays from an offset, so a window that reloads picks a terminal up as it was.
Package terminal runs the person's shell in a pseudo-terminal for the window's terminal tab (spec_062_terminal): one Manager a workspace, each Terminal keeping its recent output as scrollback that a watcher replays from an offset, so a window that reloads picks a terminal up as it was.
textutil
Package textutil holds small string helpers shared by tools and the TUI.
Package textutil holds small string helpers shared by tools and the TUI.
urn
Package urn is Blitz's resource names (spec_055_urns): one URN for each thing an organization's service keeps, made only of IDs, such as urn:blitz:runs:<run-id> or urn:blitz:artifacts:<workspace-id>:<job-id>:<run-id>/report.csv.
Package urn is Blitz's resource names (spec_055_urns): one URN for each thing an organization's service keeps, made only of IDs, such as urn:blitz:runs:<run-id> or urn:blitz:artifacts:<workspace-id>:<job-id>:<run-id>/report.csv.
wininstall
Package wininstall installs the desktop app on Windows for one user, without an administrator (spec_038_electron EL-81): the app's zip, carried at the end of the setup program (Payload), unpacked in %LOCALAPPDATA%\Programs\Blitz (Unpack, Place), and its entry in Add or remove programs (Entry, in the registry on Windows).
Package wininstall installs the desktop app on Windows for one user, without an administrator (spec_038_electron EL-81): the app's zip, carried at the end of the setup program (Payload), unpacked in %LOCALAPPDATA%\Programs\Blitz (Unpack, Place), and its entry in Add or remove programs (Entry, in the registry on Windows).
worktree
Package worktree gives work its own git worktree, so it can change files without touching the checkout the user works in (spec_027_parity §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_027_parity §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.
third_party
mcp-toolbox/embed
Package embed runs MCP Toolbox for Databases inside Blitz's own process (spec_046_databases): a pruned copy of Toolbox (third_party/mcp-toolbox) with only the databases Blitz offers (Postgres, AlloyDB, SQLite with sqlite-vec, BigQuery), its config parser (config.go, taken from Toolbox's cmd/internal), and Start, which serves one config's tools as MCP over an in-memory pipe for Blitz's MCP client.
Package embed runs MCP Toolbox for Databases inside Blitz's own process (spec_046_databases): a pruned copy of Toolbox (third_party/mcp-toolbox) with only the databases Blitz offers (Postgres, AlloyDB, SQLite with sqlite-vec, BigQuery), its config parser (config.go, taken from Toolbox's cmd/internal), and Start, which serves one config's tools as MCP over an in-memory pipe for Blitz's MCP client.
mcp-toolbox/internal/util/cloudsqlconnect
Package cloudsql provides shared utilities for Cloud SQL connection tools.
Package cloudsql provides shared utilities for Cloud SQL connection tools.
tools
codeowners command
Command codeowners writes .github/CODEOWNERS from OWNERS.txt, so GitHub requests reviews from the maintainers who own the paths a change touches (spec_030_release_readiness RR-42).
Command codeowners writes .github/CODEOWNERS from OWNERS.txt, so GitHub requests reviews from the maintainers who own the paths a change touches (spec_030_release_readiness RR-42).
coverage command
Command coverage summarizes the Go tests' coverage from the LCOV report `bazel coverage --combined_report=lcov` writes: the total and each package's and file's share of lines covered.
Command coverage summarizes the Go tests' coverage from the LCOV report `bazel coverage --combined_report=lcov` writes: the total and each package's and file's share of lines covered.
notices command
Command notices writes THIRD_PARTY_NOTICES: the license of every Go module linked into Blitz's programs and of every npm package bundled into the desktop app's page, from the copies Bazel fetched.
Command notices writes THIRD_PARTY_NOTICES: the license of every Go module linked into Blitz's programs and of every npm package bundled into the desktop app's page, from the copies Bazel fetched.
pacman command
Command pacman makes an Arch Linux package from a payload tar (a pkg_tar rooted at /): the archive pacman installs, with the .PKGINFO and the .MTREE makepkg would write ahead of the payload, every entry owned by root, its parent directories added and its times fixed.
Command pacman makes an Arch Linux package from a payload tar (a pkg_tar rooted at /): the archive pacman installs, with the .PKGINFO and the .MTREE makepkg would write ahead of the payload, every entry owned by root, its parent directories added and its times fixed.
specs command
Command specs checks the specs against the repository (spec_030_release_readiness RR-21): every spec is named spec_<NNN>_<name>.md, so they list in order, and is in the specs index, and every repository path a spec names in backquotes exists.
Command specs checks the specs against the repository (spec_030_release_readiness RR-21): every spec is named spec_<NNN>_<name>.md, so they list in order, and is in the specs index, and every repository path a spec names in backquotes exists.
vsix command
Command vsix packs a VS Code extension (apps/vscode) into a .vsix: the zip VS Code installs, with the manifest and content types vsce would write, the extension's files under extension/.
Command vsix packs a VS Code extension (apps/vscode) into a .vsix: the zip VS Code installs, with the manifest and content types vsce would write, the extension's files under extension/.

Jump to

Keyboard shortcuts

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