Repository navigation
v0.0.1 — Phase 1 "First Spark" (developer preview)
The first working version of The Insectoids: a local-first AI operating system organised like a hive. One goal goes all the way through the hive, safely.
Developer preview. Built and tested on Windows; there is no installer yet. Run it from source; see Run it. Uses Claude Code as its engine.
What's in it
The full loop
- You give the Queen a goal and approve her plan.
- Insects (Coder, Tester) work in parallel, each in its own git worktree.
- The Inspector verifies every card against its "done means" list.
- You approve the merge into your branch, and can undo it and merge it again.
- The Brain records every decision, task and outcome.
Six live screens: Queen chat with inline plan approval, Approval inbox (hold-to-approve for destructive items), Taskboard, Hive monitor (model, effort, tokens, cost and live output per agent), Changes & undo (diffs), and a Brain reader.
First-run setup wizard
- Brain folder.
- Claude Code check, with the exact install or sign-in command to copy.
- A short "about you".
- Safety presets: Careful, Balanced and Hands-off.
The Brain
- A local SQLite file with a single writer.
- Trust levels, versions, a secrets guard, full-text search and token-budgeted reads.
- Two doors for agents: an MCP server and a
braincommand.
Safety
- A command guard in front of every agent action. It fails closed: if the guard can't run, the action is blocked.
- Only the hive commits, with
Insect:andCard:trailers on every commit. - Merging into your branch, pushing and publishing always need your approval.
Real end-to-end demo with Claude Code
Two real runs on a sample project (goal: add slugify(text) with tests and docs):
| Run | Result | Time | Tokens | Cost | Cards and retries | Project tests on main after merge and after redo |
|---|---|---|---|---|---|---|
| 1 | Passed | 1.8 min | 83k | $0.53 | 2 cards, 0 retries | 10/10 |
| 2 | Passed | 1.6 min | 82k | $0.51 | 2 cards, 0 retries | 10/10 |
Run 1 found that insects committed by themselves. That was fixed, and run 2 confirmed the fix.
Tests: 434 unit tests and 36 end-to-end tests (Playwright driving the real app).
Known limits
- Windows-tested; macOS and Linux run in CI but are new territory.
- One engine (Claude Code). Codex, Gemini CLI and OpenCode come in Phase 2.
- No installer or auto-update yet (Phase 3).
- The guard is one strong layer, not a sandbox.
Help build it
Contributions are very welcome. Start with CONTRIBUTING.md. Please report security problems privately (SECURITY.md).
Thanks to the projects The Insectoids learned from and adapted; see Credits.