Skip to content

Repository files navigation

Unicity AOS Oracles

Releases use year.month.patch versioning starting with 2026.9.0.

CI License: MIT OR Apache-2.0

Host integrations that connect Claude Code, Codex, and Grok Build to Unicity AOS. An oracle gives a coding host an AOS principal, the AOS MCP tool surface, and host-specific configuration while leaving the runtime boundary intact.

Install

Install Unicity AOS first:

curl -fsSL https://aos.unicity.ai/install.sh | sh

Then add the detected coding hosts:

curl -fsSL https://raw.githubusercontent.com/unicity-aos/oracles/main/install.sh | sh

Select hosts explicitly when desired:

curl -fsSL https://raw.githubusercontent.com/unicity-aos/oracles/main/install.sh \
  | sh -s -- --host codex

Normal installs reconcile AOS against its current stable channel, including when an older AOS is already installed. --no-install-aos explicitly reuses the existing AOS installation instead. Choose --aos-channel or --aos-version only when intentionally overriding stable.

The default Oracle version is resolved once from the latest published GitHub release, then its artifacts are verified against that exact tag's Sigstore identity. --oracle-version or AOS_ORACLES_VERSION explicitly pins a version; local asset fixtures require an explicit version and never resolve online.

The installer is idempotent. It provisions a least-authority host principal, installs the exact signed oracle pack, grants that principal only its selected AOS services, and installs the host marketplace plugin. It writes product state under ~/.aos; it never imports or changes a standalone ~/.astrid tree.

Integrators that need principals immediately must use full provisioning, not --plugins-only (which defers it until host startup). Pass --result-file /absolute/new/path.json to receive aos-oracle-provisioning.v1 JSON containing the selected host and principal pairs. The result is written only after every selected host completes pack provisioning, plugin registration, receipt creation, and runtime-state restoration. It is an installation handoff, not proof that a host has loaded its MCP plugin. Existing result files and relative paths are refused. AOS_BIN_DIR selects the configured AOS executable directory for this installer invocation. For subsequent host sessions using a custom prefix, configure the host plugin's existing AOS_BIN or AOS_BIN_ROOT override as well; the installer does not persist that environment setting into host configuration. The default $AOS_HOME/bin location requires no override.

On first connection, MCP answers immediately while AOS provisioning runs. The aos_setup_status tool reports starting, ready, or failed. You can continue other work during setup; the connection announces the runtime tools when they become available, without a host restart. Setup failures remain visible through that tool and the host's MCP diagnostics; reconnect to retry after correcting the failure. SessionStart reports this setup path without waiting for downloads. Direct aos-doctor remains an explicit diagnostic.

SessionStart also refreshes AOS update availability in a detached, bounded check; it never waits for network access. A discovered update is included in subsequent session-start context and in aos_setup_status, with the command to update. Successful checks are cached for a day; failed checks retry after five minutes and are never recorded as successful checks. This requires an AOS version that supports the read-only aos update --check command. Older versions remain usable, but cannot provide this advisory. This does not automatically install an update.

Host packs

Oracle packs are additive components, not replacement operating-system distributions.

Host Principal Oracle capsule Selected AOS services
Claude Code claude-code None aos-mcp, aos-skills, aos-forge when shipped
Codex codex-code None aos-mcp, aos-skills, aos-forge when shipped
Grok Build grok-code None aos-mcp, aos-skills, aos-forge when shipped

The signed pack distinguishes Oracle-owned capsule assets from selected AOS-owned services. The installer resolves an [[aos-capsule]] only from the active signed AOS release, never downloads or republishes its bytes, and grants only the entries declared by the host pack. The shared broker is now an AOS CE service; Oracles ships host adapters and no longer republishes aos-mcp bytes. aos-skills makes skills written by the host principal in its workspace or principal home discoverable over the bus. Forge serves version-matched authoring guidance as an ordinary tool, while the host plugin vendors compact trigger Skills for native session discovery.

Pack manifests live under packs/. Host plugins are installed from the signed release snapshot under ~/.aos/extensions/oracles/plugins/<version>, never from a moving repository branch. A successful end-to-end install commits a versioned receipt under ~/.aos/extensions/oracles/<host>/releases/<version> and advances current; Pack.lock remains as the stable compatibility path. A failed plugin install never writes a success receipt.

Architecture

host marketplace plugin
        |
        v
aos --principal <host>-code mcp serve
        |
        v
aos-mcp
        |
        v
Unicity AOS Community Edition

The customer-facing server, broker capsule, and tool namespace are aos, aos-mcp, and mcp__aos__*. Neutral runtime identifiers remain unchanged behind that adapter: astrid.v1.*, astrid-sdk, the astrid:* WIT world, and the bundled runtime binaries retain their permanent names and provenance.

The Codex plugin separates three kinds of knowledge: the AOS operating model, capsule authoring through Forge, and proactive user-space world extension. See Unicity AOS for Codex for the exact fresh-session load path and its current runtime boundaries.

Develop

cargo fmt --all -- --check
cargo test --workspace --locked
cargo clippy --workspace --all-targets --locked -- -D warnings
scripts/sync-plugins.sh

Capsules target wasm32-unknown-unknown. Build installable archives with the astrid-build binary from the exact Astrid Runtime release pinned by the AOS compatibility contract; raw Cargo .wasm files are not installable capsules.

License

MIT OR Apache-2.0

About

Governed host adapters for Claude Code, Grok Build, and Codex on Unicity AOS.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages