Skip to content

Project memory

Project memory is what agents remember without being told. Each project builds up a searchable memory of its past sessions, its code, its discussion, and your knowledge documents, and agents consult it whenever they need context from earlier work.

What gets remembered

  • Session history. As a session runs, its events are continuously indexed into the project's memory. When the session finishes, a summary of it (what was done, the decisions made, and the files changed) is added, so later sessions can recall it.
  • Your code. Crios indexes the project's repository for semantic code search, so the agent can find code by meaning ("where is rate limiting enforced?") and not only by exact text. See repository indexing.
  • Your conventions. The repository's README and any conventions file (CONVENTIONS.md, PATTERNS.md, .conventions.md, .crios/conventions.md, or .crios/patterns.md) are indexed too. Each non-heading line of a conventions file becomes one convention, so write one rule per line.
  • Your knowledge documents. Knowledge Base documents for the project and for its organization are part of the same retrieval layer, so agents find your notes and their own history through one search. Another organization's documents are never included, and neither are prompts.
  • The project's discussion. Messages and decisions from the project's Discussion channel become searchable memory.

How agents use it

At the start of a session, the agent searches memory for the task it was given and reads the most relevant results before it begins. During the session it can search again whenever it needs history: "have we solved this error before?", "what naming convention does this project use?".

When a session restarts or resumes (after a steer, a sandbox restart, or a platform upgrade), the agent also picks up its own conversation where it left off: the conversation is saved every few agent steps and when the agent stops.

Repository indexing

A snapshot of the repository's default branch is downloaded and indexed:

  • when the project is created with an attached repository, and when its repository changes;
  • when a session starts working, if the index is more than 24 hours old;
  • every time a session finishes, forced, so search reflects the code the last session just wrote.

To reindex on demand, call POST /api/v1/projects/{id}/memory/reindex (editor access). See repositories for how repositories are connected.

Status

GET /api/v1/projects/{id}/memory/status reports whether memory is enabled, which embedding model it runs on, how many sessions have been indexed and finalized, how many events are indexed, when the last ingest ran, and the size of each part of the index.

Project memory needs an embedding model, your organization's Embeddings route (MiniMax embo-01 on your organization's MiniMax key by default; see Model routing), and the vector database on your deployment. Without a working model, sessions still run normally and the agent still starts with the Knowledge Base entries that share words with its request, but it has no recall of your code or past sessions, and the Knowledge Base search box matches keywords. Changing the model rebuilds the index for the new one in the background.

Learning from past failures

Crios used to draft a rule from a session that failed and then recovered, and queue it as a playbook suggestion. Since the old Playbooks were retired, it no longer does. The rules approved before stay in a failure-and-fix knowledge base: your organization's approved rules serve your organization only, and the deployment's pre-approved seed rules serve everyone. Deployments that turn on failure-rule injection (off by default) use it twice: each new session receives up to three approved rules closest to its request, and an agent stuck on a repeating failure can pull in an approved fix for it.

Isolation

Project memory is isolated per project. A session can only read the memory of its own project, and a request for another project's memory is refused, even inside the same organization. The layers you share on purpose are organization-wide Knowledge Base entries and your organization's approved failure-and-fix rules, both within your organization only.

Project memory is separate from the memory of agents and of the Memory node, which keep their rows in a database.

Memory, knowledge base, and Team Playbook

The three context systems complement each other:

Project memory Knowledge Base Team Playbook
Written by The platform, from sessions, code, and discussion You Crios, from your organization's sessions; an owner or admin enables each playbook, unless they let one that passes Crios's checks go live by itself
Contains Session history, indexed code and conventions, discussion, your documents Curated facts, reference notes, and prompts Rules, memory, preferences and knowledge for a kind of work
Scope One project Project or organization Organization
Reaches the agent Retrieved by semantic search when relevant Retrieved by semantic search when relevant (documents only) A session that uses an enabled playbook, an agent profile, gets its rules, memory and preferences; its knowledge joins the Knowledge Base
Maintained by The platform Your team Organization owners and admins, who enable and turn off each playbook, or let Crios enable some by itself

Tip

A useful rule of thumb: if the agent should be able to look it up, make it a knowledge entry. If it is a coding convention, put it in the repository's CONVENTIONS.md. If it is how your organization goes about a kind of work, Team Playbook learns it from your sessions, or you can write it into an agent profile under Skills. If the agent figured it out itself, project memory already has it.