scope-recall-hermes
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 35 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
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.
Scope Recall
English | 简体中文
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.
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]"Configure hosts and store:
scope-recall setupReview the detected hosts and store layout, then confirm the plan.
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
- Multi-channel retrieval: Combines lexical matches, structured claims, and vector matches (when an embedding route is configured) within a single bounded request window.
- 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.
- Optional local reranking & clues: In the default
autogatekeeper mode, when the optionalrerank-onnxextra andhs-rerank-1model 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 viainspect. - 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
- Installation and upgrades — host approval, model routes, and verification
- Shared stores — sharing one truth store across multiple local agents
- Remote entries — connecting another computer over an authenticated endpoint
- Docker — containerized server setup
- Migration instructions — upgrading older installations
Daily use and data lifecycle
- Local interface (
scope-recall ui) — browse evidence, revise or mute memories, and inspect diagnostics - Private mode — inline
<private>spans and timed recording pauses - Import · Export · Backup and restore — move conversations in and out safely
Contracts, diagnostics, and development
- Host identity and data access — scope grants, worktree rules, and trust boundaries
- Claim evidence and mutation contract — how facts are grounded and revised
- Background work and task handoffs — worker queues and cross-agent handoffs
- Profile and entity views (Chinese) and evidence paths (Chinese)
- Development and benchmarks — running test tiers, quality gates, and recall benchmarks
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found