Headquarter AI
HAI
A project manager for your code: HAI plans each change, has AI agents build it test-first in isolation, and leaves every merge to a person.
What it does
Plan before building
A feature goes through an interview, a spec and a ticket list before any code is written.
Isolated, test-first work
Each ticket is built by a subagent in its own git worktree, test first, and checked with the repository's real tests and lint.
Independent review
Code, security and UX reviewers run in parallel on the result before it is committed.
People keep the last word
HAI opens pull requests but never merges them, and changes to critical paths always go to a person.
Safety guards built in
Hooks block reading secret files, force pushes and pushes to protected branches.
How it works
Describe the change
HAI interviews you about the idea, writes a spec and splits it into tickets.
Agents build and verify
Each ticket runs in its own worktree: tests first, then the code, then the repository's tests and lint, with reviewers checking the diff.
You review and merge
The result arrives as a pull request. A person approves and merges it; nothing ships on its own.
Modules
AI-HQ core
The orchestrator: it knows every repository, plans the work and runs agents through spec, tickets and implementation, with guards and human gates.
LangBrain
An agent factory built on LangGraph and MCP: Claude Code is the brain, and LangBrain verifies each run independently and keeps a hash-chained audit log.
Brain
A local memory for coding agents: linked notes with hybrid search, kept on the machine and never sent to a cloud embedding service.
Observability
Optional local monitoring: a watchdog that restarts stopped services, plus a Prometheus, Loki and Grafana stack. Everything listens on the local machine only.
Remote
Phone access to the environment over SSH or mosh, notifications, and a panel to approve agent permission requests from your phone.
Specs
A standard and toolkit to specify, approve, prove, release and remember every change, built on OpenSpec and GitHub.
Skills
A library of process-neutral coding skills and reviewer subagents, such as root-cause debugging and diff review, that work in any repository.