github GanyuanRan/Aegis v2.7.0
Aegis v2.7.0

latest releases: v2.15.1, v2.15.0, v2.14.3...
3 months ago

Highlights

This release makes the automatic routing discipline work on the Pi CLI and OMP (Oh My Pi) hosts with the same strength OpenCode got in v2.6.9, and fixes OpenCode's plugin update staleness: Bun caches git plugins lockfile-bound, so restarts never re-fetched new releases.

What's New

Pi CLI / OMP Host Adaptation: Auto-Injection + Routing Guard

  • Shared extension core (extensions/shared/aegis-bootstrap.ts): config resolution (~/.config/aegis/config.toml activation/tdd modes plus env overrides), compact bootstrap assembly, routing-guard state machine (readonly-tool exemption, SKILL.md / skill:// recognized as skill loads, at most once per session), and ancestor-walking method-pack root resolution.
  • Pi extension (extensions/pi/index.ts, shipped via the pi.extensions manifest entry): in auto mode the compact using-aegis hot path is injected before every LLM call, and an AEGIS_ROUTING_GUARD advisory marker is prepended to the first non-readonly tool result when no routing decision was recorded. explicit mode disables injection and the guard.
  • OMP extension (extensions/omp/index.ts) plus native alwaysApply: using-aegis is marked alwaysApply: true, so OMP injects the full hot path into the system prompt natively (other hosts ignore the field per the Agent Skills standard). The extension adds the routing guard as a belt-and-braces fallback.
  • Compatibility: Pi reuses its existing discovery paths (~/.pi/agent/skills/, ~/.agents/skills/, package pi.skills); OMP discovers Aegis skills through its agents provider (~/.agents/skills/).
  • Docs: docs/README.omp.md (new host guide), docs/README.pi.md activation-mode section rewritten for extension injection, compatibility matrix, KNOWN_LIMITATIONS (new 2.19 OMP entry), release checklist, prompt hygiene, and README host lists updated.
  • Tests: tests/pi-omp-extensions/test-shared-core.sh (21 assertions), tests/e2e/omp-host-boundary-check.sh (new); pi/omp/opencode existing checks all pass.

OpenCode Plugin Update Self-Check

  • .opencode/plugins/aegis.js now runs an update self-check on every startup: it compares the upstream HEAD against a recorded anchor, resets the stale Bun cache entry automatically when the remote moved, and shows a restart reminder in the injected bootstrap. Offline/git failures skip silently and never block startup.
  • First check anchors without deleting; existing users need one manual cache refresh (documented), after which updates are fully automatic.
  • docs/README.opencode.md Updating section rewritten to describe the real mechanism plus a manual fallback command.
  • Fix: frontmatter stripping now handles CRLF line endings (shared core and OpenCode plugin).

Don't miss a new Aegis release

NewReleases is sending notifications on new releases.