Session Memory Feature Introduced in Claude Code

The latest versions of Claude Code introduce a new feature: Session Memory. Designed to assist developers with managing larger interactive sessions, it automatically generates and maintains a summary.md file in each project directory. While disabled by default, you can enable and customize it using tweakcc.
Key Details
When enabled, Session Memory creates a summary.md file located at ~/.claude/projects/{sanitized-project-path}/{session-id}/session-memory/summary.md. This file is updated based on specific thresholds: session size reaching 10k tokens and 3 tool calls, with subsequent updates occurring after 5k additional tokens and 3 more tool calls.
The tweakcc tool allows customization of these thresholds using environment variables:
CC_SM_MINIMUM_MESSAGE_TOKENS_TO_INIT=200– Tokens required before first extraction; defaults to 10,000.CC_SM_MINIMUM_TOKENS_BETWEEN_UPDATE=200– Tokens required between updates; defaults to 5,000.CC_SM_TOOL_CALLS_BETWEEN_UPDATES=0– Tool calls required between updates; defaults to 3.CC_SM_PER_SECTION_TOKENS=3000– Max tokens for a section before a warning; defaults to 2,000.CM_SM_TOTAL_FILE_LIMIT=12000– Max tokens for the whole summary; default is 12,000.
Enabling the session memory feature involves running npx tweakcc@latest --apply and setting the necessary environment variables. This functionality targets developers handling medium to large interactive sessions where comprehensive activity tracking is beneficial.
📖 Read the full source: r/ClaudeAI
👀 See Also

Merlin: Local-first LLM context dedup – measure up to 71% chunk overlap, free & open-core
Merlin is a local-first context dedup tool that measured 22-71% chunk overlap across 22M passages from real agent/RAG sessions. Ships as HTTP proxy (Ollama/vLLM/SGLang/llama.cpp), MCP server (Claude/Cursor/OpenClaw), or standalone CLI. MIT open-core with daily usage caps.

Free macOS Menu Bar Monitor for Claude AI Usage Limits
A free, open-source macOS tool that displays Claude AI's session usage percentage, weekly limits, and reset countdowns directly in your menu bar. Installs with a single Homebrew command and piggybacks on existing Chrome sessions without storing data.

AgentRoom: Desktop app visualizes AI coding agents as pixel characters with session search
AgentRoom is a desktop app that turns Claude Code, Codex, and Gemini sessions into animated pixel characters in a virtual office, with full-text semantic search across all sessions. The repo includes a standalone Claude Code skill for searching past sessions from any conversation.

Clawforce: Open-Source Control Plane for Managing Clawbot Agent Teams
Clawforce is an open-source control plane for managing Clawbot agent teams that allows deployment in a few clicks. It provides configuration of characters, skills, MCP integrations, and tools through a UI, with agents capable of planning, coordinating, and executing tasks collaboratively.