https://github.com/automagik-dev/genie
Wishes in, PRs out. CLI agent that interviews you, plans the work, dispatches parallel agents in isolated worktrees, and reviews code before you see it.
https://github.com/automagik-dev/genie
ai-agents ai-developer-tools anthropic automation autonomous-agents claude claude-code cli coding-agents context-engineering developer-tools llm mcp orchestration parallel-agents productivity terminal typescript vibe-coding worktrees
Last synced: 12 days ago
JSON representation
Wishes in, PRs out. CLI agent that interviews you, plans the work, dispatches parallel agents in isolated worktrees, and reviews code before you see it.
- Host: GitHub
- URL: https://github.com/automagik-dev/genie
- Owner: automagik-dev
- License: mit
- Created: 2025-08-01T02:00:02.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-04-03T08:12:14.000Z (about 2 months ago)
- Last Synced: 2026-04-03T09:54:30.511Z (about 2 months ago)
- Topics: ai-agents, ai-developer-tools, anthropic, automation, autonomous-agents, claude, claude-code, cli, coding-agents, context-engineering, developer-tools, llm, mcp, orchestration, parallel-agents, productivity, terminal, typescript, vibe-coding, worktrees
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@automagik/genie
- Size: 88.7 MB
- Stars: 274
- Watchers: 0
- Forks: 41
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Wishes in, PRs out.
> [!IMPORTANT]
> **Genie's npm distribution is being soft-deprecated** in favor of a cosign + SLSA-verified install through our own CDN.
>
> The canonical install going forward is:
>
> ```bash
> curl -fsSL https://get.automagik.dev/genie | bash
> ```
>
> Existing operators on `npm install -g @automagik/genie` continue to work โ the npm package will become a thin postinstall shim that downloads and runs the verified installer. See [Security & Trust โ Distribution Sovereignty](https://automagik.dev/genie/security/distribution-sovereignty) for the threat model and verification flow.
**๐ 33 commits** this week ยท **0 releases** ยท **+1.1K LoC** ยท **5 contributors**

[๐ Full velocity dashboard โ](VELOCITY.md)
Genie is a CLI that turns one sentence into a finished pull request. You describe what you want โ Genie interviews you, writes a plan, spawns parallel agents in isolated worktrees, reviews the code, and opens a PR. You approve. You merge. That's it.
## Get started
Paste this into Claude Code, Codex, or any AI coding agent:
```
Install Genie and set up this project:
curl -fsSL https://raw.githubusercontent.com/automagik-dev/genie/main/install.sh | bash
genie
/wizard
```
That's it. The wizard interviews you, scaffolds your project, and walks you through your first wish. Relax.
Or install manually:
```bash
curl -fsSL https://raw.githubusercontent.com/automagik-dev/genie/main/install.sh | bash
```
### Manual install (canonical pgserve first)
If you'd rather lay the pieces down yourself, install canonical pgserve
before genie. Genie is a consumer of the pm2-supervised pgserve daemon โ
it never spawns its own. See [docs/install.md](docs/install.md) for the
rationale and migration tips.
```bash
# 1. Canonical pgserve (registers a pm2-supervised singleton)
bun add -g pgserve@^2
pgserve install
# 2. Genie (will refuse to install if pgserve is unreachable)
bun add -g @automagik/genie
genie install
# 3. Verify
genie doctor
```
## What you get
```
"Add dark mode"
|
/brainstorm โโโโ Genie asks questions until the idea is concrete
|
/wish โโโโโโโโโโ Turns it into a plan: scope, criteria, task groups
|
/work โโโโโโโโโโ Agents spawn in parallel worktrees, each on its own branch
|
/review โโโโโโโโ 10 critics review. Severity-tagged. Nothing ships dirty.
|
Pull Request โโโ You approve. You merge. Ship it.
```
**Parallel agents.** Not one agent doing everything sequentially โ multiple agents working at the same time in isolated worktrees. No conflicts. No re-explaining context.
**Automated review.** A 10-critic council (architecture, security, DX, performance, ops, and more) reviews every design before you see it. Severity-tagged findings. CRITICAL blocks the PR.
**Overnight mode.** `/dream` โ queue wishes before bed. Wake up to reviewed PRs.
**Kanban boards.** Built-in task boards with custom pipelines and stage gates.
**Postgres-backed.** All state lives in PostgreSQL โ agents, tasks, events, messages. Queryable. Durable. Real-time via LISTEN/NOTIFY.
**Full observability.** Events, metrics, session replay, cost tracking. See everything your genie-spawned agents do โ OTel-derived tool, cost, and API-request rows only cover sessions launched via `genie spawn` / `genie team create`; user-initiated Claude Code sessions are captured only when they export the OTLP env themselves.
**Portable context.** Identity, skills, memory โ all markdown files in your repo, git-versioned. You own everything.
**Any AI provider.** Claude, Codex, or any OpenAI-compatible model. Bring your own agent.
## Why Genie?
### Without Genie
- Re-explain context every new chat
- One agent, one file at a time
- Copy-paste PR descriptions manually
- Review AI code yourself, line by line
- Context lost mid-conversation
- No memory between sessions
### With Genie
- Context captured once, inherited by every agent
- Parallel agents in isolated worktrees
- Automated severity-gated code review
- Queue wishes overnight, wake up to PRs
- 10-critic council catches what you'd miss
- Persistent memory across sessions
## Skills
17 built-in skills that compose into workflows:
| Skill | What it does |
|-------|-------------|
| `/brainstorm` | Explore vague ideas with guided questions |
| `/wish` | Turn an idea into a scoped plan with acceptance criteria |
| `/work` | Execute a wish with parallel agents |
| `/review` | Severity-gated code review (SHIP or FIX-FIRST) |
| `/council` | 10-perspective architectural deliberation |
| `/dream` | Batch-execute wishes overnight |
| `/trace` | Investigate bugs โ reproduce, isolate, root cause |
| `/fix` | Minimal targeted bug fixes |
| `/report` | Deep investigation with browser + trace |
| `/refine` | Transform rough prompts into structured specs |
| `/learn` | Correct agent behavior from mistakes |
| `/docs` | Audit and generate documentation |
| `/pm` | Full project management playbook |
| `/brain` | Knowledge graph with Obsidian-compatible vaults |
| `/genie` | Auto-router โ natural language to the right skill |
| `/genie-hacks` | Community patterns and real-world workflows |
| `/wizard` | Guided first-run onboarding |
## What's new in v4
v4 is a ground-up rewrite. 700 commits. 300 files. ~19K lines.
| | v3 | v4 |
|---|---|---|
| **State** | JSON files + NATS | PostgreSQL + LISTEN/NOTIFY |
| **UI** | CLI only | Full terminal UI |
| **Memory** | None | Optional knowledge brain |
| **Tasks** | Basic | Kanban boards, templates, projects |
| **Observability** | Minimal | OTLP, session capture, audit trail |
| **Review** | Single pass | 10-critic council deliberation |
| **Stability** | Best effort | Advisory locks, spawn watchdog, 200+ bug fixes |
[Full v4 release notes โ](https://github.com/automagik-dev/genie/releases/tag/v4.260402.18)
### Observability substrate (v0)
Structured event emission, signed subscription tokens, 4-tier retention, and
an external dead-man's switch. Consumer-compat promises are published at
[docs/observability-contract.md](docs/observability-contract.md); the 5-phase
rollout plan at [docs/observability-rollout.md](docs/observability-rollout.md).
### Executor read endpoint
External consumers (e.g. the omni scope-enforcer) can query ground-truth turn
state directly from `genie serve`. Two paths are supported:
**HTTP** โ `GET http://127.0.0.1:/executors/:id/state` returns
`{state, outcome, closed_at}` as JSON. The default port is `pgserve_port + 2`;
override with `GENIE_EXECUTOR_READ_PORT`. Returns 404 for unknown IDs, 400 for
non-UUID IDs, 200 otherwise. No authz โ executor IDs are random UUIDs and the
view exposes no secrets.
**Direct SQL** โ connect to genie-PG as the read-only `executors_reader` role
and `SELECT state, outcome, closed_at FROM executors_public_state WHERE id = $1`.
Layer login credentials on top:
```sql
CREATE ROLE omni_scope_enforcer LOGIN PASSWORD 'โฆ' IN ROLE executors_reader;
```
Response shape (`state` / `outcome` / `closed_at`) is the stable boundary
contract; removing or renaming fields is a coordinated breaking change.
## Design
Genie ships a single, dark-only color palette inspired by **Severance** โ the Lumon MDR room. One source of truth (`packages/genie-tokens/`), three consumers (TUI, desktop app, tmux). See [docs/design-system.md](docs/design-system.md) for tokens, the Severance rationale, how to add a color, how to regenerate the tmux theme, and the visual snapshot workflow.
---
Docs ยท
Design ยท
v4 Release ยท
Discord ยท
MIT License
You describe the problem. Genie does everything else.