Apexsions Agentic Runtime

Apexsions AI is a distributed runtime for spawning and orchestrating autonomous characters and dynamic world state in digital universes, gaming servers, and simulation engines. Powered by the Anthropic Claude 5.5 Model Family (Claude Sonnet 5.5, Haiku 5.5, and Opus 5.5) with Dual-Tier Memory (1 Million token active context + 200K persistent vector storage) and Adaptive Thinking.

ℹ
Inference Pipeline: Incoming game perception events are converted to high-dimensional spatial contexts, augmented with 1M-token active episodic context and 200K long-term vector embeddings, then dispatched asynchronously through Anthropic's Claude 5.5 streaming API with adaptive thinking and deterministic schema validation.

Quickstart Installation

1. Install Package

npm install @apexsions/ai-runtime # or pip install apexsions-runtime

2. Environment Configuration

Export your API authentication credentials:

export APEXSIONS_API_KEY="apx_live_sec_99a81bc2"
export APEXSIONS_WORLD_ID="realm_aetherion_prime"

3. Initialize & Stream

import { ApexsionsRuntime } from '@apexsions/ai-runtime';

const runtime = new ApexsionsRuntime();
const agent = runtime.registerEntity({
  id: 'npc_gatekeeper',
  model: 'claude-sonnet-5-5-20260928',
  adaptiveThinking: { effort: 'high', budgetTokens: 8192 },
  contextWindow: 1_000_000
});

const stream = await agent.perceiveAndAct({
  event: 'PLAYER_GREETING',
  player: { username: 'Aria', rank: 'Sovereign' }
});

for await (const token of stream) {
  process.stdout.write(token);
}
Minecraft Ecosystem

PaperMC Java Plugin Integration (Java 21 LTS)

Direct drop-in integration with ApexsionsCore, ApexsionsEconomy, and PaperMC servers. All perception events and Claude 5.5 reasoning loops execute asynchronously off-thread via CompletableFuture to guarantee 20.00 TPS locked with zero main-thread tick lag.

1. Maven Dependency

<dependency>
  <groupId>com.apexsions</groupId>
  <artifactId>apexsions-ai-bridge</artifactId>
  <version>2.4.0</version>
  <scope>provided</scope>
</dependency>

2. Asynchronous Event Hook & MiniMessage Stream

package com.apexsions.core.listeners;

import com.apexsions.core.api.ApexsionsCoreAPI;
import com.apexsions.ai.ApexsionsAI;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractEntityEvent;

public class LivingSentinelListener implements Listener {

    // Non-blocking async event hook: 0.00 TPS loss on PaperMC
    @EventHandler
    public void onNPCDialogue(PlayerInteractEntityEvent event) {
        var player = event.getPlayer();
        var kingdom = ApexsionsCoreAPI.get().getKingdom(player);

        ApexsionsAI.agent("aurelius")
            .withPlayer(player)
            .withContext("faction", kingdom.getName())
            .withModel("claude-sonnet-5-5-20260928")
            .streamToPlayer(player); // Rendered via Kyori Adventure MiniMessage
    }
}

Supported Anthropic Claude 5.5 Model Family (2026 Lineup)

Claude Sonnet 5.5 Flagship Reasoning
claude-sonnet-5-5-20260928

Released Sept 28, 2026. Perfect balance of speed and intelligence. Adaptive thinking with 1M context window for multi-faction geopolitics and complex game systems.

Claude Haiku 5.5 Sub-30ms Reflex
claude-haiku-5-5-20261007

Released Oct 7, 2026. Extreme throughput and low latency. Ideal for instant combat audio barks, crowd simulation, and sub-second merchant dialogue.

Claude Opus 5.5 Pinnacle Intelligence
claude-opus-5-5-20260922

Released Sept 22, 2026. Maximum reasoning capability for kingdom-wide economic governance, autonomous quest synthesis, and deep world simulation.

Dual-Tier Memory Architecture

Living NPCs maintain continuous identity, alliances, and debts across months through a hybrid two-tier memory hierarchy:

Tier 1: Active Episodic Horizon (1M Tokens)

In-session multi-turn dialogue, real-time spatial events, faction treaty status, and immediate combat perception held within Claude 5.5 extended context window.

Tier 2: Persistent Vector Storage (200K Index)

Historical player interactions, kingdom chronicles, and long-term reputation vectors stored in embedded HNSW pgvector indices, retrievable within <5ms across server restarts.

REST API Reference

POST /v1/agents/{agent_id}/perceive

Ingests world sensory data and initiates streaming agentic reasoning loop.

Headers:
Authorization: Bearer <YOUR_API_KEY>
Content-Type: application/json

Response: text/event-stream (SSE)