Show HN: Ccgs – Collaborative Claude Code sessions, stored in Git branches (github.com)
- Session files carry the author's absolute paths. On pull, ccgs rewrites the working dir back to your path so resume actually works — surgically editing only the structural cwd field, not a blind find-and-replace that would happily corrupt the transcript.
- Everything goes through git plumbing (hash-object/commit-tree/update-ref) against a throwaway index. It never touches your working tree, index, or current branch, and it's fine with a dirty tree. It will not git checkout something behind your back.
To try it without installing: `npx claude-git-sessions`. This also incidentally allows you to move a directory and carry the claude code transcripts with it (just push first, then move the directory, then pull)
IMPORTANT CAVEAT: Unless you have a very good security hygiene, your Claude Code sessions are likely full of sensitive information such as environment secrets. Use with caution and avoid using on public repositories. Branches used by ccgs are prefixed by `@ccgs/` so you can easily filter them out.
This project was written by and with Claude Code. This Show HN was not.
(Reposted with URL fixed)
4 comments
[ 2.5 ms ] story [ 23.1 ms ] threadWhat this does though is make that visible. If someone partakes in that bad practice, then the secrets are already sitting in the transcripts on their laptop - this just moves them somewhere shared and permanent. Maybe that's enough to discourage the practice, idk. Still, not strictly your problem, but an interesting one nonetheless.
I'd love a middle layer that preserves enough state to resume and debug while aggressively quarantining obvious secret classes and high-risk blobs. Right now the tradeoff is basically perfect replayability versus shareability, and it feels like there should be a useful middle ground there.