<?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: subhansh</title>
    <description>The latest articles on DEV Community by subhansh (@subhansh).</description>
    <link>https://dev.to/subhansh</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%2F3932783%2Fec98af63-4dd3-4af0-85ce-d5c0b76ebf45.png</url>
      <title>DEV Community: subhansh</title>
      <link>https://dev.to/subhansh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/subhansh"/>
    <language>en</language>
    <item>
      <title>I built a programming language because C++ almost killed my drone</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Sun, 12 Jul 2026 19:00:41 +0000</pubDate>
      <link>https://dev.to/subhansh/i-built-a-programming-language-because-c-almost-killed-my-drone-34l7</link>
      <guid>https://dev.to/subhansh/i-built-a-programming-language-because-c-almost-killed-my-drone-34l7</guid>
      <description>&lt;p&gt;I'm 17. Last year I was writing drone firmware in C++ and Python. One afternoon my ultrasonic sensor returned &lt;code&gt;null&lt;/code&gt; during a landing sequence. The code didn't check for it. The drone tried to divide by zero, the motor controller panicked, and my DJI Tello-sized quadcopter dropped from 3 meters onto concrete.&lt;/p&gt;

&lt;p&gt;That was a $400 lesson in why runtime errors in robotics aren't just bugs. They're physics problems.&lt;/p&gt;

&lt;p&gt;So I built a programming language.&lt;/p&gt;




&lt;h2&gt;
  
  
  The problem nobody talks about
&lt;/h2&gt;

&lt;p&gt;When you're writing a web app and something crashes, you reload the page. When you're writing drone code and something crashes, the drone crashes. Into whatever's below it. Usually something expensive or fragile or alive.&lt;/p&gt;

&lt;p&gt;C++ and Python dominate robotics. Both assume you'll handle edge cases yourself. Sensor returns &lt;code&gt;null&lt;/code&gt;? That's your problem. Timing deadline missed? Good luck. No fallback path for when the lidar fails over water? Figure it out.&lt;/p&gt;

&lt;p&gt;ROS (Robot Operating System) helps with some of this, but it's an entire infrastructure layer. What I wanted was something simpler: a language where the compiler catches the stuff that kills robots before you ever compile it.&lt;/p&gt;

&lt;p&gt;Here's what I mean. In C++, you write:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="kt"&gt;float&lt;/span&gt; &lt;span class="n"&gt;distance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sensor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="kt"&gt;float&lt;/span&gt; &lt;span class="n"&gt;speed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;target_distance&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;distance&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;motor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;speed&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;distance&lt;/code&gt; is 0, you get a division by zero. If &lt;code&gt;sensor.read()&lt;/code&gt; returns &lt;code&gt;NaN&lt;/code&gt;, you get &lt;code&gt;NaN&lt;/code&gt; propagation through your motor controller. The compiler doesn't care. It'll happily compile this and let your drone fall out of the sky.&lt;/p&gt;

&lt;p&gt;In Fabric (the language I built), you'd write:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="n"&gt;sensor&lt;/span&gt; &lt;span class="n"&gt;distance&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Sensor&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nb"&gt;f32&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="err"&gt;±&lt;/span&gt;&lt;span class="mf"&gt;0.02&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="n"&gt;actuator&lt;/span&gt; &lt;span class="n"&gt;motor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Motor&lt;/span&gt;

&lt;span class="k"&gt;loop&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;speed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;target_distance&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;distance&lt;/span&gt;
    &lt;span class="n"&gt;motor&lt;/span&gt;&lt;span class="nf"&gt;.write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;speed&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;If you try to use &lt;code&gt;distance&lt;/code&gt; without checking that the sensor returned a valid reading, the compiler throws an error. If &lt;code&gt;distance&lt;/code&gt; could be zero and you didn't add a fallback path, the compiler throws an error. If your sensor has an uncertainty bound of ±0.02 and you're doing math that could amplify that uncertainty past a safety threshold, the compiler throws an error.&lt;/p&gt;

&lt;p&gt;The compiler knows about physics. Not perfectly, but enough to catch the stuff that actually kills robots.&lt;/p&gt;




&lt;h2&gt;
  
  
  How it works under the hood
&lt;/h2&gt;

&lt;p&gt;I wrote the whole thing in Rust. About 4,500 lines across 8 crates. Here's the pipeline:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.fab source → Lexer → Parser → AST → Type Checker → Fallback Graph → IPET Timing → CodeGen → .py / .c
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each step catches a different category of mistakes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The type system&lt;/strong&gt; tracks sensor uncertainty as a first-class concept. When you declare &lt;code&gt;Sensor&amp;lt;f32, ±0.02&amp;gt;&lt;/code&gt;, that &lt;code&gt;±0.02&lt;/code&gt; isn't decoration. It propagates through every math operation. Add two sensors with ±0.02 uncertainty and the result has ±0.04. Multiply by a constant and the uncertainty scales accordingly. If the final result's uncertainty exceeds what's safe for your actuator, the compiler catches it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fallback graph&lt;/strong&gt; checks that every sensor has a plan B. Not just declared, but actually reachable. If your fallback function A calls fallback function B, and B calls A, that's a cycle. The compiler detects it. If sensor X has no fallback at all, the compiler refuses to build.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;IPET timing analysis&lt;/strong&gt; uses an Integer Linear Program to prove worst-case execution time at compile time. It builds a control flow graph, assigns cycle costs to each instruction (ARM Cortex-M4 model: ALU = 1 cycle, float division = 14 cycles, sensor read = 2 cycles), and solves for the maximum possible execution time across all code paths including loops.&lt;/p&gt;

&lt;p&gt;I didn't come up with this technique. It's from Li &amp;amp; Malik's 1994 paper on implicit path enumeration. But I implemented it in Rust using a pure-Rust ILP solver called &lt;code&gt;good_lp&lt;/code&gt; with the &lt;code&gt;microlp&lt;/code&gt; backend. No external solver dependency. No C FFI. Just Rust solving linear programs.&lt;/p&gt;

&lt;p&gt;The solver maximizes &lt;code&gt;sum(cost_i * x_i)&lt;/code&gt; subject to flow conservation constraints. If the solver fails (which happens on really complex control flow), the system falls back to a conservative estimate instead of crashing.&lt;/p&gt;




&lt;h2&gt;
  
  
  The two-target code generation
&lt;/h2&gt;

&lt;p&gt;Fabric compiles to two backends: Python for Webots simulation, and C for ARM Cortex-M hardware.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python output&lt;/strong&gt; generates a Webots controller class with sensor initialization, motor setup, fallback state tracking, and all the logic. You can test your drone code in simulation before touching hardware.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;C output&lt;/strong&gt; generates code that includes a &lt;code&gt;hal.h&lt;/code&gt; hardware abstraction layer. Static sensor handles, &lt;code&gt;#define TIMEOUT_MS&lt;/code&gt; for fallback deadlines, proper C types (&lt;code&gt;float&lt;/code&gt;, &lt;code&gt;int&lt;/code&gt;), and deadline enforcement using &lt;code&gt;hal_get_time_ms()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Same source file, two completely different targets. No &lt;code&gt;#ifdef&lt;/code&gt; in your code. No conditional compilation. The compiler handles the target-specific stuff.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;p&gt;The parser is hand-rolled. About 700 lines of Pratt parser with recursive descent for statements. I started with chumsky (a Rust parser combinator library) but their API changed between versions and the documentation was sparse when I needed it most. So I wrote my own.&lt;/p&gt;

&lt;p&gt;It's fine. But it means every time I want to add a new syntax construct, I'm writing parser code by hand. A proper parser generator would've saved time in the long run, even with the initial investment.&lt;/p&gt;

&lt;p&gt;The loop bound estimation is a heuristic. If your loop body has 1-3 statements, the compiler assumes it runs 10 times. 4-6 statements? 5 times. 7+? 3 times. This is obviously wrong for real programs. Proper static bound analysis would make the IPET results much more accurate. It's on my list.&lt;/p&gt;

&lt;p&gt;The C output references a &lt;code&gt;clamp()&lt;/code&gt; function that it never defines. If you actually try to compile the generated C code on hardware, you'll get a linker error. I know about it. I just haven't fixed it yet.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I'm publishing this
&lt;/h2&gt;

&lt;p&gt;I put all 8 crates on crates.io. The lexer, parser, type checker, everything. The repo is at github.com/subhansh-dev/fabric.&lt;/p&gt;

&lt;p&gt;Partly because I want other people to try it. If you're working on robotics or drones and you've been bitten by runtime errors, Fabric might save you some pain.&lt;/p&gt;

&lt;p&gt;Mostly because I think the idea matters more than my implementation. The safety-critical systems world has had formal methods and static analysis for decades. But it's all locked behind expensive tools and enterprise licenses. I wanted to build something that a 17-year-old with a Raspberry Pi could use.&lt;/p&gt;

&lt;p&gt;Is my implementation perfect? No. The IPET loop bounds are guesses. The C backend doesn't handle drone swarms. The match expression codegen references some variables it doesn't always generate. I know about all of these. They're bugs, not features, and I'll fix them.&lt;/p&gt;

&lt;p&gt;But the core idea is sound: compile-time safety for robotics shouldn't require a $50,000 license for Simulink. Sometimes the right answer to "how do we prevent this bug" isn't "write better tests" or "add more runtime checks." Sometimes it's "make the compiler say no."&lt;/p&gt;




&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;I'm working on adding hardware-in-the-loop testing support. The idea is that Fabric could instrument your actual hardware and compare runtime sensor readings against the compile-time uncertainty bounds. If reality diverges from what the compiler predicted, you get a warning before your next flight.&lt;/p&gt;

&lt;p&gt;Also working on proper static loop bound analysis. The current heuristic is fine for demos but useless for real deployments. I'm looking at abstract interpretation techniques to actually prove bounds instead of guessing.&lt;/p&gt;

&lt;p&gt;If any of this sounds interesting, check out the repo. Open an issue. Try it on your own robot. Break it and tell me how.&lt;/p&gt;

&lt;p&gt;That's how this gets better.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Fabric is MIT licensed. The crates are published on crates.io. The docs are in the README because I'm 17 and haven't written proper docs yet.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;gh repo link :- &lt;a href="https://github.com/subhansh-dev/fabric" rel="noopener noreferrer"&gt;https://github.com/subhansh-dev/fabric&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>rust</category>
      <category>robotics</category>
      <category>compilers</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Wed, 08 Jul 2026 17:48:55 +0000</pubDate>
      <link>https://dev.to/subhansh/-kl3</link>
      <guid>https://dev.to/subhansh/-kl3</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/subhansh/i-built-a-free-toolkit-that-makes-any-ai-coding-agent-write-better-code-3c0g" class="crayons-story__hidden-navigation-link"&gt;I Built a Free Toolkit That Makes Any AI Coding Agent Write Better Code&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/subhansh" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3932783%2Fec98af63-4dd3-4af0-85ce-d5c0b76ebf45.png" alt="subhansh profile" class="crayons-avatar__image" width="81" height="76"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/subhansh" class="crayons-story__secondary fw-medium m:hidden"&gt;
              subhansh
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                subhansh
                
              
              &lt;div id="story-author-preview-content-4099300" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/subhansh" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3932783%2Fec98af63-4dd3-4af0-85ce-d5c0b76ebf45.png" class="crayons-avatar__image" alt="" width="81" height="76"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;subhansh&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/subhansh/i-built-a-free-toolkit-that-makes-any-ai-coding-agent-write-better-code-3c0g" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Jul 8&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/subhansh/i-built-a-free-toolkit-that-makes-any-ai-coding-agent-write-better-code-3c0g" id="article-link-4099300"&gt;
          I Built a Free Toolkit That Makes Any AI Coding Agent Write Better Code
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/productivity"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;productivity&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/opensource"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;opensource&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/agentskills"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;agentskills&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/subhansh/i-built-a-free-toolkit-that-makes-any-ai-coding-agent-write-better-code-3c0g" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;1&lt;span class="hidden s:inline"&gt;&amp;nbsp;reaction&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/subhansh/i-built-a-free-toolkit-that-makes-any-ai-coding-agent-write-better-code-3c0g#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            4 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>I Built a Free Toolkit That Makes Any AI Coding Agent Write Better Code</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Wed, 08 Jul 2026 17:46:45 +0000</pubDate>
      <link>https://dev.to/subhansh/i-built-a-free-toolkit-that-makes-any-ai-coding-agent-write-better-code-3c0g</link>
      <guid>https://dev.to/subhansh/i-built-a-free-toolkit-that-makes-any-ai-coding-agent-write-better-code-3c0g</guid>
      <description>&lt;h1&gt;
  
  
  I Extracted 95+ Skills From Claude Fable 5, GPT-5.5, and Gemini CLI Into One Free Repo
&lt;/h1&gt;

&lt;p&gt;Your AI coding agent is powerful but generic. It writes code with purple gradients, opens responses with "Great question!", and ships skeletons instead of working code.&lt;/p&gt;

&lt;p&gt;I fixed that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/subhansh-dev/agent-maxxing" rel="noopener noreferrer"&gt;Agent Maxxing&lt;/a&gt;&lt;/strong&gt; is a free, open-source collection of 95+ production-ready skills, 19 UI components, and 7 system prompts — extracted from the leaked system prompts of the world's best AI agents.&lt;/p&gt;

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

&lt;p&gt;Every AI coding agent has the same personality:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Starts every response with praise ("Great question!", "Absolutely!")&lt;/li&gt;
&lt;li&gt;Writes code with no error handling ("Here's a skeleton, you fill it in")&lt;/li&gt;
&lt;li&gt;Uses purple-to-blue gradients everywhere&lt;/li&gt;
&lt;li&gt;Sounds like a corporate press release&lt;/li&gt;
&lt;li&gt;Asks permission for low-risk actions instead of just doing them&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The root cause? Their system prompts are generic. They don't know your design system, your coding standards, or how to sound like a human.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution
&lt;/h2&gt;

&lt;p&gt;I extracted the actual system prompts from:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Fable 5&lt;/strong&gt; (3,826 lines) — personality, memory system, tone, refusal handling&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-5.5 Codex&lt;/strong&gt; (11,104 lines) — engineering judgment, frontend rules, formatting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemini CLI&lt;/strong&gt; (254 lines) — context efficiency, sub-agent orchestration&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code&lt;/strong&gt; (1,798 lines) — tool usage, code review methodology, agent delegation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then I organized everything into 9 skill categories with 95+ individual skill files.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Inside
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Engineering (22 skills)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Deep Code Review&lt;/strong&gt; — 8-angle methodology from Claude Code bundled skills&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security Review&lt;/strong&gt; — Senior security engineer audit with false-positive filtering&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Execution Protocol&lt;/strong&gt; — "Solve it, don't ask about it" problem-solving chain&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Debugging Patterns&lt;/strong&gt; — Systematic methodology for finding and fixing bugs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API Design&lt;/strong&gt; — REST patterns, status codes, pagination&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database Patterns&lt;/strong&gt; — Schema design, indexing, migrations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Performance Patterns&lt;/strong&gt; — Lazy loading, caching, memoization&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Frontend Design (16 skills)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Anti-Patterns&lt;/strong&gt; — What makes AI output look AI-generated&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Artifact Design&lt;/strong&gt; — Deliberate design choices from Claude Code&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Motion Design&lt;/strong&gt; — Timing, easing, enter/exit patterns&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Typography&lt;/strong&gt; — Font pairing, scale, typographic systems&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Responsive Design&lt;/strong&gt; — Breakpoints, fluid layouts&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  UI Components (19 patterns)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Glass Card, Gradient Button, Modal Dialog, Tabs, Dropdown, Avatar, Progress Bar, Badge, Toggle Switch, Accordion, Tooltip, Navbar, Data Table, Loading Skeleton, Toast Notification, Breadcrumb, Pagination, Animated Input&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  System Prompts (7 modules)
&lt;/h3&gt;

&lt;p&gt;Extracted and intelligently curated from leaked prompts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Agent Core Personality&lt;/strong&gt; — From Claude Fable 5&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Coding Excellence&lt;/strong&gt; — From GPT-5.5 Codex&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reasoning &amp;amp; Planning&lt;/strong&gt; — From Codex Plan Mode&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend Mastery&lt;/strong&gt; — From GPT-5.5 + Claude Design&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent Orchestration&lt;/strong&gt; — From Claude Code + Gemini CLI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tone &amp;amp; Communication&lt;/strong&gt; — From Fable 5 + Codex + Cursor&lt;/li&gt;
&lt;/ul&gt;

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

&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Clone the repo&lt;/span&gt;
git clone https://github.com/subhansh-dev/agent-maxxing.git

&lt;span class="c"&gt;# Install for your agent&lt;/span&gt;
&lt;span class="nb"&gt;cp&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; agent-maxxing ~/.claude/skills/agent-maxxing  &lt;span class="c"&gt;# Claude Code&lt;/span&gt;
&lt;span class="nb"&gt;cp&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; agent-maxxing ~/.codex/skills/agent-maxxing   &lt;span class="c"&gt;# Codex CLI&lt;/span&gt;
&lt;span class="nb"&gt;cp&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; agent-maxxing .cursor/skills/agent-maxxing    &lt;span class="c"&gt;# Cursor&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  The Lazy Prompt
&lt;/h3&gt;

&lt;p&gt;Paste this to your agent and it self-fine-tunes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Deep dive into the agent-maxxing folder. Read every .md file — every skill, every system prompt, every component, every workflow example. Understand what each file teaches. Then fine-tune yourself: adopt the patterns, internalize the anti-patterns, apply the engineering judgment, use the writing style. Integrate all 95+ skills so you can use them on any task. From now on, before responding to anything, check if a relevant skill exists and apply it.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  How Agent Self-Fine-Tuning Works
&lt;/h3&gt;

&lt;p&gt;It's not weight training — it's &lt;strong&gt;context injection&lt;/strong&gt;. When an agent reads a skill file:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The file content enters the agent's context window&lt;/li&gt;
&lt;li&gt;The agent internalizes the patterns for that session&lt;/li&gt;
&lt;li&gt;It applies those patterns to every subsequent response&lt;/li&gt;
&lt;li&gt;The behavior changes without retraining&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The more skills it reads, the better it gets. The &lt;code&gt;FINE-TUNE-AGENT.md&lt;/code&gt; walks the agent through every skill category in order.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Anti-Patterns (What Agents Stop Doing)
&lt;/h2&gt;

&lt;p&gt;After fine-tuning, your agent will:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stop&lt;/strong&gt; opening with "Great question!" or "Absolutely!"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop&lt;/strong&gt; using purple-to-blue gradients in every design&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop&lt;/strong&gt; shipping skeleton code ("Here's a basic implementation")&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop&lt;/strong&gt; hedging with "It seems like..." or "It appears that..."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop&lt;/strong&gt; asking permission for low-risk actions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start&lt;/strong&gt; writing code with proper error handling&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start&lt;/strong&gt; matching the existing codebase style&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start&lt;/strong&gt; sounds like a human, not a press release&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start&lt;/strong&gt; reviewing code with 8-angle methodology&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start&lt;/strong&gt; shipping working code, not skeletons&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Golden Rules
&lt;/h2&gt;

&lt;p&gt;Every top agent in this collection follows these:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Search before answering&lt;/strong&gt; — Never guess when you can check&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the codebase first&lt;/strong&gt; — Don't assume, investigate&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parallel tool calls&lt;/strong&gt; — Independent operations run simultaneously&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Match existing patterns&lt;/strong&gt; — Follow the repo's conventions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Show, don't tell&lt;/strong&gt; — Demonstrate with examples&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Be concise&lt;/strong&gt; — Short paragraphs, flat lists, no filler&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Take ownership&lt;/strong&gt; — Fix mistakes, don't deflect&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Respect the user's time&lt;/strong&gt; — Don't ask what you can figure out&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ship working code&lt;/strong&gt; — Not skeletons, not "you'll need to add..."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sound human&lt;/strong&gt; — Not like a press release or corporate blog&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Compatible With 60+ Agents
&lt;/h2&gt;

&lt;p&gt;Works with any agent supporting the &lt;a href="https://agentskills.io/specification" rel="noopener noreferrer"&gt;Agent Skills specification&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code&lt;/li&gt;
&lt;li&gt;Codex CLI&lt;/li&gt;
&lt;li&gt;OpenCode&lt;/li&gt;
&lt;li&gt;Cursor&lt;/li&gt;
&lt;li&gt;Continue&lt;/li&gt;
&lt;li&gt;Kilo Code&lt;/li&gt;
&lt;li&gt;OpenClaw&lt;/li&gt;
&lt;li&gt;Pi Agent&lt;/li&gt;
&lt;li&gt;Hermes&lt;/li&gt;
&lt;li&gt;Gemini CLI&lt;/li&gt;
&lt;li&gt;And 50+ more&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What Makes This Different
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Agent Maxxing&lt;/th&gt;
&lt;th&gt;Generic Skill Packs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Source&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Extracted from Claude Fable 5, GPT-5.5, Gemini CLI&lt;/td&gt;
&lt;td&gt;Community-written prompts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Depth&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;95+ skills covering engineering, design, writing, security&lt;/td&gt;
&lt;td&gt;5-10 surface-level tips&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Components&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;19 production-ready UI patterns with CSS&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;System Prompts&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;7 fine-tuned personality modules&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Anti-Slop&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dedicated anti-patterns + writing style guide&lt;/td&gt;
&lt;td&gt;"Be helpful"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

&lt;ol&gt;
&lt;li&gt;Clone the repo&lt;/li&gt;
&lt;li&gt;Install for your agent&lt;/li&gt;
&lt;li&gt;Paste the lazy prompt&lt;/li&gt;
&lt;li&gt;Watch your agent transform
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;github.com/subhansh-dev/agent-maxxing
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;MIT licensed. Zero dependencies. Just markdown.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built by a 17-year-old who got tired of generic AI output.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>opensource</category>
      <category>agentskills</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Sun, 05 Jul 2026 20:25:41 +0000</pubDate>
      <link>https://dev.to/subhansh/-5819</link>
      <guid>https://dev.to/subhansh/-5819</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/subhansh/i-pointed-my-ai-research-engine-at-goldbachs-conjecture-it-found-a-hidden-bias-2026-1phl" class="crayons-story__hidden-navigation-link"&gt;I Pointed My AI Research Engine at Goldbach's Conjecture — It Found a Hidden Bias (2026)&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/subhansh" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3932783%2Fec98af63-4dd3-4af0-85ce-d5c0b76ebf45.png" alt="subhansh profile" class="crayons-avatar__image" width="81" height="76"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/subhansh" class="crayons-story__secondary fw-medium m:hidden"&gt;
              subhansh
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                subhansh
                
              
              &lt;div id="story-author-preview-content-4062006" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/subhansh" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3932783%2Fec98af63-4dd3-4af0-85ce-d5c0b76ebf45.png" class="crayons-avatar__image" alt="" width="81" height="76"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;subhansh&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/subhansh/i-pointed-my-ai-research-engine-at-goldbachs-conjecture-it-found-a-hidden-bias-2026-1phl" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Jul 3&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/subhansh/i-pointed-my-ai-research-engine-at-goldbachs-conjecture-it-found-a-hidden-bias-2026-1phl" id="article-link-4062006"&gt;
          I Pointed My AI Research Engine at Goldbach's Conjecture — It Found a Hidden Bias (2026)
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/math"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;math&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/primes"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;primes&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/goldbach"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;goldbach&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
            &lt;a href="https://dev.to/subhansh/i-pointed-my-ai-research-engine-at-goldbachs-conjecture-it-found-a-hidden-bias-2026-1phl#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            2 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>I Pointed My AI Research Engine at Goldbach's Conjecture — It Found a Hidden Bias (2026)</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Fri, 03 Jul 2026 17:07:06 +0000</pubDate>
      <link>https://dev.to/subhansh/i-pointed-my-ai-research-engine-at-goldbachs-conjecture-it-found-a-hidden-bias-2026-1phl</link>
      <guid>https://dev.to/subhansh/i-pointed-my-ai-research-engine-at-goldbachs-conjecture-it-found-a-hidden-bias-2026-1phl</guid>
      <description>&lt;p&gt;As a developer building AI for scientific discovery, I wanted to test if autonomous research actually works. So I built &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt; and pointed it at Goldbach's conjecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Background
&lt;/h2&gt;

&lt;p&gt;Goldbach's conjecture: every even integer &amp;gt; 2 is the sum of two primes. Verified up to 4 × 10¹⁸, but the distributional properties are poorly understood.&lt;/p&gt;

&lt;p&gt;The Hardy–Littlewood formula predicts the count of representations r(n):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;r(n) ≈ 2C₂ · ∏_{p|n} (p-1)/(p-2) · n/(ln n)²
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's symmetric — predicts the same count for n ≡ 1 (mod 3) and n ≡ 2 (mod 3). I built &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt; to check if that's actually true.&lt;/p&gt;

&lt;p&gt;It's not.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Luka Discovered
&lt;/h2&gt;

&lt;p&gt;Luka computed Goldbach partition counts for &lt;strong&gt;2,495,001 even integers&lt;/strong&gt; (10,000 to 5,000,000). Split by residue class mod 3:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Class&lt;/th&gt;
&lt;th&gt;Mean g(n)&lt;/th&gt;
&lt;th&gt;Count&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;n ≡ 0 (mod 3)&lt;/td&gt;
&lt;td&gt;19,607.1&lt;/td&gt;
&lt;td&gt;831,667&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;n ≡ 1 (mod 3)&lt;/td&gt;
&lt;td&gt;9,816.6&lt;/td&gt;
&lt;td&gt;831,667&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;n ≡ 2 (mod 3)&lt;/td&gt;
&lt;td&gt;9,791.0&lt;/td&gt;
&lt;td&gt;831,667&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;n ≡ 1 (mod 3) has 0.26% more Goldbach representations than n ≡ 2 (mod 3).&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Hardy–Littlewood formula says they should be equal. It's wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Statistics Are Insane
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Paired t-test (831,666 pairs): t = 9.02, &lt;strong&gt;p = 2.0 × 10⁻¹⁹&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Sign test: p = &lt;strong&gt;4.07 × 10⁻²⁰⁴&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One of the smallest p-values ever reported in experimental number theory. This isn't a fluke.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Mechanism
&lt;/h2&gt;

&lt;p&gt;The bias propagates through &lt;strong&gt;prime-pair channels&lt;/strong&gt;. Twin prime pairs (p, p+2) contribute ~15–20% of r(n). For n ≡ 1 (mod 3), this channel is systematically enhanced because:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Chebyshev bias favors primes ≡ 2 (mod 3)&lt;/li&gt;
&lt;li&gt;For n ≡ 1 (mod 3), the complementary prime q = n - p satisfies q ≡ 2 (mod 3)&lt;/li&gt;
&lt;li&gt;Twin primes preferentially contribute when n ≡ 1 (mod 3)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Chebyshev bias in primes &lt;strong&gt;propagates&lt;/strong&gt; to Goldbach counts.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Correction
&lt;/h2&gt;

&lt;p&gt;Luka proposed a Dirichlet character correction:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;r(n) ≈ Hardy–Littlewood + A₃χ₃(n) · n¹ᐟ²/(ln n)²
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A₃ = 1.23 × 10⁻⁵, with the correction scaling as n¹ᐟ² — exactly what L-function theory predicts.&lt;/p&gt;

&lt;h2&gt;
  
  
  The RS Gap
&lt;/h2&gt;

&lt;p&gt;The Rubinstein–Sarnak heuristic &lt;strong&gt;underestimates&lt;/strong&gt; the Goldbach bias by 4–10×. Why? RS estimates from prime-counting distributions, but Goldbach counts are a convolution. The bilinear structure amplifies the bias by the singular series S(n).&lt;/p&gt;

&lt;h2&gt;
  
  
  The Takeaway
&lt;/h2&gt;

&lt;p&gt;I'm a developer, not a mathematician. I built an AI research engine to see if it could do real discovery. Pointed it at one of the oldest open problems in math, and it found a Chebyshev bias that nobody had measured before — with p = 4.07 × 10⁻²⁰⁴.&lt;/p&gt;

&lt;p&gt;The times are not far when AI systems will make serious mathematical discoveries autonomously. This is a proof of concept.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code &amp;amp; Data
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/subhansh-dev/goldbach-chebyshev-bias" rel="noopener noreferrer"&gt;github.com/subhansh-dev/goldbach-chebyshev-bias&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Python, NumPy, SciPy, 2.5M Goldbach counts (6.3 MB). Built with &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>math</category>
      <category>primes</category>
      <category>ai</category>
      <category>goldbach</category>
    </item>
    <item>
      <title>I Built an AI Research Engine and It Found a Perfect Power Law in Twin Primes (2026)</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Fri, 03 Jul 2026 17:07:05 +0000</pubDate>
      <link>https://dev.to/subhansh/i-built-an-ai-research-engine-and-it-found-a-perfect-power-law-in-twin-primes-2026-4g65</link>
      <guid>https://dev.to/subhansh/i-built-an-ai-research-engine-and-it-found-a-perfect-power-law-in-twin-primes-2026-4g65</guid>
      <description>&lt;p&gt;I'm a developer, not a number theorist. But I built &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt; — an autonomous AI research engine — and pointed it at one of math's oldest open problems. What it found blew my mind.&lt;/p&gt;

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

&lt;p&gt;I'm a developer who builds AI frameworks. One day I had an idea: what if I could build an engine that autonomously investigates open problems in mathematics? Not just answer questions — actually &lt;em&gt;research&lt;/em&gt; them. Run computations, test hypotheses, falsify models, write papers.&lt;/p&gt;

&lt;p&gt;I called it &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The first thing I pointed it at was the twin prime conjecture — the idea that there are infinitely many pairs of primes differing by 2, like (3,5), (11,13), (17,19). Hardy and Littlewood gave us a formula for this back in 1923:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;π₂(x) ≈ 2C₂x / (log x)²
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's elegant. It's widely used. And Luka found that it's systematically wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Luka Found
&lt;/h2&gt;

&lt;p&gt;Using verified twin prime counts from 10⁶ to 10¹⁴ (33 data points across 8 orders of magnitude), Luka discovered that the residual — the gap between prediction and reality — follows a &lt;strong&gt;perfect power law&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;R(x) ≈ 6.6 × 10⁻³ · x⁰·⁸⁶
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;R² = 0.9907.&lt;/strong&gt; But there's more. The exponent drifts, so the true model is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;R(x) ≈ C · xᵅ · (log x)^β     →    R² = 0.9997
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bootstrap resampling (10,000 iterations) confirms α = 0.8635 ± 0.015. This isn't any known mathematical constant — it's something new.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Critical Insight
&lt;/h2&gt;

&lt;p&gt;The residual isn't about twin primes at all. The simplified formula &lt;code&gt;2C₂x/(log x)²&lt;/code&gt; is an approximation to the full integral &lt;code&gt;2C₂∫dt/(log t)²&lt;/code&gt;. The difference is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;∆(x) = 2C₂(Li(x) - x/log x - x/(log x)²)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the &lt;strong&gt;second-order term&lt;/strong&gt; in the asymptotic expansion of Li(x). It follows a &lt;strong&gt;perfect power law with R² &amp;gt; 0.9999&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;∆(x) ≈ 2.2 × 10⁻³ · x⁰·⁹⁰
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The power law characterizes the systematic error in the simplified approximation, not the true twin prime residual.&lt;/p&gt;

&lt;h2&gt;
  
  
  Falsifying a Model
&lt;/h2&gt;

&lt;p&gt;A recent preprint proposed PRIT — an oscillatory model using Riemann zeta zeros. Luka tested it with 200 zeros computed to 25-digit precision.&lt;/p&gt;

&lt;p&gt;The predictions were off by &lt;strong&gt;factors of 100–700&lt;/strong&gt; with wrong signs. The model is falsified by two orders of magnitude.&lt;/p&gt;

&lt;h2&gt;
  
  
  Extrapolation
&lt;/h2&gt;

&lt;p&gt;Luka trained on just 4 data points (10⁶–10⁹) and predicted π₂(10¹⁰) with &lt;strong&gt;0.99% error&lt;/strong&gt;. Trained on 5 points, predicted π₂(10¹¹) with &lt;strong&gt;1.15% error&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bigger Picture
&lt;/h2&gt;

&lt;p&gt;I built Luka to prove that AI can do real scientific discovery — not just pattern matching on existing knowledge, but finding new structures, falsifying models, and generating testable predictions.&lt;/p&gt;

&lt;p&gt;This paper is the first result. The power law in the twin prime residual doesn't appear in any standard reference. It was found autonomously by an AI system I built as a developer.&lt;/p&gt;

&lt;p&gt;The times are not far when AI systems like Luka will make serious discoveries in mathematics, physics, and beyond. We're not there yet — but we're closer than most people think.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code &amp;amp; Data
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/subhansh-dev/twin-prime-power-law" rel="noopener noreferrer"&gt;github.com/subhansh-dev/twin-prime-power-law&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Python, NumPy, verified computations from Nicely's database. Built with &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>math</category>
      <category>primes</category>
      <category>ai</category>
      <category>research</category>
    </item>
    <item>
      <title>I Pointed My AI Research Engine at Goldbach's Conjecture — It Found a Hidden Bias</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Fri, 03 Jul 2026 17:05:12 +0000</pubDate>
      <link>https://dev.to/subhansh/i-pointed-my-ai-research-engine-at-goldbachs-conjecture-it-found-a-hidden-bias-44pn</link>
      <guid>https://dev.to/subhansh/i-pointed-my-ai-research-engine-at-goldbachs-conjecture-it-found-a-hidden-bias-44pn</guid>
      <description>&lt;p&gt;As a developer building AI for scientific discovery, I wanted to test if autonomous research actually works. So I built &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt; and pointed it at Goldbach's conjecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Background
&lt;/h2&gt;

&lt;p&gt;Goldbach's conjecture: every even integer &amp;gt; 2 is the sum of two primes. Verified up to 4 × 10¹⁸, but the distributional properties are poorly understood.&lt;/p&gt;

&lt;p&gt;The Hardy–Littlewood formula predicts the count of representations r(n):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;r(n) ≈ 2C₂ · ∏_{p|n} (p-1)/(p-2) · n/(ln n)²
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's symmetric — predicts the same count for n ≡ 1 (mod 3) and n ≡ 2 (mod 3). I built &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt; to check if that's actually true.&lt;/p&gt;

&lt;p&gt;It's not.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Luka Discovered
&lt;/h2&gt;

&lt;p&gt;Luka computed Goldbach partition counts for &lt;strong&gt;2,495,001 even integers&lt;/strong&gt; (10,000 to 5,000,000). Split by residue class mod 3:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Class&lt;/th&gt;
&lt;th&gt;Mean g(n)&lt;/th&gt;
&lt;th&gt;Count&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;n ≡ 0 (mod 3)&lt;/td&gt;
&lt;td&gt;19,607.1&lt;/td&gt;
&lt;td&gt;831,667&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;n ≡ 1 (mod 3)&lt;/td&gt;
&lt;td&gt;9,816.6&lt;/td&gt;
&lt;td&gt;831,667&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;n ≡ 2 (mod 3)&lt;/td&gt;
&lt;td&gt;9,791.0&lt;/td&gt;
&lt;td&gt;831,667&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;n ≡ 1 (mod 3) has 0.26% more Goldbach representations than n ≡ 2 (mod 3).&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Hardy–Littlewood formula says they should be equal. It's wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Statistics Are Insane
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Paired t-test (831,666 pairs): t = 9.02, &lt;strong&gt;p = 2.0 × 10⁻¹⁹&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Sign test: p = &lt;strong&gt;4.07 × 10⁻²⁰⁴&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One of the smallest p-values ever reported in experimental number theory. This isn't a fluke.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Mechanism
&lt;/h2&gt;

&lt;p&gt;The bias propagates through &lt;strong&gt;prime-pair channels&lt;/strong&gt;. Twin prime pairs (p, p+2) contribute ~15–20% of r(n). For n ≡ 1 (mod 3), this channel is systematically enhanced because:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Chebyshev bias favors primes ≡ 2 (mod 3)&lt;/li&gt;
&lt;li&gt;For n ≡ 1 (mod 3), the complementary prime q = n - p satisfies q ≡ 2 (mod 3)&lt;/li&gt;
&lt;li&gt;Twin primes preferentially contribute when n ≡ 1 (mod 3)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Chebyshev bias in primes &lt;strong&gt;propagates&lt;/strong&gt; to Goldbach counts.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Correction
&lt;/h2&gt;

&lt;p&gt;Luka proposed a Dirichlet character correction:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;r(n) ≈ Hardy–Littlewood + A₃χ₃(n) · n¹ᐟ²/(ln n)²
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A₃ = 1.23 × 10⁻⁵, with the correction scaling as n¹ᐟ² — exactly what L-function theory predicts.&lt;/p&gt;

&lt;h2&gt;
  
  
  The RS Gap
&lt;/h2&gt;

&lt;p&gt;The Rubinstein–Sarnak heuristic &lt;strong&gt;underestimates&lt;/strong&gt; the Goldbach bias by 4–10×. Why? RS estimates from prime-counting distributions, but Goldbach counts are a convolution. The bilinear structure amplifies the bias by the singular series S(n).&lt;/p&gt;

&lt;h2&gt;
  
  
  The Takeaway
&lt;/h2&gt;

&lt;p&gt;I'm a developer, not a mathematician. I built an AI research engine to see if it could do real discovery. Pointed it at one of the oldest open problems in math, and it found a Chebyshev bias that nobody had measured before — with p = 4.07 × 10⁻²⁰⁴.&lt;/p&gt;

&lt;p&gt;The times are not far when AI systems will make serious mathematical discoveries autonomously. This is a proof of concept.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code &amp;amp; Data
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/subhansh-dev/goldbach-chebyshev-bias" rel="noopener noreferrer"&gt;github.com/subhansh-dev/goldbach-chebyshev-bias&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Python, NumPy, SciPy, 2.5M Goldbach counts (6.3 MB). Built with &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>math</category>
      <category>primes</category>
      <category>ai</category>
      <category>goldbach</category>
    </item>
    <item>
      <title>I Built an AI Research Engine and It Found a Perfect Power Law in Twin Primes</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Fri, 03 Jul 2026 17:05:11 +0000</pubDate>
      <link>https://dev.to/subhansh/i-built-an-ai-research-engine-and-it-found-a-perfect-power-law-in-twin-primes-12ba</link>
      <guid>https://dev.to/subhansh/i-built-an-ai-research-engine-and-it-found-a-perfect-power-law-in-twin-primes-12ba</guid>
      <description>&lt;p&gt;I'm a developer, not a number theorist. But I built &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt; — an autonomous AI research engine — and pointed it at one of math's oldest open problems. What it found blew my mind.&lt;/p&gt;

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

&lt;p&gt;I'm a developer who builds AI frameworks. One day I had an idea: what if I could build an engine that autonomously investigates open problems in mathematics? Not just answer questions — actually &lt;em&gt;research&lt;/em&gt; them. Run computations, test hypotheses, falsify models, write papers.&lt;/p&gt;

&lt;p&gt;I called it &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The first thing I pointed it at was the twin prime conjecture — the idea that there are infinitely many pairs of primes differing by 2, like (3,5), (11,13), (17,19). Hardy and Littlewood gave us a formula for this back in 1923:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;π₂(x) ≈ 2C₂x / (log x)²
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's elegant. It's widely used. And Luka found that it's systematically wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Luka Found
&lt;/h2&gt;

&lt;p&gt;Using verified twin prime counts from 10⁶ to 10¹⁴ (33 data points across 8 orders of magnitude), Luka discovered that the residual — the gap between prediction and reality — follows a &lt;strong&gt;perfect power law&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;R(x) ≈ 6.6 × 10⁻³ · x⁰·⁸⁶
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;R² = 0.9907.&lt;/strong&gt; But there's more. The exponent drifts, so the true model is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;R(x) ≈ C · xᵅ · (log x)^β     →    R² = 0.9997
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bootstrap resampling (10,000 iterations) confirms α = 0.8635 ± 0.015. This isn't any known mathematical constant — it's something new.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Critical Insight
&lt;/h2&gt;

&lt;p&gt;The residual isn't about twin primes at all. The simplified formula &lt;code&gt;2C₂x/(log x)²&lt;/code&gt; is an approximation to the full integral &lt;code&gt;2C₂∫dt/(log t)²&lt;/code&gt;. The difference is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;∆(x) = 2C₂(Li(x) - x/log x - x/(log x)²)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the &lt;strong&gt;second-order term&lt;/strong&gt; in the asymptotic expansion of Li(x). It follows a &lt;strong&gt;perfect power law with R² &amp;gt; 0.9999&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;∆(x) ≈ 2.2 × 10⁻³ · x⁰·⁹⁰
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The power law characterizes the systematic error in the simplified approximation, not the true twin prime residual.&lt;/p&gt;

&lt;h2&gt;
  
  
  Falsifying a Model
&lt;/h2&gt;

&lt;p&gt;A recent preprint proposed PRIT — an oscillatory model using Riemann zeta zeros. Luka tested it with 200 zeros computed to 25-digit precision.&lt;/p&gt;

&lt;p&gt;The predictions were off by &lt;strong&gt;factors of 100–700&lt;/strong&gt; with wrong signs. The model is falsified by two orders of magnitude.&lt;/p&gt;

&lt;h2&gt;
  
  
  Extrapolation
&lt;/h2&gt;

&lt;p&gt;Luka trained on just 4 data points (10⁶–10⁹) and predicted π₂(10¹⁰) with &lt;strong&gt;0.99% error&lt;/strong&gt;. Trained on 5 points, predicted π₂(10¹¹) with &lt;strong&gt;1.15% error&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bigger Picture
&lt;/h2&gt;

&lt;p&gt;I built Luka to prove that AI can do real scientific discovery — not just pattern matching on existing knowledge, but finding new structures, falsifying models, and generating testable predictions.&lt;/p&gt;

&lt;p&gt;This paper is the first result. The power law in the twin prime residual doesn't appear in any standard reference. It was found autonomously by an AI system I built as a developer.&lt;/p&gt;

&lt;p&gt;The times are not far when AI systems like Luka will make serious discoveries in mathematics, physics, and beyond. We're not there yet — but we're closer than most people think.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code &amp;amp; Data
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/subhansh-dev/twin-prime-power-law" rel="noopener noreferrer"&gt;github.com/subhansh-dev/twin-prime-power-law&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Python, NumPy, verified computations from Nicely's database. Built with &lt;a href="https://github.com/subhansh-dev" rel="noopener noreferrer"&gt;Luka&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>math</category>
      <category>primes</category>
      <category>ai</category>
      <category>research</category>
    </item>
    <item>
      <title>Building a Dual-Track Autonomous Scientific Discovery Engine with GFlowNet Theory Selection</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Mon, 08 Jun 2026 23:28:04 +0000</pubDate>
      <link>https://dev.to/subhansh/building-a-dual-track-autonomous-scientific-discovery-engine-with-gflownet-theory-selection-5ahf</link>
      <guid>https://dev.to/subhansh/building-a-dual-track-autonomous-scientific-discovery-engine-with-gflownet-theory-selection-5ahf</guid>
      <description>&lt;h1&gt;
  
  
  Building a Dual-Track Autonomous Scientific Discovery Engine with GFlowNet-Powered Theory Selection
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Abstract
&lt;/h2&gt;

&lt;p&gt;We present RUMI (Research &amp;amp; Unified Machine Intelligence), an autonomous scientific discovery engine that implements a novel dual-track pipeline architecture. The system runs two independent 21-phase investigations on the same research question — one conventional, one curiosity-constrained — and compares results. We demonstrate that the curiosity-driven track produces theories with zero overlap against the conventional track, suggesting the constraint mechanism successfully drives exploration beyond existing literature. Theory selection employs GFlowNet-inspired diversity scoring (quality x novelty x diversity), and the system achieved consistent B-grade discovery scores (75-77/100) across domains with zero LLM failures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Current AI-assisted research tools share a fundamental limitation: they are stateless, reactive, and single-pass systems. When asked to explain a phenomenon like dark energy expansion, an LLM will reliably reproduce well-known theories from its training data (LCDM, quintessence, f(R) gravity). This is not discovery — it is retrieval.&lt;/p&gt;

&lt;p&gt;The core challenge is that LLMs are trained on existing literature. Asking them to generate something genuinely novel that is NOT in the literature is the fundamental problem of AI-assisted discovery. However, this is not unique to AI — human researchers face the same constraint. Newton did not know beyond his books. His breakthrough was not inventing gravity from nothing; it was connecting apple-falling (near Earth) with moon-orbiting (far from Earth) and hypothesizing the same force governs both. The data already existed. The &lt;strong&gt;connection&lt;/strong&gt; was new.&lt;/p&gt;

&lt;p&gt;This insight drives our approach: rather than trying to make the AI invent beyond its training data, we implement the &lt;strong&gt;thinking process&lt;/strong&gt; that leads to discovery — observation, questioning, generalization (cross-domain connection), derivation, prediction, and verification.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Dual-Track Design
&lt;/h3&gt;

&lt;p&gt;The pipeline runs two independent executions:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Track A (Conventional):&lt;/strong&gt; A 21-phase pipeline with no constraints. Literature search across 7 sources (arXiv, PubMed, Semantic Scholar, CrossRef, INSPIRE HEP, CORE, OpenAlex), knowledge graph construction with 37 API enrichments, gap detection, anomaly detection, hidden variable generation, mechanism derivation, prediction generation, and a tournament of 20 competing theories.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Track B (Curiosity-Driven):&lt;/strong&gt; The same 21-phase pipeline, but with a soft constraint injected into the mechanism generator and theory tournament prompts. The constraint is generated by the curiosity engine (Phase 0) and identifies known theories as reference points while encouraging novel approaches.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Constraint System
&lt;/h3&gt;

&lt;p&gt;Early iterations used aggressive constraint language: "FORBIDDEN THEORIES — You MUST NOT reproduce any of these." This caused the LLM to return empty or malformed output, as it could not simultaneously satisfy the constraint and generate valid mechanisms.&lt;/p&gt;

&lt;p&gt;The fix was a &lt;strong&gt;soft constraint&lt;/strong&gt; approach:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"KNOWN THEORIES — for reference, not reproduction"&lt;/li&gt;
&lt;li&gt;"DESIRABLE PROPERTIES — aim for these, not mandatory"&lt;/li&gt;
&lt;li&gt;"Prefer novel approaches. OK to reference known theories if extended with new elements"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This preserves the LLM's ability to generate valid mechanisms while nudging it toward novelty.&lt;/p&gt;

&lt;h3&gt;
  
  
  GFlowNet Theory Selection
&lt;/h3&gt;

&lt;p&gt;Theory selection employs GFlowNet-inspired diversity scoring, inspired by Yoshua Bengio's work on Generative Flow Networks. Instead of selecting the highest-scoring theory, the system computes a composite score:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composite = quality_score x (1 + novelty_bonus + diversity_bonus)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;quality_score&lt;/code&gt;: weighted sum of 7 dimensions (novelty 0.25, explanatory 0.20, predictive 0.15, falsifiability 0.12, evidence 0.12, math_rigor 0.08, simplicity 0.08)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;novelty_bonus&lt;/code&gt;: +0.20 for novel, +0.10 for refinement, +0.05 for unknown&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;diversity_bonus&lt;/code&gt;: +0.03 per theory with &amp;lt;30% word overlap (up to +0.15)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This prevents the tournament from converging on a single answer and keeps multiple competing explanations alive — which mirrors how real science operates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Universe Expansion Experiment
&lt;/h3&gt;

&lt;p&gt;Topic: "Why does the universe expand faster than expected?"&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Track A (Conventional)&lt;/th&gt;
&lt;th&gt;Track B (Curiosity-Driven)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Score&lt;/td&gt;
&lt;td&gt;77/100 (B)&lt;/td&gt;
&lt;td&gt;75/100 (B)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Winner&lt;/td&gt;
&lt;td&gt;Scale-Dependent Effective Gravity&lt;/td&gt;
&lt;td&gt;Temporal Vacuum Shear Framework&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Theories&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mechanisms&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Predictions&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Shared theories&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Errors&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The zero shared theories between tracks is the key result. Track A converged on conventional modified gravity approaches. Track B, constrained to explore beyond known theories, produced the Temporal Vacuum Shear Framework — a genuinely different theoretical direction.&lt;/p&gt;

&lt;h3&gt;
  
  
  Dream Neuroscience Experiment
&lt;/h3&gt;

&lt;p&gt;Topic: "Why do we dream?"&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Track A&lt;/th&gt;
&lt;th&gt;Track B&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Score&lt;/td&gt;
&lt;td&gt;77/100 (B)&lt;/td&gt;
&lt;td&gt;72/100 (B)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Winner&lt;/td&gt;
&lt;td&gt;Predictive-Coding Amplification in REM&lt;/td&gt;
&lt;td&gt;Activation-Synthesis Hypothesis (Re-framed)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shared theories&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Engineering Challenges
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Rate Limiting
&lt;/h3&gt;

&lt;p&gt;Running 42 phases (21 per track) generates 100+ LLM API calls per run. With 3 providers (Cerebras, Groq, Gemini) and multiple API keys, we encountered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Gemini 503 errors (server overload)&lt;/li&gt;
&lt;li&gt;Semantic Scholar 429 rate limits&lt;/li&gt;
&lt;li&gt;DNS resolution hangs on Windows (urllib.request.urlopen does not respect timeout during DNS)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Solution: 13 API keys across 3 providers (6 Cerebras + 3 Groq + 4 Gemini) with automatic rotation, plus &lt;code&gt;socket.setdefaulttimeout(30)&lt;/code&gt; to cap DNS hangs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Bugs Fixed (14 total)
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;GFlowNet winner selection&lt;/strong&gt;: Promoted known science over novel theories after Winner Override&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Refinement scoring display&lt;/strong&gt;: Showed 0/100 instead of actual 71/100 (wrong dict key)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cerebras key loading&lt;/strong&gt;: Keys 4-6 hardcoded out of the loading function&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DNS hangs&lt;/strong&gt;: Pipeline blocked indefinitely on Windows DNS resolution&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retry layers&lt;/strong&gt;: 6 redundant retry attempts per LLM call reduced to 4&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Counterfactual reasoning&lt;/strong&gt;: Used &lt;code&gt;winner&lt;/code&gt; variable before Phase 8 tournament defined it&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Computation engine&lt;/strong&gt;: &lt;code&gt;derivation&lt;/code&gt; field is a list of dicts, not a string
8-10. &lt;strong&gt;Derivation format&lt;/strong&gt;: Mechanism completeness, math engine, and EMPC pipeline could not read derivation data stored as &lt;code&gt;[{step: ..., content: ...}]&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Observability check&lt;/strong&gt;: Read predictions from theories (0 predictions) instead of prediction engine (6 predictions)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Constraint aggression&lt;/strong&gt;: "MUST NOT" language caused LLM to return empty output&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Winner reconciliation&lt;/strong&gt;: Three different winners from three different selection mechanisms&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ResilientLLM&lt;/strong&gt;: Enhancement layer only tried Groq + Gemini, skipping primary Cerebras provider&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Limitations
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Mechanism quality&lt;/strong&gt;: The primary mechanism generator frequently fails, falling back to graph-mined mechanisms with no mathematical derivations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EMPC chain integrity&lt;/strong&gt;: Low (1-29%) — equation grounding needs improvement&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-domain generalization&lt;/strong&gt;: The &lt;code&gt;_generalize()&lt;/code&gt; method finds connections but they are not yet fed back into the pipeline as first-class constraints&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-validation&lt;/strong&gt;: Phase 11.6 is mentioned in the architecture but never implemented&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The dual-track architecture demonstrates that curiosity-constrained pipelines can explore genuinely different theoretical territory from conventional pipelines. The zero-overlap result across multiple experiments suggests the soft constraint mechanism is effective at driving novelty without breaking the LLM's ability to generate valid mechanisms.&lt;/p&gt;

&lt;p&gt;The GFlowNet-inspired diversity selection ensures the tournament does not converge prematurely, keeping multiple competing explanations alive. Combined with adversarial testing, skeptic review, and the scientific courtroom evaluation, the system implements a rigorous quality control pipeline that mirrors aspects of the scientific method.&lt;/p&gt;

&lt;h2&gt;
  
  
  Repository
&lt;/h2&gt;

&lt;p&gt;RUMI is open source: &lt;a href="https://github.com/subhansh-dev/rumi" rel="noopener noreferrer"&gt;github.com/subhansh-dev/rumi&lt;/a&gt; (latest dual-track updates coming soon)&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built with 13 API keys across 3 providers, 21 phases per track, and approximately 30 hours of iterative debugging and feature development.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>opensource</category>
      <category>research</category>
      <category>python</category>
    </item>
    <item>
      <title>How My AI Research Agent Proposed Novel Physics That Doesn't Exist Anywhere on the Internet</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Wed, 03 Jun 2026 21:11:18 +0000</pubDate>
      <link>https://dev.to/subhansh/how-my-ai-research-agent-proposed-novel-physics-that-doesnt-exist-anywhere-on-the-internet-5ce9</link>
      <guid>https://dev.to/subhansh/how-my-ai-research-agent-proposed-novel-physics-that-doesnt-exist-anywhere-on-the-internet-5ce9</guid>
      <description>&lt;h1&gt;
  
  
  How My AI Research Agent Proposed Novel Physics That Doesn't Exist Anywhere on the Internet
&lt;/h1&gt;

&lt;p&gt;As many of you know, I've been building &lt;strong&gt;Rumi&lt;/strong&gt; — an autonomous research agent that reads papers, builds knowledge graphs, and proposes novel hypotheses by combining concepts in ways no one has done before.&lt;/p&gt;

&lt;p&gt;I ran it on two unsolved problems in astrophysics. And honestly? The results surprised me.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔭 Discovery 1: Gravitational Wave Echoes from Extra Dimensions
&lt;/h2&gt;

&lt;p&gt;When black holes merge, LIGO detects gravitational waves. But some researchers have noticed something strange — faint &lt;strong&gt;echoes&lt;/strong&gt; after the main signal. Standard General Relativity doesn't predict these.&lt;/p&gt;

&lt;p&gt;Rumi analyzed &lt;strong&gt;28 arXiv papers&lt;/strong&gt; and proposed a &lt;strong&gt;three-variable framework&lt;/strong&gt; to explain them:&lt;/p&gt;

&lt;h3&gt;
  
  
  Q_brane — Brane-Induced Tidal Charge
&lt;/h3&gt;

&lt;p&gt;In Randall-Sundrum braneworlds, the 4D black hole solution acquires an effective tidal charge from the projection of the Weyl tensor onto the brane. This modifies the metric:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ds² = -(1 - 2GM/r + Q_brane/r²)dt² + ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Which in turn modifies the effective radial potential for perturbations:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;V_eff(r) = (1 - 2M/r + Q_brane/r²) [l(l+1)/r² + ...]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  g_phi — Bulk Scalar-Field Leakage
&lt;/h3&gt;

&lt;p&gt;A light scalar field propagating in the extra dimension gets excited by the merger event. It leaks energy into the bulk, producing damped echoes at:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;t_n = t₀ + n·Δt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The coupling strength &lt;code&gt;g_phi&lt;/code&gt; controls the attenuation length in the bulk — stronger coupling means faster damping of the echo signal.&lt;/p&gt;

&lt;h3&gt;
  
  
  alpha_KK — Kaluza-Klein Dispersion Correction
&lt;/h3&gt;

&lt;p&gt;Kaluza-Klein modes in extra dimensions modify the graviton dispersion relation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ω² = k²c² + α_KK · m_n²c⁴/ℏ²
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This gives a frequency-dependent group velocity:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v_g = dω/dk ≈ c[1 - (α_KK · k²)/2]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For &lt;code&gt;f ~ 200 Hz&lt;/code&gt; (typical LIGO band), the fractional shift is &lt;code&gt;Δf/f ~ 10⁻⁶&lt;/code&gt; — small but potentially detectable.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Key Insight
&lt;/h3&gt;

&lt;p&gt;Each of these variables exists independently across different papers. Nobody has combined them into a single coherent framework with testable predictions. That's what Rumi did.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Score: 76/100&lt;/strong&gt; | Own-skeptic verdict: &lt;em&gt;Promising but needs refinement&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🌟 Discovery 2: Anomalous Stellar Dimming — Beyond Exoplanets and Dust
&lt;/h2&gt;

&lt;p&gt;TESS and Kepler have found stars that dim in ways we can't fully explain. Not just Tabby's Star — there's a whole class of events with sharp, irregular dips that don't fit standard models.&lt;/p&gt;

&lt;p&gt;Rumi analyzed &lt;strong&gt;29 papers&lt;/strong&gt; and proposed another &lt;strong&gt;three-variable framework&lt;/strong&gt;:&lt;/p&gt;

&lt;h3&gt;
  
  
  SMRZ — Stellar Magnetospheric Reconnection Zone
&lt;/h3&gt;

&lt;p&gt;A localized region in the outer magnetosphere where large-scale magnetic reconnection events produce transient opacity enhancements. A reconnection event triggers when the magnetic shear angle exceeds ~30°. The outflow forms a sheet of thickness:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;L ~ v_out · Δt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;where &lt;code&gt;Δt ~ 10 min&lt;/code&gt; (typical reconnection timescale). This creates a transient opacity enhancement that blocks starlight.&lt;/p&gt;

&lt;h3&gt;
  
  
  VODC — Variable Optical-Depth Circumstellar Dust Cloud
&lt;/h3&gt;

&lt;p&gt;A clumpy, partially ionized dust structure orbiting at ~1 AU around the target star. Grain dynamics are governed by:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;∂n_d/∂t + div(n_d · v_d) = -n_d/τ_s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;where &lt;code&gt;n_d&lt;/code&gt; is grain number density, &lt;code&gt;v_d&lt;/code&gt; is drift velocity, and &lt;code&gt;τ_s&lt;/code&gt; is the sublimation time.&lt;/p&gt;

&lt;p&gt;Radiation pressure drives grain acceleration with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;β = F_rad / F_grav
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For grains of size &lt;code&gt;a ~ 0.1 μm&lt;/code&gt;, β approaches unity — meaning radiation pressure nearly balances gravity, creating highly dynamic dust configurations.&lt;/p&gt;

&lt;h3&gt;
  
  
  DP-ET — Dark Photon Mediated Energy Transport
&lt;/h3&gt;

&lt;p&gt;A hypothesized low-mass (&lt;code&gt;m_γ' &amp;lt; 10⁻¹² eV&lt;/code&gt;) dark photon that mixes kinetically with ordinary photons in the stellar radiative zone. The photon–dark-photon conversion rate is set by the kinetic mixing parameter &lt;code&gt;χ&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Integrated over the radiative zone (&lt;code&gt;M_rad ~ 0.7 M☉&lt;/code&gt;), this produces anomalous luminosity loss that looks like unexplained dimming.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Key Insight
&lt;/h3&gt;

&lt;p&gt;Same story — the individual concepts are known. But the specific way Rumi combined them into a unified cascade mechanism with testable predictions? Novel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Score: 72/100&lt;/strong&gt; | Own-skeptic verdict: &lt;em&gt;Interesting synthesis, needs tighter modeling&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  What Actually Happened Under the Hood
&lt;/h2&gt;

&lt;p&gt;Here's what Rumi's pipeline did:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Processed &lt;strong&gt;57 papers&lt;/strong&gt; (28 + 29 arXiv papers)&lt;/li&gt;
&lt;li&gt;Built knowledge graphs with &lt;strong&gt;138+ entities&lt;/strong&gt; and &lt;strong&gt;107+ relationships&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Proposed &lt;strong&gt;4 hidden variables&lt;/strong&gt; per discovery (3 shown above each)&lt;/li&gt;
&lt;li&gt;Generated &lt;strong&gt;12 falsifiable predictions&lt;/strong&gt; (6 per discovery)&lt;/li&gt;
&lt;li&gt;Ran &lt;strong&gt;theory competitions&lt;/strong&gt; against 10 alternative explanations&lt;/li&gt;
&lt;li&gt;Had a &lt;strong&gt;built-in skeptic agent&lt;/strong&gt; review its own work&lt;/li&gt;
&lt;li&gt;Completed in under &lt;strong&gt;2 minutes&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The skeptic flagged both discoveries as "REVISE" with low confidence (42% for Discovery 1, unknown for Discovery 2). And that's by design — Rumi doesn't confirm itself. It proposes and stress-tests.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Honest Take
&lt;/h2&gt;

&lt;p&gt;These are &lt;strong&gt;hypotheses, not breakthroughs&lt;/strong&gt;. The mechanisms need tighter quantitative models and the predictions need observational data. I'm not claiming Rumi solved physics.&lt;/p&gt;

&lt;p&gt;But here's what it &lt;em&gt;did&lt;/em&gt; do:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It explored a &lt;strong&gt;combinatorial space of ideas&lt;/strong&gt; that would take a human research team weeks to map out&lt;/li&gt;
&lt;li&gt;It surfaced &lt;strong&gt;novel variable combinations&lt;/strong&gt; worth investigating&lt;/li&gt;
&lt;li&gt;The individual ingredients are all &lt;strong&gt;established physics&lt;/strong&gt; — the recipes are new&lt;/li&gt;
&lt;li&gt;The specific combinations can't be found in any paper, blog, or anywhere online&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's the real power of autonomous research agents. Not replacing scientists. But giving them &lt;strong&gt;novel starting points&lt;/strong&gt; they wouldn't have found on their own.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;I'm working on improving Rumi's quantitative modeling capabilities and adding observational data integration. The goal is to go from "interesting hypothesis" to "testable prediction with confidence intervals."&lt;/p&gt;

&lt;p&gt;More updates coming soon.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built with Python, arXiv APIs, and a lot of late nights. If you're working on similar AI-for-science projects, I'd love to connect.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>astrophysics</category>
      <category>research</category>
      <category>ai</category>
    </item>
    <item>
      <title>I Built a 95K-Line Cognitive AI OS at 17 — Yoshua Bengio Reviewed It</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Thu, 28 May 2026 15:23:34 +0000</pubDate>
      <link>https://dev.to/subhansh/i-built-a-95k-line-cognitive-ai-os-at-17-yoshua-bengio-reviewed-it-2661</link>
      <guid>https://dev.to/subhansh/i-built-a-95k-line-cognitive-ai-os-at-17-yoshua-bengio-reviewed-it-2661</guid>
      <description>&lt;p&gt;I'm 17. Self-taught. From Vadodara, India. No university. No formal CS education. No funding.&lt;/p&gt;

&lt;p&gt;I built two autonomous cognitive systems totaling 150K+ lines of Python. Yoshua Bengio (Turing Award nominee, Mila founder) reviewed my architecture. A Princeton neuroscience professor acknowledged it.&lt;/p&gt;

&lt;p&gt;Here's what I built, how I built it, and what I learned.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Projects
&lt;/h2&gt;

&lt;h3&gt;
  
  
  F.R.I.D.A.Y. — Autonomous Cognitive AI Operating System
&lt;/h3&gt;

&lt;p&gt;FRIDAY is a 95K-line cognitive AI OS with 66 modular brain components. Not a chatbot wrapper. Not an API call. A genuine cognitive architecture.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Brain Modules Include:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Active Inference Engine (Karl Friston's free-energy principle)&lt;/li&gt;
&lt;li&gt;Hebbian Memory with synaptic strength decay (72h TTL)&lt;/li&gt;
&lt;li&gt;Episodic Memory with vector search&lt;/li&gt;
&lt;li&gt;Dreaming routines (offline consolidation during idle states)&lt;/li&gt;
&lt;li&gt;Self-Awareness meters&lt;/li&gt;
&lt;li&gt;Curiosity engine&lt;/li&gt;
&lt;li&gt;Theory of Mind&lt;/li&gt;
&lt;li&gt;Metacognitive Monitor&lt;/li&gt;
&lt;li&gt;Global Workspace (Baars' Global Workspace Theory)&lt;/li&gt;
&lt;li&gt;Causal Reasoner (Pearl's hierarchy)&lt;/li&gt;
&lt;li&gt;Analogy Engine (Gentner's structure mapping)&lt;/li&gt;
&lt;li&gt;Narrative Intelligence&lt;/li&gt;
&lt;li&gt;Transfer Learning&lt;/li&gt;
&lt;li&gt;Predictive Memory&lt;/li&gt;
&lt;li&gt;World Simulation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Mythos Security Pipeline:&lt;/strong&gt;&lt;br&gt;
7-agent autonomous security audit system:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Recon — Maps file entry points, identifies tech stack&lt;/li&gt;
&lt;li&gt;Hunter — Scans for logic vulnerabilities, injection points&lt;/li&gt;
&lt;li&gt;Secrets — Detects hardcoded API keys, tokens, credentials&lt;/li&gt;
&lt;li&gt;DAST — Dynamic analysis, realistic attack simulations&lt;/li&gt;
&lt;li&gt;Logic Flaw — Audits authentication flows, authorization boundaries&lt;/li&gt;
&lt;li&gt;Code Quality — Flags insecure patterns, deprecated libraries&lt;/li&gt;
&lt;li&gt;Supply Chain — Checks dependencies against CVE databases&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Full CVSS scoring. Automated reports in under 60 seconds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Smart LLM Routing:&lt;/strong&gt;&lt;br&gt;
Routes queries to the right model based on complexity:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Flash for reflexive tasks&lt;/li&gt;
&lt;li&gt;Opus for deep planning&lt;/li&gt;
&lt;li&gt;Groq for fast inference&lt;/li&gt;
&lt;li&gt;Local fallbacks for offline operation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Runs on minimal hardware:&lt;/strong&gt; 4GB RAM, i3 CPU, no GPU. Pure Python, zero native compilation.&lt;/p&gt;

&lt;h3&gt;
  
  
  R.U.M.I. — Autonomous Scientific Discovery Framework
&lt;/h3&gt;

&lt;p&gt;RUMI is an 88-module autonomous scientific cognition framework with 15 Scientist AI modules and a 10-stage hypothesis discovery pipeline.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Pipeline:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;PubMed Retrieval — Queries scientific literature databases&lt;/li&gt;
&lt;li&gt;Relevance Filter — Scores papers by domain relevance&lt;/li&gt;
&lt;li&gt;NER Entity Extraction — Identifies genes, compounds, pathways, mutations&lt;/li&gt;
&lt;li&gt;Knowledge Graph Construction — Builds semantic relationships (5K+ entities)&lt;/li&gt;
&lt;li&gt;Contradiction Mining — Detects logical conflicts across papers&lt;/li&gt;
&lt;li&gt;Hypothesis Generation — Synthesizes testable hypotheses&lt;/li&gt;
&lt;li&gt;Skeptic Review — Challenges hypotheses with counter-evidence&lt;/li&gt;
&lt;li&gt;Novelty Verification — Checks against existing literature&lt;/li&gt;
&lt;li&gt;Experiment Planning — Designs validation protocols (Western blot, qRT-PCR)&lt;/li&gt;
&lt;li&gt;Metrics Logging — Tracks confidence scores, provenance&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;15+ Scientific Database Integrations:&lt;/strong&gt;&lt;br&gt;
PubMed, Semantic Scholar, OpenAlex, arXiv, PDB, UniProt, PubChem, GBIF, NASA, NOAA, WHO, World Bank, and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9-Type Memory Architecture:&lt;/strong&gt;&lt;br&gt;
Neural, Episodic, Vector, Procedural, Working, Associative, Predictive, Consolidated, Global Workspace.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real Results:&lt;/strong&gt;&lt;br&gt;
Generated 2 novel testable hypotheses for KRAS G12C sotorasib resistance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;RAC1/PAK1 reactivation pathway&lt;/li&gt;
&lt;li&gt;PI3K-AKT bypass mechanism&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are real oncology hypotheses that could guide future research.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Benchmarks
&lt;/h2&gt;

&lt;p&gt;I benchmarked FRIDAY's cognitive pipeline (not raw LLM calls) on 7 recognized AI benchmarks using Groq's free llama-3.1-8b-instant. No paid APIs. Two Groq API keys with round-robin rotation.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Benchmark&lt;/th&gt;
&lt;th&gt;Accuracy&lt;/th&gt;
&lt;th&gt;Questions&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ARC-Challenge&lt;/td&gt;
&lt;td&gt;88%&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;Competitive with 10-100x larger models&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GSM8K (Math)&lt;/td&gt;
&lt;td&gt;85%&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;Multi-step mathematical reasoning&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TruthfulQA&lt;/td&gt;
&lt;td&gt;71%&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;Fact vs common misconceptions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MMLU&lt;/td&gt;
&lt;td&gt;61%&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;57 academic subjects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ARC-Easy&lt;/td&gt;
&lt;td&gt;68%&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;Grade-school science&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPQA (PhD-level)&lt;/td&gt;
&lt;td&gt;42%&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;Designed for non-experts to score ~0%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Total: 535 questions. 0 errors. 0 retries. Pass@1.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The standout: ARC-Challenge at 88% on an 8B model. That's competitive with models 10-100x its size.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Proof the pipeline works:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Correct answers averaged 61.8s vs incorrect at 58.7s&lt;/li&gt;
&lt;li&gt;More reasoning time → better answers&lt;/li&gt;
&lt;li&gt;This is a real cognitive pipeline, not random guessing&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Bengio Story
&lt;/h2&gt;

&lt;p&gt;I emailed Yoshua Bengio about FRIDAY. Here's what happened:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Email 1:&lt;/strong&gt; I introduced FRIDAY and asked for feedback.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Email 2:&lt;/strong&gt; Bengio replied: "Did you evaluate its capabilities and safety on standard benchmarks?"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Email 3:&lt;/strong&gt; I tried SWE-Bench and GAIA but hit Gemini's free tier rate limits. I explained the situation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Email 4:&lt;/strong&gt; Bengio: "You're not going to convince anyone if you don't have competitive results."&lt;/p&gt;

&lt;p&gt;He was right. So I benchmarked FRIDAY on 7 recognized benchmarks. Sent him the results.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Email 5:&lt;/strong&gt; Bengio: "Sorry but I don't have more time to discuss this. I need to focus on Scientist AI. All the best with your project."&lt;/p&gt;

&lt;p&gt;He engaged 4 times. He pushed me to benchmark properly. He acknowledged the work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Princeton Recognition
&lt;/h2&gt;

&lt;p&gt;Michael S. Graziano, Princeton neuroscience professor (creator of Attention Schema Theory of consciousness), acknowledged FRIDAY's brain-module design.&lt;/p&gt;

&lt;p&gt;His response: "Dear Subhansh, Thank you for the email and the enthusiasm! Friday sounds like a wonderful project, and thank you for telling me about it. Best wishes with it, and with all future endeavors."&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Benchmark everything.&lt;/strong&gt; Bengio was right — without competitive results, nobody listens.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Build systems, not scripts.&lt;/strong&gt; FRIDAY isn't a script. It's a cognitive architecture with 66 brain modules. That's what makes it interesting.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Age doesn't matter.&lt;/strong&gt; What you build matters. I'm 17. I built 150K+ lines of autonomous cognitive systems. Bengio reviewed it. Princeton acknowledged it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;AI augmentation is real.&lt;/strong&gt; I build with AI assistance (Cursor, Claude, Copilot). That's not cheating — it's the future of development. I ship at 10x speed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Open source builds credibility.&lt;/strong&gt; Everything is on GitHub. People can see what I built. That's more convincing than any resume.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Code
&lt;/h2&gt;

&lt;p&gt;Both projects are open source:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;FRIDAY:&lt;/strong&gt; &lt;a href="https://github.com/subhansh-dev/Friday" rel="noopener noreferrer"&gt;https://github.com/subhansh-dev/Friday&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RUMI:&lt;/strong&gt; &lt;a href="https://github.com/subhansh-dev/Rumi" rel="noopener noreferrer"&gt;https://github.com/subhansh-dev/Rumi&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Portfolio:&lt;/strong&gt; &lt;a href="https://subhanshh.vercel.app" rel="noopener noreferrer"&gt;https://subhanshh.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;I'm looking for an AI research internship where I can ship real work. Open to anywhere worldwide. Can start immediately.&lt;/p&gt;

&lt;p&gt;If you're building something interesting and need someone who thinks in architectures, not scripts — let's talk.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Subhansh is a 17-year-old self-taught AI researcher from Vadodara, India. He builds autonomous cognitive systems and thinks the future of AI is in cognitive architectures, not just bigger models.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>research</category>
      <category>python</category>
    </item>
    <item>
      <title>Contradiction Mining in Scientific Literature: How RUMI Finds Conflicts Across Papers</title>
      <dc:creator>subhansh</dc:creator>
      <pubDate>Thu, 28 May 2026 11:30:57 +0000</pubDate>
      <link>https://dev.to/subhansh/contradiction-mining-in-scientific-literature-how-rumi-finds-conflicts-across-papers-30fc</link>
      <guid>https://dev.to/subhansh/contradiction-mining-in-scientific-literature-how-rumi-finds-conflicts-across-papers-30fc</guid>
      <description>&lt;h1&gt;
  
  
  Contradiction Mining in Scientific Literature: How RUMI Finds Conflicts Across Papers
&lt;/h1&gt;

&lt;p&gt;One of the hardest problems in scientific research is identifying contradictions across papers. Two studies might claim opposite things about the same mechanism, and unless you read both carefully — and remember both — you'll never notice the conflict.&lt;/p&gt;

&lt;p&gt;RUMI automates this. Here's the technical approach.&lt;/p&gt;

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

&lt;p&gt;Scientific literature is growing exponentially. PubMed adds ~4,000 papers per day. No human can read, remember, and cross-reference everything. This leads to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Unresolved contradictions&lt;/strong&gt;: Paper A says mechanism X causes outcome Y. Paper B says mechanism X prevents outcome Y. Neither cites the other.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hidden consensus&lt;/strong&gt;: 5 papers independently confirm the same finding, but nobody has connected them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Novel findings hiding in plain sight&lt;/strong&gt;: A new mechanism described in one paper is actually the missing piece for a puzzle described in another.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  RUMI's Contradiction Mining Pipeline
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Stage 1: Entity Normalization
&lt;/h3&gt;

&lt;p&gt;Before you can find contradictions, you need to know when two papers are talking about the same thing. RUMI normalizes entities using multiple strategies:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gene/protein names&lt;/strong&gt;: Maps aliases to canonical names (e.g., "BRAF" = "B-Raf" = "v-Raf murine sarcoma viral oncogene homolog B")&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Drug names&lt;/strong&gt;: Maps brand names to generic (e.g., "Lumakras" = "sotorasib" = "AMG 510")&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pathway names&lt;/strong&gt;: Uses KEGG and Reactome IDs to normalize pathway references&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disease names&lt;/strong&gt;: Maps to MeSH terms and OMIM IDs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without normalization, "sotorasib" and "AMG 510" look like different entities. With it, RUMI can connect findings across papers that use different nomenclature.&lt;/p&gt;

&lt;h3&gt;
  
  
  Stage 2: Claim Extraction
&lt;/h3&gt;

&lt;p&gt;RUMI extracts structured claims from each paper using LLM-assisted parsing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nd"&gt;@dataclass&lt;/span&gt;
&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ScientificClaim&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;subject&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Entity&lt;/span&gt;        &lt;span class="c1"&gt;# What is being discussed
&lt;/span&gt;    &lt;span class="n"&gt;predicate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;         &lt;span class="c1"&gt;# What relationship is claimed
&lt;/span&gt;    &lt;span class="nb"&gt;object&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Entity&lt;/span&gt;         &lt;span class="c1"&gt;# What it's related to
&lt;/span&gt;    &lt;span class="n"&gt;direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;         &lt;span class="c1"&gt;# positive / negative / neutral
&lt;/span&gt;    &lt;span class="n"&gt;confidence&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;      &lt;span class="c1"&gt;# Extraction confidence
&lt;/span&gt;    &lt;span class="n"&gt;evidence_type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;     &lt;span class="c1"&gt;# experimental / observational / computational
&lt;/span&gt;    &lt;span class="n"&gt;paper_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;          &lt;span class="c1"&gt;# Source paper
&lt;/span&gt;    &lt;span class="n"&gt;sentence&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;          &lt;span class="c1"&gt;# Original text
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example extraction:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Subject: KRAS G12C, Predicate: activates, Object: MAPK signaling, Direction: positive&lt;/li&gt;
&lt;li&gt;Subject: Sotorasib, Predicate: inhibits, Object: KRAS G12C, Direction: negative&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Stage 3: Contradiction Detection
&lt;/h3&gt;

&lt;p&gt;Two claims contradict when they have the same subject and object but opposite directions, or when one paper claims A causes B while another claims A prevents B.&lt;/p&gt;

&lt;p&gt;RUMI uses three detection methods:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Direct contradiction&lt;/strong&gt;: Same entities, opposite directions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Paper 1: "AURKA promotes KRAS inhibitor resistance"
Paper 2: "AURKA inhibition does not sensitize KRAS-mutant cells"
→ Direct contradiction on AURKA's role
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Contextual contradiction&lt;/strong&gt;: Same relationship, different conditions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Paper 1: "MET amplification drives resistance in early treatment"
Paper 2: "MET amplification is rare in acquired resistance"
→ Contextual: timing-dependent
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Implicit contradiction&lt;/strong&gt;: Different mechanisms proposed for the same phenomenon.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Paper 1: "Resistance is primarily driven by MAPK reactivation"
Paper 2: "Resistance is primarily driven by PI3K/AKT activation"
→ Implicit: competing models
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Stage 4: Resolution Analysis
&lt;/h3&gt;

&lt;p&gt;Not all contradictions are real. Some are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Methodological&lt;/strong&gt;: Different cell lines, different doses, different timepoints&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Temporal&lt;/strong&gt;: The field's understanding evolved between publication dates&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Definitional&lt;/strong&gt;: Same term used with different meanings&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;RUMI classifies each contradiction and suggests resolution strategies:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Contradiction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;claim_a&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ScientificClaim&lt;/span&gt;
    &lt;span class="n"&gt;claim_b&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ScientificClaim&lt;/span&gt;
    &lt;span class="nb"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ContradictionType&lt;/span&gt;  &lt;span class="c1"&gt;# direct, contextual, implicit
&lt;/span&gt;    &lt;span class="n"&gt;resolution_strategy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;  &lt;span class="c1"&gt;# methodological, temporal, definitional, genuine
&lt;/span&gt;    &lt;span class="n"&gt;suggested_experiment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt; &lt;span class="c1"&gt;# What experiment would resolve it
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Real Example: The AURKA Paradox
&lt;/h2&gt;

&lt;p&gt;In the KRAS G12C analysis, RUMI found a genuine contradiction:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Paper A&lt;/strong&gt; (2026): AURKA is upregulated in sotorasib-resistant cells and stabilizes PHB2, activating PI3K/AKT&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Paper B&lt;/strong&gt; (2026): AURKA inhibition alone does not restore sotorasib sensitivity in resistant lines&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;RUMI classified this as a &lt;strong&gt;contextual contradiction&lt;/strong&gt;: AURKA upregulation is a real resistance mechanism, but it's part of a positive feedback loop (AURKA→PHB2→PI3K/AKT) that requires combined inhibition to break. Single-agent AURKA inhibition fails because the loop has redundancy.&lt;/p&gt;

&lt;p&gt;This resolution led to the hypothesis that dual AURKA + PI3K inhibition might be more effective — a testable prediction that neither paper explicitly made.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Knowledge Graph Approach
&lt;/h2&gt;

&lt;p&gt;All of this is powered by RUMI's knowledge graph. Each node represents an entity (gene, protein, drug, disease, pathway). Each edge represents a relationship with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Direction&lt;/strong&gt;: activation, inhibition, association&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evidence strength&lt;/strong&gt;: number of supporting papers&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confidence&lt;/strong&gt;: based on extraction quality and paper count&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Temporal context&lt;/strong&gt;: when the finding was published&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Contradictions appear as &lt;strong&gt;negative-weight edges&lt;/strong&gt; between the same nodes. The graph makes it visually and computationally obvious where the scientific literature disagrees.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limitations
&lt;/h2&gt;

&lt;p&gt;This system is still early:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claim extraction depends on LLM quality — complex claims with multiple qualifications are often oversimplified&lt;/li&gt;
&lt;li&gt;Some "contradictions" are actually nuanced positions that require expert interpretation&lt;/li&gt;
&lt;li&gt;The system can't evaluate experimental quality — a poorly designed study gets equal weight&lt;/li&gt;
&lt;li&gt;Publication bias means the literature itself may be contradictory for structural reasons&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;git clone https://github.com/subhansh-dev/Rumi
&lt;span class="nb"&gt;cd &lt;/span&gt;rumi
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;
playwright &lt;span class="nb"&gt;install &lt;/span&gt;chromium
rumi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run &lt;code&gt;/discover&lt;/code&gt; on a topic with active debate and see what contradictions RUMI surfaces.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/subhansh-dev/Rumi" rel="noopener noreferrer"&gt;https://github.com/subhansh-dev/Rumi&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Portfolio&lt;/strong&gt;: &lt;a href="https://subhanshh.vercel.app" rel="noopener noreferrer"&gt;https://subhanshh.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;If you work in systematic reviews, meta-analyses, or evidence synthesis, I'd love to know: what would make a tool like this actually useful in your workflow? What's the biggest gap?&lt;/p&gt;

&lt;p&gt;— Subhansh&lt;/p&gt;

</description>
      <category>research</category>
      <category>datascience</category>
      <category>python</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
