Skip to content

edlontech/gingko-mem

Repository files navigation

Gingko

Gingko

Gingko is a application that exposes a project-scoped memory graph over MCP. Any agent that speaks MCP can open a project, record observations, recall past memories, and navigate the knowledge graph that builds up across sessions.

Under the hood it uses Mnemosyne as a memory engine

Development Quick start

For development, if you have mise, just run:

mix setup         # fetch deps, install assets
mix phx.server

Then point an MCP client at http://localhost:8008/mcp. The first time the server boots it creates ~/.gingko/ with a default config and guides you through setup at http://localhost:8008/setup if anything is missing.

Documentation

Long-form guides live in guides/:

MCP tool surface

Write flow:

  • open_project_memorystart_sessionappend_step → (auto-commit on session end; close_async or commit_session for explicit flushes)

Read flow:

  • recall, get_node, get_session_state, list_projects, latest_memories

Summary layer (opt-out via [summaries].enabled):

  • get_session_primer, get_cluster, set_charter, refresh_principal_memory

Graph maintenance:

  • run_maintenance with decay, consolidate, or validate

See MCP Tools for the full reference.

Runtime layout

All state lives under $GINGKO_HOME (default ~/.gingko):

~/.gingko/
├── config.toml          # runtime configuration
├── memory/              # Mnemosyne DETS graph files, one subdir per project
└── metadata.sqlite3     # projects, sessions, summaries

API keys are never written to config.toml — only the env-var names to read. Export ANTHROPIC_API_KEY, OPENAI_API_KEY, or whichever provider keys your configured providers need.

Local development

Asset toolchain requirement: Yarn 1.x, or Node with Corepack enabled. mix setup auto-detects yarn, then corepack yarn, and exits with a clear message if neither is available.

mix setup
mix phx.server          # http://localhost:8008

The web UI has three main views:

  • / — project grid with live stats.
  • /setup — edit config.toml from the browser.
  • /projects — real-time graph monitor backed by Cytoscape.

Testing

mix test                 # full suite
mix precommit            # warnings-as-errors + deps.unlock --unused + format + test

Integration coverage for the MCP tools lives in test/gingko/mcp/write_flow_test.exs and test/gingko/mcp/read_flow_test.exs.

About

A local-first graph based memory for agents

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors