d99f8958

By: ananjiani <ananjiani@noreply.codeberg.org>

feat(pi): restore Claude bridge and default to Opus 5.5 (#363)

## Summary

```text
Opus 5.5 (Claude Max): default coordinator, medium effort
  -> Sol 6.1: primary implementation worker
  -> Opus reviews Sol; Sol reviews Opus
  -> Flash/Grok: searches and small tasks
```

- Restore `pi-claude-bridge@0.9.2` with the Nix-managed Claude Code binary and an isolated wrapper.
- Keep Claude settings, proxy environment overrides, and extra MCP servers out of bridge sessions. Keep AskClaude off.
- Set the confirmed Claude Max plan. Main and Claude subagents share one account quota.
- Preserve main’s native MCP, Codemode, free Jev, and Z.ai removal. Add regression coverage that GLM is never used as a compaction fallback. No old MCP adapter returns.

## Evidence

- **Before:** Pi did not load the Claude bridge; Sol was the default.
  **After:** Home Manager evaluation selects `claude-bridge/claude-opus-5-5` at `medium`, retains Sol, sets the bridge plan to `max`, and has no direct Z.ai provider.
- 9 Node tests and 12 Bun compaction tests pass (21 total).
- Nix parse, nixfmt, statix, deadnix, ripsecrets, and whitespace checks pass.
- Pi 1.1.0 loads bridge 0.9.2 in an isolated agent directory and lists Opus 5.5 with 1M context. Offline SDK-stub checks cover transcript/tools, executable path, stock Claude prompt, strict MCP, and model mapping.
- No real Claude request, full system build, or live activation ran yet.

## Merge Danger

**Door:** two-way

Revert the commit or restore the prior Home Manager generation to restore the old settings.

**Blast Radius:** Pi

Hosts that enable this Home Manager module change their default Pi model after activation. Claude Code login and Max quota are needed. Existing sessions or the remember-last-model extension can retain a prior model choice. All Claude sessions share account limits. No server services, secret values, or deployment ownership change.

Co-authored-by: Ammar Nanjiani <ammar.nanjiani@gmail.com>
Reviewed-on: https://codeberg.org/ananjiani/infra/pulls/363