SemanticMemory

Search hybrid BM25 and vector indexes for relevant past sessions and notes.

9|1|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/CarbeneAI/Forge --skill semanticmemory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: SemanticMemory
Source: https://github.com/CarbeneAI/Forge/tree/main/.claude/skills/SemanticMemory
Command: npx skills add https://github.com/CarbeneAI/Forge --skill semanticmemory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Help users find, recall, and reuse past AI sessions, learnings, research, and personal notes so context and decisions are not lost between conversations or projects.

Core Features & Use Cases

  • Hybrid semantic search combining BM25 (FTS5) and vector similarity to surface relevant past work and snippets.
  • Temporal knowledge graph for time-bounded facts, entity timelines, and relation invalidation.
  • Layered context loading (Identity → Essential → On-Demand → Deep) to minimize token usage while surfacing the right context at the right time.
  • Cross-project "tunnels" discovery to find topic bridges across sessions, learnings, Obsidian notes, and research.
  • CLI tools for indexing, syncing, searching, knowledge-graph management, watcher daemon, and diagnostics to integrate into automation and workflows.

Quick Start

Run a semantic search for past work by invoking the SemanticSearch tool with your query, for example: bun ~/.claude/skills/SemanticMemory/tools/SemanticSearch.ts "How did we configure Traefik SSL?"

Frequently Asked Questions about SemanticMemory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search past AI sessions and notes using semantic search?

To search past AI sessions, you can invoke a semantic search tool that uses hybrid BM25 and vector similarity to retrieve relevant past work, learnings, and research from your history. This surfaces context from previous conversations without losing decisions between projects.

How does hybrid BM25 and vector indexing work for recalling context?

Hybrid BM25 and vector indexing combines full-text search with embedding similarity to retrieve relevant past sessions and notes. This approach ensures both exact keyword matches and semantic meaning are used to surface the right context at the right time.

Can I use local SQLite for semantic memory and vector search?

Yes, local SQLite is supported for semantic memory using the vec0 and FTS5 extensions. This allows you to run hybrid semantic search and store embeddings directly in a local database without requiring external infrastructure.

What is the best way to discover cross-project connections and topic bridges?

Discovering cross-project connections is best achieved using temporal knowledge graph tunnels. These tunnels identify topic bridges across your sessions, learnings, and research notes to surface relationships between different workflows.

Do I need Gemini or OpenAI embeddings to build a temporal knowledge graph?

You can use either Gemini or OpenAI as your embedding provider to build a temporal knowledge graph, with fallback support included. These embeddings power the vector similarity needed to map time-bounded facts and entity relations.

How do I minimize token usage when loading context from past sessions?

You minimize token usage by using a layered context loading approach that progresses from Identity to Essential, On-Demand, and Deep context. This tiered loading ensures only the most relevant information is surfaced during conversations and automation.