The Problem
Long-running AI agents struggle with memory:- Full conversation history — context window overflow
- Unstructured summaries — imprecise retrieval, lost details
- Vector databases — no structured schema, hard to update specific facts
The Solution
CogOS organizes memory into typed, hierarchical fields with descriptions:Operations
Read data at specified schema paths. The CM agent uses this to retrieve relevant memory before generating a response.
Overwrite or append to an existing field. Used to update facts when new information is learned.
Create a new field at any path. Intermediate paths are auto-created. Used when the agent encounters information that doesn’t fit existing fields.
Create a new empty schema domain. Used to organize memory into logical groups.
Schema Domains
Memory is organized into domains — top-level namespaces likeuser_profile, medical_record, or project_context. Each domain contains a tree of fields.
How the CM Agent Uses SCP
During abuild() call, the CM agent:
- Reads the user input
- Inspects the current schema structure
- Decides which fields to update or create
- Calls the appropriate SCP operations
- Repeats until no more updates are needed
Two Schema Modes
- LLM Auto-Generation
- Preset Templates
The CM agent creates schema fields dynamically during
build(). No pre-defined structure needed — the agent decides what fields to create based on the input.This is the default behavior and works well for general-purpose memory.