<?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: DnaFIN</title>
    <description>The latest articles on DEV Community by DnaFIN (@nerviq).</description>
    <link>https://dev.to/nerviq</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%2F3852219%2Fe3f39c59-9be0-41ba-9bdd-a5c06c803a66.png</url>
      <title>DEV Community: DnaFIN</title>
      <link>https://dev.to/nerviq</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nerviq"/>
    <language>en</language>
    <item>
      <title># Introducing Leangetic: a local-first compiler for cheaper AI agents</title>
      <dc:creator>DnaFIN</dc:creator>
      <pubDate>Fri, 12 Jun 2026 13:47:45 +0000</pubDate>
      <link>https://dev.to/nerviq/-introducing-leangetic-a-local-first-compiler-for-cheaper-ai-agents-5bok</link>
      <guid>https://dev.to/nerviq/-introducing-leangetic-a-local-first-compiler-for-cheaper-ai-agents-5bok</guid>
      <description>&lt;p&gt;We’re building &lt;strong&gt;Leangetic&lt;/strong&gt;, a tool that helps turn expensive AI agents into cheaper hybrid workflows without changing what the agent does.&lt;/p&gt;

&lt;p&gt;The problem we’re trying to solve is simple:&lt;/p&gt;

&lt;p&gt;A lot of AI agents call a large model for steps that do not always need a large model.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;parsing logs&lt;/li&gt;
&lt;li&gt;formatting structured output&lt;/li&gt;
&lt;li&gt;routing tasks&lt;/li&gt;
&lt;li&gt;validating responses&lt;/li&gt;
&lt;li&gt;repeating the same context&lt;/li&gt;
&lt;li&gt;retrying known failure patterns&lt;/li&gt;
&lt;li&gt;summarizing tool results&lt;/li&gt;
&lt;li&gt;classifying simple cases&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These steps are often useful inside an agent loop, but they can also become expensive, slow, and hard to audit when everything goes through an LLM again and again.&lt;/p&gt;

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

&lt;p&gt;Leangetic profiles your existing agent and looks for parts of the workflow that can be safely optimized.&lt;/p&gt;

&lt;p&gt;The output is not just a report. The goal is to produce a hybrid runtime:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;deterministic code where it is proven safe&lt;/li&gt;
&lt;li&gt;LLM calls where reasoning is still needed&lt;/li&gt;
&lt;li&gt;exact caching where calls repeat&lt;/li&gt;
&lt;li&gt;prompt compaction where context is bloated&lt;/li&gt;
&lt;li&gt;model routing where smaller models are enough&lt;/li&gt;
&lt;li&gt;validation gates before promotion&lt;/li&gt;
&lt;li&gt;fallback to the original model on uncertainty&lt;/li&gt;
&lt;li&gt;one-command rollback&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The original agent is never modified.&lt;/p&gt;

&lt;h2&gt;
  
  
  The compiler-style flow
&lt;/h2&gt;

&lt;p&gt;The mental model is closer to profile-guided optimization than a normal AI monitoring tool.&lt;/p&gt;

&lt;p&gt;You run the agent normally. Leangetic listens locally in shadow mode. Then it profiles the real calls, identifies waste, builds a candidate hybrid, and judges it against your real traffic before anything is switched on.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @leangetic-ai/cli &lt;span class="nt"&gt;--help&lt;/span&gt;

leangetic start ./your-agent      &lt;span class="c"&gt;# listen locally&lt;/span&gt;
leangetic profile                 &lt;span class="c"&gt;# see cost, latency, repeats, retries&lt;/span&gt;
leangetic optimize ./your-agent   &lt;span class="c"&gt;# build the hybrid candidate&lt;/span&gt;
leangetic judge                   &lt;span class="c"&gt;# prove cheaper + equal-or-better&lt;/span&gt;
leangetic promote                 &lt;span class="c"&gt;# switch over&lt;/span&gt;
leangetic rollback                &lt;span class="c"&gt;# revert instantly&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why we built it
&lt;/h2&gt;

&lt;p&gt;AI agents are becoming more capable, but the production cost profile is not always clean.&lt;/p&gt;

&lt;p&gt;A simple agent can become expensive because it keeps sending:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the same system prompt&lt;/li&gt;
&lt;li&gt;the same tool schemas&lt;/li&gt;
&lt;li&gt;the same file context&lt;/li&gt;
&lt;li&gt;the same failure logs&lt;/li&gt;
&lt;li&gt;the same summaries&lt;/li&gt;
&lt;li&gt;the same validation instructions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In many workflows, the LLM is doing a mix of real reasoning and routine software work.&lt;/p&gt;

&lt;p&gt;Leangetic tries to separate those two.&lt;/p&gt;

&lt;p&gt;The parts that need intelligence stay AI.&lt;br&gt;
The parts that behave like software become software.&lt;/p&gt;

&lt;h2&gt;
  
  
  Local-first by default
&lt;/h2&gt;

&lt;p&gt;A major design goal is trust.&lt;/p&gt;

&lt;p&gt;The CLI runs locally. Shadow mode records fingerprints and aggregate metrics. The original agent keeps running as-is. Optimization is only promoted after the judge confirms that the new hybrid is cheaper with equal-or-better quality on your own calls.&lt;/p&gt;

&lt;p&gt;Every optimized step can fall back to the original model, and rollback is one command.&lt;/p&gt;

&lt;p&gt;The client is source-available for transparency. The optimization service is hosted.&lt;/p&gt;

&lt;p&gt;GitHub:&lt;br&gt;
&lt;a href="https://github.com/DnaFin/leangetic-cli" rel="noopener noreferrer"&gt;https://github.com/DnaFin/leangetic-cli&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Website:&lt;br&gt;
&lt;a href="https://leangetic.com/" rel="noopener noreferrer"&gt;https://leangetic.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;NPM:&lt;br&gt;
&lt;a href="https://www.npmjs.com/package/@leangetic-ai/cli" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@leangetic-ai/cli&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Who it is for
&lt;/h2&gt;

&lt;p&gt;Leangetic is probably not useful if your agent is tiny, cheap, or experimental.&lt;/p&gt;

&lt;p&gt;It is more relevant if you already have an agent that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;runs often&lt;/li&gt;
&lt;li&gt;uses real tools&lt;/li&gt;
&lt;li&gt;has repeated model calls&lt;/li&gt;
&lt;li&gt;sends a lot of context&lt;/li&gt;
&lt;li&gt;touches production workflows&lt;/li&gt;
&lt;li&gt;needs cost and latency control&lt;/li&gt;
&lt;li&gt;needs safe rollback&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We’re currently in assisted alpha and looking for feedback from developers building real agent systems.&lt;/p&gt;

&lt;p&gt;I’d love to hear:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What parts of your agent loops are the most wasteful?&lt;/li&gt;
&lt;li&gt;Do you already separate deterministic code from LLM reasoning?&lt;/li&gt;
&lt;li&gt;What kind of proof would make you trust an optimized hybrid agent?&lt;/li&gt;
&lt;li&gt;Which frameworks should we test most deeply next?&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>llm</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Your AI coding agent scores 10/100. Here's what it's missing.</title>
      <dc:creator>DnaFIN</dc:creator>
      <pubDate>Mon, 06 Apr 2026 13:23:05 +0000</pubDate>
      <link>https://dev.to/nerviq/your-ai-coding-agent-scores-10100-heres-what-its-missing-5bpk</link>
      <guid>https://dev.to/nerviq/your-ai-coding-agent-scores-10100-heres-what-its-missing-5bpk</guid>
      <description>&lt;p&gt;After testing &lt;strong&gt;2,431 checks&lt;/strong&gt; across &lt;strong&gt;8 AI coding platforms&lt;/strong&gt; on real repos, I found a clear pattern: most projects use barely 10% of what's available.&lt;/p&gt;

&lt;p&gt;I built Nerviq — a zero-dependency CLI that audits your AI coding agent setup and scores it 0-100.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @nerviq/cli audit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Most projects score &lt;strong&gt;10-20 out of 100&lt;/strong&gt;. After running setup, they jump to &lt;strong&gt;60-80+&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Top 10 Things You're Probably Missing
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Instructions file (Critical)
&lt;/h3&gt;

&lt;p&gt;Every AI coding platform has one: &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;AGENTS.md&lt;/code&gt;, &lt;code&gt;.cursorrules&lt;/code&gt;, &lt;code&gt;GEMINI.md&lt;/code&gt;. Without it, the agent doesn't know your build commands, code style, or project rules.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Architecture diagrams (73% token savings)
&lt;/h3&gt;

&lt;p&gt;A Mermaid diagram gives your agent the project structure in a fraction of the tokens that prose requires.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Hooks &amp;gt; instructions (100% vs 80% compliance)
&lt;/h3&gt;

&lt;p&gt;Written instructions are advisory (~80% compliance). Hooks are deterministic (100%). Auto-lint after every edit. Every time.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Verification commands
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;This is the single highest-leverage thing you can do.&lt;/em&gt; — Anthropic Best Practices&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Agents perform dramatically better when they can verify their own work.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Deny rules
&lt;/h3&gt;

&lt;p&gt;Your AI agent loads &lt;code&gt;.env&lt;/code&gt; files automatically. Without deny rules, it can read secrets. This is the most common critical finding.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Custom commands
&lt;/h3&gt;

&lt;p&gt;Stop typing the same prompts. Create &lt;code&gt;/test&lt;/code&gt;, &lt;code&gt;/deploy&lt;/code&gt;, &lt;code&gt;/review&lt;/code&gt; as reusable commands.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Cross-platform drift
&lt;/h3&gt;

&lt;p&gt;If you use Claude + Cursor + Copilot, their configs probably conflict. &lt;code&gt;nerviq harmony-audit&lt;/code&gt; catches this automatically.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Permission profiles
&lt;/h3&gt;

&lt;p&gt;Most setups either allow everything or block everything. There are better profiles: &lt;code&gt;read-only&lt;/code&gt;, &lt;code&gt;suggest-only&lt;/code&gt;, &lt;code&gt;safe-write&lt;/code&gt;, &lt;code&gt;power-user&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. MCP configuration
&lt;/h3&gt;

&lt;p&gt;MCP servers extend what your agent can do, but &amp;gt;10 servers or &amp;gt;80 tools degrades performance.&lt;/p&gt;

&lt;h3&gt;
  
  
  10. Stack-specific checks
&lt;/h3&gt;

&lt;p&gt;Python, Go, Rust, Java, Ruby, PHP, .NET, Flutter, Swift, Kotlin — each has specific agent configuration needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  New: Auto-fix
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nerviq fix                    &lt;span class="c"&gt;# Show what's fixable&lt;/span&gt;
nerviq fix claudeMd           &lt;span class="c"&gt;# Fix a specific check&lt;/span&gt;
nerviq fix &lt;span class="nt"&gt;--all-critical&lt;/span&gt;     &lt;span class="c"&gt;# Fix all critical issues&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every fix shows the score impact: &lt;code&gt;Score: 4 → 16 (+12)&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Safety first
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;nerviq audit&lt;/code&gt; — reads only, writes nothing (default)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;nerviq suggest-only&lt;/code&gt; — markdown report, no file writes&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--dry-run&lt;/code&gt; — preview changes&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--config-only&lt;/code&gt; — only touches config files, never source code&lt;/li&gt;
&lt;li&gt;Every write creates rollback artifacts&lt;/li&gt;
&lt;/ul&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @nerviq/cli audit              &lt;span class="c"&gt;# Quick scan: score + top 3&lt;/span&gt;
npx @nerviq/cli audit &lt;span class="nt"&gt;--full&lt;/span&gt;       &lt;span class="c"&gt;# All checks + confidence levels&lt;/span&gt;
npx @nerviq/cli suggest-only       &lt;span class="c"&gt;# Share results with your team&lt;/span&gt;
npx @nerviq/cli harmony-audit      &lt;span class="c"&gt;# Cross-platform alignment&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Zero dependencies. No API keys. Runs locally. AGPL-3.0.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/nerviq/nerviq" rel="noopener noreferrer"&gt;github.com/nerviq/nerviq&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;npm:&lt;/strong&gt; &lt;a href="https://www.npmjs.com/package/@nerviq/cli" rel="noopener noreferrer"&gt;npmjs.com/package/@nerviq/cli&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://nerviq.net" rel="noopener noreferrer"&gt;nerviq.net&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>devtools</category>
      <category>claudecode</category>
    </item>
    <item>
      <title>972 Claude Code Techniques: What I Learned Building the Most Comprehensive Catalog</title>
      <dc:creator>DnaFIN</dc:creator>
      <pubDate>Mon, 30 Mar 2026 19:38:22 +0000</pubDate>
      <link>https://dev.to/nerviq/972-claude-code-techniques-what-i-learned-building-the-most-comprehensive-catalog-1h49</link>
      <guid>https://dev.to/nerviq/972-claude-code-techniques-what-i-learned-building-the-most-comprehensive-catalog-1h49</guid>
      <description>&lt;p&gt;After 39 research cycles, I cataloged &lt;strong&gt;972 Claude Code techniques&lt;/strong&gt; and tested &lt;strong&gt;773 of them with real evidence&lt;/strong&gt;. Here are the top 10 things most developers are missing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Claude Code is incredibly powerful - 74 releases in 52 days, hundreds of features. But most projects barely scratch the surface.&lt;/p&gt;

&lt;p&gt;I built a CLI that scores your project:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;Most projects score &lt;strong&gt;10-20 out of 100&lt;/strong&gt;. After running setup, they jump to &lt;strong&gt;70+&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Top 10 Things You're Probably Missing
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. CLAUDE.md (Impact: Critical)
&lt;/h3&gt;

&lt;p&gt;Claude reads this file at the start of every session. Without it, Claude doesn't know your build commands, code style, or project rules.&lt;/p&gt;

&lt;p&gt;Run &lt;code&gt;/init&lt;/code&gt; to auto-generate one from your codebase.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Mermaid Architecture Diagrams (Saves 73% Tokens)
&lt;/h3&gt;

&lt;p&gt;A Mermaid diagram in CLAUDE.md gives Claude your project structure in a fraction of the tokens that prose would require.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Hooks &amp;gt; CLAUDE.md Rules (100% vs 80%)
&lt;/h3&gt;

&lt;p&gt;CLAUDE.md instructions are advisory (~80% compliance). Hooks are deterministic (100%). Auto-lint after every edit. Every time. No exceptions.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Custom Commands
&lt;/h3&gt;

&lt;p&gt;Stop typing the same prompts. Create &lt;code&gt;/test&lt;/code&gt;, &lt;code&gt;/deploy&lt;/code&gt;, &lt;code&gt;/review&lt;/code&gt; in &lt;code&gt;.claude/commands/&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Verification Loops (The #1 Best Practice)
&lt;/h3&gt;

&lt;p&gt;Claude performs dramatically better when it can verify its own work. Include test commands in CLAUDE.md.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is the single highest-leverage thing you can do. - Anthropic Best Practices&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  6. Path-Specific Rules
&lt;/h3&gt;

&lt;p&gt;Different conventions for frontend vs backend files in &lt;code&gt;.claude/rules/&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. XML Tags for Structured Prompts
&lt;/h3&gt;

&lt;p&gt;Use &lt;code&gt;&amp;lt;constraints&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;validation&amp;gt;&lt;/code&gt; in CLAUDE.md for unambiguous instructions. 30% quality improvement (Anthropic-measured).&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Custom Agents
&lt;/h3&gt;

&lt;p&gt;Specialized subagents for focused tasks: security-reviewer, test-writer in &lt;code&gt;.claude/agents/&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. Skills (On-Demand Knowledge)
&lt;/h3&gt;

&lt;p&gt;Unlike CLAUDE.md (loaded every session), skills load only when relevant. Run &lt;code&gt;/fix-issue 1234&lt;/code&gt; and Claude handles the rest.&lt;/p&gt;

&lt;h3&gt;
  
  
  10. MCP Servers
&lt;/h3&gt;

&lt;p&gt;Connect Claude to your database, ticket system, or Slack via MCP configuration.&lt;/p&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx claudex-setup        &lt;span class="c"&gt;# Audit (10 seconds)&lt;/span&gt;
npx claudex-setup setup  &lt;span class="c"&gt;# Auto-fix&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Free, open source, zero dependencies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/DnaFin/claudex" rel="noopener noreferrer"&gt;github.com/DnaFin/claudex&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built from &lt;a href="https://github.com/DnaFin/claudex" rel="noopener noreferrer"&gt;CLAUDEX&lt;/a&gt; - 972 verified Claude Code techniques, 773 tested with real evidence.&lt;/em&gt;&lt;/p&gt;

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