v0.6.1 · MIT · Claude Code and Codex

An exokernel for AI agents

Optimax stays thin and leaves your Orchestrator model in charge. It manages the three resources of an agent session: process, context and memory.

Four layers, with the agent host at the base

An exokernel does resource management and nothing else. Policy stays with the application above it, and the whole stack runs on the agent host you already use.

01Application

Your Orchestrator

The session model you chose. It plans, delegates and decides, and Optimax never replaces it.

02Kernel

Optimax exokernel

One thin layer with three managers: process, context and memory. It is instructions plus a deterministic controller.

03Resources

Models, context, memory

Models and effort through the Executor and Advisor ladders. The context window through RTK, Context Mode and LeanCTX. Memory across sessions through Graphify and agentmemory.

04Agent host

Claude Code · Codex

The base everything stands on. It runs your Orchestrator session and loads Optimax as a plugin.

Three managers in one thin layer

An operating system kernel answers three questions about scarce resources. An agent session has the same three, and before Optimax each one was answered ad hoc.

Process

Which model, at which effort, does this delegated task?

Your session model stays the Orchestrator. Delegated work goes to an Executor ladder and an Advisor ladder, and each rung is earned from independently assessed results.

Run by the controller and a score ledger

Context

What enters the context window, and how compressed?

Shell output, file reads, searches and web pages each have exactly one tool responsible for shrinking them. Nothing is compressed twice.

Run by RTK, Context Mode and LeanCTX

Memory

What persists after the session ends?

A graph of the repository to orient in before reading files, and a store of decisions that the next session can recall.

Run by Graphify and agentmemory

Routing that learns from results

Every delegated result is assessed independently on a 0 to 5 rubric. Five eligible runs decide whether the next task of that kind goes to a stronger rung, a cheaper one, or the same one.

Executor ladder

Stronger at the top

    Last five assessed runs

    Record a score

    Record five scores to see the controller decide.

    Advisor ladder

    An Advisor is consulted before any plan or design is finalized. The Orchestrator checks the advice and owns the decision. The Advisor ladder follows the same five-run rule.

    Claude Code
    Opus Medium
    Opus High
    Opus XHigh
    Opus Max
    Codex
    Sol XHigh
    Sol Max
    Astra Max

    Review Ladder

    Also bundled: a staged, independent review-and-repair sweep that takes a bounded scope through every rung of the Executor ladder. /optimax:review-ladder

    Five tools, one owner per job

    The context and memory managers are the Silver Bullet five-tool stack. The bundled Context Stack skill installs, wires, verifies and repairs it on both hosts.

    Which tool owns which job
    OwnerJobManager
    GraphifyGraph and structure, orient firstMemory
    agentmemoryMemory across sessionsMemory
    RTKShell outputContext
    Context ModeSandbox, grep, slice, web fetchContext
    LeanCTXRead, AST, path jail, injection guardContext

    Claude Code/optimax:context-stackCodex$context-stack

    Nothing changes without a yes

    stack.py plan shows every file diff and command before anything runs. Consent is recorded per user and never read from a repository.

    Verification that can fail

    stack.py verify exits nonzero on any failed check, so it works in scripts as well as by eye.

    Shared with Silver Bullet

    Both read and write the vendor-neutral five-tool-stack/v1 manifest. When Silver Bullet is installed it owns the wiring, and Optimax only verifies.

    Team scores that survive a fresh container

    Added in 0.6.0. Cloud sessions start from a clean checkout, and parallel threads each learn something. A repository can opt in to syncing the score ledger through git so none of it is lost.

    .optimax/team.json
    {"schema":1,"sync":"on"}
    1. Commit and pushEach session’s ledger is committed and pushed on its thread branch.
    2. ReconcileMain wins, then this session’s rows are replayed on top.
    3. Carry onThe next container, or a parallel thread, starts from what every session has learned.
    • Commit the file to turn syncing on for the project
    • Enabled per project, never per person
    • OPTIMAX_SYNC=0 is a personal opt-out
    • Never force-pushes
    • Never bypasses hooks
    • Never syncs on the default branch

    Install Optimax, then switch it on

    Installing enables nothing. Optimax applies only after you turn it on, for a session or as a standing default.

    1. 01Add the Ālo Labs catalog/plugin marketplace add alo-labs/agent-plugins
    2. 02Install the plugin/plugin install optimax@alo-labs
    3. 03Turn it on for this session/optimax:optimax on

    Full instructions, including cloud sessions, are in INSTALL.md.

    Standing defaults and controls

    on --scope project
    On for every new session in this project.
    on --scope user
    On for every project you open.
    off
    Off for this session.
    status
    Show what applies here and why.
    OPTIMAX_AUTOACTIVATE=0
    Kill switch. No default applies while it is set.

    Four limits Optimax cannot get past

    Optimax is a set of instructions plus a deterministic controller. That is a deliberate design, and it has edges.

    It cannot force a host to follow instructions

    The controller computes the right rung. The host model still has to act on it.

    It cannot guarantee model availability

    The ladders name models and efforts. Whether your host and plan offer them is outside its control.

    It cannot verify hidden native workers

    Where a host does not reveal a worker’s model or effort, Optimax cannot confirm what actually ran.

    It is a prerelease

    Version 0.6.1 is published for early use. Expect changes between versions.