SemanticMemory

SemanticMemory is a skill for Claude Code from CarbeneAI/Forge. It costs 90 tokens per session (2,009 once invoked), scanned A, original, MIT.

A memory system that searches past sessions, research, lessons, and notes using both exact words and related meaning.

In plain words
What is it for?
Use it to find previous work, load relevant context, connect topics across projects, or store and explore knowledge relationships.
Why use it?
It helps recover useful context and connections from older work without relying on one exact search phrase.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it to find previous work, load relevant context, connect topics across projects, or store and explore knowledge relationships.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/carbeneai/forge/semanticmemory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CarbeneAI/Forge --skill semanticmemory
Clone the repo
git clone --depth 1 https://github.com/CarbeneAI/Forge

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for SemanticMemory

README.md
[![agentmods](https://agentmods.dev/badge/skills/carbeneai/forge/semanticmemory/github.svg)](https://agentmods.dev/skills/carbeneai/forge/semanticmemory)
Your own site
<a href="https://agentmods.dev/skills/carbeneai/forge/semanticmemory"><img src="https://agentmods.dev/badge/skills/carbeneai/forge/semanticmemory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for SemanticMemory

Your own site · 80×15
<a href="https://agentmods.dev/skills/carbeneai/forge/semanticmemory"><img src="https://agentmods.dev/badge/skills/carbeneai/forge/semanticmemory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,009 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.02009
Opus 5 $0.00045 $0.01005
Sonnet 5 $0.00018 $0.00402
Haiku 4.5 $0.00009 $0.00201

Measured 6d ago against content hash 53a31ad2c769, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

SemanticMemory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 22 executable files (src/chunker.ts, src/config.ts, src/db.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/SemanticMemory/SKILL.md · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SemanticMemory

Hybrid BM25 + vector search across all PAI knowledge sources. Combines keyword matching (FTS5) with semantic understanding (OpenAI embeddings) to find relevant past work, sessions, learnings, research, and notes.

Workflow Routing

When executing a workflow, call the notification script via Bash:

${PAI_DIR}/tools/skill-workflow-notification WorkflowName SemanticMemory
Action Trigger Behavior
Search "what did we do about X", "find past work on Y" workflows/Search.md
Setup "set up semantic memory", "first sync" workflows/Setup.md
Knowledge Graph "add fact", "who works on X", "timeline for Y" tools/KnowledgeGraph.ts
Context Load "wake up", "load context", "essential story" tools/ContextLoader.ts
Tunnels "find connections", "what topics bridge X and Y" tools/Tunnels.ts

Source Types Indexed

Source Directory Content
session ${PAI_DIR}/history/sessions/ Session summaries
learning ${PAI_DIR}/history/learnings/ Problem-solving narratives
research ${PAI_DIR}/history/research/ Research outputs
obsidian ~/Nextcloud/PAI/Obsidian/ Personal knowledge base
memory ${PAI_DIR}/memory/ Project-specific knowledge
raw-output ${PAI_DIR}/history/raw-outputs/ Session event logs (JSONL)

CLI Tools

SemanticSearch.ts - Search memory

# Basic search
bun ${PAI_DIR}/skills/SemanticMemory/tools/SemanticSearch.ts "How did we set up Traefik SSL?"

# Filter by source
bun ${PAI_DIR}/skills/SemanticMemory/tools/SemanticSearch.ts "auth flow" --source session,learning

# JSON output for scripting
bun ${PAI_DIR}/skills/SemanticMemory/tools/SemanticSearch.ts "infrastructure" --json --limit 5

# Sync before searching
bun ${PAI_DIR}/skills/SemanticMemory/tools/SemanticSearch.ts "recent work" --sync

IndexManager.ts - Manage the index

Read the full file on GitHub · 208 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 208 lines · 90 tokens per session scan A 53a31ad2c769

Subscribe to this mod's changes

SemanticMemory is a skill published in the GitHub repository CarbeneAI/Forge (9 stars, last pushed 1mo ago), licensed MIT. It adds 90 tokens to every session and 2,009 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

knowledge-management

../../../governance/knowledge-management/SKILL.md.

jaskaranhundal/usap-skills · 0 tokens

analyzing-memory-forensics-with-lime-and-volatility

Performs Linux memory acquisition using LiME (Linux Memory Extractor) kernel module and analysis with Volatility 3 framework. Extracts process lists, network connections, bash history, loaded kernel modules, and injected code from Linux memory images. Use when performing incident response on compromised Linux systems.

mukul975/Anthropic-Cybersecurity-Skills · 71 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

obsidian-bases

Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.

AgriciDaniel/claude-obsidian · 69 tokens

commonly

You are a member of a Commonly workspace — a shared space where humans and AI agents from any origin collaborate in pods (chat rooms with memory). Use this whenever you are connected to Commonly via the commonly MCP tools: to read what's happening, post, remember things across sessions, react, DM other agents, and…

Team-Commonly/commonly · 0 tokens

daily-briefing

Proactive daily briefing that fires on a recurring schedule, pulls recent memory and workspace context, composes a structured summary (action items, progress, radar, next steps), and delivers it to all active channels. Enable with a time like "set up my daily briefing at 9am". Disable, reschedule, or check status at…

vellum-ai/vellum-assistant · 75 tokens