Skip to content

Feature Request: Local-Model Extraction + Cross-Session Persistent Memory #729

Closed

Description

@odunjodavid

Graphify solves the "re-reading files" problem, but the semantic extraction pass still outsources to the main assistant's LLM. This means: (1) The token burden of building the graph burns through the context window, (2) Every new session starts with no memory of past context, and (3) The graph is project-scoped.

The Idea

A local-first extraction backend combined with persistent cross-session memory layered onto the graph.

Should:

  • Allow Graphify to use its own lightweight model (e.g. via Ollama, Qwen2.5-Coder, Phi-3-mini, any locally-running model etc.) as the semantic extraction provider, instead of inheriting the main assistant's API
  • Persist the graph across sessions as a living memory store as an accumulation of semantic context over time
  • Let the graph grow across projects, so architecture & structural patterns, bug patterns, lessons from bug fixes, and domain knowledge compound

This Matters Because

Right now, the architecture is: main LLM → farms context → graph → main LLM queries graph

Would like it to be: local model → builds and maintains graph → main LLM queries compressed output only

Ultimately, the main assistant shouldn't do extraction work. It should only receive structured, already-digested output from a locally-maintained knowledge layer.

Tools That Exist

In short

Please add a persistent, locally-maintained knowledge layer that any assistant can query via MCP.

Activity

  1. safishamsi commented on May 5, 2026

    @safishamsi
    Member

    Implemented in v0.7.7 (commit 48888a7):

    • Ollama backend: graphify extract ./docs --backend ollama (auto-detected via OLLAMA_BASE_URL; defaults to qwen2.5-coder:7b; $0.00 cost)
    • Cross-project global graph at ~/.graphify/global.json: graphify global add/remove/list/path
    • graphify extract --global --as <tag> to register in one step
    • Node IDs prefixed <repo>::<id> to prevent silent collisions across projects
    • merge-graphs now prefix-relabels inputs before composing
    • 21 new tests covering all new code paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions