squad-os
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
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.
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.
Quickstart · How it works ·
Export · Examples ·
What is enforced · Docs
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: one for a narrow job, 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.
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)
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, 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:
/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
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:
- One goal, written down. Every role reads the same
.squad/goal.md, and
every prompt you send carries a reminder of it. - Five seats. A squad holds one to five active roles. A plan that wants a sixth is
consolidated, not exempted. - 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. - Plan before acting. A role publishes what it intends to do before its first
write is approved. - Done means evidence.
squad-verifygrades 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 has the full design and
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:
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:
{
"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
covers each destination, and 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 exactorca commands. It starts nothing; you run the commands. File ownership is
instructional on that path. docs/orca.md walks through it.
Examples
| Example | Kind of work | Cadence | Roles |
|---|---|---|---|
| Klaviyo lifecycle audit | Business infrastructure | One-time | 3 |
| Homepage redesign | Engineering | Multi-use | 4 |
| Weekly competitive intel | Operations | Evergreen | 3 |
| Full-funnel marketing agency | Marketing | Multi-use | 5, consolidated from 8 |
| Portable export | 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 runtime rejects the act |
| sandbox-enforced | The provider's sandbox limits the act |
| instructional | The role is told the boundary; nothing blocks a violation |
| unsupported | The provider does not offer the behavior in this release |
Three limits worth knowing before you rely on it:
- The Claude permission hook is not a firewall. It approves in-scope writes for you
and defers everything else to the normal permission prompt, where you can still say
yes. It never auto-approves files that configure an agent harness, git, or CI. - Codex file ownership is instructional. Codex exports do not register a
file-scope gate, and Codex roles that write run one at a time. - Hermes and OpenClaw exports carry no hooks. Their roles are skills; tools, models
and file ownership per role are instructions, except an OpenClaw read-only role's tool
denial once you add its printed agent entry.
The full matrix is in
docs/compatibility-security.md. To report a
vulnerability, see SECURITY.md.
Documentation
| Read | For |
|---|---|
| docs/ | Index of every document below, plus the decision records |
| docs/ARCHITECTURE.md | The design: hard rules, skills, hooks, data files |
| docs/LOGIC.md | Decision flow of each hook and skill, as diagrams |
| docs/portability.md | Export destinations, plans, receipts |
| docs/compatibility-security.md | What each provider enforces |
| docs/providers/claude.md, codex.md, hermes.md, openclaw.md | Activating an exported squad |
| docs/orca.md | Running the roles as Orca workers, one worktree each |
| docs/ROADMAP.md | What is shipped and what is next |
| CHANGELOG.md | Release history |
Development
python3 -m pip install -e '.[dev]'
ruff check src tests/python && ruff format --check src tests/python
PYTHONDONTWRITEBYTECODE=1 python3 -m pytest -q -p no:cacheprovider tests
shellcheck hooks/*.sh skills/**/scripts/*.sh tests/*.sh
bats tests/*.bats
CONTRIBUTING.md has the repository layout, the full gate and the
rules for changing contracts, adapters, and enforcement language.
Author
Built by Amit Kolton. Related:
Counterfoil, project continuity and context
provenance for AI coding sessions.
License
MIT. See LICENSE.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found