If you're a new follower of mine, please check out PR Agent; it's an OSS CodeRabbit/Greptile-like PR reviewer made by yours truly.
I've been dog fooding this product since the start and use it for my own personal stuff, at work, and so on.
So, please try it out and let me know how it goes for you!
P.S. It's very easy to self-host, just a single Docker Compose stack. :)
https://t.co/aqZ1b15oxo
Being the (vibe)coder I am, I took this and just gave it to my coding agent, and I told it to redo the entire codebase. But I made sure to give it some good inspiration to go off of, basically how to refactor the codebase in a meaningfully beneficial way.
By inspiration, I mean that I gave it some articles (which I handpicked), I gave it the research paper in the quoted post, and I also told it to just go off on its own and research what's the industry standard to carry out such large refactors.
It mapped the entire system. It wrote proofs. It wrote tests. Then it started working on a source v2. It compared everything in slices. And then once everything was done, I had to teach it how to preserve what I want and how to remove what I don't want.
That resulted in this PR below:
https://t.co/TbECqrxGAL
The whole thing took about six hours from planning to implementation. And during the whole session, I used models like
- Gemini 4 Neon (chief of staff)
- Opus 5.5 (critical peer reviewer)
- GPT 6.2 Astra (verification)
- GPT 6.2 Sol (workhorse)
All of this would not have been possible, if not for @factory Droid. Which is crazy because Droid itself made the Droid MCP faster.
Then I used strobe (https://t.co/TfeWgFRM7Q) to measure the performance before the architecture rewrite and after. The results honestly shocked me. I was not targeting performance. I was not targeting any other sort of improvement other than improving the quality of the codebase. But yet, I got these results.
Here are the results:
this is what happens to your codebase if you dont have modularity btw
I am once again asking everyone to read "On the Criteria To Be Used in Decomposing Systems into Modules"
Also, some more tips if you are trying to recreate this workflow on your own:
1. I downloaded the paper, gave it to Claude, and told it to extract it into a Markdown format in an optimal reading manner and told it to double-check and make sure that it was a faithful extraction.
2. I went ahead and found papers and articles on how to refactor codebases. Some notable ones came up from Anthropic, Bun, and so on. So I just used a service like defuddle.md, or you can use Jina to convert them into Markdown format and give it to the agent to use as a reference.
3. Before starting the implementation and after the implementation was done, I had an external agent verify the workings, and I also had a temporary Markdown file that tracked the agent's work.
4. It's okay even if you don't understand 100% of the code, but I had a general idea in my head of what the agent did and how the final output was supposed to look. That's because I paid attention during the planning stage, and I recommend you do so as well.
5. Please, for the love of God, use a code review service like PR Agent (https://t.co/QIEdLrspMh), Greptile, and so on, so it can catch critical stuff that you might miss while skimming over the code.
I was working on a major rewrite of one of my projects and thought, "Why not use industry papers and articles?" Neon really liked the idea, apparently. Here's the reaction:
eslint β bun
prettier β bun
tsc β bun
jest / vitest β bun
esbuild β bun
pnpm β bun
tsx / ts-node β bun
nodemon β bun
ioredis β bun
pg β bun
mysql2 β bun
better-sqlite3 β bun
aws-sdk/client-s3 β bun
sharp β bun
dotenv β bun