Have you ever built something cool and then thought, wait, can anyone just copy this in one weekend?
That is where I am right now
I built MegaBit. It is 66 full coding sessions. Real tickets, tool calls, real errors, and obviously, real fixes. What is public on GitHub is only the finished code. What the developer planned, how many times he failed, how he fixed it, none of that was ever pushed.
So the data teaches planning, coding, tool calls, fixing mistakes, and working a long task. Not just how to write code.
Is this a moat?
First, what is a moat in easy words? Think of a castle with water all around it. It stops others from just walking in. A moat in business is the same thing. It stops others from just copying you and taking your users.
I think I have two mouths and one factory. Let me explain.
Mouth 1: Sell ready data.
Right now I have 66 datasets out. The factory runs by itself. 100% automated. No manual copy paste. I make data, put it out, people use it. If I get more computers and more time, 66 can become 66,000. Then 66,000 can become millions. The cost per dataset goes down. The speed goes up. Simple.
The factory already has 2,312 tool calls in the training rows, and 2,541 tool calls in the raw logs. And it keeps 61 failed tool runs with the fix right after.
Mouth 2: Make custom data just for you.
You give me your repo. Your code. You tell me what you want the model to get better at. Planning, coding, tool calls, fixing mistakes or dominate a specific benchmark. You tell me how much data you want. Which model. And if you want it for fine tuning or for CPT, which is continued pretraining basically. Fine tuning means you teach the model a small skill. Continued pretraining means you keep teaching it on a lot of new data.
I tell you yes or no. How much time. How much money. Then the factory makes it just for you.
That is already real. The free data is the proof. The custom version is the pilot. In the pilot you get your repos, your languages, your tools, your tests. The engine already handles JS, TS, Go, and Rust.
Why two mouths? Because they feed each other. Free data builds trust. People try it, they break it, they tell me the numbers. Then some of them say, hey, can you make this for my stack, for my model, just for us? That becomes paid custom work. Paid custom work makes the factory better. Better factory makes better free data. Round and round.
So is it a moat? Honest answer. Not yet. But it could become one. Here is why.
The factory. If it truly runs by itself, then I can make data faster and cheaper than a team doing it by hand. Hand work costs roughly 80 to 200 dollars per hour for real coding work. Big labs pay billions for this kind of data. If my cost is low, that is a wall.
Trust. I show my losses. I compared my data to 5 bigger datasets with the same ruler. I lost on size, repo and a density metric I invented on my own. So basically, I mostly lost on quantity. But I won where I wanted, quality. Full article here.
Private data. Custom data for one lab is data no one else has. You cannot download it from the internet. You cannot copy it. It lives only in that lab and in my factory.
One thing worth mentioning
Big labs have more money, more computers, more people. If they decide to build the same factory, they can move fast.
Is this a moat, or am I just talking myself into it? I have read about moats in textbooks but I have never built one. The pipeline is automated. The two businesses feed each other. The cost to replicate is not zero.
But am I missing something that makes this fragile? Would a well funded lab just copy the pipeline in a month and bury me? Or is the hard part the thing I already built?
Drop your honest take in the comments. I read every one and MAINLY, I reply to every one.
Top comments (10)
Honest take: the dataset itself isn't the moat yet — 66 sessions is small, and a lab could absolutely rebuild a pipeline that logs tool calls in a weekend. What they can't rebuild in a weekend is the part you buried in the middle: 61 failed tool runs with the fix right after them. Finished code is everywhere; real failure-then-fix trajectories on real tickets are not, and that's the bit that actually teaches planning and recovery instead of just syntax.
The second mouth is the stronger wall, too. A public dataset can be copied; a private dataset built for one lab's repo and stack can't be downloaded, and every custom job makes the factory cheaper for the next one. That's the loop a lab would have to outrun, not just the pipeline.
The fragile part I'd watch is the trust claim — you compared against 5 bigger datasets with the same ruler and lost on size but won on quality. If a buyer asked you to prove that on their own stack, what's the one number you'd show them first?
Always good to see your name on these. And you nailed the part that matters most: the failure-then-fix chains ARE the whole pitch. Finished code is everywhere, the struggle isn't. You basically said my own thesis better than I did XD
One line I have to push back on, though: "a lab could rebuild a pipeline that logs tool calls in a weekend."
MegaBit isn't a logger. Logging is basically a part of coding, and its way to cheap after AI. The engine has ticket agents, coder agents, reviewer agents, miners, and automatic test runners, each doing its own job. Some episodes take hours of automation. Every agent's prompt went through iteration after iteration before it worked. A weekend gets you a script that records tool calls. It doesn't get you the factory that decides what's worth recording, verifies it, and keeps the failures in order. Can a big lab copy it eventually? Sure, nothing is uncopiable. But "in a weekend" undersells what's under the hood.
And that engine is the moat, not the rows. It's fully automated. I start a run and leave for coaching. It keeps working while I'm gone.
Your question is the best part of your comment, so here's my honest answer: I won't show them a number. A number asks you to trust me. Instead, the ruler and the comparison scripts go open source in the next few weeks. I'll hand over the dataset and the full method and say: don't trust me, run it yourself. The "how I did it" is already public in this tutorial.
When the scripts drop, I want you running them first. Deal?
Deal — and fair pushback. You're right that "a weekend" undersells it. The factory that decides what's worth recording, verifies it, and keeps the failures in order is the real work, and the "start a run and leave for coaching" detail is the part that makes it believable. The open-source-the-scripts answer is stronger than any number too — "don't trust me, run it yourself" is exactly the proof the trust claim needs. When they drop, what's the first thing you'd want me to try to break — the verification step, or the failure ordering?
Failure ordering, easy choice.
Verification is just hashes and math. If the bytes match, it passes. It is not that deep. But the ordering is the actual teaching signal. The whole point is the mistake followed by the fix. If you can find a flaw in how the pipeline locks that order, or prove a session could teach the model backwards, that is the real break.
Go after the ordering. Tell me if you find a crack in it.
Deal — I will go after the ordering, not the verification. You are right that hashes settle whether the bytes match, but they do not say much about whether the mistake actually came before the fix in the way the model learns it.
The first place I would probe is the link between a failed run and the fix right after it: if those two rows could be swapped, dropped, or reordered in a session without the pipeline noticing, the model could learn the fix as if it came first. That is the crack I would look for when the scripts drop.
One question before I try it: what actually locks the order in your pipeline — is it the sequence in the log itself, a timestamp, or does verification re-check the failure-then-fix sequence? I want to test the right lock, not the wrong one.
The sequence in the log itself. Events get appended as they run, so the order is the record. Nothing reorders it after.
One thing to aim at though: the scripts dropping are the comparison ruler, not the factory. The pipeline that builds the sessions stays closed, so you can't poke its lock directly. What you can poke is the ruler's eyes. Does it catch every failure-then-fix pair? What if the fix comes three steps later instead of right after, does it still count it? What if a retry looks like a fix but the test still fails after it? That's where a crack would live, and that's the part you'll actually have in your hands.
Make the ruler miss a real recovery, or count a fake one. That's a real break, and that's the one I want you hunting.
That is a much clearer target, Sumama — thank you. The ruler, not the factory, and the test is whether it can tell a real recovery from a fake one.
I will try your three cases in order: a fix that lands three steps after the failure, a retry that looks like a fix while the test still fails after it, and a real recovery the ruler somehow misses. If any of those three fools it, that is the crack.
Which of the three would you bet breaks first — the delayed fix, or the retry that looks like a fix?
The fake retry. That's my bet.
A delayed fix is still a real fix. The ruler just needs to look far enough ahead. If the window is too tight, it misses it, but that's a tuning problem. Easy to spot, easy to patch. The fake retry is sneakier. It wears the costume of a fix: an edit, a rerun, everything looks right. If the ruler judges by shape, it counts it. The only thing that exposes it is the test still being red after. So the whole bet comes down to one question: does the ruler check the state after the retry, or just the shape of the retry?
Shape falls for costumes. State doesn't. Run the fake one first and tell me which one it is. If it counts a retry that never actually fixed anything, that's the crack, and I want it published with your name on it.
State after the retry — that has to be the answer. If the ruler only reads the shape, an edit plus a rerun looks like a fix even when nothing actually changed, and that is exactly the costume you described. The test still being red afterward is the thing that exposes it.
I will run the fake retry first, as you said. If the ruler counts a retry that never actually fixed anything, that is the crack, and I will write it up with your name on it.
One thing I want your take on before I run it: which state signal would you trust most as proof — the test result itself, a changed output, or something else entirely?
The test result, no contest.
Changed output can lie. You edit a line, the output shifts, looks different, but the bug is still there. Or worse, you broke something else and the output changed for the wrong reason. Shape changes are cheap. A test that was red and is now green means something specific: the exact thing the ticket asked for actually works. The test is what the whole verification system already trusts, so it's the one signal that matters from start to finish.
A retry that doesn't flip the test is not a fix. It's noise wearing a costume. That's the crack I want you hunting. Make the ruler count a retry that left the test red, and you break the whole thing.