<?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: Abhinav Jha</title>
    <description>The latest articles on DEV Community by Abhinav Jha (@abhinav_jha_0514af68d2126).</description>
    <link>https://dev.to/abhinav_jha_0514af68d2126</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%2F4273898%2Fd0a511c9-11dd-47f4-a288-3b9ccb809640.png</url>
      <title>DEV Community: Abhinav Jha</title>
      <link>https://dev.to/abhinav_jha_0514af68d2126</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abhinav_jha_0514af68d2126"/>
    <language>en</language>
    <item>
      <title>The file I make every AI read first</title>
      <dc:creator>Abhinav Jha</dc:creator>
      <pubDate>Mon, 30 Nov 2026 09:57:44 +0000</pubDate>
      <link>https://dev.to/abhinav_jha_0514af68d2126/the-file-i-make-every-ai-read-first-35j4</link>
      <guid>https://dev.to/abhinav_jha_0514af68d2126/the-file-i-make-every-ai-read-first-35j4</guid>
      <description>&lt;p&gt;Every time I open a repo I have not touched in a while, I lose the first twenty minutes.&lt;/p&gt;

&lt;p&gt;Not to a bug. To three simple questions. What is this project. Why does it exist. Whom is it for.&lt;/p&gt;

&lt;p&gt;The answers are never in one place. They sit across a README that drifted, a folder structure that made sense once, and commits from a version of me that did not write anything down. So I dig through the codebase to rebuild a picture I already had once.&lt;/p&gt;

&lt;p&gt;My AI has the same problem, worse. Every session starts blind. Claude opens my repo and guesses. Sometimes it guesses right. Sometimes it builds a confident, clean, wrong thing, and I pay for the guess.&lt;/p&gt;

&lt;p&gt;So I made the answer a file.&lt;/p&gt;

&lt;h3&gt;
  
  
  heart.lock
&lt;/h3&gt;

&lt;p&gt;heartlock is a tiny npm package. It puts one small file, &lt;code&gt;heart.lock&lt;/code&gt;, at the root of a repo. The file answers the three questions, one line each:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"what"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"File sharing with a 6-letter code. No accounts. Files delete in 24 hours."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"why"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Sending a file to another device should take ten seconds, not a signup."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"whom"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Anyone moving a file between two screens, right now."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is drop, one of my own projects, in three lines. A human writes the lines. A human freezes them. After the freeze, the file does not change when tools change, when the team changes, or when a new AI session starts. Every session, mine or the machine's, reads the same three lines first.&lt;/p&gt;

&lt;p&gt;The commands are small on purpose:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;npx heartlock init&lt;/code&gt; writes a starter heart.lock and asks the three questions.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;heart check&lt;/code&gt; tells you if a repo has a heart and if it is valid.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;heart freeze&lt;/code&gt; locks the lines under a human name and date.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;heart card&lt;/code&gt; renders the heart as a small card you can put in a README.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;heart drift&lt;/code&gt; asks an AI if the code still matches the heart. This one needs your own API key.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The alien repo test
&lt;/h3&gt;

&lt;p&gt;The moment that sold me was not my own code. It was an old repo I had written two years ago and half forgotten. I froze a heart into it after reading it once, slowly. A week later I opened it again with a fresh AI session. The agent read three lines and started in the right direction at once. No digging. No wrong first guess.&lt;/p&gt;

&lt;p&gt;Now scale that to a repo you have never seen at all. A client's codebase. A handover. An open-source project you want to judge in one minute. If it carries a heart, you know what it is in seconds. If it does not, that absence also tells you something.&lt;/p&gt;

&lt;h3&gt;
  
  
  What five days looked like
&lt;/h3&gt;

&lt;p&gt;heartlock went live on 25 November. Product Hunt followed on the 26th. npm shows 516 downloads in the first five days. Most of that number landed on day one, which is mirrors and scanners, and I do not trust it. The part I trust is the shape after: 8 to 25 downloads a day, steady, with no ads and no push behind them.&lt;/p&gt;

&lt;p&gt;Four of my own projects carry a frozen heart today: heartlock itself, drop, my homepage, and the content engine that runs my two YouTube channels. There is also Beating, a small directory at heart.zcurv.com that lists projects with a heart. Any maker can add theirs with a pull request.&lt;/p&gt;

&lt;h3&gt;
  
  
  Try it in thirty seconds
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx heartlock init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Answer three questions. Freeze the file. Then give your AI one line before the next task:&lt;/p&gt;

&lt;p&gt;"Read heart.lock first and tell me what this project is, why it exists, and whom it is for. Then start."&lt;/p&gt;

&lt;p&gt;If the answer matches your intent, your agent now starts where you start. If it does not, the file is wrong, and fixing three lines is cheaper than fixing a codebase that drifted.&lt;/p&gt;

&lt;p&gt;The repo is open: github.com/abhinav-official/heart. I read every issue. If you freeze a heart into your project, I want to hear what the first session with it felt like.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>devtools</category>
      <category>cli</category>
    </item>
  </channel>
</rss>
