r/ClaudeCode • • 1d ago

Discussion Claude seems to follow memory rules whenever it feels like it and hooks fire on everything and is a hassle. is there an in between?

10 Upvotes

so i have a whole memory setup, rules written out, why they exist, past screwups, all of it. one of them is literally "check the wiki before asking me stuff or on related keywords". claude loads it every session. and while it works most the time, there are other times i need to point it out.

today i said "my local sqlite already does this" while just brainstorming. its in my wiki. its in the routing map, the first file it should look at. claude goes "i dont know of a sqlite of yours, which one do u mean". i ask why it didnt check and its like the rule was for feature requests and this was brainstorming.

only thing that actually forces it is a hook that blocks everything til it reads the wiki. but then it fires on EVERY single thing. quick question? gate. one line edit? gate. it got so annoying i toned it back down

so its either memory that it follows when it feels like it, or a hook that makes every session a chore. First i tried hook then had to stop it as it was making the experience annoying.

anyone got a setup where memory actually sticks without me babysitting it every day or a way to make hooks feel less annoying to use for this purpose, instead of it firing on every single thing.


r/ClaudeCode • • 12h ago

Discussion for visibility/about astroturfing

1 Upvotes

r/ClaudeCode • • 12h ago

Help/Question it is possible to remap my vacuum robot xiaomi s40 ?

1 Upvotes

i mean, just for curiosity


r/ClaudeCode • • 1d ago

Discussion Anyone switch to Gemini 4 (Neon)?

548 Upvotes

I would post in an Antigravity/Gemini community, but I think there are like five of them.

What’s your experience been?


r/ClaudeCode • • 1d ago

Tips & Workflows If you're doing game dev, I highly suggest you try this

261 Upvotes

Build a dev console into your game. I did this and it's saved me so much time and frustration.

I've had 2 main pain points in developing my game. The first is testing. Yes I know about unit tests, e2e tests, etc. but in my game at least, it sometimes takes a long time to get the game to the proper state where I can test the latest changes. And of course each fix needs to be tested again, and frankly it just sucks wasting so much time getting there to find out if the fix is correct.

My solution to this was to add the ability to save game states and load them whenever I need to:

Loading a pre-saved scenario for easy testing

My game also requires drafting a team before the game can start, so I added a command to quickly start a game without having to wait through the draft, and it supports a bunch of arguments like not having timed turns, which make testing much easier once again.

Starting a game quickly, bypassing draft and map selection

The second major pain point I had was being able to record clean gameplay clips for trailers and other marketing purposes. In my game, you can control the camera, but I wanted to be able to hide the UI and "direct" the camera to move smoothly from one angle to another, so I added a recording mode that does exactly this. This lets me capture clips that feel more cinematic which I know will help the trailer turn out better.

Using hotkeys to set camera start and end point, then triggering the camera movement for clip recording

Anyway, maybe a lot of you are doing this already, but if you are struggling with the same things that I used to struggle with, I'd suggest giving this a shot. It's really helped me a lot.


r/ClaudeCode • • 12h ago

Built with Claude I made a Claude Code mod that shows your GitHub Actions status above the prompt

0 Upvotes

Tired of alt-tabbing to GitHub to see if CI went green after Claude pushed? I built a small Claude Code mod for that.

ci-status puts the latest GitHub Actions run in a band above the prompt:

✓ CI passed · build · main open run

  • Green = passed, red = failed, yellow = running/queued, dim = cancelled/skipped
  • The "open run" link jumps straight to the run on GitHub
  • Refreshes itself: every 10s while a run is in progress, every minute otherwise, after every turn, and 5s after Claude runs git push or any gh pr / gh workflow / gh run command
  • Stays hidden unless you're in a git repo with a GitHub origin and a .github/workflows folder, so it never clutters other projects
  • /ci refreshes now and prints workflow, branch, run title and link
  • ctrl+x ctrl+a collapses the band

Private repos work if you have the GitHub CLI signed in (gh auth login). Without gh it falls back to the public API, which is public repos only and polls slower to stay under the rate limit.

Install:

claude plugin install ci-status --marketplace brunolauzon/claudecode-ci-status

(Desktop app: + next to the prompt box → Plugins → Add marketplace → brunolauzon/claudecode-ci-status.)

Repo (MIT): https://github.com/brunolauzon/claudecode-ci-status

It's my first mod, so feedback and bug reports are welcome. What else would you want in a band like this?


r/ClaudeCode • • 12h ago

Tips & Workflows Superdesign and Claude code for Website layout and design

Post image
0 Upvotes

I was banging my head against a wall for most of a day trying to figure out the design and layout to best suit a website I'm putting together, wasted most of my usage then stumbled across Superdesign in desperation looking at plugins and connectors, hoping one could save me from my terrible eye for graphic design, with the free credits i got form signing up, it iterated a bunch of new layouts and options, getting me out of the hole I was stuck in and finally allowing me to be happy to push my website live. Definitely worth a look!


r/ClaudeCode • • 12h ago

Tips & Workflows Been running several Claude Code sessions in terminals. Got tired of that so built Factree, now on version 2 (the experience feels so much better & work feels more enjoyable as well).

1 Upvotes

In this workflow, now every job gets its own agent. It isn't one long session that plans, codes and then marks its own work as verified. Every step is architecturally separated out

  • Spec writer: Turns your sentence into requirements and scenarios while investigating your codebase.
  • Planner: Generates the design and tasks.
  • Builders: one per task, each with a fresh context and its own git worktree. If two want to edit the same file, one waits. Up to 6 agents run at once by default.
  • Verifiers: gets only the spec's behaviour and the running software. It's fenced off from the build's worktree and the other agents' transcripts, and it can't edit files.

So no single context has to hold the whole job. If one task fails, only the tasks that depend on it wait, and you retry that one. And "done" comes from an agent that didn't write the code. After verification a PR is auto opened.

You can try it out from here https://github.com/factree-dev/factree


r/ClaudeCode • • 1d ago

Discussion It would be hilarous if

54 Upvotes

Claude models were also internally sabotaging Anthropics own ML work and that's why we haven't seen a true successor to opus 5.5 yet.


r/ClaudeCode • • 13h ago

Tips & Workflows Running several Claude Code sessions, I'm the bottleneck. I compared 7 skills that rewrite its reports to see which let me answer faster

1 Upvotes

I usually run a few sessions at once, and Claude Code works way faster than I can read what it reports back. A lot of the time there are questions in there I just don't understand. The agent did the work, not me, so I don't have a good grip on the details, and they don't stick in my memory. And the context I need often isn't in the same reply, so I keep scrolling back through earlier replies to find it. When a report ends with "which option do you want?", I often can't answer without asking again, and one round of feedback turns into two or three. In the back-and-forth between me and the agents, I'm the slow part now.

One example. I keep my skills in a local repo and had also uploaded some to claude.ai. Claude Code told me the same skills were reaching it twice, gave me four ways to deal with it, A to D, recommended B, and asked me to pick. I couldn't pick. I did not follow the explanation.

So I tried something. I took 7 skills that are meant to make explanations easier to understand: 5 public ones (ketchup, bro, wait-what, i-have-adhd, asd-ste100) and 2 I wrote myself, which are not published. I gave every agent running a skill the same reply and the same background, so the skill would be the main thing that changed. Then I read all eight versions (the seven rewrites plus the original) and wrote down which ones helped. I've done this 5 times.

What I saw:

  • On the four-option question, the answer I could decide from was the long one, and it was from my own skill. It was also the most tedious to read: about 2,300 words against about 550 for the plain answer.
  • On a small yes/no question, I preferred ketchup's short rewrite and the plain Claude Code answer with no skill. My long skill gave me more than I needed.
  • Length should match how big the decision is.

These are the instructions behind that long answer that I didn't find in the 5 public skills. You can put them in your own CLAUDE.md:

  • Put the evidence in the answer, in enough detail that I could disagree with the recommendation.
  • For every option, say what it would actually change, and why I'm the one who has to choose.
  • Open with a table of the terms, each with an example from my own files.
  • Before sending, hand the draft to a second agent that hasn't seen the conversation and ask it to make the decision.

All four make the answer longer, and the last one costs an extra agent run.

From my own experience, it's hard to tell from a description what these skills actually do to an answer, or what it's like to read them. Me saying "this one was easier to decide from" doesn't prove much. You probably have to compare them yourself to be convinced, or to get a real feel for it. So I put three of the comparisons on one page: the question I was stuck on, all eight answers in full, and my notes. In one of the three I liked other answers better than my own skills. Link's in the first comment.

Anyone else run into this, where a report ends with a question you can't answer without asking again? Curious whether something in your CLAUDE.md fixed it for you.


r/ClaudeCode • • 19h ago

Discussion My bet: a stricter test suite catches more than a second-vendor reviewer in Claude Code

3 Upvotes

Somebody here said Astra 6.2 caught a bug Opus missed in review, and the very next comment said the same setup ate a day of usage for nothing. That's about the whole state of the pattern where Fable 5.2 plans, a lower-tier model executes and another vendor reviews the diff before merge.

My guess, and it's only a guess, is that on most repos a stricter test suite would have caught more of those bugs than an extra reviewer, and the second opinion mostly adds reading time. I can't back that up, which is the annoying part. The test I'd run: ten merged PRs where a regression or revert showed up later, ten clean ones, same review prompt on the pre-merge diff, with Fable 5.2 alone, Astra 6.2 alone, and both. Then sort what comes back into reproduced or confirmed by a test, plausible but unverified, and plain noise.

The harness is the awkward bit. Claude Code talks to Anthropic models natively, so another vendor's model means a separate tool or a gateway with an Anthropic-compatible base URL. People mention separate subscriptions, OpenRouter, GPTProto, whatever fits, and the only rule is that the review prompt stays identical. I'd also jot down refusals and early stops, since a few people said some models quit early or decline certain tasks.

The assumption nobody seems to check is that a second model's opinion counts as independent evidence, when it might just be a second opinion on the same untested diff.


r/ClaudeCode • • 13h ago

Discussion Emotional Triumph with Neon

1 Upvotes

I’m an observer on this sub, not a complainer, and I usually blame myself for any shortcomings before I would ever blame AI…. And I’ve been using AI since Siri…

Earlier this year I transitioned to AI for most bookkeeping tasks, building internal tools, etc. Fable 5 with the original harness blew me out of the water and was truly amazing. I loved that model and harness more than my own children…

Over the past 2 months I got really behind, including with invoicing because Opus / Fable with any harness, with or without any combination of skills, hooks, guards or instructions was actively changing things it should have never touched for basic upkeep and I simply couldn’t get out of the mess manually.

REAL TASKS CONTROLLED TEST

A few days ago I set up a controlled test using play-backs of my own sessions. These were my own sessions with the same files and instructions, same tasks, same environment . These results and combinations are too numerous for I list but I essentially tried Opus 5.5 & Fable 5.2 on High with various harnesses and setups (Standard, OMP, Hermes, etc)

On average:

Opus 5.5 & Fable 5.2 scored between 40-50%.

GPT / Codex: 80-90%

NEON (AGY): 💯 !! On medium or high. “One-hundred percent”.

TRIUMPH:

Gemini Neon with AGY literally caught up everything in 2 days, fixed everything that was broken that I was about to give up on , fixed every error in my books, scanned my past sessions and fixed the critical ones.

Moreover, the model works so great that I didn’t even need the tools. The amount of stuff I got done in a few days surpassed my wildest expectations, including organizing 12 years of my company’s history in a database. Seeing everything come together is honestly emotional.

We truly are living in amazing times, and part of that is knowing when it’s time for a change.

PS: I know things in here are loaded and simplified, and without evidence. Posting from my phone, but had to get this out. Sorry for bad grammar or typos


r/ClaudeCode • • 5h ago

Discussion Just realized I don't have to write my own CLAUDE.md file from scratch. just told Claude to interview me and build it

0 Upvotes

I ain’t a developer, so every time I saw people talking about configuring CLAUDE.md rules and custom output styles, I assumed I needed to know technical syntax.
Turns out you can literally just open Claude Code in a fresh project folder and say, "Ask me 10 questions about my workflow, formatting preferences, and what I’m building, then write my CLAUDE.md file for me". Having it interview me first caught a bunch of edge cases I never would have thought to write down myself.


r/ClaudeCode • • 17h ago

Built with Claude Using Claude Code to build an MCP server for a 10 year old game engine (RPG Maker)

2 Upvotes

Short write-up of a side project. RPG Maker MV/MZ keeps everything in JSON, but event commands are numeric codes, so Claude Code first helped me write a decoder, then project checks (switches set but never used, transfers into walls, missing images), then play tools that drive the real game in a headless browser.

What worked well: letting Claude Code write tests against small games with planted bugs, and having it use the play tools to check its own changes. What did not: reading raw event JSON directly, it was slow and often wrong.

The read-only version is MIT on GitHub: https://github.com/oasis-b/living-world-kit-lite

Happy to answer questions about the MCP side.


r/ClaudeCode • • 22h ago

Tips & Workflows Created tool to help you manage sessions, context/knowledge easily. Works across claude-code, codex, agy, copilot. With auto grouping in popular TUI.

5 Upvotes

Stop hoarding 20 terminal tabs—or burning tokens to context rot.
A terminal-first context & session management cockpit for AI coding CLIs, with seamless topic switching and automatic tab grouping.

The Problem: AI Sessions Are Ephemeral. Your Work Isn't.

Your reality is constant context-switching across 10–20 parallel threads. Today, running CLI agents across those threads forces you into a broken workflow:

  1. Terminal Tab Hoarding: Keeping 15 terminal windows open for days because closing a tab means losing track of which session was doing what.
  2. Manual Folder Gymnastics (mkdir & cd): Creating dummy folders just so claude --continue doesn't mix your threads together—or worse, running everything in one directory where --resume becomes an unsearchable graveyard of unnamed chats.
  3. The 4-Day Cold-Start Penalty: Coming back to a thread after 4 days of meetings, resuming a 300-line chat session, and having to re-read the entire scrollback just to remember: "What did we decide? What's done? What's still open?"
  4. Quadratic Token Bleed (O(N²)) & Context Rot: Resuming a 40-turn session reloads 80,000+ tokens of dead ends and stale tool outputs on every turn, multiplying API costs 5x while degrading model reasoning.

Shift from Ephemeral Sessions to Durable Topics

watcher gives you a single, keyboard-first terminal cockpit where Topics and Subtopics are the first-class unit of work:

  • Unlimited Topics & Subtopics in One Repo: Switch between parallel threads (watcher switch) in the same directory without mkdir gymnastics.
  • 100% Zero-Diff Steering: Switching topics only updates a gitignored .watcher/active pointer—never dirtying CLAUDE.md or AGENTS.md.
  • 1-Phrase Checkpointing: Say "checkpoint" in chat to distill MADR architectural decisions, completed [x] tasks, and next steps into topic.md, so a fresh session after /clear is up to speed on turn 1.
  • Watcher UI: See the topics, sessions, and context files preview. Manage the topics and subtopics from UI.
  • Works with popular AI tools:: Claude-Code, Codex, agy, Copilot. Easily switch between AI without losing context.
  • Full Terminal Handover + Live statusLine: Launches claude natively with zero PTY latency and nudges you in the status bar before context bloat spikes.
  • 1-Key Session Resumption (Enter) & Automatic Tab Grouping in wmux, cmux, Herdr, and tmux, to help users on different OS: Windows, Mac, Linux.

🧪 Zero-Risk Test Drive (watcher demo)

Want to explore Watcher without modifying your existing repositories or ~/.claude config?

watcher demo

watcher demo creates a disposable Watcher playground in your OS temp directory pre-populated with sample topics, subtopics, MADRs, and session previews, launches the TUI, and cleans itself up when you quit.

GitHub: https://github.com/adityats2020/watcher

Looking forward to feedback from your folks. If you have any issues, bugs - I will fix them quick. If you got ideas for features you would like to see, let me know.


r/ClaudeCode • • 13h ago

Meta Let’s see your stats

Post image
1 Upvotes

r/ClaudeCode • • 13h ago

Help/Question Does context get overloaded from total amount of tokens only, or also from the percentage of remaining window? Is 320k out of 400k any worse than 320k out of 1M?

1 Upvotes

For example if 80% of a 400k context window is used, then 320k tokens remain out of a 400k window.

The model is capable of 1 million tokens, but has degraded output towards the higher end obviously.

BUT is that bad for model output specifically and only because of the 320k used tokens? Or because of the lack of free space?

If so, does a different autocompact window have any affect on this, or is it really just a trigger, meaning that 320K used out of a 400K window, and 320 K out of a 1 M window, are the same in effect for a 1 M model?


r/ClaudeCode • • 13h ago

Help/Question Using Claude Code and Github Copilot cli on the same project, bad idea?

1 Upvotes

At work we have whatever and I use it to ask how's the weather, idc about quotas or any of this. But for personal stuff, I have a lowly Claude Pro (aka. paid trial). 5h window lasts 2h, weekly quota lasts 3 days, yada yada

I have some projects halfway done waiting for resets, thought about giving Github Copilot Pro a go to continue them since it's almost half the price for us down here. Would that work?

I get they won't share memories, but I figured I could ask them to keep handover notes when I need to swap.


r/ClaudeCode • • 17h ago

Bug / Issue Using tab to autocomplete commands inside vscode terminal

2 Upvotes

Figured I’d find answers more easily. Am I the only one experiencing vs code changing cursor focus after tabbing to autocomplete a command (or anything else, like file references using ‘@‘)? Any suggestions on how to fix?


r/ClaudeCode • • 1d ago

Discussion Your most (token) expensive mistakes from Claude

9 Upvotes

I had the core of a new project planned out in Opus 5.5 with effort set to max only, only to realize two months later (after the programming for dozens of modules had already been completed), that the core needed to be changed, meaning every single module now has to be adjusted. And the kicker? The requirements were known right from the start of the project.

These changes are currently burning through an enormous number of tokens.

What were your worst mistakes?


r/ClaudeCode • • 19h ago

Discussion Wondering if anyone has set notifications for claude?

3 Upvotes

I have all these terminal windows open doing all this stuff and I was getting distracted while waiting for it to finish so I set notifications for it so I know when things are getting handled. I was wondering if anyone was doing that as well. Does Claude has this natively already?


r/ClaudeCode • • 14h ago

Tutorial / Guide I used Claude Code agents to translate my free Rust book into 14 languages.

Post image
0 Upvotes

Repo: https://github.com/erkamyaman/rust-anything/tree/main/book

I wrote Rust for Everyone, a free beginner Rust book, and used agents to put it into 14 more languages. Here's the setup, what worked, and what didn't.

Setup, per language:

- 1 setup agent: picks the terms, UI strings and figure labels, so every translator uses the same words.

- 5 or 6 translator agents, a few chapters each.

- 1 reviewer agent that reads the whole book against the English.

- 1 second, independent reviewer that reads only the ownership and borrowing chapters and the core terms, where beginners get lost.

What kept it honest:

- A script compiles and runs every Rust example with rustc 1.97: 116 checked, 4 built as real Cargo projects, 0 failed, in all 15 editions.

- A translation lint checks that every code block, program output and compiler error is byte-identical to the English, and that headings, figures, links, tables and answer counts match. 0 failures in all 14.

- Code, commands and compiler output stay in English in every language, because that's what readers see in their own terminal.

What didn't:

- AI reviewers found real problems, but they are not a person who knows Rust. After the merge, CodeRabbit left 156 comments. Most were the same few points repeated per language, for example `main.exe` instead of `.\main.exe` on Windows, and two examples that can overflow an `i32`. Those fixes are next.

- No native speaker has reviewed any translation yet. If you read one of the 14 natively, book/REVIEWING.md says what to check first.

The book: 13 chapters, 5 appendices, predict-then-run exercises, ends with a small CLI. Free, CC BY 4.0, read on GitHub or as PDF in all 15 languages.

- English PDF: https://github.com/erkamyaman/rust-anything/blob/main/book/en/rust-for-everyone-en.pdf

- 简体中文 PDF: https://github.com/erkamyaman/rust-anything/blob/main/book/zh/rust-for-everyone-zh.pdf

Repo: https://github.com/erkamyaman/rust-anything


r/ClaudeCode • • 21h ago

Built with Claude Preparing for an interview, or learning something new for work? I open-sourced the Claude Code tool I've been using to learn by practicing: hands-on courses for your level and your machine, that you can question and fix right on the page

4 Upvotes

I have been coding for over a decade and even in the pre-LLM era, the best way to learn a new technology or a new concept was simple. Just get your hands dirty. Try it out on your machine, with enough google search and stackoverflow, you learn the ins and outs eventually.

In the LLM era, and especially since the advent of Opus 4.6, it's now much easier to learn new concepts and practice stuff. That is what I have been doing. New task at work requiring new tech? Fire up Claude Code, and build a concept learning material. Ask it to create something I can try on my machine.

For the past few months, I have gone through the typical cycle - create a personalized guide to learn a concept, do it x number of times and then realize I can turn some bits to skills, some to agents, maybe add a better book viewer, add some personalization.

A lot of times, the guide has an incorrect step, or maybe some wrong instruction not valid on your machine. I kept coming up with small solutions to it. Eventually it reached a stage where it needed less work, and has been very useful right away.

I've been using some version of it for my own learning and work stuff for months. Given the job market recently and many have been prepping for interviews, so I figured this might actually help other people too. Spent the last few weeks cleaning it up and open-sourced it. It's called fromzero.

What it does, roughly

You give it a topic, your level and your goal ("explain Redis crashes in an interview" and "set up Redis at work" become different courses). It shows you a plan, then writes in batches and stops after each one for your feedback.

It writes the course on your machine: every command really runs, versions are pinned, and the output on the page is from those runs. No more guides that break because your OS or version is different.

You read it as a book in your browser. Don't get a line? Select it and Ask. Something wrong or unclear? Flag it and hit Fix: you see the diff, approve it, and the page updates (undo if you change your mind). Ask and Fix are the bits I use the most.

How it uses Claude Code

It's all just Claude Code underneath:

  • two skills: /fromzero-guide writes a course, /fromzero-fix goes through your flags
  • three subagents (Sonnet): one runs the measurements, one does each practical from scratch exactly like a learner would, one reviews each batch
  • hooks that run a linter after edits and before Claude stops. Every output on a page has to come from a saved run, otherwise it fails.
  • each batch starts a fresh session (/clear, then run the skill again), a small plan file carries everything over
  • Ask and Fix from the page just call claude locally. Ask is read-only, Fix works in a sandboxed copy and only the diff you approve gets applied.

Stuff I learned building it

  • Starting a fresh session per batch was by far the biggest cost saving. One long session meant every batch got more expensive than the last, because Claude re-reads everything.
  • Telling the model "only show real output" didn't really work. Checking it with a linter + hooks did.
  • Having an agent actually do the practicals catches more bugs than I was expecting.

Why not just ask Claude Code directly?

You can, that's literally how I started. But I kept re-explaining the structure every time, couldn't tell which output was real, and ended up with long chats I couldn't come back to. Artifacts are great for visualising one idea, but for a whole topic I wanted a method, real labs, and something I can keep and fix.

Cost

Free, MIT License, no signup. You work on your local copy.
You need your own Claude plan. On the $20 plan a 5-lesson deep dive with labs takes a bit over two hours and around 70% of a 5-hour window, so about one per window. Writing courses needs macOS or Linux.

You can read some sample courses without installing anything to get an idea: https://fromzero.wewake.dev

Code: https://github.com/viv1/fromzero

It's been genuinely useful for me, and I'm curious whether it works for others too. Give it a topic you're learning right now and tell me how it goes. Any feedback is welcome.


r/ClaudeCode • • 14h ago

Tips & Workflows I’m building Iolaus to help AI agents keep the context behind the code

1 Upvotes

I’ve been building products with AI coding agents, and I kept hitting the same frustrating loop: explain the project, get some work done, switch tools or start a new session, then explain everything again.
Sometimes the agent would repeat work. Sometimes it would make a change that went against a decision I’d already made. And when I brought in another agent, it didn’t have the context from the first one.
Git gives developers a shared history of the code. I started wondering what the equivalent should look like when agents are doing more of the building: a place to keep the idea, decisions, tasks, and progress together so each agent has the context it needs.
That’s what I’m working on with Iolaus. You can start with an idea, organize the work into steps, and bring agents into that process with the project context attached.
I’m sharing a short demo here. I’d really value feedback from other founders and builders: Where does context get lost in your workflow today? And what would make a tool like this useful enough to keep open while you build?
If you’d like to try it, comment IOLAUS and I’ll send you the link.


r/ClaudeCode • • 14h ago

Built with Claude claude-sync: resume a Claude Code session on your other machine (rewrites the paths so --resume finds it)

1 Upvotes

I run Claude Code on a Mac and a Linux box and switch between them several times a day. claude --resume only lists sessions from the machine you're on, and copying ~/.claude/projects over doesn't work: each project's folder is named after its absolute path with every non-alphanumeric character turned into -, so /home/alice/work/shop is -home-alice-work-shop, and the paths repeat inside the session JSONL. On the Mac, Claude Code looks for -Users-alice-work-shop and finds nothing.

So I built claude-sync. It moves sessions over SSH and rsync and rewrites the paths in both the folder names and the file contents. Swapping the home covers everything under ~; projects outside it get a mapping:

[remotes.linux]
host = "linux-box"
home = "/home/alice"
>
[mappings]                # local path = path on the remote
"/Volumes/data/src" = "/data/src"

Then claude-sync push / claude-sync pull, with diff and --dry-run to see the plan first and . to sync just the project you're in. Pulls keep a mirror cache, so a pull with little to do takes about a second.

It also merges ~/.claude/history.jsonl (what ↑ and Ctrl-R recall) instead of copying it, under Claude Code's own lock.

Safety rules, since this is your session history:

  • It never deletes a session file; rsync -u, the newer file wins.
  • It won't run while Claude Code is running, since sessions are written mid-run.
  • The first pull into existing sessions offers a tarball backup.
  • It skips the temp-dir projects coding agents create (520 of my 739 project folders).
  • If a mapping is ambiguous, it stops instead of guessing.

The gap it can't close: if the same session gets new turns on both machines between syncs, the newer file wins. Sync before you switch, or resume with --fork-session.

It started as claude-hop, a Python tool by SeiduTakizawa on GitHub; I rebuilt it in TypeScript on Bun with a pull cache and stricter merge rules. MIT, macOS and Linux. If you already use claude-hop, claude-sync import takes its config.

Install: mise use -g github:feniix/claude-sync

Repo: https://github.com/feniix/claude-sync Write-up: https://feniix-hq.net/blog/claude-sync/?utm_source=reddit