subconscious-memory

subconscious-memory is a skill for Claude Code, Codex from vishaltorc/subconscious-mcp. It costs 70 tokens per session (679 once invoked), scanned A, original, MIT.

A set of instructions for using local semantic memory while an agent works. It covers recalling earlier solutions, saving reusable results, checking for repeated tasks, and removing stored memories.

In plain words
What is it for?
It is for recalling solutions before research or multi-file changes, saving useful commands or fixes after a task, detecting similar work, and forgetting stored information.
Why use it?
It helps avoid repeating work and reduces the chance of reusing an old answer that no longer fits. It also gives the agent rules for checking whether a remembered result is relevant.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for recalling solutions before research or multi-file changes, saving useful commands or fixes after a task, detecting similar work, and forgetting stored information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vishaltorc/subconscious-mcp/subconscious-memory
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 vishaltorc/subconscious-mcp --skill subconscious-memory
Clone the repo
git clone --depth 1 https://github.com/vishaltorc/subconscious-mcp

Made for: Claude Code, Codex.

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 subconscious-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/vishaltorc/subconscious-mcp/subconscious-memory/github.svg)](https://agentmods.dev/skills/vishaltorc/subconscious-mcp/subconscious-memory)
Your own site
<a href="https://agentmods.dev/skills/vishaltorc/subconscious-mcp/subconscious-memory"><img src="https://agentmods.dev/badge/skills/vishaltorc/subconscious-mcp/subconscious-memory/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 subconscious-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/vishaltorc/subconscious-mcp/subconscious-memory"><img src="https://agentmods.dev/badge/skills/vishaltorc/subconscious-mcp/subconscious-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 679 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.00070 $0.00679
Opus 5 $0.00035 $0.00340
Sonnet 5 $0.00014 $0.00136
Haiku 4.5 $0.00007 $0.00068

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

Security

Grade A, and why

subconscious-memory 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 9d ago.

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.

examples/skills/subconscious-memory/SKILL.md · 70 lines

How it starts

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

Subconscious memory discipline

Local semantic memory over MCP. The borderline cases below are where the value lives: a careless recall reuses a stale answer; a careless skip re-does work.

Recall before non-trivial work

Before research, multi-file edits, or repeating a workflow, call recall with a short task description (not the full user message).

recall(task="deploy Next.js to Vercel production", threshold=0.85)

Then branch on the outcome:

  • Hit at >= 0.88: reuse answer after a quick sanity check (deps, paths, dates still apply).
  • Hit below 0.88: treat as borderline. Verify the answer actually fits this task before acting on it; the phrasing matched but the intent may not.
  • Miss, best similarity > 0.7: do NOT just lower the threshold. Call echo with the same task first. If the nearest entry is the same task family, recall it explicitly (or lower the threshold deliberately); if it is a different family, work fresh.
  • Miss, best similarity <= 0.7: uncharted; do the work normally.

Remember after a reusable outcome

After producing something reusable (commands, config location, fix pattern):

remember(task="...", answer="...", tags=["project-name", "topic"])

Skip secrets, tokens, personal data, and answers that depend on today's file state.

Responding to a near_duplicate warning

If remember returns warning="near_duplicate", a close curated entry already exists (similarity in [0.75, 0.92]). Do not blindly add a second copy. Recall or inspect nearest_entry_id, compare it to what you were about to store, then decide:

  • Merge / update: if it is the same task, forget(nearest_entry_id) and re-remember the better-phrased combined version.
  • Proceed: if it is genuinely a distinct task that merely reads similar, store yours (the write already happened unless you passed skip_if_duplicate=true).

Hygiene

  • Run drift_report() periodically (e.g. when reviewing cache health). For flagged entries, forget and re-remember more specific variants, or raise the recall threshold for that family.
  • stats() if the user asks whether memory is helping.
  • Never trust a hit above 0.85 on interpretive tasks ("extract X" vs "extract Y" read almost identically to the embedder); verify first.

Read the full file on GitHub · 70 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. 9d ago First seen · 70 lines · 70 tokens per session scan A ea008aac1c50

Subscribe to this mod's changes

subconscious-memory is a skill published in the GitHub repository vishaltorc/subconscious-mcp (0 stars, last pushed 2mo ago), licensed MIT. It adds 70 tokens to every session and 679 once invoked, about $0.0003 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-08-31.