v0.5.0 · one binary · written in Rust

Every chore.
One pipeline.

caffeine is an agent factory for your terminal. Chain shell scripts and AI agents into pipelines, run them on all your repos at once, and let the checks you wrote decide if the work is good.

$ caffeine run maintenance --all Install it See the pipelines
  1. 01gaterunnothing to do? stop, free
  2. 02smoke-beforerunthe site answers today
  3. 03updateagent · cheapfallback: smart
  4. ✓verifybuild · test · smokeyour commands decide
  5. 04reviewagent · smartfix: up to 3 rounds
  6. 99prrunwaits in your inbox
  • Claude Code
  • OpenAI-compatible
  • Ollama
  • any agent CLI
  • podman
  • docker
  • bwrap
  • kubernetes

// watch one run

From a draft to a pull request,
while you're away.

A pipeline that turns this week's notes into a blog post: a free gate, a smoke test, a cheap agent that writes, your checks, a smarter reviewer, and a pull request that waits for you.

// pipelines à gogo

One YAML file per chore.
Write as many as you want.

A pipeline is a list of steps: shell scripts where a script is enough, agents where judgment is needed. These ones ship as examples. Copy them, bend them, stack them. Every key is in the docs.

See every example pipeline

// how it works

Write it once.
Run it on every repo.

Targets live in workspace.yaml: git repos, local folders or a scratch folder for MCP-only work. One command fans a pipeline out to all of them.

~/.caffeine/pipelines/hello.yaml
description: "Example: list the folder with a script, then let an agent describe it"
steps:
  - name: 01-files              # a script: free and exact
    run: if git rev-parse --git-dir >/dev/null 2>&1; then git ls-files | head -200; else ls -1; fi > .agent/FILES.txt
  - name: 02-describe           # an agent, with only the tools it needs
    prompt: prompts/hello/02-describe.md
    model: cheap
    max_turns: 15
    allowed_tools: [Read, Glob, Grep, Write]
    verify: test -s .agent/REPORT.md
zsh
$ caffeine run hello -ncaffeine 0.4.0 · pipeline hello · demo-site · 2 steps · dry run14:44:18 [demo-site] ▶ 01-files14:44:18 [demo-site]   ✓14:44:18 [demo-site] ▶ 02-describe14:44:21 [demo-site]   → Read .agent/FILES.txt14:44:21 [demo-site]   → Glob *14:44:23 [demo-site]   → Read index.html14:44:27 [demo-site]   → Write .agent/REPORT.md14:44:31 [demo-site]   ✓ claude:haiku · 5 turns · <$0.01 · 13s14:44:31 [demo-site]   verify ✓ receipt  ✔ demo-site  2 steps  <$0.01     13s1 target(s) · 1 ok · 0 failed · <$0.01 · 13s

A real run, paths shortened. Add --all to run it on every target.

3runners: Claude Code, any OpenAI-compatible API, any agent CLI
4sandbox engines: podman, docker, bwrap, kubernetes
1binary. Your config, pipelines and logs live in ~/.caffeine
$0for a run: step. Agents only where judgment is needed

// real control flow

Not a prompt. A program.

Pipelines get the tools of a real language, so one pipeline covers many targets instead of ten copies of it.

if:

Run a step only for the repos, targets or days it fits.

loop: / until:

Try again until a condition holds, with a cap.

parallel:

Plain steps at the same time.

foreach:

One step per file, item or value.

model: [cheap, smart]

Climb the ladder only when the check fails.

uses:

Reusable step templates, overridden key by key.

cache:

Keep target/ and node_modules/ between runs, even on S3.

skills:

Load SKILL.md know-how into agent steps.

// checks decide, not the model

Runs alone. Asks only for decisions.

verify

Every step can end with a command. Exit 0 or it didn't happen.

sandbox

Steps in a container, under bubblewrap or in a pod, away from ~/.ssh and your home.

guard & network

.env, CI and keys are off-limits whatever ran. network: none when the step needs nothing.

inbox

Proposed actions and pull requests wait for caffeine approve. A budget cap keeps the bill boring.

How caffeine stays safe

// why caffeine

Your chores run while you sleep.
You wake up to decisions.

One binary, on your machine.

No account, no server of ours in the loop. You pay your models, and only for the steps that need one.

Any model, one edit away.

Pipelines name a role (cheap, smart, local). Your config maps it to Claude Code, OpenAI, Ollama, vLLM, OpenRouter or any CLI.

Drive it from anywhere.

Schedules, gates that skip empty runs, and caffeine mcp to start pipelines from Claude Desktop or any MCP client.

// who

Two friends, too many repos.

We got tired of babysitting the same chores on twenty repos, so we built caffeine for ourselves. We use it every day, and it gets better every week.

Alice's avatar

Alice Snow @Sn0wAlice

co-owner · Luxembourg

Cybersecurity and fintech. Risk detection, backend ops, and a long list of fast Rust CLIs for people who live in a terminal.

github.com/Sn0wAlice ↗
Maxime's avatar

Maxime @batleforc

co-owner · France

Kubernetes, platform and dev environments. Rust proxies in front of clusters, and tooling to keep agent sessions in check.

github.com/batleforc ↗

Start your first pipeline.

A prebuilt binary for your system, nothing to compile. amd64 and arm64. The claude runner needs the Claude Code CLI, logged in.

Debian / Ubuntu
# add the repository once per machine
$ sudo install -m 0755 -d /etc/apt/keyrings
$ sudo curl -fsSL https://pkg.getcaffeine.dev/caffeine.asc -o /etc/apt/keyrings/caffeine.asc
$ sudo tee /etc/apt/sources.list.d/caffeine.sources >/dev/null <<'EOF'
Types: deb
URIs: https://pkg.getcaffeine.dev
Suites: stable
Components: main
Signed-By: /etc/apt/keyrings/caffeine.asc
EOF
$ sudo apt-get update && sudo apt-get install getcaffeine
Fedora / RHEL / Rocky / Alma
$ sudo curl -fsSL https://pkg.getcaffeine.dev/rpm/caffeine.repo -o /etc/yum.repos.d/caffeine.repo
$ sudo dnf install getcaffeine
openSUSE
$ sudo zypper addrepo https://pkg.getcaffeine.dev/rpm/caffeine.repo
$ sudo zypper install getcaffeine
# accept the key when its fingerprint matches the one on pkg.getcaffeine.dev

Then:

$ caffeine doctor   # git, gh, Claude Code CLI, your config
$ caffeine init     # ~/.caffeine, a config and a first pipeline
$ caffeine run hello