Skip to Content
caffeine docs

Changelog

What changed, release by release.

0.5.0 (2026-12-03)

Added

  • apt and rpm packages at pkg.getcaffeine.dev, for amd64 and arm64 (glibc 2.34 or later: Debian 12, Ubuntu 22.04, Fedora, RHEL / Rocky 9, openSUSE and later). The package is getcaffeine, the command stays caffeine: Debian, Ubuntu and openSUSE already ship an unrelated caffeine (a screen-idle inhibitor), which the package conflicts with since both install /usr/bin/caffeine. Both install the zsh completion. A manual release workflow builds and uploads them. See Install.

0.4.0 (2026-12-02)

Added

  • Skills on agent steps. skills: on a pipeline (default) or an agent / review step loads SKILL.md files into the agent's rules: from the pipeline's folder (<pack>/skills/<name>), then ~/.caffeine/skills/<name>, then an optional external resolver (skills.resolver: wska in config.yaml, through wska resolve, with profiles:). Injected for claude (--append-system-prompt-file, plus --add-dir on the skill's folder), llm (system message) and cmd (prompt file); the workspace is never touched. Resolved when the pipeline loads; skills.max_kb caps the size and skills.timeout (120 s) bounds wska resolve; summary.json records each step's skills and caffeine run -n lists them. wska plugins load their skills only; installers, agents and MCP items are refused.
  • {{skill.NAME}}: the folder of a skill the step loads, in its prompt, verify and env.
  • Sandboxes. sandboxes: in config.yaml declares where steps run, and sandbox: on a pipeline or step picks one: podman or docker (one container per run and target, as you, credentials passed by name only), bwrap (Linux, no image) or kubernetes (one pod per run: the whole run moves into it and its logs come back; from Linux). A sandbox sees the workspace (its .git read-only), the run's logs, the pipeline's files and skills and the caffeine binary, nothing else of your home. sandbox_default, and sandbox_required: true to refuse any step left on the host. caffeine doctor checks each engine, image and the Claude Code CLI inside; summary.json records each step's sandbox and engine.
  • Network. network: on a pipeline or step: none, named host lists (networks: in config.yaml, with built-in crates, npm and github) or full (the default). none is enforced on podman, docker and bwrap; on kubernetes, none is a NetworkPolicy and a host list a CiliumNetworkPolicy (cni: cilium), with only the listed names resolving. With hubble, refused connections go to <logdir>/network.log and summary.json (network_denied), and network_on_deny: fail fails the run. network_allow_full: false refuses full; a target's network_default; a project's .caffeine.conf can only narrow the network.
  • caffeine pr from a kubernetes pod, as the pipeline's last step: only that command gets the GitHub token (pr_env, default GH_TOKEN), never the pod's environment.
  • Caches between runs. cache: entries keep build output from one run to the next: dir: (a folder given in an environment variable, such as CARGO_TARGET_DIR) or paths: (files in the workspace, archived as tar.zst), keyed with {{hash:<globs>}}, {{os}}, {{arch}}, {{sandbox}}, with restore: prefixes, save: and share:. Always a copy, never written in place; a cache never fails a run. Stored in ~/.caffeine/cache/ (max_gb, max_age_days, pruned by caffeine gc) or on any S3-compatible store (cache.store: s3). caffeine cache ls|rm.
  • memory_store: cache keeps the memory of memory: true pipelines on the cache's store, shared by the machines that use it.
  • Review steps fix what they find. fix: on a review step: an agent (claude or cmd) fixes the blocking issues, then a fresh review runs again, for up to rounds (1-5). Logs <step>.fixN.log, <step>.roundN.log; fixes in summary.json.
  • auth: api_key on a claude role runs the Claude Code CLI on an API key (api_key_env, default ANTHROPIC_API_KEY) to spend a plan's monthly API credits: subscription credentials are removed, and the step fails if the CLI used another one.
  • caffeine gc also removes the containers, pods, Secrets and network policies that a dead caffeine of this install left (label caffeine/install, from ~/.caffeine/install-id).
  • CI builds a static x86_64-unknown-linux-musl binary, the one to mount in a sandbox whose image has another libc.
  • caffeine init writes a mid role (Sonnet) next to cheap and smart.
  • The site-care example ships a pack-local skill, and a new techdoc example loads a technical-docs skill from wska: checks and repository facts as scripts, a plan, one agent per group of components (foreach), an assembly validated by the skill's own script, and a review.

Changed

  • The claude runner gets the rules through --append-system-prompt-file (<logdir>/<step>.system.md) instead of one argument, capped at 128 KB on Linux.
  • caffeine pr pushes to the target's git: URL and opens the pull request on that repository, never on whatever origin a step left in the clone.
  • The git that caffeine runs in a workspace ignores its hooks, fsmonitor, external diffs and textconv; a .git that a step creates in a folder run in place fails the run.
  • CI runs on Linux only for now (macOS runners were unreliable), and tests the bwrap engine for real.

Fixed

  • A step that cannot finish for a reason outside its own work (a log or prompt file it cannot write: a full disk, a quota) now fails as that step: failed_step is set, the error names the file, and always steps still run. It used to stop the run with a bare "Disk quota exceeded".
  • A run without agents cost -0.0 in summary.json and -0.0000 in $CAFFEINE_COST_USD (Rust's sum of no f64); it is 0.0.

0.3.0 (2026-11-29)

Added

  • Variables between steps. key=value lines in .agent/vars become vars.KEY in if: and {{vars.KEY}} in templates; steps.NAME.ok|skipped|failed|exit|cost reads an earlier step's result.
  • Failure handling. continue_on_error: true, and always: true steps that run after a failure (if: failed for failure-only ones).
  • Attempts and model ladders. model: [cheap, mid, smart] tries each role in turn until verify passes; attempts: N for one role. Logs <step>.attemptN.log.
  • Loops. loop: blocks with max (1-100) and an optional until: condition.
  • Parallel blocks. parallel: runs plain steps at the same time.
  • foreach. One step per item of a list, files("glob"), or a vars. / context. / env. value; {{item}}, {{item_index}}, foreach_max.
  • Step templates. uses: name or uses: pack/name from steps/<name>.yaml, overridden key by key.
  • Per-step env: and cwd:.

Changed

  • The fallback attempt's log is <step>.attempt2.log (was <step>.fallback.log).

0.2.0 (2026-11-29)

Added

  • Conditional steps. if: on any step (and apply: steps): target, pipeline, repo, kind, dry_run, today, weekday, context.KEY, env.NAME, with ==, !=, glob =~ / !~, in [...], < <= > >=, &&, ||, !, parentheses and exists("path"). Checked when the pipeline loads; a skipped step is marked in summary.json.
  • Packs. caffeine pack add <git url or folder> [--subdir] [--name], list, update, remove. {{pack}} points to a pipeline's own folder.
  • MCP server. caffeine mcp exposes pipelines, runs, the inbox, the digest and stats to any MCP client; run_pipeline starts runs in the background. --read-only, and --allow-decisions for approve / reject.
  • Inbox. .agent/ACTIONS.json proposals and unmerged pull requests wait for caffeine approve [--only] or caffeine reject; apply: steps run what was approved. claude_connectors: true gives pipelines your claude.ai connectors, still limited to allowed_tools.
  • Review steps. review: gives the run's diff to a reviewer with fresh eyes, which returns a JSON verdict.
  • Automation. schedules: in workspace.yaml and caffeine schedule install|list|remove|cron (LaunchAgents through caffeinate); caffeine secret and keychain_env; gates caffeine gate changed|release|cargo|npm.
  • Checks. caffeine check urls|json|unchanged|actions|smoke|deployed, caffeine changed.
  • Measure. caffeine stats, caffeine digest, caffeine feedback, budget caps, hooks, caffeine gc.
  • Reliability. Clean Ctrl-C (process groups killed, workspace cleaned, interrupted in the summary), timeouts for every runner, per-target locks, retries of transient agent failures (retries:), per-target memory: true.
  • Folders are recognised as their declared target (any git remote spelling, or dir:), and . or a path can be given as a target.
  • config.yaml (settings) and workspace.yaml (targets, schedules) are separate files.

Fixed

  • Checks only see what a run changed, not work already in an in-place folder.
  • Two runs started in the same second no longer share a log folder.
  • check smoke waits until the app is really stopped before returning.

0.1.0 (2026-11-29)

First release of the Rust CLI: pipelines of scripts and agents over git repos, folders and scratch folders; claude, llm and cmd runners with model roles and fallback; verify, guard and tool allowlist; .caffeine.conf overlays; caffeine pr, scope, init, doctor, list, runs, open / close.

On this page