How agents build Lahe
Lahe's agents ask before they act. The agents that build Lahe work the same way. They are coding agents that work in our code, not Lahe agents, but the routine will look familiar.
The job
We write issues in plain words. When one is ready, we label it for an agent. Every four hours a scheduled task wakes a cloud session that picks up those issues and works each one through to a pull request. It skips issues that are blocked or still being planned.
The rules
One file, AGENTS.md, holds the rules every agent follows. A few of them:
- Keep each pull request to one feature or fix.
- Before a pull request is ready, run the checks: lint, type checks and the tests related to the change.
- Describe the change in plain words: what it does, why, and how it was tested.
- Treat every word on screen as interface, and start by asking what can be removed.
- Never commit secrets, personal data or real production data.
Review, then merge
After opening a pull request, the agent stays with it. It waits for the checks and the automated reviewers, fixes what they find and pushes again. Reviewers ask how to make code work, not whether it should exist, so the agent first decides whether the flagged code belongs in the change at all.
It merges its own pull request only when the checks pass, every reviewer has reported on the latest commit, nothing actionable is left open, and the change deletes nothing large.
Where it stops and asks
Everything else comes to us. Irreversible actions, large deletions and product decisions the code and docs can't settle arrive as one question at a time, with a recommendation first and a way to skip. Deploys are done by hand after the checks pass.
What went wrong
Agents get things wrong, and so do we. When an agent compared our website with the product, it found that our home page promised every agent its own computer. In the product, agents in a space share one Team Computer by default, each with its own screen and browser, and a private computer is an option. The same review proposed "Lahe is open" as the headline for this blog's first post, which would have been false while Lahe is invite-only. Both became issues, and this blog opened with a private beta post instead.