# Experiment first, integrate later

URL: https://danylovorvul.com/blog/experiment-first-integrate-later/
Author: Danylo Vorvul
Date: 2026-10-20
Tags: agents, engineering
Description: I test ideas in standalone experiments before integrating them into a large codebase. Short feedback loops first; dependencies and production behavior next.

Even with agents like Devin or Factory, trying an idea in a large existing codebase can be slow. The agent can spend more time making the code fit the system and its dependencies than implementing the idea itself.

In our codebase, test runs can take hours. Docker can eat 100 GB in a week. That’s a lot of overhead while I’m still figuring out whether an approach works.

So I split feature work into two phases: experiment outside the codebase, then integrate once I’m confident in the approach.

I keep an `experiments/` folder with a subfolder for each experiment. I ask an agent to build a standalone version with just enough code to try the idea and compare results. I even ask it to strip out modules that aren’t needed for the experiment. Short feedback loops make changing direction cheap.

I usually run 3–5 experiments. For a recent feature, I evaluated 17 candidates before choosing an approach.

A standalone experiment still leaves production questions open. It hasn’t proved that the code will behave correctly inside the existing system. Dependencies, interfaces, and production behavior need their own work.

That’s the next phase. By then, I have evidence for the approach and can give integration my full attention.

I’d rather discover that an idea doesn’t work while it’s still a script I can throw away.
