HomeOpen Console
Concepts

Islands: what is cached, how prefixes match

What an island is

An island is one corpus, wrapped in a fixed system prompt, prefilled once on the model and kept as KV cache. The model has already read it. A request that starts with the same tokens continues from there instead of reading the corpus again.

system + island corpus (12,967 tokens, cached)your Qanswerserved from cache, not billednew tokens, billed

How a request matches

Two ways. Send island: "uniswap-v4" and the gateway puts the island's exact system prompt in front of your messages. Or send the exact system prompt yourself as the first message: the gateway hashes it (SHA-256) and routes to the island with that prefix_sha256. Get the exact text from GET /v1/islands/<id>/prefix.

Any other system message is dropped when an island is set, because one changed token at the start would break the match and force a full prefill.

Resident and snapshot

The engine is llama.cpp's llama-server with two slots of 16k tokens each and an 8-bit KV cache. Each slot holds one island. Every island is also saved to disk as a KV snapshot with --slot-save-path. When a request arrives for an island that is not resident, the gateway restores its snapshot into the least recently used slot, then answers.

GPU memoryslot 0: uniswap-v4slot 1: mcp-specDisk (KV snapshots, about 1 GB each)uniswap-v4.binmcp-spec.binethereum-eips.binrestore on demand, about 270 ms

Current islands

idCorpusTokens
uniswap-v4Uniswap v4 docs: overview, PoolManager, hooks, flash accounting, dynamic fees, ERC-6909, security, first hook, unlock callback, custom accounting12,896
mcp-specModel Context Protocol specification 2025-11-25: architecture, lifecycle, transports, tools, resources, prompts, sampling, elicitation, roots, authorization12,887
ethereum-eipsEIP-1559, EIP-7702 and EIP-4844, full text12,992

Token counts are measured with the model's own tokenizer, before the system prompt is added.