release-notes
An idea, in a dozen lines: caffeine gate release, an agent that reads the commits since the last tag, a check that the file is valid.
- gate release
- agent
- verify
v0.5.0 · one binary · written in Rust
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.
// watch one run
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
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.
Keeps a Rust app's dependencies fresh and free of advisories. Build, tests and a smoke test must all agree before a pull request opens.
Reads your site, proposes wording fixes, and waits for your approval in the inbox before touching anything.
Technical docs written from the code: one agent per group of components, assembled, validated by a script, then reviewed.
Sorts your email through your claude.ai Gmail connector. It proposes; you caffeine approve.
An idea, in a dozen lines: caffeine gate release, an agent that reads the commits since the last tag, a check that the file is valid.
Or grab someone else's: caffeine pack add <git url> installs their pipelines next to yours.
// how it works
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.
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
$ 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.
~/.caffeinerun: step. Agents only where judgment is needed// real control flow
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
Every step can end with a command. Exit 0 or it didn't happen.
Steps in a container, under bubblewrap or in a pod, away from ~/.ssh and your home.
.env, CI and keys are off-limits whatever ran. network: none when the step needs nothing.
Proposed actions and pull requests wait for caffeine approve. A budget cap keeps the bill boring.
// why caffeine
No account, no server of ours in the loop. You pay your models, and only for the steps that need one.
Pipelines name a role (cheap, smart, local). Your config maps it to Claude Code, OpenAI, Ollama, vLLM, OpenRouter or any CLI.
Schedules, gates that skip empty runs, and caffeine mcp to start pipelines from Claude Desktop or any MCP client.
// who
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.
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 ↗
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 ↗A prebuilt binary for your system, nothing to compile. amd64 and arm64. The claude runner needs the Claude Code CLI, logged in.
# 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
$ sudo curl -fsSL https://pkg.getcaffeine.dev/rpm/caffeine.repo -o /etc/yum.repos.d/caffeine.repo $ sudo dnf install getcaffeine
$ 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