Skip to main content

Module shared_context

Module shared_context 

Source
Expand description

Durable facts agents share through ctx_memory, partitioned by project.

Each project has its own shared_context/<project hash>.jsonl in the LeanCTX data directory, and every entry records the project it was stored for; that stored root, not the file name, decides whether an entry is served. Releases before 3.11.5 kept one installation-wide ~/.local/share/lean-ctx/shared_context.jsonl without a project. Those entries carry no provable scope: the file is left in place, unread, and is never served to any project.

Structs§

MemoryStats
Quality and contributor summary across shared-memory sessions.
SharedContext
Durable cross-agent memory backed by an appendable JSONL file.
SharedContextEntry
A fact shared between independent agent sessions.
SharedContextStats
Summary of the contents of a SharedContext store.

Functions§

session_start_hint
The newest shared facts of project_root as a context hint, re-admitted under the originless rule; nothing when the project has none or the hint may not be served now.

Type Aliases§

FactEntry
Backward-compatible name for an entry in shared fact memory.