memory

NAME

memory — memory and persistence in SLICC

DESCRIPTION

SLICC uses a virtual filesystem (VFS) backed by IndexedDB for persistent storage. VFS content survives tab closes, page refreshes, and browser restarts. Conversations are also persisted in IndexedDB via SessionStore, so sessions can be restored after reopening the browser.

WHAT PERSISTS

WHAT DOES NOT PERSIST

MEMORY FILES

/shared/CLAUDE.md — Global Memory

The global agent system prompt file. It is loaded into the system prompt for the cone and all scoops. Use it to store learned user preferences, project conventions, and information that all agents should know.

The cone should update this file using the update_global_memory tool rather than writing to it directly. This is a cone-only tool — scoops cannot call it.

/scoops/{name}/CLAUDE.md — Scoop Memory

Each scoop can have its own CLAUDE.md file at /scoops/{name}/CLAUDE.md. This file is loaded into that scoop's system prompt and provides scoop-specific context. Use it to give a scoop persistent instructions or preferences that survive across multiple feed_scoop calls.

File-Based Structured Data

For structured information beyond what fits in CLAUDE.md, create dedicated files on the VFS. For example:

Files on the VFS are persistent and can be read by any agent with access to the path.

CONTEXT COMPACTION

Long conversations are automatically compacted when they approach ~183K tokens. The compaction process uses an LLM to summarize earlier parts of the conversation, preserving key context while freeing token space. Oversized messages (over 40K characters) are replaced with placeholders during overflow recovery. Images are auto-resized before being sent to the LLM (5MB base64 limit).

Because compaction is lossy, important information should be stored in files rather than relying on it remaining in conversation history. Write critical facts to CLAUDE.md or dedicated files early in the conversation.

MOUNT COMMAND

The mount command bridges a local directory on the host filesystem into the VFS, providing persistent on-disk storage. Mounted directories sync between the real filesystem and the virtual one, so changes persist outside of IndexedDB.

mount /local/path /vfs/mount/point

This is useful for working with real project files, accessing repositories, or persisting data beyond the browser's IndexedDB storage.

SESSION RESTORATION

Conversations are stored in IndexedDB via SessionStore. When the agent is reopened after a tab close or page refresh, previous sessions can be restored. The VFS state is also preserved, so files written in earlier sessions remain available.

BEST PRACTICES

SEE ALSO

cone, scoops, tools, commands