<?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: VANSH ARORA</title>
    <description>The latest articles on DEV Community by VANSH ARORA (@vansharora21).</description>
    <link>https://dev.to/vansharora21</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%2F3977293%2Fc5c372d4-6394-447c-b24e-985f05573fc4.png</url>
      <title>DEV Community: VANSH ARORA</title>
      <link>https://dev.to/vansharora21</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vansharora21"/>
    <language>en</language>
    <item>
      <title>Looping vs Prompting: Why I Stopped Writing Better Prompts and Started Building Better Context</title>
      <dc:creator>VANSH ARORA</dc:creator>
      <pubDate>Mon, 29 Jun 2026 00:29:00 +0000</pubDate>
      <link>https://dev.to/vansharora21/looping-vs-prompting-why-i-stopped-writing-better-prompts-and-started-building-better-context-23nj</link>
      <guid>https://dev.to/vansharora21/looping-vs-prompting-why-i-stopped-writing-better-prompts-and-started-building-better-context-23nj</guid>
      <description>&lt;p&gt;I used to think the problem was my prompts.&lt;/p&gt;

&lt;p&gt;Every time an LLM lost track of what I was building mid-session, I'd rewrite the prompt. Add more detail. Be more specific about the architecture. Paste more code. The model would snap back on track — for a while — and then drift again.&lt;/p&gt;

&lt;p&gt;After months of this, I finally diagnosed the real problem: I was prompting when I should have been looping.&lt;/p&gt;

&lt;p&gt;The difference nobody talks about&lt;/p&gt;

&lt;p&gt;Prompting is a one-shot act. You write a request, get a response, and start fresh next time. The model has no memory of what came before unless you manually re-paste it. Every new conversation is a blank slate.&lt;/p&gt;

&lt;p&gt;Looping is a different mental model entirely. Instead of treating each request as isolated, you maintain a persistent, structured snapshot of your project that travels with every context window. The model isn't starting from zero — it's continuing from a known state.&lt;/p&gt;

&lt;p&gt;That distinction sounds small. It isn't.&lt;/p&gt;

&lt;p&gt;Why prompting alone breaks at scale&lt;/p&gt;

&lt;p&gt;Here's a scenario most of you have hit:&lt;/p&gt;

&lt;p&gt;You start a session, paste your codebase overview, explain the architecture&lt;br&gt;
The model gives great answers for 20 minutes&lt;br&gt;
Context fills up. You start a new session.&lt;br&gt;
You forget to re-explain something. The model suggests a refactor that conflicts with a decision you made two sessions ago.&lt;br&gt;
You spend 15 minutes debugging something that wasn't broken — you just lost state.&lt;/p&gt;

&lt;p&gt;This is context drift. And no prompt, however well-crafted, fully solves it. Because prompting is fighting the symptom. The disease is that there's no single source of truth the model can always reference.&lt;/p&gt;

&lt;p&gt;Looping: what it actually means&lt;/p&gt;

&lt;p&gt;Looping means your project has a living document — call it a snapshot, a context file, a manifest — that gets updated as the project evolves and is automatically included whenever you start an AI session.&lt;/p&gt;

&lt;p&gt;Instead of asking:&lt;/p&gt;

&lt;p&gt;"Here's my project, it does X, the architecture is Y, now help me with Z"&lt;/p&gt;

&lt;p&gt;You just ask:&lt;/p&gt;

&lt;p&gt;"Help me with Z"&lt;/p&gt;

&lt;p&gt;Because the model already knows X and Y. They're in the loop.&lt;/p&gt;

&lt;p&gt;The loop is closed. Context is continuous. Drift disappears.&lt;/p&gt;

&lt;p&gt;This is what I built TokenCap to solve&lt;/p&gt;

&lt;p&gt;TokenCap is an open-source CLI + VS Code extension that generates a TOKENCAP.md — a clean, AI-optimized snapshot of your entire codebase.&lt;/p&gt;

&lt;p&gt;It's your looping artifact. One file. Every AI tool reads it. You attach it once per session and stop re-explaining your architecture from scratch.&lt;/p&gt;

&lt;p&gt;But the original TokenCap was still prompt-adjacent: it gave you better input for your prompt. The snapshot was static. Useful, but not truly looping.&lt;/p&gt;

