scope-recall-hermes

mcp
Guvenlik Denetimi
Gecti
Health Gecti
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 35 GitHub stars
Code Gecti
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Local long-term memory for Hermes, Codex, Claude Code, Antigravity, WorkBuddy, DeepSeek Harness & Cherry Studio: SQLite truth, source-backed recall, and optional local ONNX reranking.

README.md

Scope Recall

English | 简体中文

PyPI version
Python versions
Latest release
License: MIT

Local-first, source-backed long-term memory for AI coding and desktop assistants.
Keep memory on one machine or share one SQLite truth store across your own agents, with verifiable source references, explicit scope boundaries, and optional local ONNX reranking.

Development branch: 4.1.2.dev0 · Latest release: PyPI · GitHub Releases · Changelog.


Why Scope Recall

  • SQLite truth with source evidence. Captured turns live in a local SQLite database. Structured claims cite exact source revisions and text spans so an assistant can show where an answer came from, and unverified assistant restatements do not silently overwrite owner decisions.
  • One store across seven hosts, strict isolation. Connect Hermes, Codex, Claude Code, Antigravity, WorkBuddy, DeepSeek Harness, and Cherry Studio to one local or shared store. Each entry keeps its own approved audience scopes and project/worktree boundaries.
  • Zero API cost to start, optional local reranking. Capture and lexical search work without any model key or token budget. When you want semantic ranking, add a vector route and/or the optional local ONNX cross-encoder (hs-rerank-1) served by a worker-managed resident process.
  • Privacy and operational control. Supports inline <private>...</private> redaction, timed private mode, secret scrubbing before storage, a local inspection UI (scope-recall ui), plus import, export, and verified backup/restore.

Architecture

flowchart LR
    H["AI Hosts (Hermes, Codex, Claude Code, Antigravity, WorkBuddy, dsh, Cherry Studio)"]
    I["Native Provider / Hooks / MCP"]
    R["Resident Recall Service (optional)"]
    DB[("SQLite Truth Store (sources, lexical index, claims, episodes)")]
    V["Rebuildable Vector Companion (optional)"]
    ONNX["Local ONNX Reranker (hs-rerank-1, optional)"]
    W["Background Worker (consolidation, embeddings, upkeep)"]

    H --> I
    I --> R
    I --> DB
    R --> DB
    R --> V
    R --> ONNX
    W --> DB
    W --> V

Quick start

Requires Python 3.11–3.14.

  1. Install the package:

    python -m pip install -U "hermes-scope-recall[codex]"
    

    (The [codex] extra installs the shared MCP server dependencies used by desktop and CLI hosts, not only Codex.)

    To also enable the optional local ONNX reranker (hs-rerank-1):

    python -m pip install -U "hermes-scope-recall[codex,rerank-onnx]"
    

    To install from a local source checkout instead of PyPI:

    python -m pip install -U ".[codex]"
    
  2. Configure hosts and store:

    scope-recall setup
    

    Review the detected hosts and store layout, then confirm the plan.

  3. Approve and verify:
    Approve the integration in your host, open a new session, send a distinctive test phrase, finish the turn, then ask for that phrase in a second session.

Supported hosts

Host Integration Capture & recall Guide
Hermes Native memory provider + hooks Full capture, automatic recall, tools, remote client Setup and local identity
Codex Hooks + MCP server Full capture, automatic recall, MCP tools Setup and hook review
Claude Code Hooks + MCP server Full capture, automatic recall, MCP tools Setup
Antigravity Hooks + MCP server Full capture, automatic recall, MCP tools Set up capture and recall
WorkBuddy Hooks + MCP server Full capture, automatic recall, MCP tools Setup and MCP approval
DeepSeek Harness (dsh) Native plugin + MCP server Full capture, automatic recall, MCP tools Setup and plugin check
Cherry Studio MCP server Read-only search over an existing store Connect a read-only MCP entry

Cherry Studio searches an existing store through MCP; use another connected host to capture new memories. Shared stores and standalone local Hermes installs also support the worker-managed resident recall service.

How recall works

  1. Multi-channel retrieval: Combines lexical matches, structured claims, and vector matches (when an embedding route is configured) within a single bounded request window.
  2. Evidence & deduplication: Checks source visibility, audience boundaries, and session delivery history; collapses duplicate captures and filters complete restatements of host instructions already loaded in the session.
  3. Optional local reranking & clues: In the default auto gatekeeper mode, when the optional rerank-onnx extra and hs-rerank-1 model assets are ready, a local cross-encoder scores candidates before injection. Strong grounded evidence is injected with source references, while weaker candidates can be surfaced as compact clues expandable via inspect.
  4. Resident recall: A background worker can keep a local loopback recall process warm for shared stores and standalone local Hermes installations so per-turn hooks stay responsive. See Local reranking and resident recall.

Documentation

Setup and deployment

Daily use and data lifecycle

Contracts, diagnostics, and development

Yorumlar (0)

Sonuc bulunamadi