I'll survey the project's architecture, memory/graph/RAG pieces, and current status so I can call out what still merits investment.
[tool: task_v2 — Tool use: task_v2]
[tool: task_v2 — Tool use: task_v2]
I'll spot-check a few key modules so the recommendations match what's actually in the repo.
[tool: glob_file_search — Tool use: glob_file_search • Searched codebase "" • 26 results in 1 directory]
[tool: glob_file_search — Tool use: glob_file_search • Searched codebase "" • 1 result in 1 directory]
[tool: ripgrep_raw_search — Tool use: ripgrep_raw_search]
[tool: read_file_v2 — Tool use: read_file_v2 • Read file: /Users/[user]/github/cursor/cursor-hello-llm-agent/README.md]
The core idea is still worth building on. Digests → embeddings → RAG, plus a file-backed knowledge graph fed by a separate Ollama process, is a coherent local-memory design. What’s less worth chasing right now is more surface area (MCP, STT/TTS, API polish).
What’s already solid
These are the parts that match your goal and are real in code, not just docs:
- Segment memory + RAG — importance filtering, embeddings, compression, prompt injection (
MemoryManager, DigestGenerator, EmbeddingsManager, RAGManager)
- Rudimentary knowledge graph — entity/relationship extraction, similarity-based entity resolution, JSON graph files
- Graph isolation —
launcher.py + queue writer + StandaloneGraphQueries; agent can run even if the graph process is down
- Thin agent + domain configs — good separation; D&D / lab / user-story configs still make sense as demos
That’s the interesting product. Treat it as a late-stage research prototype, not production infrastructure.
What merits further development
Ranked for local Ollama + KG + RAG:
1. Harden the graph ↔ agent loop (highest value)
You already chose the right architecture. Finish it:
- One clean write path into
conversation_queue.jsonl (filtered digest segments only — there are inconsistent queue helpers today)
- Stronger standalone process behavior: recovery, batching, clear logging
- Better graph reload for queries (mtime/invalidation; watchdog was planned but not done)
- A real end-to-end test: queue write → process → file update →
get_graph_context in a prompt
This is where “interesting memory” either becomes reliable or stays flaky with local models.
2. Graph quality for small models
With Gemma-class models, extraction quality is the hard problem. Worth investing in:
- Tighter domain prompts and schemas in
domain_configs.py
- Better entity resolution thresholds / merge behavior
- Observability: what got extracted, what was dropped, what merged
Improvements here beat adding new features.
3. Prune the dual-era graph code
There’s clear archaeological residue:
- Obsolete sync extractors /
TODO: OBSOLETE - REMOVE in graph_manager.py and entity_extractor.py
- Unwired week-3 pieces (
config.py, monitor.py, context_retriever.py, in-process background_processor.py)
- Docs that still describe in-process profiles,
AsyncMemoryManager, MCP, etc.
Pruning makes the system easier to resume after another gap of months.
4. Fix small correctness gaps in the memory pipeline
Examples that matter in practice:
has_pending_operations appears broken (pending digests/embeddings never tracked) — so “wait for background work” in the agent is a no-op
- Sync
create_task from query_memory is fragile depending on event-loop context
These are surgical fixes that improve trust in the demo loop.
What I would not prioritize
| Area | Why deprioritize |
|---|
| MCP / Phase 7 expansion | Orthogonal to local memory quality |
| Web UI / API polish | Nice demo; not the research core |
| Faiss / SQLite / supervisord | Premature until the file-queue path is rock solid |
| Broader framework ambitions | The interesting bit is the memory stack, not a general agent platform |
Suggested focus if you pick it up again
One sprint worth of work: make “CLI agent + launcher.py graph process + Ollama” the golden path, with:
- Clean queue → extract → query path
- Delete obsolete graph code
- One integration test proving graph context lands in prompts
- Refresh README/
CLAUDE.md so they describe the standalone architecture as current, not planned
If that loop feels good on a real D&D or lab session, then push on extraction quality. If it doesn’t, the bottleneck will be obvious (queue, extraction, resolution, or RAG injection) — and you’ll know where to dig.
Bottom line: keep developing the memory core (RAG + standalone graph). Park the surrounding product surface until that loop is something you’d trust after another six months away.