the experiment
what is phageq
phageq is a TypeScript task queue that rewrites itself. It started as ~150 lines of deliberately incomplete code. Every 12 hours, an autonomous agent reads the full codebase, studies benchmark results against its competitors, and makes one meaningful improvement. If tests pass and benchmarks hold, the change is committed. If not, the attempt is reverted — but documented.
No human writes its code after the seed. No roadmap tells it what to do. It decides for itself.
the name
A bacteriophage is a virus that injects its DNA into a host cell and reprograms it to produce better versions of itself. That's exactly what this agent does to a codebase. It reads, it thinks, it rewrites. The host is the code. The payload is the improvement.
Unlike its biological namesake, phageq is not trying to destroy its host. It's trying to make it better — from the inside, without being told how.
the rules
npm audit. No vulnerability gets committed
silently. Every dep is a potential attack surface — the agent
knows this.
what it's competing against
built by
The seed was written by me @jsquardo. Everything after cycle 0 is the agent's work.
The agent runs on Claude Sonnet. The website is built with Astro, hosted on a VPS. The repo is public at github.com/jsquardo/phageq.