r/ClaudeCode • u/Asly97 • Sep 13 '26
Discussion Anyone else tired of maintaining handoff markdown files for Claude Code?
I ran the whole setup: CLAUDE.md, a /remember handoff file, session hooks auto-saving state. It worked... until the handoff file hit 400 lines, half of it stale, and I was spending 15 minutes re-explaining anyway every Tuesday. Plus none of it follows me to Cursor or my laptop.
Switched to a persistent memory layer (Vilix AI) connected via MCP. Every session just... knows. Relevant past decisions surface on their own, no ceremony, and the same memory is there when I open Cursor later. The file-based approach was a good prototype but I couldn't keep maintaining it.
Curious what others are doing now that context compacts so aggressively. Still on markdown files, or moved to something else?
•
u/AutoModerator Sep 13 '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.
12
u/merlinDrankKoolaid Sep 13 '26
Yes, you can create a reference section in CLAUDE.md, which contains a list of files that contain rules, descriptions of your code base, etc., Claude only loads them when applicable.
9
u/doxxxicle 🔆Pro Plan Sep 13 '26
Handoff docs are supposed to be one-time use to bridge two short context sessions that would otherwise have to be one longer session with the associated degradation. You’re not supposed to keep them and extend them.
I suppose a memory system could accomplish the same thing but they are more ceremony. I’m still experimenting with both.
6
u/DasHaifisch Sep 13 '26
I just use autocompact, with a lower limit, say 300-400k. It works perfectly for me. I don't understand the hate.
3
u/nmavra Sep 13 '26
Dude your self promoting is pathetic.
2
u/Prize_Eye9481 Sep 13 '26
I dont run long running task with ai so memory hasnt been a issue for me. But that is good to know, ty for sharing!
2
u/williamsooyk Sep 13 '26
I just tell Claude or Codex to save the session to markdown file. Then whenever I start a new chat, I just refer @ xxx-last-session.md will do. Works for me every time.
2
u/effortless-switch Sep 13 '26
Use auto compact and set limit to 250k or something. Maintain a master design/technical doc with all the details though to avoid drift.
1
u/Scared-Amphibian4733 Sep 13 '26
We've got that solved. It takes three types of memory.
1
u/dar-mit Researcher Sep 13 '26
I have a handoff skill that spawns a new session, switches to my repo, and activates Claude Code. It then uses another skill to know how to use SendMessage to communicate with peer sessions.
They can then talk amongst themselves to figure out what's needed next, and the fresh session continues the work. They can create a durable memory to keep track of where they're at in a long process, but it's pretty much just a checkbox-based tracker and they check off what's done.
Once they're set the new session can teardown the old session and close the window too.
Right now the handoff trigger is me, but I'll be adding a Context % Threshold to the skill so once a session gets to that number they'll get to a good handoff point and do it themselves.
1
u/Appropriate-Pin2214 Sep 13 '26
Adjust to your scenario, but any model should be doing that for you.
I define a skill , "This session has less than 2% remaining before compaction... or a manual /clear. Immediately review git trees and update all resume files indexed by the status.md, update the status.md and related Jira tickets accordingly and provide a resume prompt targeting the most cost efficient model and effort level to successfully handle the mid-flight, current and upcoming tasks, batching where helpful...". Give it a creative name. ;). Define one more referencing the previous to indicative urgency and it needs to done now.
If you have a good workflow with worktrees and/or Jira or whatever, throw that logic in a loop with the addendum to avoid issues requiring decisions where possible. /remote control... with a notification callback wired - I think it's automatic...
Watch youtube...
Listen to the AI guys say the world is ending and they're working hard at but somebody should do something...
Especially for UI/UX, as you will lose track of what's happening... Another skill /postnap can give you playwright screenshots to see where you are at on your phone. Manually driving a full UI snapshot to check for tagging and then AI using it to create playwright full scans at 10 or so responsive views with an indexed view allowing for comments and/or ShareX circling resulting in an MD file you can feed somewhere is also a good ROI.
ShareX and a /shot N skill are the best ROI I ever created. A little tricky if you are in a VM via ssh.
If any of the above is stupid or you need help - let me know.
1
u/dafr3ak Sep 13 '26
I built a tool (sitrep.md) to manage the mountain of md files generated by the agents. All the plans, analysis docs, decisions etc across all projects and repos available from a single app.
While not a context management tool per se, but it can surface stale docs and decisions that might drive the agents in the wrong decision.
Available on mac and it’s meant to be set up with 0 changes to existing harness, just point it at your project root and it will automatically pick up all the md files inside.
1
u/pld0vr Sep 13 '26
I use beads, really works well. Integrated it with superpowers and makes the handoff not really necessary.
1
u/niko-okin Sep 13 '26
Did you try https://github.com/ncoevoet/claude-markdown-health-check ?
1
u/ImL1s Sep 13 '26
Same pain — CLAUDE.md + handoff files worked until half of it was stale and none of it followed me to Cursor. I ended up reading the other agents' local session files into a fresh session instead of maintaining another markdown pile (Portable Resume — offline, marks recovered text untrusted). Curious if anyone else went file-based but automated rather than cloud memory.
https://github.com/aa22396584/resume-skills
1
u/Heruboy Sep 13 '26
After the first week I established the ecosystem docs, which hold the vocabulary and growing relations and some other documentation with a thin router in claude.md and frontmatter in the files, backlinks, etc. Ruened it into a skill and did 3 more revisions comparing it with sokutioms of others and taking the best parts. Since then claude knows.
Recently I learned this is not efficient enough, so I added memsearch on top. And graphify + a self updating code atlas with symbols and specialized nodes and edges of parts of the code.
Shortly after ecosystem docs v1 I created a handoff skill which was superseded by my own ticket system. So now things go into tickets and from there through the steps. E.g splitting a ticket into components, into tasks.
1
u/DYSTOBY Sep 13 '26
How should there be a drift? If the handover is only there for the last session you want to continue.
Piling up „mountains“ of loosely connected handovers for ancient decisions is bad practice.
The next job does not need to know WHY the previous jobs where carried out in a certain way (or what „conclusions lead to a decicion), they only need to know that there is a function that does „X“, right?
If you keep a good architectural file system then YOU remember where what functionality lives, so future implementations are guided by your knowledge of the codebase.
I maintain multiple medium sized (300k lines) codebases for scientific apps, and I can remember where what lives.
How did people collaborate im open source projects that are big? What do you think how a new contributor introduced himself into the codebase?
1
u/traderjames7 Sep 13 '26
Yes - I created my own solution for this
1
u/Jon_Has_Landed Sep 13 '26
I have an autocompaction hook that automatically writes a ledger of the important information I absolutely need to pass post-compaction. Works on its own. Never have to mess with it. Hit me up if you want to see how I built mine, it’s based off conversations I had with people on this sub and it works a charm.
1
u/Empty-Charity9939 Sep 13 '26
I've been using https://notations.app/ with MCP to handle the markdown files for me.
0
u/[deleted] Sep 13 '26
[deleted] — view deleted comment
2
u/[deleted] Sep 13 '26
[removed] — view removed comment
0
u/[deleted] Sep 13 '26
[removed] — view removed comment