&lt;p&gt;TokenCap v1.3.0 — The Task Intelligence Layer&lt;/p&gt;

&lt;p&gt;This is where v1.3.0 changes everything.&lt;/p&gt;

&lt;p&gt;v1.3.0 ships the Task Intelligence Layer — the first version of TokenCap that doesn't just snapshot what your code is, but tracks what you're doing with it.&lt;/p&gt;

&lt;p&gt;Here's what's new:&lt;/p&gt;

&lt;p&gt;🔁 Task-Aware Snapshots&lt;/p&gt;

&lt;p&gt;TOKENCAP.md now includes an active task context block — what you're currently building, what decisions have been made, and what's in-progress. When you start a new AI session, the model knows not just your architecture, but your intent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Active Task Context
&lt;/h2&gt;

&lt;p&gt;Current task: Refactor auth middleware to support OAuth2&lt;br&gt;
Status: In progress&lt;br&gt;
Last decision: Using &lt;code&gt;passport-oauth2&lt;/code&gt;, rejected &lt;code&gt;node-oauth2-server&lt;/code&gt; (too low-level)&lt;br&gt;
Blockers: None&lt;br&gt;
Next steps: Wire up callback route, write integration test&lt;/p&gt;

&lt;p&gt;🔂 Session Continuity Blocks&lt;/p&gt;

&lt;p&gt;Between sessions, TokenCap generates a continuity block — a brief structured summary of what happened, what changed, and where you left off. It's appended to your TOKENCAP.md automatically. No manual note-taking.&lt;/p&gt;

&lt;p&gt;📋 Decision Logging&lt;/p&gt;

&lt;p&gt;Every significant architectural decision you flag during a session gets captured as a structured entry. Future sessions (and future teammates) can see why something was built the way it was, not just how.&lt;/p&gt;

&lt;p&gt;🔃 Loop Mode (CLI)&lt;/p&gt;

&lt;p&gt;bashtokencap --loop&lt;/p&gt;

&lt;p&gt;Loop Mode keeps TOKENCAP.md in sync in the background as you work. File changes, new decisions, task completions — the snapshot stays current without you lifting a finger.&lt;/p&gt;

&lt;p&gt;The mental model shift&lt;/p&gt;

&lt;p&gt;Here's the clearest way I can put it:&lt;/p&gt;

&lt;p&gt;PromptingLoopingYou explain context every sessionContext travels with youModel starts fresh each timeModel continues from known stateDrift is inevitableDrift is structurally preventedBetter prompts = marginal gainsBetter loops = compounding gains&lt;/p&gt;

&lt;p&gt;Prompting is a skill. Looping is infrastructure.&lt;/p&gt;

&lt;p&gt;You can keep getting better at prompting. Or you can stop losing state between sessions entirely.&lt;/p&gt;

&lt;p&gt;Try it&lt;/p&gt;

&lt;p&gt;bashnpm install -g tokencap&lt;br&gt;
tokencap&lt;/p&gt;

&lt;p&gt;The CLI works with any codebase. The VS Code extension generates and updates your TOKENCAP.md from inside the editor. Both are free and open source.&lt;/p&gt;

&lt;p&gt;v1.3.0 is launching soon. If you want to be part of the early access, drop a comment or find me on GitHub.&lt;/p&gt;

&lt;p&gt;npm: npmjs.com/package/tokencap&lt;/p&gt;

&lt;p&gt;If this resonated — or if you've been fighting context drift in your own workflow — I'd genuinely love to hear how you've been handling it. What's your current strategy between AI sessions?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>TokenCap v1.1.0: Teaching AI How to Engineer, Not Just Understand Code</title>
      <dc:creator>VANSH ARORA</dc:creator>
      <pubDate>Sun, 28 Jun 2026 19:36:27 +0000</pubDate>
      <link>https://dev.to/vansharora21/tokencap-v110-teaching-ai-how-to-engineer-not-just-understand-code-3f0p</link>
      <guid>https://dev.to/vansharora21/tokencap-v110-teaching-ai-how-to-engineer-not-just-understand-code-3f0p</guid>
      <description>&lt;p&gt;Most AI tooling today focuses on one problem:&lt;/p&gt;

&lt;p&gt;How do we give the model better context?&lt;/p&gt;

&lt;p&gt;That's an important problem, and it's exactly what TokenCap has been solving through repository intelligence.&lt;/p&gt;

&lt;p&gt;But after spending months using AI coding agents every day, I realized something.&lt;/p&gt;

&lt;p&gt;Context isn't where most failures happen anymore.&lt;/p&gt;

&lt;p&gt;Even after an AI understands the repository, it still:&lt;/p&gt;

&lt;p&gt;Expands task scope.&lt;br&gt;
Rewrites unrelated code.&lt;br&gt;
Skips verification.&lt;br&gt;
Loops on the same idea.&lt;br&gt;
Declares success too early.&lt;/p&gt;

&lt;p&gt;These aren't intelligence problems.&lt;/p&gt;

&lt;p&gt;They're execution problems.&lt;/p&gt;

&lt;p&gt;Repository Intelligence vs Execution&lt;/p&gt;

&lt;p&gt;Repository Intelligence answers:&lt;/p&gt;

&lt;p&gt;What exists inside this project?&lt;/p&gt;

&lt;p&gt;Execution answers:&lt;/p&gt;

&lt;p&gt;How should work proceed?&lt;/p&gt;

&lt;p&gt;Those are two different problems.&lt;/p&gt;

&lt;p&gt;TokenCap v1.1.0 introduces the second half.&lt;/p&gt;

&lt;p&gt;Execution Contract&lt;/p&gt;

&lt;p&gt;Running:&lt;/p&gt;

&lt;p&gt;tokencap agent --execution&lt;/p&gt;

&lt;p&gt;generates an Execution Contract that accompanies the Self-Loading Universal Context Layer.&lt;/p&gt;

&lt;p&gt;Instead of giving AI more information, it gives AI a structured engineering workflow.&lt;/p&gt;

&lt;p&gt;It includes:&lt;/p&gt;

&lt;p&gt;Execution State&lt;br&gt;
Engineering Principles&lt;br&gt;
Decision Framework&lt;br&gt;
Execution Ladder&lt;br&gt;
Scope Tracking&lt;br&gt;
Verification Rules&lt;br&gt;
Change Classification&lt;br&gt;
Recovery Mode&lt;br&gt;
Scope Drift Detection&lt;/p&gt;

&lt;p&gt;This is probably my favorite feature.&lt;/p&gt;

&lt;p&gt;AI agents naturally expand work.&lt;/p&gt;

&lt;p&gt;A simple login fix slowly becomes:&lt;/p&gt;

&lt;p&gt;Authentication → Middleware → Database → Analytics.&lt;/p&gt;

&lt;p&gt;The Execution Contract continuously asks:&lt;/p&gt;

&lt;p&gt;Are you still solving the user's original problem?&lt;/p&gt;

&lt;p&gt;If the scope expands, the AI must explain why before continuing.&lt;/p&gt;

&lt;p&gt;Minimal Solution First&lt;/p&gt;

&lt;p&gt;One habit good engineers have is avoiding unnecessary code.&lt;/p&gt;

&lt;p&gt;Before writing anything new, TokenCap encourages AI to check:&lt;/p&gt;

&lt;p&gt;Configuration&lt;br&gt;
Existing utilities&lt;br&gt;
Existing components&lt;br&gt;
Existing services&lt;br&gt;
Installed dependencies&lt;br&gt;
Native platform features&lt;br&gt;
Existing repository patterns&lt;/p&gt;

&lt;p&gt;Only after exhausting those options should new code be written.&lt;/p&gt;

&lt;p&gt;Confidence Rating&lt;/p&gt;

&lt;p&gt;"Fixed."&lt;/p&gt;

&lt;p&gt;We've all seen it.&lt;/p&gt;

&lt;p&gt;Instead, the Execution Contract encourages AI to produce a verification report that includes build, test, lint status, and an explicit confidence rating before claiming success.&lt;/p&gt;

&lt;p&gt;Recovery Mode&lt;/p&gt;

&lt;p&gt;Rather than silently retrying forever, the AI documents:&lt;/p&gt;

&lt;p&gt;Current hypothesis&lt;br&gt;
Previous attempts&lt;br&gt;
Remaining unknowns&lt;br&gt;
Recommended next step&lt;/p&gt;

&lt;p&gt;This makes debugging far more transparent for both developers and the model.&lt;/p&gt;

&lt;p&gt;The Goal&lt;/p&gt;

&lt;p&gt;I'm not trying to make AI smarter.&lt;/p&gt;

&lt;p&gt;I'm trying to make AI behave more like a disciplined software engineer.&lt;/p&gt;

&lt;p&gt;Repository Intelligence tells AI what exists.&lt;/p&gt;

&lt;p&gt;Execution Contract tells AI how to work.&lt;/p&gt;

&lt;p&gt;Together, they form TokenCap's approach to AI-assisted development.&lt;/p&gt;

&lt;p&gt;This is just v1.1.0, and there's still plenty more to build. But I think the future of AI coding isn't only about adding more context—it's also about improving the engineering process itself.&lt;/p&gt;

&lt;p&gt;Try TokenCap&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://tokencap.vansharora.app" rel="noopener noreferrer"&gt;https://tokencap.vansharora.app&lt;/a&gt;&lt;br&gt;
NPM: &lt;a href="https://www.npmjs.com/package/tokencap" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/tokencap&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>softwareengineering</category>
      <category>tooling</category>
    </item>
    <item>
      <title>Stop Teaching Every New AI Your Codebase</title>
      <dc:creator>VANSH ARORA</dc:creator>
      <pubDate>Fri, 26 Jun 2026 06:27:31 +0000</pubDate>
      <link>https://dev.to/vansharora21/stop-teaching-every-new-ai-your-codebase-fde</link>
      <guid>https://dev.to/vansharora21/stop-teaching-every-new-ai-your-codebase-fde</guid>
      <description>&lt;p&gt;Every AI coding session starts the same way.&lt;/p&gt;

&lt;p&gt;You open a new chat.&lt;/p&gt;

&lt;p&gt;Then you spend the next few minutes explaining your project.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Here's the architecture.&lt;/li&gt;
&lt;li&gt;These are the important folders.&lt;/li&gt;
&lt;li&gt;Authentication works like this.&lt;/li&gt;
&lt;li&gt;Don't touch this file.&lt;/li&gt;
&lt;li&gt;We use services instead of controllers.&lt;/li&gt;
&lt;li&gt;Database access goes through Prisma.&lt;/li&gt;
&lt;li&gt;Here's how the payments flow works.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Only after all of that does the actual work begin.&lt;/p&gt;

&lt;p&gt;Then you switch to another tool.&lt;/p&gt;

&lt;p&gt;Or start another session.&lt;/p&gt;

&lt;p&gt;Or come back tomorrow.&lt;/p&gt;

&lt;p&gt;And you do it all over again.&lt;/p&gt;

&lt;p&gt;The strange part is that nothing about the repository changed.&lt;/p&gt;

&lt;p&gt;The knowledge already exists.&lt;/p&gt;

&lt;p&gt;It's just trapped inside the developer's head.&lt;/p&gt;

&lt;h2&gt;
  
  
  We solved package management.
&lt;/h2&gt;

&lt;p&gt;We solved version control.&lt;/p&gt;

&lt;p&gt;We solved dependency management.&lt;/p&gt;

&lt;p&gt;But we still haven't solved &lt;strong&gt;project knowledge&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Every repository already contains enough information to describe itself:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Its architecture&lt;/li&gt;
&lt;li&gt;Folder conventions&lt;/li&gt;
&lt;li&gt;Dependency graph&lt;/li&gt;
&lt;li&gt;High-risk areas&lt;/li&gt;
&lt;li&gt;Feature boundaries&lt;/li&gt;
&lt;li&gt;Coding rules&lt;/li&gt;
&lt;li&gt;Critical files&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Yet every new tool has to rediscover that knowledge from scratch.&lt;/p&gt;

&lt;p&gt;That's wasted computation.&lt;/p&gt;

&lt;p&gt;More importantly, it's wasted developer time.&lt;/p&gt;

&lt;h2&gt;
  
  
  The repository should carry its own knowledge.
&lt;/h2&gt;

&lt;p&gt;That idea became the foundation for TokenCap.&lt;/p&gt;

&lt;p&gt;Instead of generating prompts, TokenCap builds a persistent knowledge layer alongside your repository.&lt;/p&gt;

&lt;p&gt;A knowledge layer that explains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How the project is structured&lt;/li&gt;
&lt;li&gt;What matters&lt;/li&gt;
&lt;li&gt;What should never change&lt;/li&gt;
&lt;li&gt;Where specific features live&lt;/li&gt;
&lt;li&gt;Which files belong together&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once that knowledge exists, every new session starts from understanding instead of discovery.&lt;/p&gt;

&lt;h2&gt;
  
  
  v1.0.0
&lt;/h2&gt;

&lt;p&gt;With v1.0.0, TokenCap generates a self-loading context layer for your repository. It creates an &lt;code&gt;AGENTS.md&lt;/code&gt; entry point and supporting project intelligence files so tools can discover the project's structure automatically rather than relying on repeated manual explanations.&lt;/p&gt;

&lt;p&gt;The important part isn't the files themselves.&lt;/p&gt;

&lt;p&gt;It's the shift in thinking.&lt;/p&gt;

&lt;p&gt;Instead of teaching every new tool about your project...&lt;/p&gt;

&lt;p&gt;Teach the repository once.&lt;/p&gt;

&lt;p&gt;Everything else should learn from it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where I think this is going
&lt;/h2&gt;

&lt;p&gt;I don't think the future of software development is writing longer prompts.&lt;/p&gt;

&lt;p&gt;I think repositories will become self-describing.&lt;/p&gt;

&lt;p&gt;A repository won't just contain source code.&lt;/p&gt;

&lt;p&gt;It will also contain its architecture, conventions, boundaries, risks, and accumulated knowledge in a format that any tool can understand.&lt;/p&gt;

&lt;p&gt;Code tells us &lt;strong&gt;what&lt;/strong&gt; the software does.&lt;/p&gt;

&lt;p&gt;Project intelligence explains &lt;strong&gt;how&lt;/strong&gt; it should evolve.&lt;/p&gt;

&lt;p&gt;That's the direction I'm building toward with TokenCap.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;TokenCap v1.0.0 is now live.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🌐 &lt;a href="https://tokencap.vansharora.app" rel="noopener noreferrer"&gt;https://tokencap.vansharora.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;📦 &lt;a href="https://www.npmjs.com/package/tokencap" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/tokencap&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>programming</category>
      <category>tooling</category>
    </item>
    <item>
      <title>Stop Dumping Your Entire Repository Into AI</title>
      <dc:creator>VANSH ARORA</dc:creator>
      <pubDate>Wed, 17 Jun 2026 18:09:44 +0000</pubDate>
      <link>https://dev.to/vansharora21/stop-dumping-your-entire-repository-into-ai-3f9p</link>
      <guid>https://dev.to/vansharora21/stop-dumping-your-entire-repository-into-ai-3f9p</guid>
      <description>&lt;p&gt;One of the strangest workflows in modern software development looks like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ask ChatGPT a question.&lt;/li&gt;
&lt;li&gt;Realize it doesn't have enough context.&lt;/li&gt;
&lt;li&gt;Copy a few files.&lt;/li&gt;
&lt;li&gt;Add architecture notes.&lt;/li&gt;
&lt;li&gt;Paste recent changes.&lt;/li&gt;
&lt;li&gt;Explain what you're trying to do.&lt;/li&gt;
&lt;li&gt;Hope you included the right information.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The problem isn't the AI.&lt;/p&gt;

&lt;p&gt;The problem is context retrieval.&lt;/p&gt;

&lt;p&gt;After building TokenCap's Knowledge Graph, Debug Handoff, Change Intelligence, and Context Packing systems, I realized something:&lt;/p&gt;

&lt;p&gt;We had become very good at generating context.&lt;/p&gt;

&lt;p&gt;We were still terrible at finding it.&lt;/p&gt;

&lt;p&gt;That's what led to &lt;strong&gt;TokenCap v0.7 — Smart Retrieval Engine&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Question
&lt;/h2&gt;

&lt;p&gt;Instead of asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Which files should I send to the AI?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What if you could simply ask:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tokencap ask &lt;span class="s2"&gt;"How does authentication work?"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and let the tool figure out the rest?&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;p&gt;The new retrieval engine searches across multiple sources of project intelligence:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Knowledge Graph relationships&lt;/li&gt;
&lt;li&gt;Dependency chains&lt;/li&gt;
&lt;li&gt;Project Memory&lt;/li&gt;
&lt;li&gt;Recent code changes&lt;/li&gt;
&lt;li&gt;Risk analysis&lt;/li&gt;
&lt;li&gt;Impact scores&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It doesn't just find matching files.&lt;/p&gt;

&lt;p&gt;It finds the files that matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Beyond Keyword Search
&lt;/h2&gt;

&lt;p&gt;A search for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tokencap ask &lt;span class="s2"&gt;"debug login redirect"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;automatically switches into debug mode.&lt;/p&gt;

&lt;p&gt;A search for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tokencap ask &lt;span class="s2"&gt;"review payment flow"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;switches into review mode.&lt;/p&gt;

&lt;p&gt;A search for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tokencap ask &lt;span class="s2"&gt;"explain dashboard architecture"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;switches into architecture mode.&lt;/p&gt;

&lt;p&gt;The retrieval strategy changes based on what you're trying to achieve.&lt;/p&gt;

&lt;h2&gt;
  
  
  Following the Connections
&lt;/h2&gt;

&lt;p&gt;One thing I wanted to avoid was returning isolated files.&lt;/p&gt;

&lt;p&gt;Real systems are connected.&lt;/p&gt;

&lt;p&gt;If a file is relevant, its dependencies are often relevant too.&lt;/p&gt;

&lt;p&gt;TokenCap traverses the graph to find related files, dependents, and neighboring modules before building the final context package.&lt;/p&gt;

&lt;h2&gt;
  
  
  Context Isn't Free
&lt;/h2&gt;

&lt;p&gt;Even after finding the right files, another challenge remains:&lt;/p&gt;

&lt;p&gt;Token budgets.&lt;/p&gt;

&lt;p&gt;The retrieval engine reuses TokenCap's Context Packing system to decide what deserves:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Full source code&lt;/li&gt;
&lt;li&gt;Structural outlines&lt;/li&gt;
&lt;li&gt;Summaries&lt;/li&gt;
&lt;li&gt;References only&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This allows larger repositories to fit into practical AI context limits without losing important information.&lt;/p&gt;

&lt;h2&gt;
  
  
  From Context Generation to Context Retrieval
&lt;/h2&gt;

&lt;p&gt;The evolution of TokenCap has been interesting:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;v0.1 — Project Snapshot&lt;/li&gt;
&lt;li&gt;v0.2 — Knowledge Graph &amp;amp; Context Memory&lt;/li&gt;
&lt;li&gt;v0.3 — Debug Handoff&lt;/li&gt;
&lt;li&gt;v0.4 — Change Intelligence&lt;/li&gt;
&lt;li&gt;v0.5 — Context Packing&lt;/li&gt;
&lt;li&gt;v0.6 — Graph Intelligence&lt;/li&gt;
&lt;li&gt;v0.7 — Smart Retrieval&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For the first six versions, the focus was:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Generate better context.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;With v0.7, the focus becomes:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Retrieve the right context.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's a subtle difference.&lt;/p&gt;

&lt;p&gt;But I think it's the difference between AI tools that know code and AI tools that understand projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Website:&lt;/strong&gt; tokencap.vansharora.app&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NPM:&lt;/strong&gt; &lt;a href="https://www.npmjs.com/package/tokencap" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/tokencap&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; tokencap
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then ask your repository a question:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tokencap ask &lt;span class="s2"&gt;"How does authentication work?"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of manually assembling context, let the repository tell the AI what matters.&lt;/p&gt;

&lt;p&gt;Feedback, ideas, and contributions are always welcome.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>webdev</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Building an Obsidian-Style Code Intelligence Graph for Any JavaScript Project</title>
      <dc:creator>VANSH ARORA</dc:creator>
      <pubDate>Wed, 17 Jun 2026 08:40:50 +0000</pubDate>
      <link>https://dev.to/vansharora21/building-an-obsidian-style-code-intelligence-graph-for-any-javascript-project-1ep6</link>
      <guid>https://dev.to/vansharora21/building-an-obsidian-style-code-intelligence-graph-for-any-javascript-project-1ep6</guid>
      <description>&lt;p&gt;Most dependency graphs are useless after the first 30 seconds.&lt;/p&gt;

&lt;p&gt;They show connections.&lt;/p&gt;

&lt;p&gt;But they don't tell you what matters.&lt;/p&gt;

&lt;p&gt;While building TokenCap v0.6, I wanted to answer a different question:&lt;/p&gt;

&lt;p&gt;If I open a large codebase for the first time, which files should I care about?&lt;/p&gt;

&lt;p&gt;That led to a complete redesign of TokenCap's graph engine. Instead of building another dependency visualizer, I started building what I call a Code Intelligence Graph.&lt;/p&gt;

&lt;p&gt;The Problem&lt;/p&gt;

&lt;p&gt;Traditional project graphs tell you:&lt;/p&gt;

&lt;p&gt;File A imports File B&lt;br&gt;
File B imports File C&lt;br&gt;
File C imports File D&lt;/p&gt;

&lt;p&gt;After a few hundred files, the graph becomes a spiderweb.&lt;/p&gt;

&lt;p&gt;Interesting to look at.&lt;/p&gt;

&lt;p&gt;Not useful for decision making.&lt;/p&gt;

&lt;p&gt;What developers actually want to know is:&lt;/p&gt;

&lt;p&gt;Which files are high impact?&lt;br&gt;
Which files are risky to change?&lt;br&gt;
Which modules are tightly coupled?&lt;br&gt;
Which areas of the codebase belong together?&lt;br&gt;
Which files should AI see first?&lt;br&gt;
The Approach&lt;/p&gt;

&lt;p&gt;TokenCap v0.6 analyzes the repository and assigns intelligence to every node.&lt;/p&gt;

&lt;p&gt;Each file receives:&lt;/p&gt;

&lt;p&gt;A node type&lt;br&gt;
A cluster&lt;br&gt;
An importance score&lt;br&gt;
A risk score&lt;br&gt;
Dependency relationships&lt;/p&gt;

&lt;p&gt;The graph currently supports 13 node types:&lt;/p&gt;

&lt;p&gt;Routes&lt;br&gt;
APIs&lt;br&gt;
Components&lt;br&gt;
Controllers&lt;br&gt;
Services&lt;br&gt;
Databases&lt;br&gt;
Middleware&lt;br&gt;
Configs&lt;br&gt;
Utilities&lt;br&gt;
Hooks&lt;br&gt;
Packages&lt;br&gt;
Tests&lt;br&gt;
Unknown files&lt;/p&gt;

&lt;p&gt;Instead of seeing a wall of files, you immediately understand the structure of the application.&lt;/p&gt;

&lt;p&gt;Risk Scoring&lt;/p&gt;

&lt;p&gt;One of the most useful additions was risk analysis.&lt;/p&gt;

&lt;p&gt;Every file is classified as:&lt;/p&gt;

&lt;p&gt;CRITICAL&lt;br&gt;
HIGH&lt;br&gt;
MEDIUM&lt;br&gt;
LOW&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;A heavily connected authentication middleware is far more dangerous to modify than an isolated utility function.&lt;/p&gt;

&lt;p&gt;That sounds obvious.&lt;/p&gt;

&lt;p&gt;But visualizing it changes how you navigate a codebase.&lt;/p&gt;

&lt;p&gt;Clustering the Codebase&lt;/p&gt;

&lt;p&gt;The graph automatically groups related files into clusters such as:&lt;/p&gt;

&lt;p&gt;Authentication&lt;br&gt;
Payments&lt;br&gt;
Dashboard&lt;br&gt;
Database&lt;br&gt;
API&lt;br&gt;
Frontend&lt;br&gt;
Config&lt;br&gt;
Testing&lt;/p&gt;

&lt;p&gt;This ended up being one of my favorite features because it makes large repositories feel significantly smaller.&lt;/p&gt;

&lt;p&gt;Building the Viewer&lt;/p&gt;

&lt;p&gt;The graph viewer uses a three-panel layout:&lt;/p&gt;

&lt;p&gt;Filters and graph controls&lt;br&gt;
Interactive graph canvas&lt;br&gt;
Node intelligence panel&lt;/p&gt;

&lt;p&gt;You can:&lt;/p&gt;

&lt;p&gt;Hover nodes to reveal dependencies&lt;br&gt;
Switch between global and local graph modes&lt;br&gt;
Filter by type or cluster&lt;br&gt;
Inspect impact, risk, and relationships&lt;br&gt;
Explore architecture visually&lt;/p&gt;

&lt;p&gt;The goal was to make code navigation feel closer to Obsidian's knowledge graph than a traditional dependency tool.&lt;/p&gt;

&lt;p&gt;Lessons Learned&lt;/p&gt;

&lt;p&gt;The biggest takeaway from building v0.6 is that developers don't need more information.&lt;/p&gt;

&lt;p&gt;They need better prioritization.&lt;/p&gt;

&lt;p&gt;A repository might contain thousands of files.&lt;/p&gt;

&lt;p&gt;But only a small percentage actually drive architecture, risk, and decision making.&lt;/p&gt;

&lt;p&gt;The challenge is identifying those files quickly.&lt;/p&gt;

&lt;p&gt;That's the problem I wanted the graph to solve.&lt;/p&gt;

&lt;p&gt;What's Next?&lt;/p&gt;

&lt;p&gt;The graph is already functional and useful, but it's still the area I'm most interested in improving.&lt;/p&gt;

&lt;p&gt;Future iterations will focus on richer relationships, smarter impact analysis, and tighter integration with AI-assisted workflows.&lt;/p&gt;

&lt;p&gt;The long-term goal is simple:&lt;/p&gt;

&lt;p&gt;Help both developers and AI understand a project faster.&lt;/p&gt;

&lt;p&gt;Not by showing more code.&lt;/p&gt;

&lt;p&gt;By showing what matters.&lt;/p&gt;

&lt;p&gt;npm package - &lt;a href="https://www.npmjs.com/package/tokencap" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/tokencap&lt;/a&gt;&lt;br&gt;
website - tokencap.vansharora.app&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Introducing TokenCap — Context Engineering for Modern Codebases</title>
      <dc:creator>VANSH ARORA</dc:creator>
      <pubDate>Wed, 10 Jun 2026 08:44:09 +0000</pubDate>
      <link>https://dev.to/vansharora21/introducing-tokencap-context-engineering-for-modern-codebases-3a4m</link>
      <guid>https://dev.to/vansharora21/introducing-tokencap-context-engineering-for-modern-codebases-3a4m</guid>
      <description>&lt;p&gt;One of the biggest challenges in AI-assisted development isn't choosing the right model.&lt;/p&gt;

&lt;p&gt;It's providing the right context.&lt;/p&gt;

&lt;p&gt;As codebases grow, important information gets scattered across files, commits, architecture decisions, documentation, and debugging history. Developers spend valuable time manually gathering context before they can effectively use AI tools.&lt;/p&gt;

&lt;p&gt;That's why I built TokenCap.&lt;/p&gt;

&lt;p&gt;TokenCap helps developers generate structured, AI-ready project context from their codebase, making it easier for AI assistants to understand projects without consuming unnecessary tokens.&lt;/p&gt;

&lt;p&gt;Current Features&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;- Project Knowledge Graph
 Visualizes relationships between files, components, services, 
 routes, and dependencies.&lt;/li&gt;
&lt;li&gt;- Context Memory
  Captures project decisions, architecture notes, constraints, and
  development history.&lt;/li&gt;
&lt;li&gt;- Change Intelligence (tokencap diff)
 Transforms raw git diffs into impact analysis, risk assessment 
 testing recommendations, and AI review prompts.&lt;/li&gt;
&lt;li&gt;- Context Packing
 Prioritizes and compresses relevant project information into
 token-budgeted context packs optimized for AI workflows.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Why TokenCap?&lt;/strong&gt;&lt;br&gt;
Reduce context-switching overhead&lt;br&gt;
Improve AI response quality&lt;br&gt;
Save tokens and costs&lt;br&gt;
Understand large codebases faster&lt;br&gt;
Generate structured project knowledge automatically&lt;/p&gt;

&lt;p&gt;I'm actively working on the next generation of TokenCap, including an Obsidian-style interactive graph and advanced context management capabilities.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Would love feedback from developers building with AI.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://tokencap.vansharora.app/" rel="noopener noreferrer"&gt;https://tokencap.vansharora.app/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>showdev</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
