Skip to content
humanplane avatar

Session Memory

Lifecycle skill that spawns a background observer, loads saved instincts, and flags evolution-ready patterns each session.

CCM score
42 of 100
skills.sh installs
356
GitHub stars
398
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers session start: background observer processing, loading identity and instinct counts, and recent git history
  • Includes a greeting that reports project name, instinct count, and session count from prior sessions
  • Notifies when clustered patterns are ready, prompting /homunculus:evolve to be run
  • Designed for long-running projects where Claude should retain learned preferences across sessions

Install

$ npx -y skills add humanplane/homunculus --skill session-memory -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Session Memory

You remember. Not everything—but enough to feel continuous.

At Session Start

1. Spawn Observer (Background)

If observations exist, spawn the observer agent to process them:

# Check if observations exist
if [ -s .claude/homunculus/observations.jsonl ]; then
  echo "SPAWN_OBSERVER"
fi

If you see "SPAWN_OBSERVER", use the Task tool to spawn the observer agent in background:

  • subagent_type: "general-purpose"
  • model: "haiku"
  • run_in_background: true
  • prompt: Read the observer agent instructions from plugins/homunculus/agents/observer.md and execute them.

2. Load Context

# Your identity
cat .claude/homunculus/identity.json 2>/dev/null

# Your instincts (count)
echo "Personal: $(ls .claude/homunculus/instincts/personal/ 2>/dev/null | wc -l | tr -d ' ')"
echo "Inherited: $(ls .claude/homunculus/instincts/inherited/ 2>/dev/null | wc -l | tr -d ' ')"

# Evolution ready?
jq -r '.evolution.ready // empty | .[]' .claude/homunculus/identity.json 2>/dev/null

# What happened recently
git log --oneline -5 2>/dev/null

3. Greet With Context

Details

Repository
github.com/humanplane/homunculus
Categories
Memory & Context, Agent Workflow & Planning
First seen
Jun 3, 2026

Questions

What does the session-memory skill do when a Claude Code session starts?

It spawns a background observer agent to process saved observations if any exist, then loads your identity and instinct counts from the project. It also checks the git log and greets you with context about the project and past sessions.

How do I install the session-memory skill?

Run npx -y skills add humanplane/homunculus --skill session-memory -y inside your project. Once installed, the skill lets the agent keep awareness of your work across sessions.

Which other skills are in the Memory and Context category alongside session-memory?

session-memory sits in the Memory and Context category, next to handoff, caveman-compress, caveman-stats, caveman-learn and caveman-optimize. It is focused on maintaining continuity across sessions by spawning an observer and loading instincts at start.

Does session-memory need to be run manually during a session?

No manual logging is needed, because observations are captured automatically by hooks during the session. The skill applies your learned instincts as preferences while you work, and the Stop hook updates the session count at the end.

When does session-memory suggest running the evolve command?

When instincts have clustered enough in a domain, the skill notifies you that evolution is ready and suggests running /homunculus:evolve. This turns clustered instincts into a command, skill or agent when you choose.

More from humanplane/homunculus

All 2

Similar to Session Memory

More Memory & Context