Skip to content
latent-spacesPublic

About

No description, website, or topics provided.

Resources

Stars

20 stars

Watchers

0 watching

Forks

Repository files navigation

Minions

Your own little swarm of coding agents.

Give a small team of Claude Code or Codex agents a goal. They work in separate checkouts, talk to each other and share progress while you steer from your coding chat or the local app. Minions runs on your computer, using your own provider accounts.

Manage projects, message your agents, and start, pause, resume or stop work directly from Claude Code or Codex.

Experimental beta. Install from this repository; the connector is not published to npm.

Get started · How it works · Documentation

Quick start

Paste into Claude Code or Codex

Open your coding chat on the computer where you want to run Minions and paste:

Install and start Minions: https://github.com/latent-spaces/minions
Use the minions skill to build me a 2D game with a small swarm.

You need Node.js 24+, Git and an installed, signed-in Claude Code or Codex client. Repository work also needs GitHub CLI (gh) and access to that repository.

Prefer to install from a terminal?

These commands work in macOS/Linux shells and Windows PowerShell:

git clone https://github.com/latent-spaces/minions.git
cd minions
npm run setup

Setup installs dependencies, builds Minions and starts the engine and worker service in the background. It opens the app at http://127.0.0.1:8787/ by default, installs the Minions skill and registers the MCP connection with the Claude Code and Codex clients it finds. Setup starts no model.

On the first run, the local owner profile uses Git's user.name and user.email. If those are not configured, supply them explicitly:

npm run setup -- --owner-name "Your Name" --owner-email you@example.com

Restart a coding chat that was open during setup to load the tools. Then ask:

Use the minions skill to build me a 2D game with a small swarm.

Your chat helps you choose a project, agent missions, models and time limits. Approve the plan to start the agents. Each agent uses a model available through your own Claude Code or Codex sign-in.

Why Minions?

Minions welcome tour showing agents sharing work, organizing into teams and keeping you informed

Illustrative welcome tour; no models were run for this recording.

Follow your swarm at work

Real Minions screenshots explaining agents, tasks, conversations, updates and control from Claude Code or Codex

Real screenshots of agents, tasks, conversations and updates, with explanations appearing step by step.

Everyday use

Setup links a minions command:

Command What it does
minions status Show the engine, service and state locations
minions open Open the local app
minions logs -f Follow engine logs; add --service for worker service logs
minions stop Let current turns finish, then stop the service and engine
minions start --open Start them again and open the app
minions update Let turns finish, stop, pull main with fast-forward only, rebuild and restart
minions help Show all commands and options

Stop waits up to ten minutes by default. If turns are still finishing, the engine stays running. Use minions stop --now to interrupt them. If the database lock remains after the listener closes, stop reports an unconfirmed shutdown; wait and retry. For a stale lock left after a crash or computer restart, run minions start to attempt recovery, then retry stop or update. If startup refuses the lock, follow its process-inspection advice. Update preserves the checkout until shutdown is confirmed. It requires a checkout on main with no tracked changes.

Local data and connections

The engine stores its database, media and owner configuration in ~/.minions/engine (%USERPROFILE%\.minions\engine on Windows). Agent checkouts live under ~/minions/projects/. Keep state and credentials outside Git, and stop the engine before copying its files for a backup.

The app and service listen on loopback. No Minions cloud account or hosted database is required. Workers still contact their model providers and GitHub as needed.

Troubleshooting

Problem What to do
Port 8787 is busy Setup names the program and stops. Free the port or set MINIONS_ENGINE_PORT.
Tools are missing in your chat Restart the chat, or use the connector's tool command printed by setup.
Connector setup failed Resolve the reported error and rerun npm run setup; the engine stays running.
minions is not found Run node tools/setup/minions.mjs help from the checkout to use the same CLI.

The default port is 8787; an explicit MINIONS_ENGINE_PORT or a saved port overrides it. See the engine guide for configuration and recovery.

macOS, Windows and Linux use different worker supervision. Windows requires PowerShell, its in-memory C# compiler and permission to use Job Objects. The service checks capabilities before offering providers. See the runtime requirements for platform details.

How it works

Minions runs on your computer. Your coding chat and browser app control the same projects and agents.

   Claude Code / Codex chat                    Browser app
              │                                     │
         MCP over HTTP                             HTTP
              │                                     │
              ▼                                     ▼
 ┌──────────────────────────────┐    ┌──────────────────────────┐
 │        LOCAL SERVICE         │    │       LOCAL ENGINE       │
 │                              │    │                          │
 │  Owner MCP tools             │◄──►│  API and coordination    │
 │  Projects · agents · controls│    │  Projects · tasks        │
 │                              │    │  Messages · updates      │
 │  Agent controllers           │    └────────────┬─────────────┘
 │  Schedule turns              │                 │
 │  Start · pause · resume · stop│                 ▼
 │  Check time and token limits │    ┌──────────────────────────┐
 │                              │    │  SQLite + media          │
 │  Agent MCP bridge            │    │  Local project storage   │
 │  Scoped project tools        │    └──────────────────────────┘
 └──────────────┬───────────────┘
                │
       Lifecycle control ↓
       Project MCP tools ↕
                │
       ┌────────┴─────────┐
       ▼                  ▼
 ┌─────────────┐   ┌─────────────┐
 │ Claude Code │   │    Codex    │
 │    agent    │   │    agent    │
 ├─────────────┤   ├─────────────┤
 │ Own Git     │   │ Own Git     │
 │ checkout    │   │ checkout    │
 └─────────────┘   └─────────────┘
  • Engine: holds the shared project record. Agents coordinate through its tasks, messages, and progress updates.
  • Service: exposes MCP tools to your chat and manages background agents. Each agent gets a scoped MCP connection for its project work.
  • Controllers: decide when each agent takes another turn, waits, pauses, or stops. Time and token limits are checked between turns; reaching a limit lets the current turn finish.
  • Agents: run through your existing Claude Code or Codex sign-ins, each in a separate Git checkout. They can continue working after you close the steering chat.

Project data stays local. Model requests go to your providers, and repository work uses GitHub.

Development

Use Node.js 24+ and run commands from the repository root. Read AGENTS.md and the development workflow before making changes.

Use an isolated engine with an absolute MINIONS_ENGINE_HOME and a free MINIONS_ENGINE_PORT; keep those settings on later commands. Isolated setup skips client registration and command linking. Keep test data separate from your everyday engine, and start no real model runs without explicit approval.

Development commands

Command What it does
npm run setup Install as needed, build and start Minions
npm run build:web Build the app
npm run build:backend Build the engine
npm run typecheck:backend Typecheck the engine
npm run test:all Run the fast core: typechecks and package smoke tests
npm run test:backend Run engine smoke tests with disposable data
npm run test:connector Run connector smoke tests
npm run test:setup Check setup behavior
npm run test:self-hosted Build and exercise the standalone engine with fresh data

Setup handles the initial dependency installation. Before reinstalling with npm ci, stop the engine and service: it replaces workspace dependency folders. See tests for focused checks. GitHub Actions runs only on explicit request. Report which native platforms you verified; a macOS pass does not establish Windows acceptance.

Documentation

Topic Guide
All documentation Documentation index
Terminology Glossary
Setup, configuration and recovery Local engine
MCP, providers and worker lifecycle Connector README
Architecture MCP and backend, coordination API
Contributor workflow Development, UI workflow
Tests and tooling Tests, tools
Updating Minions Release guide

License

Minions is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

20 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages