01 / ProtectionAEGIS
Policy and protection. Decides whether intervention is permitted and keeps the session safe.
Open-source cognitive control · OpenCode · TypeSafe JEV
ATHENA turns agent behavior into observable state, detects unproductive loops and issues a single, evidence-backed change of strategy.
Operational wisdom
Most agent runtimes can act. Few can recognize when action has collapsed into repetition. ATHENA adds the missing judgment layer: observe, evaluate, protect and replan.
System architecture
ATHENA is not another model. It is a control layer around the model: a small system of specialized modules that converts runtime signals into deliberate intervention.
01 / ProtectionPolicy and protection. Decides whether intervention is permitted and keeps the session safe.
02 / CalibrationSignal calibration. Converts noisy events into confidence about stagnation, risk and progress.
03 / OutcomeOutcome judgment. Distinguishes useful movement from activity that only looks productive.
04 / StrategyOne-shot strategy change. Queues a new direction without impersonating the user or looping itself.
Repository-backed reference
Installation, architecture, policy, Tool Router, OpenCode integration and security — aligned with the current ATHENA repository.
Press / to searchGuard and outcome
AEGIS prevents unsafe intervention. NIKE verifies whether the new strategy actually produces movement. Protection and outcome stay separate by design.

The policy boundary. It turns a detection into an allowed, blocked or deferred action while preserving session invariants.

The outcome judge. It measures whether the agent changed direction and whether that direction created useful progress.
OpenCode integration
The adapter listens to runtime context, stores state per session and queues one controlled replan. It never injects a synthetic user message.
Read adapter docs14:02:11 hook.context received 14:02:11 session.isolated = true 14:02:12 world_state.progress_delta = 0.03 14:02:12 world_state.repeat_ratio = 0.78 METIS confidence 0.91 AEGIS policy ALLOW_REPLAN JEV verdict LOOP_DETECTED REPLAN queued true strategy retry → inspect_source ✓ context preserved ✓ one-shot guard armed ✓ synthetic user disabled