cjhfff avatar

Cognitive Memory

This is a proper memory architecture for Claude, not just a flat file. You get four stores (episodic, semantic, procedural, vault) with natural language triggers like "remember this" or "forget that." It handles decay scoring so old memories fade unless accessed, runs reflection cycles where Claude does internal monologue about what happened, and tracks everything through git for audit. The reflection system is interesting: Claude requests token budgets, writes stream-of-consciousness self-examination, and updates its self-image over time. Built for multi-agent setups with shared read and gated write. If you're tired of agents forgetting context or want something closer to how humans actually remember things, this replaces the basic MEMORY.md approach with something architectural.

skills.sh installs
206
last updated
Aug 21, 2026

Install

$ npx -y skills add cjhfff/cjh-skills --skill cognitive-memory --agent claude-code

Installs into .claude/skills of the current project.

Files

Cognitive Memory System

Multi-store memory with natural language triggers, knowledge graphs, decay-based forgetting, reflection consolidation, philosophical evolution, multi-agent support, and full audit trail.

Quick Setup

1. Run the init script

bash scripts/init_memory.sh /path/to/workspace

Creates directory structure, initializes git for audit tracking, copies all templates.

2. Update config

Add to ~/.clawdbot/clawdbot.json (or moltbot.json):

{
  "memorySearch": {
    "enabled": true,
    "provider": "voyage",
    "sources": ["memory", "sessions"],
    "indexMode": "hot",
    "minScore": 0.3,
    "maxResults": 20
  }
}

3. Add agent instructions

Append assets/templates/agents-memory-block.md to your AGENTS.md.

4. Verify

User: "Remember that I prefer TypeScript over JavaScript."
Agent: [Classifies → writes to semantic store + core memory, logs audit entry]

User: "What do you know about my preferences?"
Agent: [Searches core memory first, then semantic graph]

Architecture — Four Memory Stores

Sponsors

Details

Repository
github.com/cjhfff/cjh-skills
Categories
DevOps & CI/CD, Code Review & Quality, AI & Agent Building
First seen
Jun 3, 2026
1yonatangross avatarimplementyonatangross/orchestkitFull-power feature implementation using parallel subagents for backend, frontend, testing, and security, with worktree isolation and quality verification in one206skills.sh installs
2davila7 avatarslack-bot-builderdavila7/claude-code-templatesBuild Slack apps using the Bolt framework across Python, JavaScript, and Java. Covers Block Kit for rich UIs, interactive components, slash commands, event hand205skills.sh installs
3slowmist avatarslowmist-agent-securityslowmist/slowmist-agent-securityComprehensive security review framework for AI agents. Covers skill/MCP installation, GitHub repos, URLs/documents, on-chain addresses, products/services, and s205skills.sh installs
4microsoft avatarwinui-dev-workflowmicrosoft/win-dev-skillsBuild and run workflow for WinUI 3 apps — project creation, BuildAndRun.ps1 script, winapp run, error diagnosis, and prerequisites. Use when building, running, 201skills.sh installs
5rajveer-mahida avatarbuddyrajveer-mahida/buddy-skillsMulti-agent workflow orchestrator for software projects. Invoke when the user says "Hey Buddy", asks to work on a task, wants to check Linear tasks, start conti201skills.sh installs
6siviter-xyz avatarcli-buildingsiviter-xyz/dot-agentBuild command-line interfaces with async-first design, composable commands, and proper output formatting. Use when creating CLI tools, commands, or interactive 201skills.sh installs