<?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: tanishq-khandelwal</title>
    <description>The latest articles on DEV Community by tanishq-khandelwal (@tanishqkhandelwal).</description>
    <link>https://dev.to/tanishqkhandelwal</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%2F953839%2F75a838ac-0361-429c-b0fd-7e4793b198d0.png</url>
      <title>DEV Community: tanishq-khandelwal</title>
      <link>https://dev.to/tanishqkhandelwal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tanishqkhandelwal"/>
    <language>en</language>
    <item>
      <title>My coding agent forgot everything every time I switched machines, so I built it a brain</title>
      <dc:creator>tanishq-khandelwal</dc:creator>
      <pubDate>Sat, 28 Nov 2026 09:23:19 +0000</pubDate>
      <link>https://dev.to/tanishqkhandelwal/my-coding-agent-forgot-everything-every-time-i-switched-machines-so-i-built-it-a-brain-5bpi</link>
      <guid>https://dev.to/tanishqkhandelwal/my-coding-agent-forgot-everything-every-time-i-switched-machines-so-i-built-it-a-brain-5bpi</guid>
      <description>&lt;p&gt;I spend my day across a MacBook, a couple of devpods and the odd SSH box, and I bounce between Claude Code, Cursor and Codex depending on the task.&lt;/p&gt;

&lt;p&gt;On my laptop, Claude Code is great. It knows the repo uses pnpm, that the tests need the local database, that we write conventional commits, and that it should never touch &lt;code&gt;.env&lt;/code&gt; files.&lt;/p&gt;

&lt;p&gt;Then I open a devpod. &lt;strong&gt;It knows nothing.&lt;/strong&gt; No rules, no project context, no skills. I re-explain the stack. Again. Switch to Cursor: same thing. A teammate clones the repo: same thing.&lt;/p&gt;

&lt;p&gt;The memory and rules these agents rely on live on one disk: &lt;code&gt;~/.claude&lt;/code&gt;, a &lt;code&gt;CLAUDE.md&lt;/code&gt; here, an &lt;code&gt;AGENTS.md&lt;/code&gt; there. Every new machine and every other agent starts from zero.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;&lt;a href="https://carrybrain.org" rel="noopener noreferrer"&gt;Carrybrain&lt;/a&gt;&lt;/strong&gt;: one brain for every coding agent, on every machine.&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://carrybrain.org/video/carrybrain-launch.mp4" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;carrybrain.org&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


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

&lt;h3&gt;
  
  
  🧠 Memories
&lt;/h3&gt;

&lt;p&gt;Your agents save facts as they work and recall them anywhere. Saved on the MacBook on Monday, recalled on the devpod on Thursday:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt; how do I run the tests?
● recall("run tests")
  pnpm test needs the local db
● Start the db, then pnpm test.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Recall is hybrid search (meaning + exact words), so identifiers and error messages are found too. Memories can expire, keep their earlier versions, and near-duplicates are merged.&lt;/p&gt;

&lt;h3&gt;
  
  
  🪄 Auto-capture
&lt;/h3&gt;

&lt;p&gt;When a session ends, Carrybrain can pull the lasting facts out of the conversation and save them as private memories, so the lessons stick without anyone typing &lt;code&gt;remember&lt;/code&gt;. Secrets are masked before anything leaves your machine. It's opt-in.&lt;/p&gt;

&lt;h3&gt;
  
  
  📏 Rules, layered
&lt;/h3&gt;

&lt;p&gt;Rules come in four layers that merge into one set by key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;org      secrets   Never read .env files.        🔒 locked by an admin
team     testing   Run vitest before pushing.
repo     testing   pnpm test needs the local db.  ← overrides team for this repo
you      commits   Short commit subjects.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The most specific layer wins, except company policy an admin has locked, which always wins. Every agent gets the same merged result, so Claude Code in a devpod and Cursor on your laptop follow the same conventions.&lt;/p&gt;

&lt;h3&gt;
  
  
  🧩 Skills
&lt;/h3&gt;

&lt;p&gt;Write a how-to once (release steps, a review checklist, how to add an endpoint) and every agent can use it. Carrybrain tracks which skills actually get used, so you can see what's pulling its weight.&lt;/p&gt;

&lt;h3&gt;
  
  
  👥 Teams
&lt;/h3&gt;

&lt;p&gt;Shared team memory, invites and roles, an audit log of who changed what, and keys you can make read-only or limit to one repo or team, handy for CI.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔒 Secret masking
&lt;/h3&gt;

&lt;p&gt;API keys, tokens, private keys and passwords become &lt;code&gt;[redacted:...]&lt;/code&gt; before they are saved, in memories, rules and skills.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting is one command (or one click)
&lt;/h2&gt;

&lt;p&gt;Carrybrain speaks MCP, so any MCP client can use it. For Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http carrybrain https://app.carrybrain.org/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude Code opens your browser, you approve, and it's connected. No API key to copy. The same works for claude.ai custom connectors, Cursor and VS Code.&lt;/p&gt;

&lt;p&gt;Or use the CLI, which also installs the Claude Code hooks (rules and recall injected at session start, auto-capture at session end):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i -g carrybrain
carrybrain login            &lt;span class="c"&gt;# opens your browser&lt;/span&gt;
carrybrain install claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The part I'm happiest with: &lt;strong&gt;&lt;code&gt;carrybrain login&lt;/code&gt; works over SSH.&lt;/strong&gt; It prints a link and a short code; you approve in the browser on your laptop, and the devpod is logged in. No port forwarding, no key in your clipboard.&lt;/p&gt;

&lt;p&gt;Codex, Cursor and Gemini CLI: &lt;code&gt;carrybrain install codex|cursor|gemini&lt;/code&gt;, or &lt;code&gt;carrybrain install --all --yes&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  For your own tools
&lt;/h2&gt;

&lt;p&gt;There's a REST API plus TypeScript and Python SDKs, if you want your scripts or CI to read rules or save memories:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Carrybrain&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"carrybrain-sdk"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// reads CARRYBRAIN_URL and CARRYBRAIN_KEY from the environment&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;cb&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Carrybrain&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;repo&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"github.com/acme/api"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;cb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;memories&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"how do we deploy to staging?"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Already have a &lt;code&gt;CLAUDE.md&lt;/code&gt; or &lt;code&gt;AGENTS.md&lt;/code&gt; full of rules? &lt;code&gt;carrybrain import&lt;/code&gt; brings them in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Carrybrain is at &lt;strong&gt;&lt;a href="https://carrybrain.org" rel="noopener noreferrer"&gt;carrybrain.org&lt;/a&gt;&lt;/strong&gt;: sign in with Google and connect your agent in a minute. The &lt;a href="https://carrybrain.org/docs/quick-start" rel="noopener noreferrer"&gt;quick start&lt;/a&gt; walks through it.&lt;/p&gt;

&lt;p&gt;I'd love to hear from you in the comments:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;What's the one thing you're tired of telling your agent every session?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Where does it forget the most for you: new laptops, devpods, switching agents, or teammates' machines?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'll read and reply to every comment. 🙌&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devtools</category>
      <category>productivity</category>
      <category>mcp</category>
    </item>
  </channel>
</rss>
