Skip to content

Use Cully memory ​

Working on one machine, or on many? One machine or many? compares local mode and MCP mode, and Set up Cully walks through setup.

Solo keeps records for one local owner. IC (individual contributor) lets people within a company or team use the same Cully, PostgreSQL, Mem0 and embedding services, with private records for each signed-in contributor. Shared infrastructure does not share notes. Existing Team workflows use separate authorized project records; they never publish private notes automatically.

Start with cully setup --all for a local owner, or cully setup --mcp-url URL for an existing deployment. Setup detects an OAuth challenge and directs you to sign in; contributors do not need to select IC. The server infers IC from OAuth and assigns each request's owner from verified sign-in. Solo and IC describe how the deployment is used; there is no mode flag. To enable sign-in on a new shared deployment, use cully setup --all --oauth; see authentication for provider configuration.

Save useful facts ​

cully_log requires only summary and assistant. Optional content includes approach, outcome, issue, learning and next_steps. Save the task, what was tried, the result, any blocker and a useful next action. Text fields allow up to 8,000 characters. Keep credentials and transcripts out of notes.

Use the exact session_ref and agent_session_id supplied by the installed hook when available. The opaque reference groups related notes; the native ID lets you reopen the agent conversation, for example with codex resume ID. Both remain private. cully_session accepts these IDs, an optional branch and a short task name. Repeating the task name keeps or relinks one task record; omitting it preserves the current link and clear_task unlinks it without deleting the record.

There are no project, repository URL, section, category, theme or tag fields in private memory. Cully does not guess them from .git, a submodule, a folder or a company name. Search by the task's words, session reference or time instead. Measured tool activity and counters belong to the local harness journal; a saved summary is not a measurement.

Ownership is assigned by the server: a fixed configured owner in Solo, or the verified OAuth subject in IC. Public tool inputs cannot supply an owner. Every source read/write, session and projection job is owner-scoped. Mem0 uses a hashed owner namespace, and candidate results are checked against live records belonging to that owner before being returned.

Find and change notes ​

The self-hosted service (cully mcp serve) offers the same tools over SQLite; see Memory store.

ToolPurpose
cully_logSave a structured private note.
cully_contextGet three concise previews by default, at most five.
cully_searchSearch PostgreSQL source text.
cully_recallRecall semantic candidates through Mem0, verified against source records.
cully_recentList recent owned records.
cully_getRead an owned note by ID.
cully_updateChange supplied content fields; empty optional text clears a field.
cully_deleteDelete an owned note and queue removal of its semantic projection.
cully_sessionLink a session to a task or explicitly clear that link.
cully_tasksList accepted tasks, newest first. A task spans many sessions.
cully_session_getRead an owned session and its current task.
cully_optimization_saveSave idempotent workflow evidence and an optional reviewable plan.
cully_optimizationsRecall private patterns/plans with text, semantic or recent lookup.
cully_optimization_decideRecord a versioned, explicit user decision about a plan.

Start substantive work with cully_context and a focused query. Use semantic mode if text lookup misses, then fetch only needed details with cully_get. Save one concise note before finishing. If MCP is unavailable, continue the task and report that the note was not saved.

Search and recall require query text and accept an optional session_ref, entry type and since. Recent records also accept until; time windows are inclusive at since and exclusive at until. Limits are capped at 50. cully_context accepts text, semantic or recent mode, with time windows in recent mode. Times use RFC3339; omitted occurred_at uses the current time. Stored instants use PostgreSQL timestamptz, returned in Asia/Kolkata (+05:30).

Entry types are work, issue, learning and decision; work is the default. task records are created only by cully_session; optimization records only by cully_optimization_save. Use the optimization tools to change a pattern rather than cully_update. Missing or differently owned IDs return no entry, and deletion reports whether an owned record was removed. Read tools require tools:read; mutations require tools:write in IC.

Upgrade the private schema ​

Schema version 8 removes the obsolete classification columns and cully_projects tool, while preserving note IDs, authenticated owners, content, timestamps and session/task links. It adds a native agent session ID to session records. Back up the database, stop old data-service writers, run the new cully-data migrate, then start matching data/MCP versions and refresh agent integrations with cully setup using your existing options. Old clients that send removed fields must be refreshed. Migration is explicit; normal startup refuses an outdated database.

The migration queues a rebuild of each owner's Mem0 metadata. PostgreSQL text lookup remains available while the worker catches up; semantic recall may lag. Mem0 owns embeddings, and no extraction model is used (infer=false). The advisor may save bounded workflow evidence and proposals; ordinary task notes and explicit decisions remain with the foreground agent. See Mem0 and privacy.

Remember workflow patterns across days ​

cully_optimization_save requires a stable pattern_key, a concise summary (up to 600 characters), evidence (up to 1,000), assistant, supplied opaque session_ref, and stable window_id, such as prompts-1-12. Include the native agent_session_id when supplied. Saving the same pattern/session/window again does not increase its observation count. Distinct session counts come from recorded evidence, not a model-supplied number. Only three recent evidence summaries are returned; the source retains deduplication records until deleted.

An optional proposal has kind (skill, workflow, plugin, tool, process or harness), title, benefit, 1–12 actionable steps, up to five HTTPS sources, and a validation plan. Research papers should state limitations and propose a comparison against a baseline. Never save raw prompts, transcripts, commands, copied notes or credentials. A proposal with one observation is a new idea, not a proven cross-session habit.

cully_optimizations defaults to three active records, at most ten. It accepts query, mode (text, semantic or recent) and status (active, all, observing, proposed, accepted, dismissed or implemented). Semantic candidates come from Mem0 and are checked against the current owner-scoped source and decision state. Use cully_get for the full saved plan.

cully_optimization_decide takes entry_id, its current version, status and an optional reason. Record accepted/dismissed only from the user's decision, implemented only after verification, or observing to explicitly reopen it. A stale version conflicts; another owner's ID returns no record. Observation writes preserve these decisions. Deleting the source through cully_delete also deletes its evidence and queues Mem0 cleanup.

Schema version 10 adds these records and their observation deduplication table without moving or reclassifying existing notes. Back up the database, run the new cully-data migrate before starting matching data/MCP services, and refresh managed hooks with cully setup using your existing options. Normal startup requires the current schema. The new tools need matching MCP/data services; older servers can still support ordinary work notes but cannot store pattern proposals.

Built in the open. Apache 2.0 licensed.