Skip to main content
ngram organizes the system around an Entity: a continuing agent with identity, memory, relationships, and runtime state. A conversation is one event in its history.

The pieces

The Entity is the source of identity. A shell can influence presentation without becoming a second identity store.

What persists

ngram keeps several kinds of state: recent conversation, episodic memories, relationship records, knowledge and journal documents, identity evolution, and body state. They have different retention, retrieval, and consolidation behavior. Persistence does not mean the entire history appears in every prompt. The runtime selects context, retrieves relevant memories, and compacts working conversation as needed. See memory and cognition.

What a model switch changes

Switching inference changes the backend that produces responses. It does not intentionally create a new Entity or replace its identity and stored state. Models differ in tool use, response style, context handling, and supported request fields. Embedding compatibility is a separate concern. A new embedding model can produce a different vector space even when its output has the same number of dimensions. Preserve the existing embedding route during a chat-model switch unless you also plan a memory migration.

What a surface switch changes

A terminal session has text interaction. A messaging surface adds platform-specific delivery and identity. A WebXR surface adds structured spatial context and actions. For relationship continuity, use the same person mapping when pairing a new surface. A shared Entity runtime does not make every platform’s user identifier automatically identical.

A note on embodiment

ngram uses terms such as drives, affects, inner voice, and dreams for implemented computational mechanisms. These names describe how state influences behavior. They do not establish subjective experience, consciousness, or human-like memory.

Follow a turn

See how the runtime assembles a response.

Explore the spatial boundary

See what an agent can send to a body.