<?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: Andrei Babrounik</title>
    <description>The latest articles on DEV Community by Andrei Babrounik (@andrew_bro_838b06bb18793e).</description>
    <link>https://dev.to/andrew_bro_838b06bb18793e</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%2F4185289%2F72583b12-b00b-4748-90f2-aae60d9964ed.jpg</url>
      <title>DEV Community: Andrei Babrounik</title>
      <link>https://dev.to/andrew_bro_838b06bb18793e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andrew_bro_838b06bb18793e"/>
    <language>en</language>
    <item>
      <title>A/B tests your coding agent can run</title>
      <dc:creator>Andrei Babrounik</dc:creator>
      <pubDate>Wed, 14 Oct 2026 18:14:32 +0000</pubDate>
      <link>https://dev.to/andrew_bro_838b06bb18793e/ab-tests-your-coding-agent-can-run-567</link>
      <guid>https://dev.to/andrew_bro_838b06bb18793e/ab-tests-your-coding-agent-can-run-567</guid>
      <description>&lt;p&gt;Your coding agent can change a headline in seconds. Finding out whether that headline helps people sign up takes an experiment.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://github.com/splithub-io/splithub-sdk" rel="noopener noreferrer"&gt;SplitHub&lt;/a&gt; to keep that experiment in the same workflow as the code. You declare variants and a goal in &lt;code&gt;splithub.config.ts&lt;/code&gt;, render the assigned value in your app, and read results from the CLI or an MCP client.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start in your app
&lt;/h2&gt;

&lt;p&gt;SplitHub needs Node.js 22.13 or newer. Run:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;For your own database, use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx splithub init &lt;span class="nt"&gt;--mode&lt;/span&gt; self
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The React SDK provides &lt;code&gt;SplitHubProvider&lt;/code&gt;, &lt;code&gt;useVariant&lt;/code&gt;, &lt;code&gt;useValue&lt;/code&gt; and &lt;code&gt;useTrack&lt;/code&gt;. The Next.js package adds middleware and server component helpers. Assignment uses a local hash, so choosing a variant doesn't require a network request during rendering.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give your agent the tools
&lt;/h2&gt;

&lt;p&gt;To connect the MCP server in Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add splithub &lt;span class="nt"&gt;--&lt;/span&gt; npx &lt;span class="nt"&gt;-y&lt;/span&gt; @splithub/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For another MCP client, the configuration is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"splithub"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@splithub/mcp"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can then ask it to create a headline test, start or pause an experiment, push config, or read results. The server uses the same project config and credentials as the CLI.&lt;/p&gt;

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

&lt;blockquote&gt;
&lt;p&gt;Test a shorter headline on the pricing page, using signup as the goal.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Later:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Read the results for the pricing headline test. Is there enough evidence to choose a variant?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The CLI also lets you inspect results directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx splithub status
npx splithub results hero-title
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;hero-title&lt;/code&gt; with your experiment key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cloud or your own storage
&lt;/h2&gt;

&lt;p&gt;SplitHub Cloud returns statistical verdicts. Self-hosted storage returns raw visitors, conversions, conversion rates and revenue. The public SDK is MIT licensed; the cloud analysis is separate.&lt;/p&gt;

&lt;p&gt;You still need real visitors and a measured goal. An agent can help operate a test, but it can't replace evidence with a confident answer.&lt;/p&gt;

&lt;p&gt;The repository includes complete &lt;a href="https://github.com/splithub-io/splithub-sdk/tree/main/examples" rel="noopener noreferrer"&gt;Vite + React and Next.js examples&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/splithub-io/splithub-sdk" rel="noopener noreferrer"&gt;Explore the SDK on GitHub&lt;/a&gt; · &lt;a href="https://splithub.io/docs" rel="noopener noreferrer"&gt;Documentation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Questions or feedback: &lt;a href="mailto:info@splithub.io"&gt;info@splithub.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>nextjs</category>
      <category>mcp</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
