# Superpower An agent team and second brain for one-person companies. People bring their own Claude or Codex subscriptions: the team works on your machine, on your subscription, in your project's code. ## Before you start You need, on a Linux or Mac machine: - **Node 22.18 or newer** (`node --version`) and **git**. - **One engine, installed and signed in with your own subscription**: - Claude Code: `curl -fsSL https://claude.ai/install.sh | bash`, then run `claude` once and sign in with your Claude subscription. It keeps its sign-in in `~/.claude`. - or Codex: `npm install -g @openai/codex`, then `codex login`. It keeps its sign-in in `~/.codex`. - **Your project's code in a folder**, best as a git repository. The team works in its own copy of it (a git worktree on a branch `superpower/-`), never in your checkout. ## Install ```sh git clone superpower && cd superpower node bin/install.ts ``` There is no install step and no build step. It asks a few questions; press Enter to take the answer shown in [brackets]: | Question | What to give | | --- | --- | | Your name | how the team calls you | | Which engine | `claude-code` or `codex` | | Where it is signed in | the engine's settings folder (`~/.claude` or `~/.codex`) | | slack or terminal | `terminal` to start; for Slack, first make your own Slack app with [docs/setup.md](docs/setup.md) | | (Slack only) the channel id, your member id | see [docs/setup.md](docs/setup.md) step 5 | | Your second-brain folder | a folder of Markdown notes the team reads first; a new one is made if it is empty | | (a new second brain only) what you are building, what matters most, your goals | a line or two each, for its first note | | (a new second brain only) keep it in git, and a private repository to link | `yes` or `no`; a link, or blank for none | | Your first project: the folder its code is in | for example `~/code/shop` | | Its short name | Enter takes the folder's name (a-z, 0-9 and `-`), for example `shop` | | What it is for | one line; every task carries it as its why (Enter to skip) | | Your GitHub account | where new repositories would go | If the second-brain folder you name is empty, the install makes your vault there: its folders (about, projects, topics, sources, decisions, research), each with a README saying what goes in it, an index.md, and a first note in about/me.md from your answers (what you are building, what matters, your goals). You can keep it in git and link your own private repository; nothing is pushed for you. A folder that already holds notes is left as it is. The team reads the notes that match each ask first, and its accepted research lands in your research/ folder. The answers can also come from a file: `node bin/install.ts --answers answers.json`. The install is written to `~/.superpower/superpower.json` (readable by you only), and the team's task list, its work copies and its own secrets live beside it in `~/.superpower/` (an install from before #420 kept them in `~/.labs/`: `bin/superpower update` moves them, once, and puts them back if anything fails). If anything is wrong, it says what and writes nothing. With Slack, it then asks for your app's two keys (made in [docs/setup.md](docs/setup.md) step 4), each without showing it, tests them with Slack and keeps them, readable by you only; there is no keys file to make. Then it runs `bin/superpower doctor`, which checks each step (Node, the engine installed and signed in, Slack's keys, permissions and channel, the project and second-brain folders, the port) and prints the one thing to do for anything wrong. The team starts only when nothing is wrong: fix what it says, run `bin/superpower doctor` again, then `bin/superpower start`. ## Talking to the team (terminal) ```text Add a LICENSE file to the project a new ask: it goes on the task list as #1 and a worker takes it t1: use the MIT licence written in that ask's thread (t1): a note, or the answer to its open question press q.1.q1-1 2 presses choice 2 of a card (questions and reviews come as cards) press r.1 1 Accept finished work (2 sends it back) press f.1 1 Try again: run a task that could not be finished again (2 drops it) daily update at 8 move the project's daily update to 8 AM ("daily update off" turns it off) ``` The team asks you before anything that deploys, goes live, deletes or spends. Finished work waits for your review with an Accept card; Accept brings it into your code, and pushing to GitHub waits for its own Push button. A task that could not be finished comes with Try again and Drop it. Ctrl-C stops the whole team. Every new project posts a daily update at 9 AM in your time zone: what was finished, what is being worked on, what waits on you. It posts and closes by itself; nothing to accept. Write `daily update at 8`, `daily update at 8:30 pm` or `daily update off` in the project's place to change it; it counts from the next minute, with no restart. To change a project's set-up (its branch, dev site, proof or routines), type `set up project folder= branch=main` (with what you want changed) where you talk to the team, then press the card it shows (`press s.-1 1` in the terminal, Write it in Slack). ## Keeping it running ```sh bin/superpower start --background # runs with no terminal: closing this one does not stop it bin/superpower start # while it runs: this terminal talks to it (Ctrl-C closes only this terminal) bin/superpower shutdown # stops the background run ``` What it says goes to `~/.superpower/data/superpower.log`, and `bin/superpower status` says how it runs. `bin/superpower stop` is something else: the emergency stop that halts every agent within seconds and holds their tasks (`bin/superpower resume` lets them go). Outside services (Slack, GitHub, DigitalOcean, Cloudflare, and any a project needs): `bin/superpower connect` lists the ones your projects need as connected, missing or broken (the others apart, as not needed), `bin/superpower connect ` sets one up, testing the key before keeping it, and `bin/superpower connect --project ` makes a project list it first, so you never edit the settings file by hand; [SERVICES.md](SERVICES.md) is the list to refer to. Later starts: `bin/superpower start`. Checking every step of the set-up: `bin/superpower doctor`. The whole set-up with Slack, step by step: [docs/setup.md](docs/setup.md). ## Health and updates ```sh bin/superpower status # how it runs (in the background, in a terminal, or not) and how the team is doing: agents busy, tasks late, what waits for you, the last failure, this week's use bin/superpower update # a newer release (stop Superpower first: shutdown, or Ctrl-C): your settings and task list kept, all put back if it fails ``` Typing `home` to the team shows the same summary as `status`, with one button, "Stop the team…", which asks you to confirm before anything stops. Each release is in [CHANGES.md](CHANGES.md). `update` copies your settings and task list aside, moves to the newer release, runs its data steps and checks it starts; if anything fails it puts back the old release and the copies. It never touches your vault or your projects. ## Working on Superpower itself ```sh npm install # the TypeScript checker, and the desktop app's packages (desktop/ is part of this install) npm test # everything: the six guards, the checks and the TypeScript check; it must pass before every commit npm run faults # proves each guard and check catches its planted mistakes ``` `npm test` needs nothing else: no keys, no Slack, no Claude sign-in. The guard "core and am agree" compares core's lists with am's code when am sits beside this folder; without am it compares them with the saved copy in `proof/guards/am-lists.json`. The desktop app's own commands are in [desktop/README.md](desktop/README.md); its Electron program is downloaded the first time you run it, not by `npm install`. - The rules: [AGENTS.md](AGENTS.md). - The parts: each folder's README. - Skills: [skills/README.md](skills/README.md).