<?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: eugene</title>
    <description>The latest articles on DEV Community by eugene (@hizyyo).</description>
    <link>https://dev.to/hizyyo</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%2F4038118%2Fa286d903-60df-4df7-b943-5849d537c270.jpg</url>
      <title>DEV Community: eugene</title>
      <link>https://dev.to/hizyyo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hizyyo"/>
    <language>en</language>
    <item>
      <title>Wrote up why I built GhostAPI — my agent almost sent a real SMS while "testing" a Twilio integration, so now everything runs against localhost instead</title>
      <dc:creator>eugene</dc:creator>
      <pubDate>Mon, 20 Jul 2026 12:15:57 +0000</pubDate>
      <link>https://dev.to/hizyyo/wrote-up-why-i-built-ghostapi-my-agent-almost-sent-a-real-sms-while-testing-a-twilio-1hip</link>
      <guid>https://dev.to/hizyyo/wrote-up-why-i-built-ghostapi-my-agent-almost-sent-a-real-sms-while-testing-a-twilio-1hip</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/hizyyo/i-built-a-local-sandbox-so-my-ai-agent-stops-testing-on-real-stripetwiliogithub-keys-4bll" class="crayons-story__hidden-navigation-link"&gt;I built a local sandbox so my AI agent stops testing on real Stripe/Twilio/GitHub keys&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="/hizyyo" 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%2F4038118%2Fa286d903-60df-4df7-b943-5849d537c270.jpg" alt="hizyyo profile" class="crayons-avatar__image" width="736" height="981"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/hizyyo" class="crayons-story__secondary fw-medium m:hidden"&gt;
              eugene
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                eugene
                
              
              &lt;div id="story-author-preview-content-4187829" 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="/hizyyo" 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%2F4038118%2Fa286d903-60df-4df7-b943-5849d537c270.jpg" class="crayons-avatar__image" alt="" width="736" height="981"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;eugene&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/hizyyo/i-built-a-local-sandbox-so-my-ai-agent-stops-testing-on-real-stripetwiliogithub-keys-4bll" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Jul 20&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/hizyyo/i-built-a-local-sandbox-so-my-ai-agent-stops-testing-on-real-stripetwiliogithub-keys-4bll" id="article-link-4187829"&gt;
          I built a local sandbox so my AI agent stops testing on real Stripe/Twilio/GitHub keys
        &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/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/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/testing"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;testing&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/hizyyo/i-built-a-local-sandbox-so-my-ai-agent-stops-testing-on-real-stripetwiliogithub-keys-4bll" 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/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="24" height="24"&gt;
                  &lt;/span&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;5&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/hizyyo/i-built-a-local-sandbox-so-my-ai-agent-stops-testing-on-real-stripetwiliogithub-keys-4bll#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              1&lt;span class="hidden s:inline"&gt;&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>
      <category>agents</category>
      <category>ai</category>
      <category>showdev</category>
      <category>testing</category>
    </item>
    <item>
      <title>I built a local sandbox so my AI agent stops testing on real Stripe/Twilio/GitHub keys</title>
      <dc:creator>eugene</dc:creator>
      <pubDate>Mon, 20 Jul 2026 12:14:12 +0000</pubDate>
      <link>https://dev.to/hizyyo/i-built-a-local-sandbox-so-my-ai-agent-stops-testing-on-real-stripetwiliogithub-keys-4bll</link>
      <guid>https://dev.to/hizyyo/i-built-a-local-sandbox-so-my-ai-agent-stops-testing-on-real-stripetwiliogithub-keys-4bll</guid>
      <description>&lt;p&gt;AI coding agents are getting good at writing integrations. The problem is they're just as happy running them.&lt;/p&gt;

&lt;p&gt;I kept hitting the same failure mode: an agent "testing" a Stripe integration against a real key, or a Twilio integration that actually sends an SMS to a real number. No malice, just an agent doing exactly what the code says, against whatever environment variables happen to be sitting in the shell.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;GhostAPI&lt;/strong&gt; — a local sandbox that mocks Stripe, Twilio, GitHub, and OpenAI on &lt;code&gt;127.0.0.1&lt;/code&gt;, so agents (and you) can develop and test against something that behaves like the real API without any of the real consequences.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;npx @yiaany/ghostapi start --open&lt;br&gt;
This spins up local HTTP servers shaped like each provider's API — same status codes, same error formats, same webhook payloads. Your existing SDK calls don't need to change, you just point the base URL at localhost.&lt;/p&gt;

&lt;p&gt;There's a dashboard that shows every request as it happens, so you can actually see what your agent is doing instead of guessing from logs. Secrets get masked before they ever hit a log line.&lt;/p&gt;

&lt;h2&gt;
  
  
  The MCP part
&lt;/h2&gt;

&lt;p&gt;This is the piece I care about most. Instead of clicking through a dashboard to simulate a declined card or a rate limit, an agent can call an MCP tool directly to force that state, then run its own error-handling code and verify it recovers correctly: npx @yiaany/ghostapi setup --write&lt;br&gt;
This wires up MCP + agent instructions for Cursor, Claude, and similar tools. From there the agent can inspect state, force specific responses, and toggle chaos conditions (declines, rate limits, latency) — all without a human in the loop, and all without touching anything real.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it's not
&lt;/h2&gt;

&lt;p&gt;Not a full replacement for each vendor's own test/sandbox mode — those exist for a reason and are more thorough for provider-specific edge cases. The goal here is narrower: one consistent local environment across providers, built specifically for the loop of "agent writes integration code, agent tests integration code."&lt;/p&gt;

&lt;p&gt;Currently covers Stripe, Twilio, GitHub, and OpenAI. Adding more is mostly a matter of demand — happy to hear what people are running into with other providers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/yiaany/ghostapi" rel="noopener noreferrer"&gt;https://github.com/yiaany/ghostapi&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Site:&lt;/strong&gt; &lt;a href="https://ghostapi-virid.vercel.app/" rel="noopener noreferrer"&gt;https://ghostapi-virid.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would genuinely appreciate feedback, especially on provider coverage and whether the MCP tool set covers what people actually need when testing agent-written code.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>webdev</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
