KS
Killer-Skills

session-brain — how to use session-brain how to use session-brain, session-brain setup guide, session-brain alternative, session-brain vs claude, what is session-brain, session-brain install, persistent memory for AI agents, session-brain workflow management, session-brain hooks, session-brain state management

v1.0.0
GitHub

About this Skill

Ideal for AI Agents like Claude, AutoGPT, and LangChain requiring persistent per-repo working memory for efficient session management. session-brain is a persistent memory mechanism that stores and updates AI agent state via hooks, utilizing files like `brain.json` and `brain.md` for efficient workflow management.

Features

Automatically updates via SessionStart and PreCompact/SessionEnd hooks
Utilizes `brain.json` for canonical structured state, validated against a schema
Generates human-readable summaries in `brain.md` for quick reference
Stores per-session summaries in the `episodes/` directory for history tracking
Persists current brain context and repo snapshot for efficient workflow management

# Core Topics

zenbase-ai zenbase-ai
[7]
[1]
Updated: 12/30/2025

Quality Score

Top 5%
39
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add zenbase-ai/code-voyager/session-brain

Agent Capability Analysis

The session-brain MCP Server by zenbase-ai is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use session-brain, session-brain setup guide, session-brain alternative.

Ideal Agent Persona

Ideal for AI Agents like Claude, AutoGPT, and LangChain requiring persistent per-repo working memory for efficient session management.

Core Value

Empowers agents to maintain a canonical structured state via brain.json and human-readable summaries in brain.md, utilizing automatic updates through hooks like SessionStart and PreCompact/SessionEnd, and storing session histories in episodes/

Capabilities Granted for session-brain MCP Server

Automating session state persistence
Generating human-readable summaries for quick reference
Debugging session history via episode summaries

! Prerequisites & Limits

  • Requires repository access to store .claude/voyager/ files
  • Compatibility with specific AI agent architectures may vary
Project
SKILL.md
2.9 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Session Brain

Persistent per-repo working memory stored under .claude/voyager/.

State Files

FilePurpose
brain.jsonCanonical structured state (validated against schema)
brain.mdHuman-readable summary for quick reference
episodes/Per-session summaries for history

How It Works

Session Brain updates automatically via hooks:

  • SessionStart: Injects current brain context + repo snapshot
  • PreCompact/SessionEnd: Persists changes to brain.json and creates episode

You don't need to manually update the brain—just work normally and it tracks context.

Reading brain.json

When exploring brain.json, use jq to query specific sections instead of reading the whole file:

bash
1# Current context (goal, plan, questions) 2jq '.working_set' .claude/voyager/brain.json 3 4# Decision history 5jq '.decisions' .claude/voyager/brain.json 6 7# Recent progress 8jq '.progress' .claude/voyager/brain.json 9 10# Project overview 11jq '.project' .claude/voyager/brain.json

For a quick human-readable summary, read .claude/voyager/brain.md instead.

Answering User Questions

When users ask about context, read and interpret the brain files:

"Resume" / "What were we doing?"

  1. Read .claude/voyager/brain.md for quick context
  2. Check brain.jsonworking_set.current_goal and working_set.current_plan
  3. Summarize: current goal, plan progress, any open questions

"What's next?"

  1. Read brain.jsonworking_set.current_plan
  2. Check progress.recent_changes to see what's done
  3. Suggest the next uncompleted step from the plan

"Why did we decide X?" / "What was the rationale?"

  1. Read brain.jsondecisions array
  2. Find matching decision by keyword
  3. Return the rationale and implications

"What are the open questions?"

  1. Read brain.jsonworking_set.open_questions
  2. Also check working_set.risks for blockers

Recording Decisions

When the user says "remember this decision: ..." or explicitly wants to record a decision:

  1. Read current .claude/voyager/brain.json
  2. Append to the decisions array:
    json
    1{ 2 "when": "<ISO timestamp>", 3 "decision": "<what was decided>", 4 "rationale": "<why>", 5 "implications": ["<what this affects>"] 6}
  3. Write updated brain.json

Note: brain.md will be re-rendered automatically on the next session end or compaction.

Brain Schema Overview

See schemas/brain.schema.json for full schema. Key sections:

  • project: Stable project understanding (summary, stack, key commands)
  • working_set: Current context (goal, plan, open questions, risks)
  • decisions: Append-only decision log with rationale
  • progress: Recent changes and completed milestones
  • signals: Metadata (last session ID, timestamp)

Technical Details

See reference.md for:

  • Full file structure
  • Update flow details
  • Manual operations (reset, view history)
  • Graceful degradation behavior

Related Skills

Looking for an alternative to session-brain or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication