You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Python hook integrations default to one global dataset, agent_sessions. Sessions are unique per host conversation, but graph recall
searches the entire dataset, so unrelated repositories can inject each other's
memory.
Users can set COGNEE_PLUGIN_DATASET manually, and #285 proposes a committed
Claude Code project picker. Neither provides automatic, cross-harness project
isolation.
Proposed behavior
Add an opt-in shared setting:
COGNEE_DATASET_SCOPE=project
When enabled, every supported Python hook integration derives the same stable
dataset for the same project while retaining its existing unique session per
host conversation.
Problem
The Python hook integrations default to one global dataset,
agent_sessions. Sessions are unique per host conversation, but graph recallsearches the entire dataset, so unrelated repositories can inject each other's
memory.
Users can set
COGNEE_PLUGIN_DATASETmanually, and #285 proposes a committedClaude Code project picker. Neither provides automatic, cross-harness project
isolation.
Proposed behavior
Add an opt-in shared setting:
When enabled, every supported Python hook integration derives the same stable
dataset for the same project while retaining its existing unique session per
host conversation.
Dataset precedence:
COGNEE_PLUGIN_DATASETCOGNEE_DATASET_SCOPE=projectagent_sessionsdefaultThe upstream default remains unchanged.
Project identity
originidentity..git, andnever place raw credentials or a full local path in a dataset name.
directory.
project_<sanitized-slug>_<stable-hash>.Resolution must be local-only, bounded by subprocess timeouts, fail open to
agent_sessions, and never invoke a shell.State and migration
COGNEE_SESSION_ID.agent_sessionsdataset.
session start.
Integration scope
main.can adopt it without changing dataset identity.
work is merged; otherwise follow up without blocking the core change.
Acceptance criteria
derived dataset.
the selected dataset.
Related work