Pulley, a startup pairing AI with local permitting experts to roughly halve construction permit approval times, says an AI software factory now writes its code. Engineers ship more than 40 pull requests a week each, up from an average of 6 a year ago.
All of Pulley’s code was written by hand at the start. Now AI agents write it, inside a semi-automated pipeline that turns signals into software.
What an AI software factory is
Inputs include customer and employee feedback, market research, logs, metrics and traces. They go into product research and automated maintenance, which launch agents that write code, test it and submit it for review. Once automated reviews pass, people request changes and confirm the work behaves as expected before release. Production checks then generate new signals and the cycle repeats.
A typical small change takes about 40 minutes from idea to shipping. Medium changes reach production in an hour or two, and larger ones take a day or two, mostly because the team iterates on design before merging.
Signals and product research
Signals arrive as transcripts, Slack messages, Linear tickets, Notion pages, screenshots and session videos, and from the software itself. Some start work automatically. Others go through product research, which Pulley treats as the most critical station, since agents can build whatever they’re asked but the wrong feature is worthless.
Research is a loop of gathering information, proposing ideas, building prototypes and validating them. Packaging Agent shows the pattern. The Permit Ops team spent too much time wrangling PDFs before submission, so a PM or designer prototyped an assistant that assembles plan sets and documents. By the time engineering took over, the team already knew it would work, and it saw nearly 100% adoption in its first week.
Bots handle the boring work
Scheduled bots cover issues that telemetry can find:
- sentry-bot triages Sentry errors, finds causes and opens fix PRs.
- perf-bot watches endpoint performance week over week for negative trends.
- acl-bot hunts for access-control gaps in production that slipped past security review.
- vuln-bot finds vulnerable packages and puts up fixes.
- security-bot runs full security scans of repositories.
Other bots run migrations and refactors. One brought the TypeScript code fully into strict mode, fixing around 10,000 violations over a few months.
Building, testing and review
Agents get guidance from AGENTS.md and skills that document procedures. Each runs in a VM with the full application, a database and continually refreshed seed data. Bigger projects use an orchestrating agent that works with a human.
Testing includes the usual suites and linters. Agents also design a test plan, hand it to a subagent and produce screenshots and videos to speed up human review.
Because agents write more code than humans can read, review is automated first. Every PR goes through Greptile plus a custom security reviewer where it applies. Low-risk PRs can be auto-approved, high-risk ones need a person other than the ticket author, and code-owner rules pull in specific reviewers. PR descriptions are AI-generated and mark which decisions humans made and which AI made. Each PR also gets its own preview environment with the full stack running.
Shipping and the self-improving loop
Code on main deploys to staging automatically, and production follows after a successful staging deploy. LaunchDarkly feature flags separate deploy from release, so features go to an internal group or small beta first. Rollback is simple rather than fully automated: turn the flag off. Sentry monitoring and end-to-end tests with test accounts check production.
The factory also improves itself. A bot audits agent guidance against PR feedback and updates it, new skills are added for standard processes, default models are swapped as better ones appear, and more toil is automated. Pulley argues this loop, which treats the development process as code, separates a factory from a traditional development lifecycle.
Why humans stay in the loop
An AI software factory still needs people. Pulley wants reviews with better taste and more thorough end-to-end tests. It is not ready for a dark factory with no people. Left alone, it would chase the signals and ship something close to useful but not quite there. Fighting specification gaming already takes a good share of time on maintenance PRs, and customer feedback would be riskier still.
The pace is striking. Two years back AI was only getting decent at autocomplete, and a year ago it wrote code only under heavy supervision. The factory became real in the last six months, and Pulley expects humans will still be part of it six months from now.
Source: lesswrong.com