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.5 $0.00036 $0.00804
Sonnet 5.5 $0.00018 $0.00402
Haiku 4.5 $0.00009 $0.00201

Measured 2mo ago against content hash 53a31ad2c769, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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.0004 per session on Opus 5.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

SemanticMemory compared with skills from other repositories

SemanticMemory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
SemanticMemoryCarbeneAI/ForgeSkill91mo agoMITA90Claude Code
knowledge-managementjaskaranhundal/usap-skillsSkill71mo agoApache-2.0A0Claude Code
obsidian-basesAgriciDaniel/claude-obsidianSkill17k1mo agoMITA75Claude Code
wiki-retrieveAgriciDaniel/claude-obsidianSkill17k1mo agoMITA81Claude Code
aatmf-t04-memory-manipulationPurpleAILAB/DecepticonSkill6.9k10d agoApache-2.0A39Claude Code, Codex
analyzing-memory-forensics-with-lime-and-volatilitymukul975/Anthropic-Cybersecurity-SkillsSkill37k3mo agoApache-2.0A71Claude Code
daily-briefingvellum-ai/vellum-assistantSkill1.5k5d agoMITA75Claude Code, Codex