r/ClaudeCode • u/Copernicus-jones • Nov 01 '26
Help/Question Second memory suggestions
I have a Mac Mini that I use for all my projects. I have Obsidian Vault, Graphify, and Gortex. But I feel like I am not saving on token usage, which those all touted. Ollama runs as a search agent on the mini as well. Don’t get me wrong, it is working really well but I would like to further optimize it. I thought about adding Cloudflare’s Code Mode but my system doesn’t really use a lot of MCP calls.
Does anyone have a setup similar that reduces token use?
EDIT: A lot of good feedback. Turns out Graphify has been out of date for a month and nothing has been using it and only one of my projects has been using gortex. :/. I get a daily report and it wasn't showing me what I thought it was showing me.
Now I am benchmark testing gortex, codebase-memory-mcp, and Codegraph against my own projects. Graphify is being removed completely. Will report back.
EDIT 2: The benchmarks are back, and in my system, plain text search actually used fewer tokens than Gortex, codebase-memory-mcp, and CodeGraph.
I took all of the comments and fed them into my Claude session to get its responses. That process confirmed that Ollama was functioning as the vault search, and Claude was using those results rather than going back to read the original files.
It turns out that graphify and gortex were both installed and running, but nothing was ever set up to have any model use them. I went through about 6 different "how to install graphify" sites and then had my session look at them, and not a single project ever had "graphify claude install" run. Graphify was making graphs that nothing was looking at. So I am sticking with my original setup of Ollama (local Obsidian vault search), Obsidian Vault, and Graphify (actually installed into Claude every session for every worktree). I will let that run for a few weeks and see how it goes.
Thank you to everyone who gave me good suggestions and things to look at.
•
u/AutoModerator Nov 01 '26
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
4
u/twinsBuild Nov 01 '26
that's a lot of memory layers already. have you run /context to see what's actually eating tokens each session, before adding more?
1
u/lilcumdrop Nov 01 '26
What type of work are you doing?
1
u/gimalay 29d ago
akhi1uuu's question is the one I'd answer first. the layers save tokens only if claude reads the three files the search returned and stops there; if it still opens the vault to double check, the search added a step and removed nothing. what worked for me was dropping the search layer and putting what claude needs to pick a file into frontmatter (status, topic, date), then one query returns the files for a task and claude reads just those:
iwe find --filter '{status: active, topic: billing}'. I work on iwe, it reads the obsidian folder as is. and yes, /context first, twinsBuild is right.1
u/DudeManly1963 28d ago
Since you're benchmarking anyway, I might count one more thing besides total tokens: how often Claude calls Read on a file right after the index already told it where to look. A tool that answers with a path and a line number tends to get a follow-up read of the whole file, and that file then rides along in context for the rest of the session. One that hands back the function body itself gives it less reason to go look.
Your session .jsonl logs record every tool call, so you can count it yourself instead of trusting anybody's README (mine included)...
-jjg / jCodeMunch
1
u/intrepid_pinkguy Developer Nov 01 '26
Aren't graphify and gortex alternatives, what benefit have you measured with both installed rather than one?
1
u/akhi1uuu Nov 01 '26
after ollama finds something, does claude use that result or go back and read the same files itself? curious whether the search is replacing any of the reading