Claude Code session

Claude Code Memory Setup

Up to 71.5x fewer tokens per session on Claude Code with Obsidian + Graphify. Persistent memory, codebase knowledge graphs, and chat import pipeline. πŸ‡§πŸ‡· PT-BR included.

1,056 stars 94 forksSessions & history Source

Install

Install
pip install claude-conversation-extractor

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/lucasrosati/claude-code-memory-setup.git

From the README

Claude Code + Obsidian + Graphify: The Definitive Guide to Token Savings & Persistent Memory
Persistent memory across sessions with Obsidian Zettelkasten and selective code context with Graphify. Token savings depend on the task; the historical 71.5x/session and 499x/query claims are author-reported and not reproducible from published data.

A complete setup to turn Claude Code into an agent with long-term memory and full codebase awareness β€” without wasting tokens re-reading files.

πŸ‡§πŸ‡· Leia em PortuguΓͺs

Table of Contents

1. The Problem
2. The Solution (Overview)
3. Part 1 β€” Obsidian as Persistent Memory
4. Part 2 β€” Chat Import Pipeline
5. Part 3 β€” Graphify (Codebase Knowledge Graph)
6. Part 4 β€” Complete Workflow
7. Part 5 β€” Auto-Save Hook (Safety Net)
8. Real Results
9. Troubleshooting

The Problem

When working with Claude Code, two problems silently eat your tokens:

Problem 1 β€” Amnesia between sessions. Every time you open a new session, you have to re-explain your project: stack, past decisions, current bugs, what's left to do. Claude Code remembers nothing from the previous session.

Problem 2 β€” Codebase re-reading. Repeated source exploration can consume context tokens, but how much depends on the task and navigation tools. The historical illustration compares ~20,000 tokens of source context with ~280 tokens of graph query output: approximately 71.4x less retrieval context, not a measured reduction in complete session usage. It assumes the smaller output answers the same question; the original payloads and tokenizer were not published.

The Solution (Overview)

Two complementary systems, each solving a different problem:

Obsidian handles what was decided (declarative memory). Graphify handles how the code is structured (structural map). Together, they can…
Read the full README on GitHub

Details

Language
Python
License
MIT
Last updated
21 October 2026
Topics
ai-toolsclaude-codecoding-agentdeveloper-productivitygraphifyknowledge-graphobsidiansecond-braintoken-optimizationzettelkasten

FAQ

What is Claude Code Memory Setup?

Up to 71.5x fewer tokens per session on Claude Code with Obsidian + Graphify. Persistent memory, codebase knowledge graphs, and chat import pipeline. πŸ‡§πŸ‡· PT-BR included. It is a session for Claude Code, from lucasrosati/claude-code-memory-setup on GitHub.

How do I install Claude Code Memory Setup?

Run pip install claude-conversation-extractor, then follow the setup in the README.

Is Claude Code Memory Setup popular?

lucasrosati/claude-code-memory-setup has 1,056 GitHub stars and 94 forks. It was last updated on 21 October 2026.

More sessions & history

Browse the most popular Claude Code mods, all sessions & history, or the skills and MCP server directories.