Repository navigation
v0.13.0 — Opus 4.7 agents + /aih-calibrate survives updates
v0.13.0 — Opus 4.7 agents + /aih-calibrate that survives updates
Two milestones ship together: M008 brings Opus 4.7 adoption and the new /aih-calibrate skill; M009 closes the loop so calibration survives /aih-update byte-identically on every documented platform path.
Headline
- 43 agents adopt Opus 4.7 effort tier + vision note. Planners and adversarial reviewers get deeper default deliberation; coding agents run at
xhighon Claude Code ≥ v2.1.111 (older releases transparently fall back tohigh). - New
/aih-calibrateskill. Retune per-agent effort and flippermissions.defaultModevia four presets (cost-optimized,balanced,quality-first,auto-mode-safe) or target a single agent. Every edit atomic, committed, reversible. - Calibration now survives
/aih-update. User-owned.aihaus/.calibrationsidecar (schema v1) lives at the.aihaus/root outside the refreshed subdirs. All four documented update paths —update.sh,install.sh --update,install.ps1 -Update, andinstall.ps1native install merge — restore effort tiers and preservedefaultModebyte-identically.
What changed
M008 — Opus 4.7 agent upgrade + /aih-calibrate
c11f7ca— 43 agents adopteffort: xhigh(Opus 4.7) + optional vision note; Claude Code ≥ v2.1.111 required for the new tier to take effect (older versions auto-fall-back tohigh).772bb75—/aih-calibrateskill lands with 4 presets + per-agent override. Auto-mode opt-in path prints the full caveat matrix before applying (dropsBash(*)wildcard, ignores subagentpermissionMode).9157f4a— Cursor COMPAT-MATRIX summary count synced 11 → 12 skills.d09a3c4— Cost-optimized preset applied across 26 agents as the shipped default (keeps Opus 4.6 behavior while users evaluate 4.7).
M009 — Calibration survives /aih-update
7bebbfd—.aihaus/.calibrationsidecar +restore_calibration()inupdate.sh+ post-mergedefaultModepreserve inmerge-settings.sh+ Phase 4 write in/aih-calibrate+ new annexstate-file.md+ smoke-test Check 27 with 5 fixtures.9ae04e1—install.ps1Windows-native install-merge branch mirrors thedefaultModepreserve (PS-native users were still silently reverting tobypassPermissions); jq-less Python fallback inmerge-settings.shnow produces byte-identical output to jq (trailing newline + matching separators); 7 em-dashes replaced with--ininstall.ps1(pre-existing parse bug on Windows pt-BR ANSI codepage — cp1252 couldn't decode U+2014 in UTF-8-without-BOM.ps1files).52115ec—restore_calibrationextracted intopkg/scripts/lib/restore-calibration.sh; sourced from bothupdate.shandinstall.sh --updateso the bash install-update path restores calibration too.auto-mode-safe!!warning deduped to one canonical emission per update run. Check 27 sources the shared lib directly to eliminate test/prod drift.
Binding decisions (ADRs)
- ADR-M008-A —
/aih-calibrateuses in-place frontmatter edits (not a sidecar strategy for the write path). - ADR-M008-B —
bypassPermissions+Bash(*)is the default install posture;autois opt-in via--preset auto-mode-safe. - ADR-M008-C — Adversarial agents (plan-checker, reviewer, verifier, security-auditor, integration-checker, contrarian) are preset-immune — presets never lower their effort; explicit
--agent <name>override still works. - ADR-M009-A —
.aihaus/.calibrationownership model: user-owned, never-committed, derived-state at the.aihaus/root. Companion to.install-mode/.install-platform/.install-source/.versionprecedent. Schema-versioned (v1); unknown version → loud warning + silent skip.
Usage
Retune effort / permission mode
# Interactive
/aih-calibrate
# Apply a preset across 43 agents
/aih-calibrate --preset balanced
# Target a single agent
/aih-calibrate --agent plan-checker --effort max
# Opt into auto mode (drops Bash(*), hooks-gated auto-approve stays)
/aih-calibrate --preset auto-mode-safeEffort presets:
cost-optimized— all opus agents ateffort: high(keeps Opus 4.6 baseline)balanced— 22 opus agents atxhigh, 6maxuntouched (default after v0.13.0)quality-first— addsmaxto coding/adversarial agents (use sparingly; docs warn "prone to overthinking")auto-mode-safe— switches permission mode only; keepsbalancedeffort
Survive /aih-update
Nothing to do — the sidecar is written automatically post-calibrate, and every subsequent /aih-update (or bash install.sh --update / pwsh install.ps1 -Update) restores calibrated effort tiers plus permissions.defaultMode before re-linking. Missing sidecar = silent skip (fresh installs never notice).
Auto-mode-safe side effects (heads-up)
auto-mode-safe also widens hook SAFE_PATTERNS and removes permissionMode: bypassPermissions from worktree-agent frontmatter. Those side effects are not auto-replayed after /aih-update — you'll see a loud !! stdout block telling you to re-run /aih-calibrate --preset auto-mode-safe to re-apply. (Replaying them silently would require Claude Code to expose an agent-spawn hook; it does not. See F-009 in the M009 plan.)
Upgrade notes
Pre-v0.13.0 hand-edited frontmatter
If you previously edited pkg/.aihaus/agents/*.md by hand to change effort: tiers, run /aih-calibrate --preset <your-intended-preset> once on v0.13.0 to populate .aihaus/.calibration. The first /aih-update after v0.13.0 without a sidecar will restore package defaults (silent skip = no restore). This is a one-time user action; documented in pkg/.aihaus/skills/aih-calibrate/annexes/state-file.md and CLAUDE.md.
Claude Code version
effort: xhighrequires Claude Code ≥ v2.1.111. Older releases silently fall back toeffort: high.permissions.defaultMode: autorequires Claude Code ≥ v2.1.83. Older releases ignore the field.
Pre-existing update_aihaus_dir crash window (R11)
Unchanged: update.sh still does rm -rf <dst> && cp -R <src> <dst> inside update_aihaus_dir. A Ctrl-C between the two commands can leave .aihaus/agents/ empty. Out of scope for this release; dedicated follow-up plan if prioritized.
Full changelog
See the merged PRs: