<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 南羽</title>
    <description>The latest articles on DEV Community by 南羽 (@nanyujun).</description>
    <link>https://dev.to/nanyujun</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4221487%2Fd46541ad-5697-4a3d-8939-8e77ce9c8deb.jpg</url>
      <title>DEV Community: 南羽</title>
      <link>https://dev.to/nanyujun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nanyujun"/>
    <language>en</language>
    <item>
      <title>Keeping AI coding agent sessions in sync across machines</title>
      <dc:creator>南羽</dc:creator>
      <pubDate>Mon, 02 Nov 2026 04:09:24 +0000</pubDate>
      <link>https://dev.to/nanyujun/keeping-ai-coding-agent-sessions-in-sync-across-machines-5h7</link>
      <guid>https://dev.to/nanyujun/keeping-ai-coding-agent-sessions-in-sync-across-machines-5h7</guid>
      <description>&lt;p&gt;I work across more than one machine, and I switch between coding agents depending on the task: Claude Code, Codex CLI, Cursor, Gemini CLI. The models keep getting better, but the context is still nailed to one laptop.&lt;/p&gt;

&lt;p&gt;Every agent stores its history differently, and locally:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code keeps CLI transcripts under &lt;code&gt;~/.claude/projects/&amp;lt;encoded-project-path&amp;gt;/&amp;lt;session-id&amp;gt;.jsonl&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Other agents have their own session directories and formats&lt;/li&gt;
&lt;li&gt;Cursor keeps chat state inside its workspace storage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Copying the project folder is not enough, because session files live outside it. Copy them to a new machine and the paths may not match either. So "continue where I left off" turns into manual file archaeology.&lt;/p&gt;

&lt;p&gt;I built AIAssets to fix that for my own workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;AIAssets is a self-hosted hub. On each machine it scans the session files of the agents it supports, indexes them, and syncs the index and session data bidirectionally through the hub on a 60-second poll. Session titles are preserved, so you can find the thread you were in. Over that index it also gives you search, share, and backup.&lt;/p&gt;

&lt;p&gt;Self-hosting is a deliberate choice: transcripts contain source code, internal URLs, and sometimes commands with credentials in them. I did not want a third-party service holding all of that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Support and current limits
&lt;/h2&gt;

&lt;p&gt;The README lists 10 agents with read/write support, including Claude Code, Codex, Cursor, and Gemini CLI. It is early software, so the limits matter more than the feature list:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;v1.0.0 ships a Windows installer only.&lt;/li&gt;
&lt;li&gt;On macOS you build the DMG from source with &lt;code&gt;pnpm run build:mac&lt;/code&gt;; it is not signed, so Gatekeeper will complain.&lt;/li&gt;
&lt;li&gt;Sync is polling, not real-time.&lt;/li&gt;
&lt;li&gt;There is no conflict UI yet. If you continue the same session on two machines, I do not have a good merge story.&lt;/li&gt;
&lt;li&gt;Agent updates change session formats, and parsers break.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The parts I am unsure about
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Project path mapping.&lt;/strong&gt; A session is tied to a working directory. If machine A uses &lt;code&gt;/Users/me/code/foo&lt;/code&gt; and machine B uses &lt;code&gt;D:\code\foo&lt;/code&gt;, restoring on B can show the session but fail to resume because the cwd does not exist. Should the hub rewrite paths, or store a logical project ID? I lean toward the latter, but it is not shipped.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Divergent branches.&lt;/strong&gt; The same session continued on two machines creates two files. Last-write-wins loses one side. A real merge of JSONL transcripts is harder than it sounds, and I would rather not fake it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Size and transport.&lt;/strong&gt; Sessions can get large. Polling the full hub every 60 seconds is fine on a LAN and wasteful over a metered connection. Incremental transfer is on the list.&lt;/p&gt;

&lt;h2&gt;
  
  
  Repo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/NanYuJun/AIAssets" rel="noopener noreferrer"&gt;https://github.com/NanYuJun/AIAssets&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you run more than one machine or more than one agent, I would rather hear which part breaks first than get a star. Issues with your setup — OS, agents, where the sessions live — are more useful than "doesn't work".&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
