WebAssembly (Wasm) does not allocate memory byte-by-byte like a standard process. It allocates memory in fixed-size blocks called Pages.
In the Trytet ecosystem, 64KB isn't just a random number—it is the fundamental unit of existence. When we say an agent takes up 64KB, we are saying it is living in a Single-Page Universe. Everything the agent "is"—its stack, its small heap, and its current instruction pointer—fits into that one architectural tile.
The biggest misconception is that the LLM (the model) is inside the 64KB. It isn't. In a stateless micro-architecture, we separate the Logic from the Weights:
The Model (Weights)
These are the multi-gigabyte Llama-3 or Mistral files stored on the Host Node. They are shared by all agents.
The Agent (The Tet)
This is just the "Current Thought." It contains the specific prompt, the local variables, and the logic to call trytet::model_predict.
By stripping away the "Body" (the OS, the Model, the Python Runtime), the "Soul" of the agent becomes incredibly light.
To get a Rust-based agent down to 64KB, we apply three "Hard-Tech" constraints:
A. no_std and Tiny Allocators
Standard Rust binaries include "bloat" (panic handling, string formatting). We compile using #![no_std] and specialized allocators like wee_alloc.
B. Offloading "Knowledge" to the VFS
An agent doesn't store 10,000 documents in RAM. It stores them in the Tiered LSM-Vector VFS. RAM handles the active thought; VFS handles the library of facts via trytet::recall.
C. Context Router Pruning
We aggressively prune conversation history. If the "Thought" starts to exceed memory limits, the Router truncates data, mathematically forcing the agent back into its 64KB "Straightjacket."
If an agent is 64KB, it can teleport across a standard 1 Gbps mesh in approximately 0.5ms.
If an agent is 1GB (a standard Docker container), it takes 8,000ms.
By staying small, the agent becomes Instantaneous. It can hop from your phone to a cloud node to a specialized NPU in the time it takes for a single human eyelid to blink. That is the definition of Native Teleportation.