Skip to content

Amber 0.1.0

Choose a tag to compare

@enestanerr enestanerr released this 02 Nov 21:17
· 13 commits to main since this release

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 doctor recommends a fallback, the agent resumes from the failed step, and amber compile --refresh produces 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.0

Not in this release

  • The 60-second demo GIF (scripts/demo_gif.sh needs vhs and ffmpeg).
  • PyPI publishing (opt-in in release.yml once a trusted publisher is configured).
  • Loop and pagination collapsing, parallel steps, multi-agent traces, TypeScript output (roadmap).