Context-Dependent Neural Memory System for LLMs with GraphIndex beam search, STM/LTM consolidation, and semantic tagging
Project description
Greeum
Context-aware memory for AI workflows. Keep long-running conversations and project notes persistent across tools.
1. Installation & Setup
First run checklist
- Install the package (pipx or pip)
- Run
greeum setup --start-workerto create the data directory and launch the worker- Connect your MCP client (Codex, ClaudeCode, Cursor, …)
👉 Need the ultra-short version? See docs/QUICKSTART.md for “설치 → 셋업 → 연동” 한 페이지 요약.
# Recommended (isolated) install
pipx install --pip-args "--pre" greeum
# or standard pip
pip install --upgrade "greeum"
# initialise data directory, choose where memories live
greeum setup --start-worker
Optional: enable semantic embeddings
pip install sentence-transformers # once per machine
greeum mcp warmup # downloads the default model
- MCP/CLI run with hash fallback by default for fast startup.
- Add
--semantic(or unsetGREEUM_DISABLE_ST) when you want the SentenceTransformer-enabled search:greeum mcp serve --semantic -t stdio
2. MCP Integration
Codex (STDIO)
- Ensure
greeum setuphas been run at least once. ~/.codex/config.toml[mcp_servers.greeum] command = "greeum" args = ["mcp", "serve", "-t", "stdio"] env = { "GREEUM_QUIET" = "true", "PYTORCH_ENABLE_MPS_FALLBACK" = "1" }
- Optional semantic mode:
args = ["mcp", "serve", "-t", "stdio", "--semantic"]
First run may take longer while the model loads. Warm-up before enabling for smoother startup.
ClaudeCode / Cursor (native MCP)
greeum mcp serve
- Add the command above to the client’s MCP configuration.
- Semantic mode:
greeum mcp serve --semantic
HTTP / URL-based MCP (e.g. ChatGPT)
greeum mcp serve -t http --host 0.0.0.0 --port 8800
Then register http://127.0.0.1:8800/mcp as the endpoint.
3. LLM Prompting Guidelines
- Always close sessions with a summary: “Call
add_memorysummarising decisions before ending the shift.” - Retrieve before writing: run
search_memorywith the task keywords before starting work. - Use anchor slots (A/B/C) for hot contexts:
{ "name": "search_memory", "arguments": { "query": "login flow", "limit": 5, "slot": "A" } }
- Encourage agents to log important facts with
importance≥ 0.6 so team hand‑offs stay seamless.
4. CLI Essentials
# Add context
greeum memory add "Legal copy updated for release"
# Search (global fallback enabled by default)
greeum memory search "release notes" --count 5
# Anchor-based search (slot-aware)
greeum memory search "translations" --slot B --radius 2
# Rebuild branch indices (FAISS + keyword or keyword-only)
greeum memory reindex # uses FAISS if available
greeum memory reindex --disable-faiss
# Reuse the long-running worker (avoids cold-start on each CLI call)
greeum worker serve --host 127.0.0.1 --port 8800 # terminal 1
export GREEUM_MCP_HTTP="http://127.0.0.1:8800/mcp" # terminal 2
greeum memory add "Sprint hand-off" --use-worker
greeum memory search "hand-off" --use-worker
Other useful commands:
greeum anchors status/set A <block>/pin Agreeum workflow search "<topic>"for scripted MCP callsgreeum mcp warmupto cache the embedding model before enabling semantic mode
5. Documentation
6. License
MIT License — see LICENSE.
Greeum · Persistent memory for AI—built and maintained by the community.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file greeum-3.1.1rc8.tar.gz.
File metadata
- Download URL: greeum-3.1.1rc8.tar.gz
- Upload date:
- Size: 426.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c95decefec747f1891095ff94dff9695bb99301017d3a79ca38f66889e46d23e
|
|
| MD5 |
974f02293c7c8a79cdb79b000b993700
|
|
| BLAKE2b-256 |
ba0f2161258da10421e3ca3b6a6914b14e8579b8a7c0b7aab0614e6c3e038578
|
File details
Details for the file greeum-3.1.1rc8-py3-none-any.whl.
File metadata
- Download URL: greeum-3.1.1rc8-py3-none-any.whl
- Upload date:
- Size: 452.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f75902d8c201a403d364023f7fcb2cf3415e3b8295dec2a8506af1d0c038c0ab
|
|
| MD5 |
e0c5a1e9bdf26824f2b435331d61b93f
|
|
| BLAKE2b-256 |
7d944ed6657fd07816f8701e585d7565a3a90106b130e73109a0a1743e247998
|