cass-memory — CASS Memory System (cm)

SkillDocs & knowledge

CASS Memory System (cm) for procedural memory. Use when starting non-trivial tasks, learning from past sessions, building playbooks, or preventing repeated mistakes via trauma guard.

Use cass-memory — CASS Memory System (cm) in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add cass-memory — CASS Memory System (cm) and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the cass-memory skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

cass-memory — CASS Memory System (cm)Start free

What this skill tells your AI

The instructions your AI receives, as published by lev-os/agents in skills-db/ai-agents/cass-memory/SKILL.md and read by Ahel’s review.

Core Capability: Transforms scattered agent sessions into persistent, cross-agent procedural memory. A pattern discovered in Cursor automatically helps Claude Code on the next session.

Quick Start

# Initialize with a starter playbook
cm init --starter typescript

# THE ONE COMMAND: run before any non-trivial task
cm context "implement user authentication" --json

# Check system health
cm doctor --json

THE EXACT PROMPT — Session Start

Before starting this task, run:

cm context "<task description>" --json

Read the output carefully:
- relevantBullets: Rules from playbook scored by relevance
- antiPatterns: Things that have caused problems before
- historySnippets: Past sessions (yours and other agents')
- suggestedCassQueries: Deeper investigation if needed

Reference rule IDs when following them (e.g., "Following b-8f3a2c...")

THE EXACT PROMPT — Rule Feedback

# When a rule helped
cm mark b-8f3a2c --helpful

# When a rule caused problems
cm mark b-xyz789 --harmful --reason "Caused regression"

# Or leave inline comments (parsed during reflection)
// [cass: helpful b-8f3a2c] - this saved me from a rabbit hole
// [cass: harmful b-x7k9p1] - wrong for our use case

THE EXACT PROMPT — Trauma Guard Setup

# Install safety hooks to prevent dangerous commands
cm guard --install       # Claude Code hook
cm guard --git          # Git pre-commit hook
cm guard --status       # Check installation

# Add custom trauma patterns
cm trauma add "DROP TABLE" --description "Mass deletion" --severity critical

# Scan past sessions for trauma patterns
cm trauma scan --days 30

Three-Layer Architecture

┌─────────────────────────────────────────────────────────────────────┐
│                    EPISODIC MEMORY (cass)                           │
│   Raw session logs from all agents — the "ground truth"             │
└───────────────────────────┬─────────────────────────────────────────┘
                            │ cass search
                            ▼
┌─────────────────────────────────────────────────────────────────────┐
│                    WORKING MEMORY (Diary)                           │
│   Structured session summaries: accomplishments, decisions, etc.    │
└───────────────────────────┬─────────────────────────────────────────┘
                            │ reflect + curate (automated)
                            ▼
┌─────────────────────────────────────────────────────────────────────┐
│                    PROCEDURAL MEMORY (Playbook)                     │
│   Distilled rules with confidence tracking and decay                │
└─────────────────────────────────────────────────────────────────────┘

Essential Commands

CommandPurpose
cm context "<task>" --jsonGet rules + history for task
cm mark <id> --helpful/--harmfulRecord feedback
cm playbook listView all rules
cm top 10Top effective rules
cm doctor --jsonSystem health
cm guard --installInstall safety hooks

Agent Protocol

1. START:    cm context "<task>" --json
2. WORK:     Reference rule IDs when following them
3. FEEDBACK: Leave inline comments when rules help/hurt
4. END:      Just finish. Learning happens automatically.

You do NOT need to:

  • Run cm reflect (automation handles this)
  • Run cm mark manually (use inline comments)
  • Manually add rules to the playbook

Confidence Decay

Rules aren't immortal. Confidence decays without revalidation:

MechanismEffect
90-day half-lifeConfidence halves every 90 days without feedback
4x harmful multiplierOne mistake counts 4x as much as one success
Maturity progressioncandidate → established → proven

Anti-Pattern Learning

Bad rules don't just get deleted. They become warnings:

"Cache auth tokens for performance"
    ↓ (3 harmful marks)
"PITFALL: Don't cache auth tokens without expiry validation"

Starter Playbooks

cm starters                    # List available
cm init --starter typescript   # Initialize with starter
cm playbook bootstrap react    # Apply to existing playbook
StarterFocus
generalUniversal best practices
typescriptTypeScript/Node.js
reactReact/Next.js
pythonPython/FastAPI/Django
rustRust service patterns

Token Budget Management

FlagEffect
--limit NCap number of rules
--min-score NOnly rules above threshold
--no-historySkip historical snippets
--jsonStructured output

Graceful Degradation

ConditionBehavior
No cassPlaybook-only scoring, no history
No playbookEmpty playbook, commands still work
No LLMDeterministic reflection
OfflineCached playbook + local diary

Installation

# One-liner
curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/cass_memory_system/main/install.sh \
  | bash -s -- --easy-mode --verify

# From source
git clone https://github.com/Dicklesworthstone/cass_memory_system.git
cd cass_memory_system
bun install && bun run build
sudo mv ./dist/cass-memory /usr/local/bin/cm

Troubleshooting

ErrorSolution
cass not foundInstall cass first
API key missingSet ANTHROPIC_API_KEY
Playbook corruptRun cm doctor --fix

References

TopicReference
Full command referenceCOMMANDS.md
Cognitive architectureARCHITECTURE.md
Trauma guard systemTRAUMA-GUARD.md
MCP server integrationMCP-SERVER.md
Onboarding workflowONBOARDING.md

Signals

GitHub stars
23
Forks
2
Last commit
Oct 2026

Ahel review

  • K4info
    destructive (in references/TRAUMA-GUARD.md)
  • K4binfo
    destructive-scoped (in references/TRAUMA-GUARD.md)

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Item type
skill
Key
cass-memory
Source
github.com/lev-os/agents