Repository navigation
Releases
Amber 0.1.2: on PyPI
Amber is on PyPI. No code changes since 0.1.1: this release makes the PyPI page match the README.
Amber compiles recordings of an AI agent doing a recurring task into a readable Python program: code for the mechanical steps, one small schema-validated llm() call where judgment is needed, replay tests from the recordings, and guards on every live call. When the world drifts, the doctor explains what changed, the agent resumes from the failed step and Amber recompiles.
Install
uv tool install amber-compiler # or: pipx install amber-compiler
amber --version # amber 0.1.2Plugin: /plugin install amber --marketplace enestanerr/Amber · Try it offline, no Claude calls: cd examples/weekly-report && make demo-offline
Changed
- Install from PyPI; the README carries a PyPI badge, and
git+httpsstays for followingmain. - FlashScript (arXiv 2610.33876) is credited under the tagline, and Related work adds TraceCompiler and SKILL-DISCO.
- The plugin's
/amber:compileskill installs the CLI from PyPI.
Measured
From bench/results.md: 2026-11-02, medians of 3 live runs on a claude.ai subscription, synthetic workflows against mock MCP servers.
| example | agent tokens / run | compiled tokens / run | fewer tokens | agent turns |
|---|---|---|---|---|
| issue-triage | 153,944 | 11,892 | 12.9× | 0 |
| price-watch | 165,225 | 14,862 | 11.1× | 0 |
| weekly-report | 174,076 | 29,472 | 5.9× | 0 |
Caveats are in the results file: n=3, most agent tokens are cache reads, and part of the cost gap is Haiku running the judgment vs Sonnet running the agent.
Full changes: CHANGELOG.md.
Amber 0.1.1: Claude Code plugin, demo, usage guide
Amber compiles recordings of an AI agent doing a recurring task into a readable Python program: code for the mechanical steps, one small schema-validated llm() call where judgment is needed, replay tests from the recordings, and guards on every live call. When the world drifts, the doctor explains what changed, the agent resumes from the failed step and Amber recompiles.
Install
uv tool install amber-compiler # or: pipx install amber-compiler
amber --version # amber 0.1.1Plugin: /plugin install amber --marketplace enestanerr/Amber · Try it offline, no Claude calls: cd examples/weekly-report && make demo-offline
Measured
From bench/results.md: 2026-11-02, medians of 3 live runs on a claude.ai subscription, synthetic workflows against mock MCP servers.
| example | agent tokens / run | compiled tokens / run | fewer tokens | agent turns |
|---|---|---|---|---|
| issue-triage | 153,944 | 11,892 | 12.9× | 0 |
| price-watch | 165,225 | 14,862 | 11.1× | 0 |
| weekly-report | 174,076 | 29,472 | 5.9× | 0 |
Caveats are in the results file: n=3, most agent tokens are cache reads, and part of the cost gap is Haiku running the judgment vs Sonnet running the agent.
New in 0.1.1
- Claude Code plugin. This repository is a plugin marketplace.
/amber:compiletakes a workflow Claude keeps repeating from task prompt to a recorded, compiled, verified and scheduled program, asking before anything costs tokens or writes./amber:healruns the doctor and picks the right repair: recompile, agent fallback or re-record. - README: rewritten as a guide: install, a two-minute offline demo, five ways to use Amber with Claude (headless
claude -pruns, interactive transcripts, the Agent SDK, Claude Desktop through the proxy, the plugin), a step-by-step walkthrough, configuration, safety model, commands and troubleshooting. - Demo: an animated SVG of a real weekly-report session: compile, a live run on a new week, a drift, the guard stop, the doctor, the agent fallback, the recompile and a healthy doctor.
- Defaults:
max_llm_tokensdefaults to 40000, measured on a live judgment. - Output: CLI messages print project-relative paths, and
FORCE_COLORnow colours piped output on Windows.
Based on FlashScript (arXiv 2610.33876). Full changes: CHANGELOG.md.
Amber 0.1.0
First release of Amber, an open-source compiler for agent runs. Record an agent doing a workflow a few times, and Amber compiles the runs into a Python program: deterministic code for the mechanical parts, small schema-validated llm() calls for judgment, replay tests from the recordings, guards on every live call, a doctor for drift and a fallback that hands the task back to the agent and recompiles.
Everything in this release was recorded, compiled, verified and run live with the claude CLI 2.1.316 on a claude.ai subscription, with no API key.
Measured (live, 2026-11-02)
Agent claude-sonnet-5-5; compiled judgments claude-haiku-5-5. The baseline is each example's three live recordings; the compiled program ran once per recording with the same inputs and scenario, against synthetic mock servers.
| example | agent tokens (median) | compiled llm tokens (median) | ratio | agent $ | compiled $ | agent wall s | compiled wall s | llm calls | fidelity exact / core | agent turns |
|---|---|---|---|---|---|---|---|---|---|---|
| issue-triage | 153,944 | 11,892 | 12.9x | 0.087 | 0.003 | 15.3 | 10.3 | 1 | 67% / 100% | 0 |
| price-watch | 165,225 | 14,862 | 11.1x | 0.071 | 0.003 | 21.5 | 11.4 | 2 | 100% / 100% | 0 |
| weekly-report | 174,076 | 29,472 | 5.9x | 0.170 | 0.008 | 28.9 | 33.6 | 1 | 0% / 100% | 0 |
- Three recordings and three compiled runs per example is a small sample on synthetic data.
$is the API-equivalent cost the CLI reports; a subscription is not billed per call. Part of the cost gap is Haiku vs Sonnet.- weekly-report's compiled run is not faster: its judgment thinks for about 25 s while counting 240 RFM rows (correctly).
- Exact fidelity is below 100% where the agent made exploratory reads the program drops; core ignores those pruned reads.
What was tested live
- All three examples: record → align → compile → verify (3/3) → run on an input nobody recorded, with 0 agent turns and at most 2
llm()calls. - The self-healing loop on weekly-report: the drifted run stops on a result-shape guard,
amber doctorrecommends a fallback, the agent resumes from the failed step, andamber compile --refreshproduces a v2 that verifies 4/4 and runs healthy. - price-watch's planned drift (renaming a CSS class) does not break the compiled program at all: Playwright MCP's accessibility snapshot has no CSS classes.
The live runs exposed more than twenty problems the synthetic fixtures had hidden; each is fixed in its own commit with a regression test for every code change. See CHANGELOG.md and the 2026-11-02 live entry in PROGRESS.md.
Install
The package is not on PyPI yet. Install the attached wheel:
uv tool install ./amber_compiler-0.1.0-py3-none-any.whl
amber --version # amber 0.1.0Not in this release
- The 60-second demo GIF (
scripts/demo_gif.shneeds vhs and ffmpeg). - PyPI publishing (opt-in in
release.ymlonce a trusted publisher is configured). - Loop and pagination collapsing, parallel steps, multi-agent traces, TypeScript output (roadmap).