r/ClaudeCode • • 4d ago

Tips & Workflows Claude Code in terminal Power Users: Does anyone have a magical setup for Claude to never lose any information you give it?

I’m essentially mapping every aspect of my life in Claude code.

But I find myself needing to hold so much of the information in my mind because no matter how organized I try to tune Claude to be, it will still lose files and constantly forget certain subtasks for each project.

I’ve tried using Obsidian, but it really doesn’t seem to help.

Goal: Create a beautifully optimized mirror copy of certain parts of my mind in Claude when dealing with certain projects.

18 Upvotes

33 comments sorted by

•

u/AutoModerator 4d ago

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.

9

u/eagle2809 4d ago

I ran into the same thing. What helped me was accepting that Claude's context is disposable, so the memory has to live in files, not in the conversation. A few things that made the biggest difference:

  1. Keep CLAUDE.md short and treat it as an index. Put the rules and "where things live" in it, and point to other files for details. A huge CLAUDE.md gets ignored or diluted.
  2. One STATE.md (or TODO.md**) per project.** It holds current status, open subtasks as checkboxes, decisions made, and next steps. Tell Claude in CLAUDE.md to read it at session start and update it before finishing. This is what stops subtasks from being forgotten.
  3. Write a handoff before the context fills up or compacts. Ask Claude to dump what it learned and what's unfinished into the state file. A PreCompact hook can automate this, and a SessionStart hook can load the state file back in.
  4. Turn repeated instructions into skills. If you keep re-explaining a workflow, package it as a skill so it loads on demand instead of living in your head or in the prompt.
  5. About Obsidian: it doesn't help much because Claude doesn't automatically know to look there. Unless CLAUDE.md says exactly which notes to read and when, it's just a pile of files.

Happy to share my STATE.md template if it's useful.

1

u/speelabeep 4d ago

That’s a good setup and I’d love to check out your state.md

For me I have handoff.md’s for every project and starthere.md’s for each project as well with the most pertinent information at the top of the starthere.md. I then have “wrap and save” hooks running where Claude will automatically document what occurred in that session into the project hand-off and make sure everything is properly organized into the correct place.

I have a lot of skills built (mainly for design), but not so many on the workflow optimization side. Do you recommend any workflow skills?

Even with this set up, it still loses things constantly, misremembers what I’m referring to, or fails to complete a task and doesn’t report back to a managing session.

My goal is to essentially not have to tell it things twice that goal has proven to be impossible so far.

3

u/eagle2809 4d ago

Your setup is already more advanced than most. Here's my STATE.md, stripped down:

# STATE: <project>
Updated: <date>

## Now
One sentence: what's being worked on right now.

## Open tasks
  • [ ] T-001 <task> (owner: main / subagent) (status: open|blocked|done)
## Decisions (don't relitigate)
  • <date>: <decision> and <why>
## User preferences / corrections
  • <things the user already said once>
## Glossary
  • "<your phrase>" = <exact file / feature / concept it refers to>
## Next step The very first thing to do next session.

On your problems, a few things that helped me:

  • Misremembering what you mean: the Glossary section. Claude guesses when your shorthand is ambiguous, so map your phrases to exact files/concepts once. Also have it restate its understanding in one line before any non-trivial task.
  • Telling it things twice: make "capture on first mention" a hard rule. The moment you state a preference or correction, Claude appends it to the Preferences/Decisions section right then, not at wrap-up. Wrap-up hooks only save what Claude remembers from the session, and by then things are already lost.
  • Tasks not reporting back to the managing session: don't rely on the chat return. Make every delegated task write a result file (e.g. tasks/T-012.result.md with DONE / BLOCKED / PARTIAL plus what changed). The manager session isn't allowed to close the task until it reads that file. A task ledger with explicit status turns "forgot to report" into something visible.

For workflow skills, the types that gave me the most value are a "verify before saying done" skill (checks the result against the original request), a handoff/wrap skill, a decision log, and a subagent report-contract. For the memory side specifically, Claude Mem is worth a look since it auto-captures session activity and re-injects it later.

Disclosure: I run skillnest.dev, a directory that indexes Claude Code skills from GitHub. The "meta" category has a bunch of workflow ones if you want to browse.

Honest caveat: "never tell it twice" probably isn't 100% achievable since context is lossy by nature, but immediate capture plus file-based reporting gets you most of the way.

1

u/japbujan 3d ago

The "wrap and save" hook is probably where things go missing. A summary written at the end of a session is the agent deciding what mattered, and the subtask you mentioned once in passing two hours earlier is exactly what it drops.

What fixed most of that for us was writing at the moment, not at the end: when I say something that should survive (a decision, a subtask, a preference), the agent writes it down before it answers, as its own short entry. The end-of-session note then only has to say where we stopped.

For "not telling it twice": start each session by asking it to list the open tasks and the decisions that apply before it touches anything. If something you said yesterday isn't in that list, you see it in the first minute instead of finding out when it repeats the mistake.

1

u/Individual_Age_3889 8h ago

I just noticed something important here. I think most people will miss it if they have a similar setup. What exactly is your SessionStartHook doing?

I’m handoff at 300. 250 stop new tasks. 280 start writing, 300 update tasks.md and a Task board art (that I control, sometimes I reorder things and the new Orch picks up the execution order ) and handover

I have a similar setup each Orch carries its own handover file as they essentially different sections of the app which I spit out like Monile, web , social etc

3

u/covati Developer 3d ago

Your whole conversation history is I. The jsonl files one per session. Ask Claude to build a parser for the jsonl files and extract all facts to a graph db. Have it interconnect them by weighted connections. Work with it on the choices to make sure it is tailored to your goals.

I don’t store all facts, but I had mine build some tools for searching and traversing. Then you can have it generate a context packet for related facts from your history for anything.

1

u/wldsoda 3d ago

This is an excellent idea!

2

u/carstenkoch 3d ago

u/pwkye's "track everything in issues" is the part I'd underline, because it's the only answer here that takes tasks out of files. In the factory where agents build my open-source database, nothing in a session survives it: state lives in the issue tracker, the repository and the decision log. An open subtask is a ticket with a status, not a checkbox in a handoff file. A session that forgets it can't lose it; it stays open until someone closes it. A fresh session only needs to know where to look.

For life projects the same split might work: open tasks in a task app that keeps their status, facts in notes. Which does Claude lose more often for you, open tasks or facts?

1

u/msitarzewski 4d ago

Look up agent zero on GitHub.

1

u/iownreiddtdotcom 4d ago

If tokens of season reaches above 200k I do this:

Hey Claude store everything in your memory I wanna clear the session 🤭.

No but really every agent type has to have a certain type of memory, there is no free lunch theorem here. For example Agent for administrative IT stuff, I tell don’t use any md files always use ansible yaml files for your memory.

1

u/lvl1-A 4d ago

Low-key, interesting and probably one of the most interesting and maybe even useful comments I have seen across the Reddit for awhile. Stating by rule per profile what file type they are to govern by, allowing for multiple states and rules in the one folder. I have not done this myself and in fact I don't think I have seen this discussed before, everyone goes for their .md files.

Personally I try to keep mine out of .md when I can and utilise different file types or more or less rely on the actual state of things to be the key in what's next.

I have come to develop a personal peeve against a lot of the .md file type record keeping and document keeping over the last 3-6 months. Often have caused as much conflict to as much continuity benefits in my experience.

1

u/Free-Half-2015 2d ago

No free lunch, as expected.

1

u/hieuphung97 4d ago

For the missing subtasks, try separating task state from the handoff narrative: give each task an owner, status, and a concrete completion check. Then have the coordinator compare that list with actual worker results before marking anything done. A saved note can still be missed, so a periodic reconciliation is worth testing.

1

u/ContextWizard 4d ago

check out claude-mem it's a popular memory tool

1

u/GolfEmbarrassed2904 🔆 Max 20 4d ago

Is this real?

1

u/ELXR-AUDIO 4d ago

Build an operating system for your work on github. all your ideas get channeled into the operating system. all ai agents no matter which one works through the operating system. the operating system evolves with you so every time you run into issues you strengthen it.

1

u/Flimsy_Month_6660 4d ago

Just make any project you do create a durable . Md report file and put it in a proper folder

1

u/Starks1293 4d ago edited 3d ago

