Skip to main content

Basic Setup

Using a Preset Template

The recommended way to get started:

Defining Schema Manually

For custom schema structures:

Build Memory

Process any text into structured memory:

Chat with Memory

Generate responses grounded in schema data:
chat() returns a dict with the following keys:

Listen Mode

listen() provides automatic periodic memory extraction — it accumulates chat history, runs the CM agent in build mode every N turns, and recalls schema data every turn:
Unlike chat(), listen() returns a plain string (not a dict). Build triggers when turn_number % build_every_n_turns == 0.

Selective Recall

recall() runs the CM agent in QA mode to retrieve only the schema fields relevant to a message:

Dynamic Schema Update

Enable automatic schema updates during chat:

Plugins & Custom Tools

Register plugins via .use() and custom SCP tools via .tools():
See Plugins for the full plugin protocol.

Config Loading

Multiple ways to load configuration:

Custom CM Prompt

Override the default CM agent behavior: