Skip to main content
Glama
stevej52
by stevej52

ThreadSatchel

Keep the thread. Carry the context.

A small, local memory archive that AI assistants can search through MCP. Keep original conversations, notes, and source information in one SQLite database instead of repeatedly explaining the same project in new chats.

Early release. Built and exercised on Windows, with a Linux capture node. It is a personal tool made shareable, not a hosted service or a promise to capture every chat automatically.

What it does

  • Exposes search_memory and get_memory through a read-only MCP server.

  • Imports text, Markdown, structured conversation excerpts, and a supported ChatGPT export ZIP shape.

  • Stores full original text, provenance, source IDs, and revisions; searches with SQLite FTS5.

  • Captures supported local Codex text events incrementally, without model/API calls.

  • Can queue capture on several machines and pull it into one archive over existing SSH connections.

  • Makes repeated imports safe and conservatively reconciles overlapping excerpts.

Related MCP server: LumenCore

Start here

Requires Python 3.12+ with SQLite FTS5. The tested MCP dependency is pinned in requirements.txt.

python -m venv .venv
# Activate .venv using your shell, then:
python -m pip install -r requirements.txt
python setup_memory.py
python import_memory.py examples/example-excerpt.json

Connect your MCP client to the absolute path of .venv's Python executable, with the absolute path of server_readonly.py as its argument. Ask it to search for sample archive to check the example import. See connection instructions, including Codex configuration.

For optional automatic local capture:

python codex_capture_export.py --config capture-local.json --dry-run
python codex_capture_export.py --config capture-local.json
python install_schedule.py local

The installer is opt-in. Windows uses a limited task while your account is logged in; Linux uses a systemd user timer. See capture and multi-machine setup.

How it fits together

flowchart TD
  A["Notes and conversation imports"] --> C["Importer and provenance"]
  B["Local Codex capture"] --> C
  R["Remote capture queue"] --> S["SSH pull and acknowledgement"]
  S --> C
  C --> D["SQLite and FTS5"]
  D --> M["Read-only MCP tools"]

Read before importing your history

Imports and duplicates explains exact IDs, revisions, ambiguous matches, and the ZIP limitation. A real user's complete OpenAI export has not yet been validated; current export tests use synthetic fixtures.

Privacy and security explains retained raw bytes, plaintext storage, capture omissions, and the difference between a read-only endpoint and the optional writable endpoint. Retrieved memories are source material, not instructions to execute.

This does not automatically capture ChatGPT's website or phone app, every Claude conversation, other users' chats, hidden reasoning, or all historic Codex formats. MCP connects an assistant to tools; it does not grant access to its entire chat history.

Development

Run python scripts/check.py for isolated tests. See architecture for the modules and data flow. No embeddings, vector database, paid API key, or model inference are required by this software. Your AI client's normal usage still applies when it retrieves and reads memories.

MIT licensed. Independent project; not affiliated with OpenAI or Anthropic.

Related MCP Connectors

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides persistent local memory functionality for AI assistants, enabling them to store, retrieve, and search contextual information across conversations with SQLite-based full-text search. All data stays private on your machine while dramatically improving context retention and personalized assistance.
    3
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides AI coding assistants with persistent project memory to retain architectural decisions, code patterns, and domain knowledge across sessions. It stores data locally in a SQLite database, allowing agents to remember, recall, and manage project-specific context using full-text search.
    3 npm
    Apache 2.0
  • A
    license
    A
    quality
    B
    maintenance
    Provides persistent cross-session memory and full-text search for AI coding assistants, storing project context, decisions, and preferences while enabling searchable access to conversation history via local SQLite.
    8
    1
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Local index and hybrid search (SQLite FTS5 + on-device vector KNN) over your AI coding-agent conversation history across 11 tools (Claude Code, Codex, Cursor, and more). Exposes search_threads, search_current_project, recent_threads, get_thread, list_tags, and list_open_todos so any agent can recall its own past work.
    22
    40
    AGPL 3.0