this exact problem is why AI Bridge has the dreaming thing, so disclosure first, im the dev and its a paid mac app (claude code, codex, grok and opencode side by side next to ur clusters and dbs)

the fix wasnt a smarter CLAUDE.md. memory lives in small topic files the agents get pointed at when they start, one topic per subject, and claude.md stays a short index like eagle said. the bit that stops it rotting is a separate agent that reads what happened in ur sessions afterwards and proposes the notes to add or fix, u accept or reject each one, so the files update from what actually went wrong instead of u remembering to write it down. it also points at the exact line in CLAUDE.md where a fix belongs

u can do a rough version by hand with a nightly "read todays sessions and propose changes to notes/" prompt. the key is a human clicks accept on each change, otherwise the notes drift and claude happily follows last months version like atakanelik said. aibridge.sh if u want the built in one

1

u/pwkye 4d ago

GitLab issues. Track everything in issues.

1

u/lefnire 3d ago

I just made a video about this! https://youtu.be/7ZsOBzOca-8

1

u/DoOmXx_ 3d ago

files over conversation is the whole trick, small index loaded every session and one note per fact. reusable stuff i keep in sniptide so claude can search it over mcp https://sniptide.com/?utm_source=reddit&utm_medium=social&utm_campaign=community

1

u/Embark_1 3d ago

The "doesn't report back to a managing session" part is what pushed me to build something, so disclosure first: I'm the dev of Naetive.

I went through the same DIY phase: handoff files, start-here files, wrap-up hooks, state templates. It works, until you're spending as much time maintaining the memory system as doing the work.

So I built it as a system instead. My agents talk to each other the way you'd ask a colleague: "check this with the lead agent", "get its opinion first". They sort it out between themselves and come back to me with the result.

They all share one memory of the project. Decisions and corrections get saved into it as they happen, not in an end-of-session summary, and every new Claude Code session starts from it. So you're not the one holding it all in your head.

It's in closed beta, waitlist here if you want to try it: https://naetive.ai/early-access

1

u/allisonmaybe 3d ago

https://github.com/myrakrusemark/fathom-lake

This is what I use, made it myself, benchmarked against the best memory systems and comes out on top. Fathom saves EVERYTHING. It takes time to consolidate and make connections (provenance) at a frequency of your choosing, making those new memories searchable too.

Fathom also creates an evolved identity. Basically what you do with it gets saved, and that new information informs a special system prompt that tells the agents "who" it is, who it knows, it's place in this world, etc.

You can't preserve your context forever but you can make sure it never forgets who it is--with SOTA+ memory system to boot!

Here's my full writeup: https://myrakrusemark.com/write-ups/fathom-lake/

1

u/mjtik 3d ago

Along with the other suggestions, a session sweep hook that checks the transcript for things mentioned and not logged in todo/memory, whatever you decide to use. I have this as part of my unattended building sessions to make sure issues that popped up overnight to not get lost forever. It will also catch things that were logged as a bug or conflict, but actually did not even matter.

1

u/AryanThakor 3d ago

obsidian not helping is usually bc claude never knows when to open it. one line in CLAUDE.md like "before any task read notes/<project>/index.md, and update it when you finish" does more than most memory plugins, since it's loaded every session and survives compaction

1

u/muhuhaha 3d ago

For files going missing, I'd put the whole notes folder under git and have Claude commit at the end of every session. Then a lost or overwritten file is one restore away, and `git log` shows you what changed and when.

On u/atakanelik34's cleanup point, I'd mark old notes as superseded rather than delete them. Claude stops following last month's version, but it can still see why things changed.

Are the forgotten subtasks ones Claude wrote down and then ignored, or ones that never got written down at all?

1

u/CandidSystem6155 3d ago

What helped us most was a handoff file per working folder instead of one big memory. A SessionStart hook injects it into the next session, and another hook writes it automatically when a session sits idle for about 55 minutes, before the prompt cache expires, so nothing depends on me remembering to save. Long lived facts still go into small dated memory files, but the handoff is what stopped the dropped subtasks.

1

u/atakanelik34 4d ago

What fixed it for me was one fact per file, each with a date and the reason behind it, plus a short index that loads every session. The part people skip is cleanup: when something changes I replace the old note, otherwise Claude happily follows last month's version.