← Back to Plugins
Tools

Squad Os

amit1992KO By amit1992KO ⭐ 3 stars 👁 14 views ▲ 0 votes

Turns a measurable goal into the agent roles it needs, gives each role a file scope and a done-signal, and checks the work against evidence. Exports the same squad to Claude Code, Codex, Hermes Agent and OpenClaw. Claude Code plugin, v1.2.

GitHub

Install

pip install -e

Configuration Example

{
  "plan_id": "b8a38dec58f2a3c0…",
  "deletes": [],
  "writes": [
    { "path": ".claude/agents/acme-dportability-hdemo--evidence-reader.md", "size": 2261 },
    { "path": ".codex/agents/acme-dportability-hdemo--evidence-reader.toml", "size": 1368 },
    { "path": ".agents/skills/acme-dportability-hdemo-role-evidence-hreader/SKILL.md", "size": 1400 }
  ]
}

README

<div align="center">

# Squad OS

### Ship the discipline, not the team.

*Give it a goal. It builds the team that goal needs, holds that team to evidence, and
packages the same roles for Claude Code, Codex, Hermes Agent and OpenClaw.*

[![CI](https://github.com/amit1992KO/squad-os/actions/workflows/ci.yml/badge.svg)](https://github.com/amit1992KO/squad-os/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![Version](https://img.shields.io/badge/version-1.2.1-blue.svg)](CHANGELOG.md)
[![Providers](https://img.shields.io/badge/providers-Claude_Code_%7C_Codex_%7C_Hermes_%7C_OpenClaw-6f42c1.svg)](docs/compatibility-security.md)

**[Quickstart](#quickstart)** · **[How it works](#how-it-works)** ·
**[Export](#export-a-squad)** · **[Examples](#examples)** ·
**[What is enforced](#what-is-enforced-and-what-is-not)** · **[Docs](#documentation)**

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="docs/assets/hero-dark.png">
  <img src="docs/assets/hero-light.png" width="830" alt="A terminal where the goal &quot;Get Kettleworks' acquisition cost to $58 or under by mid-November&quot; is given to /squad-os:squad-onboard and a squad card comes back with Seats: 5/5, five named roles, each owning one deliverables folder.">
</picture>

</div>

---

Most agent frameworks ship a fixed cast: a planner, a coder, a reviewer. Squad OS
ships **no roles at all**. You state a measurable goal, and it derives the roles that
goal needs: three for an email audit, five for a marketing agency, different ones every
time. What it does ship is the contract those roles work under.

```text
You: Get Kettleworks' acquisition cost to $58 or under by mid-November.

Squad: Kettleworks acquisition cost to $58 or under by mid-November, on numbers everyone trusts
Seats: 5/5

- studio-producer — runs the program and owns everything the client sees (skills onboarded: 2)
- performance-media-buyer — one budget across search, shopping, and paid social (skills onboarded: 3)
- creative-strategist — turns angles into tested creative, paid and organic (skills onboarded: 3)
- tracking-analyst — one conversion definition and a weekly reconciliation (skills onboarded: 3)
- lifecycle-organic-marketer — email, SMS, and organic search (skills onboarded: 3)
```

```mermaid
graph TD
  goal["🎯 Kettleworks acquisition cost to $58 or under by mid-November, on numbers everyone trusts"]
  studio-producer["studio-producer<br/>Runs the program and owns everything the client sees<br/>skills: 2"]
  performance-media-buyer["performance-media-buyer<br/>One budget across search, shopping, and paid social<br/>skills: 3"]
  creative-strategist["creative-strategist<br/>Turns angles into tested creative, paid and organic<br/>skills: 3"]
  tracking-analyst["tracking-analyst<br/>One conversion definition and a weekly reconciliation<br/>skills: 3"]
  lifecycle-organic-marketer["lifecycle-organic-marketer<br/>Email, SMS, and organic search<br/>skills: 3"]
  goal --> studio-producer
  goal --> performance-media-buyer
  goal --> creative-strategist
  goal --> tracking-analyst
  goal --> lifecycle-organic-marketer
  tracking-analyst -->|hand-off: reconciled weekly numbers| performance-media-buyer
  performance-media-buyer -->|hand-off: fatigue list and refresh requests| creative-strategist
  creative-strategist -->|hand-off: scaled cells for organic and lifecycle reuse| lifecycle-organic-marketer
  performance-media-buyer -->|hand-off: pacing decision and its evidence| studio-producer
  lifecycle-organic-marketer -->|hand-off: sequence performance and open blockers| studio-producer
```

The plugin prints this card after every change to a squad. This one closes
[examples/full-funnel-agency.md](examples/full-funnel-agency.md), where eight proposed
workstreams are consolidated into five seats and every file the run produced is in the
repo. The client is fictional.

## Quickstart

In Claude Code:

```text
/plugin marketplace add amit1992KO/squad-os
/plugin install squad-os@squad-os
```

Start a fresh session, then:

| Step | Command | What you get |
| --- | --- | --- |
| 1 | `/squad-os:squad-onboard` | A measurable goal in `.squad/goal.md`, a cadence, and the roles it needs, confirmed one at a time |
| 2 | `/squad-os:squad-spawn` | The roles dispatched, each inside its own file scope |
| 3 | `/squad-os:squad-verify` | `.squad/verification.md`: each done-signal checked against evidence |

Add a role later with `/squad-os:squad-role`; list, deactivate or export roles
with `/squad-os:squad-roster`.

Requirements: Claude Code, Git, Bash and `jq`, on macOS or Linux. Windows is not
supported while the shared runtime depends on Bash.

## How it works

```mermaid
flowchart LR
  GOAL["Goal"] --> ON["squad-onboard"]
  ON --> ROLE["squad-role"]
  ROLE --> ROSTER["squad-roster"]
  ROSTER --> SPAWN["squad-spawn"]
  SPAWN --> VERIFY["squad-verify"]
  ROSTER --> EXPORT["squad-roster export"]
  EXPORT --> CLAUDE["Claude Code snapshot"]
  EXPORT --> CODEX["Codex snapshot"]
  EXPORT --> HERMES["Hermes Agent skills"]
  EXPORT --> OPENCLAW["OpenClaw skills"]
```

Ten skills and three hooks. Five ideas carry most of the weight:

1. **One goal, written down.** Every role reads the same `.squad/goal.md`, and
   every prompt you send carries a reminder of it.
2. **Five seats.** A squad holds at most five active roles. A plan that wants a sixth is
   consolidated, not exempted.
3. **Roles own files.** Each role declares the paths it may write. Writes inside that
   scope are approved for you; everything else comes to you as a normal prompt.
4. **Plan before acting.** A role publishes what it intends to do before its first
   write is approved.
5. **Done means evidence.** `squad-verify` grades each done-signal against what is on
   disk and records the verdict in one file.

The squad can also share one vocabulary. You agree what its key words mean in
`.squad/ontology.md` (proposed at onboarding, edited with `squad-ontology`), and every
role's prompt carries those definitions and the words to avoid. A role that needs a
missing term reports it to you instead of redefining it.

Roles can also start with researched skills instead of a blank page: `squad-role`
looks for open-source skills that teach the role its domain and how to operate its
platform, proposes them for your approval, and says so when nothing fits.

The three cadences (`one-time`, `multi-use`, `evergreen`) decide how the squad is
dispatched. [ARCHITECTURE.md](docs/ARCHITECTURE.md) has the full design and
[LOGIC.md](docs/LOGIC.md) the decision flow of every hook and skill.

## Export a squad

A squad you authored once can be compiled into a self-contained snapshot for Claude
Code, Codex, Hermes Agent, OpenClaw, or any mix of them. The snapshot works without this
plugin installed. Hermes exports to a project or your home; OpenClaw only to your home;
neither has a plugin export. Neither can own the lifecycle hooks, so a squad exported
only to them sets `runtime_owner` to `none`, and neither export edits a shared config
file: its activation notes print what to add yourself.

Inside Claude Code, ask `/squad-os:squad-roster` to export and it runs these
steps for you. From a terminal:

```bash
python3 -m pip install -e .        # Python 3.11+, from a checkout of this repo

squad-export plan \
  --manifest .squad/manifest.json --roster .squad/roster.json \
  --target "$PWD" --plan-file /tmp/plan.json
```

`plan` writes nothing. It prints every file it would create or delete and a `plan_id`:

```json
{
  "plan_id": "b8a38dec58f2a3c0…",
  "deletes": [],
  "writes": [
    { "path": ".claude/agents/acme-dportability-hdemo--evidence-reader.md", "size": 2261 },
    { "path": ".codex/agents/acme-dportability-hdemo--evidence-reader.toml", "size": 1368 },
    { "path": ".agents/skills/acme-dportability-hdemo-role-evidence-hreader/SKILL.md", "size": 1400 }
  ]
}
```

`apply` repeats the same inputs with `--confirm-plan-id <plan_id>`. If the manifest,
the roster or the target changed in between, the ID no longer matches and nothing is
written.

| Destination | Where the squad becomes available | Rule |
| --- | --- | --- |
| `session` | The current invocation only | Writes no files |
| `project` | One Git repository | Never leaves that repository |
| `user` | Your home directory | Needs a second `--confirm-global-write` |
| `plugin` | Nowhere until you install it | Generates a package; never installs it |

Every export that writes files leaves a receipt. Re-export and uninstall touch only files that receipt
owns and that you have not edited since. [docs/portability.md](docs/portability.md)
covers each destination, and [examples/portable-export.md](examples/portable-export.md)
walks through one end to end.

To run the roles as Orca workers, each in its own Git worktree, `squad-export
orca-dispatch` writes a plan under `.squad/dispatch/orca/` with the same preview and
plan-ID confirmation: stages in hand-off order, one prompt per role, and the exact
`orca` commands. It starts nothing; you run the commands. File ownership is
instructional on that path. [docs/orca.md](docs/orca.md) walks through it.

## Examples

| Example | Kind of work | Cadence | Roles |
| --- | --- | --- | --- |
| [Klaviyo lifecycle audit](examples/klaviyo-audit.md) | Business infrastructure | One-time | 3 |
| [Homepage redesign](examples/landing-page-redesign.md) | Engineering | Multi-use | 4 |
| [Weekly competitive intel](examples/weekly-competitive-intel.md) | Operations | Evergreen | 3 |
| [Full-funnel marketing agency](examples/full-funnel-agency.md) | Marketing | Multi-use | 5, consolidated from 8 |
| [Portable export](examples/portable-export.md) | Packaging for Claude Code and Codex | n/a | 2 |

## What is enforced, and what is not

A written boundary is not a mechanism, and this project labels the difference
everywhere it makes a claim:

| Label | Meaning |
| --- | --- |
| **mechanically enforced** | The exporter or the provider runti

... (truncated)
tools

Comments

Sign in to leave a comment

Loading comments...