MnemoCore / integrations /gemini_cli /GEMINI_memory_snippet.md
Granis87's picture
Upload folder using huggingface_hub
c3a3710 verified

MnemoCore — Persistent Cognitive Memory

You have access to a persistent memory system via the MnemoCore REST API at $MNEMOCORE_URL (default: http://localhost:8100).

Querying memory

To recall relevant context, call the API at the start of a task:

curl -s -X POST "$MNEMOCORE_URL/query" \
  -H "X-API-Key: $HAIM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "DESCRIBE_TASK_HERE", "top_k": 5}'

Storing memory

After completing significant work, store a memory:

curl -s -X POST "$MNEMOCORE_URL/store" \
  -H "X-API-Key: $HAIM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "WHAT_WAS_DONE_AND_WHY",
    "metadata": {"source": "gemini-cli", "tags": ["relevant", "tags"]}
  }'

Guidelines

  • Query before starting any non-trivial task on a known codebase
  • Store after completing important changes, bug fixes, or design decisions
  • Do NOT store trivial or ephemeral information
  • Include relevant tags: language, component, type (bugfix/feature/refactor)