A contract-checking harness for Claude Code, Codex, and pi.
Define scope and completion evidence before work begins.
Delegate inside an approved contract; stop and ask at its boundary.
Review the result against real evidence before declaring completion.
planning → set → approve → execute → review
Install
Requires Node.js 20+, git, and Claude Code 2.1+, Codex CLI 0.155+, or pi 1.3+.
Claude Code
claude plugin marketplace add minsubb13/amber#release
claude plugin install amber@amber
Claude Code leaves auto-update off for third-party marketplaces. To receive new releases automatically, run /plugin, open the Marketplaces tab, select amber, and choose Enable auto-update.
Enable Amber in your project's .codex/config.toml:
[plugins."amber@amber"]
enabled = true
Review and trust Amber's hooks in Codex. Start a new session after installation.
pi
pi install git:github.com/minsubb13/amber@release
Add -l to install for the current project only. The package loads one extension (the hooks' events, enforcement, and the completion gate) and the skills as amber-<name>. Start a new session after installation.
All hosts install from the release branch; RELEASING.md describes how releases are cut.
Optional pi runtime controls
Amber's enforcement works without runtime helpers. To opt in for one pi process, start:
pi --amber-runtime
# Or try this checkout without installing it:
pi -e ./plugin/pi/index.ts --amber-runtime
Without --amber-runtime (the default), Amber adds no model-switch tool, /fast command, fast status, priority payload, tier notices or recovery. No extra package or dependency is needed. This is a pi-only helper, not an enforcement policy; it does not change Claude Code or Codex.
switch_model hands the next response to openai/gpt-6.1-sol or anthropic/claude-opus-5-5, optionally selecting pi's thinking level. It asks no confirmation, records the switch in the session, and never changes startup defaults. The target must have usable credentials. Amber's contract still applies after a switch.
/fast reports state; /fast on and /fast off toggle OpenAI agent-loop priority requests. It starts on in each opted-in process and shows fast while on; toggles and the once-only tier notice survive /reload. It does not affect other providers, summaries or compaction.
The completed response's tier is authoritative. A downgrade or unknown tier warns at most once per process. An HTTP400 naming service_tier turns fast off and continues once at default tier, without duplicating pi's native retry. Other errors use normal pi handling. Recovery cannot complete unfinished Amber work.
If another extension already provides switch_model or /fast (such as the standalone pi-model-tools package), Amber warns and leaves its runtime off rather than overriding it; remove that package (pi list, then pi remove <source>) and restart pi. Amber never edits your settings or uninstalls anything.
Priority is a request, not a speed guarantee. Actual priority execution, speed and quota impact are unverified; integration tests use loopback mocks only (see the development instructions).
Start
In your git repository, run /amber:init (Claude Code and pi) or $amber:init (Codex) once.
An empty repository works too: init then asks for the project's purpose, its first oracle, and what it will never do.
Check setup with /amber:status or $amber:status. On pi, /amber:<name> and /skill:amber-<name> are the same command.
Ask for work normally. Amber opens planning, decides whether a contract is useful,
and waits for your approval when one is needed.