<?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: taberfin</title>
    <description>The latest articles on DEV Community by taberfin (@taberfin).</description>
    <link>https://dev.to/taberfin</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%2F4274741%2F381713dc-fbe1-4efa-acd2-1389e819ed3f.png</url>
      <title>DEV Community: taberfin</title>
      <link>https://dev.to/taberfin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/taberfin"/>
    <language>en</language>
    <item>
      <title>How I gave Claude Code a long-term memory (and made it learn how I work)</title>
      <dc:creator>taberfin</dc:creator>
      <pubDate>Mon, 30 Nov 2026 16:39:50 +0000</pubDate>
      <link>https://dev.to/taberfin/how-i-gave-claude-code-a-long-term-memory-and-made-it-learn-how-i-work-1741</link>
      <guid>https://dev.to/taberfin/how-i-gave-claude-code-a-long-term-memory-and-made-it-learn-how-i-work-1741</guid>
      <description>&lt;p&gt;Every new Claude Code chat starts from zero. I kept re-explaining my projects, my preferences and what we decided last week. So I built a small memory system around an Obsidian vault – here's how it works.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea
&lt;/h2&gt;

&lt;p&gt;Claude Code supports &lt;strong&gt;hooks&lt;/strong&gt;: shell commands that run on events like &lt;code&gt;SessionStart&lt;/code&gt; or &lt;code&gt;Stop&lt;/code&gt;. That's all you need:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;SessionStart hook&lt;/strong&gt; → prints my rules, my profile and the last few session notes. Claude Code adds that output to the context, so every chat starts informed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rules in a &lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/strong&gt; inside the vault → tell Claude to log each working session and to update my profile whenever it learns something about me.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop hook&lt;/strong&gt; → if Claude finished without writing a session note, it reminds it once.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The part that made the difference: a profile
&lt;/h2&gt;

&lt;p&gt;Logging sessions is nice. What really changed things was a file called &lt;code&gt;About me.md&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;how detailed answers should be&lt;/li&gt;
&lt;li&gt;whether Claude should just act or ask first&lt;/li&gt;
&lt;li&gt;what I'm working on, what annoys me&lt;/li&gt;
&lt;li&gt;"observations" Claude adds itself, with a date&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Corrections ("no, always ask before changing files") go straight into the profile – and stick across every future chat.&lt;/p&gt;

&lt;h2&gt;
  
  
  Minimal version
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# ~/.claude/settings.json → hooks.SessionStart&lt;/span&gt;
cat &lt;span class="s2"&gt;"$VAULT/CLAUDE.md"&lt;/span&gt; &lt;span class="s2"&gt;"$VAULT/About me.md"&lt;/span&gt; &lt;span class="s2"&gt;"$VAULT/Overview.md"&lt;/span&gt;
ls -t &lt;span class="s2"&gt;"$VAULT/Sessions"&lt;/span&gt;/*.md &lt;span class="o"&gt;|&lt;/span&gt; head -3 &lt;span class="o"&gt;|&lt;/span&gt; xargs cat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the core. A free, MIT-licensed starter version is on GitHub: &lt;a href="https://github.com/taberfin/memoryvault-lite" rel="noopener noreferrer"&gt;https://github.com/taberfin/memoryvault-lite&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Things I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Load &lt;strong&gt;only&lt;/strong&gt; the overview + last 3 sessions, not everything – context fills up fast.&lt;/li&gt;
&lt;li&gt;If the vault is on an external drive, make the hook exit silently when it's missing.&lt;/li&gt;
&lt;li&gt;Normalize filenames (umlauts!) if you share the setup across macOS and Linux.&lt;/li&gt;
&lt;li&gt;Never put secrets in the vault: whatever the hook prints is sent to the model.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  If you don't want to build it yourself
&lt;/h2&gt;

&lt;p&gt;I packaged the full setup – profile, rules, templates, reminder hook, a safe one-command installer, PDF guide, English + German – as &lt;strong&gt;MemoryVault&lt;/strong&gt;. The first 20 buyers get 30% off with code LAUNCH: &lt;a href="https://taberfin.gumroad.com/l/memoryvault/LAUNCH" rel="noopener noreferrer"&gt;https://taberfin.gumroad.com/l/memoryvault/LAUNCH&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Bonus: a free 2-page Claude Code cheat sheet (commands, shortcuts, config files, 10 tips): &lt;a href="https://taberfin.gumroad.com/l/claude-code-cheat-sheet" rel="noopener noreferrer"&gt;https://taberfin.gumroad.com/l/claude-code-cheat-sheet&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I built this. Not affiliated with Anthropic.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;How do you handle memory with Claude Code? Curious what others do.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>obsidian</category>
      <category>productivity</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
