Skip to main content

Manage a team of AI agents working on a code project: bootstrap roles & skills, track work with JIRA-like IDs in predictable markdown.

Project description

squads

A CLI (squads / sq) that manages a team of AI agents working on a code project.

squads bootstraps agent roles and skills, produces markdown in a predictable structure, and gives every tracked artifact a stable JIRA-like ID (TASK-000003). Claude Code is the first supported backend; the design is pluggable.

The real content lives under a relocatable squads/ folder. The files written into .claude/ are thin pointers to those definitions, plus a managed squads skill and a managed section in CLAUDE.md that teaches the agents how to work.


Install

Requires Python ≥ 3.14. Install as a tool so squads / sq land on your PATH:

# with uv (recommended)
uv tool install squads          # from PyPI, once published
uv tool install .               # from a local checkout

# or with pipx
pipx install squads             # from PyPI
pipx install .                  # from a local checkout

Then sq is available everywhere:

sq --help
sq --version

Try it once without installing, via uvx (or pipx run):

uvx --from squads sq --help     # or: uvx --from . sq --help  in a checkout

From source / development: uv sync creates the project venv and exposes the CLI as uv run sq …. The examples below use bare sq (tool install); prefix with uv run if you're working from a source checkout.

Quickstart

cd your-project
sq init --roles all                 # scaffold squads/, .claude/, CLAUDE.md
sq create feature "User authentication" --desc "Login & sessions"
sq create task "Validate token expiry" --parent FEAT-000010
sq status TASK-000011 InProgress
sq comment TASK-000011 --as architect -m "Reuse the clock abstraction" -m "@qa verify edges"
sq tree

Concepts

  • Items — every tracked thing is an item with a type and a stable ID. Types: epic, feature, task, bug, decision (ADR), review, guide, role, skill.
  • Global IDsPREFIX-NNNNNN with a single global counter, so the number is unique across all types (you never have both TASK-000002 and BUG-000002). The prefix marks the type: EPIC FEAT TASK BUG ADR REV GUIDE ROLE SKILL.
  • Source of truth — the markdown frontmatter is durable truth; squads/.squads.json is a fast index that is fully rebuildable from the files (sq repair).
  • sq-owned sections — files carry invisible markers (<!-- sq:body -->, <!-- sq:discussion -->, …). sq owns the frontmatter and marked sections (status, discussion); agents write all other prose directly and must never touch the marker lines.
  • Agents — named roles (real name + slug, e.g. Robert Architect / architect). The .claude/ files are pointers to the real definitions under squads/agents/.

On-disk layout

your-project/
├── .squads.toml                 # config (squad dir, backend, version, default role)
├── CLAUDE.md                    # managed section: process + greeting impersonation
├── .claude/
│   ├── agents/<slug>.md         # POINTER → squads/agents/roles/ROLE-*.md
│   └── skills/{squads,<slug>}/SKILL.md
└── squads/                      # self-contained & relocatable (override with --dir)
    ├── .squads.json             # the index: counter + all items + refs
    ├── epics/ features/ tasks/ bugs/ adrs/ reviews/ guides/
    └── agents/{roles,skills}/

Status workflows

Type Lifecycle
epic / feature / task / bug Draft → Ready → InProgress → InReview → Done (+ Blocked, Cancelled)
decision (ADR) Proposed → Accepted → Superseded (+ Rejected, Deprecated)
review Requested → InReview → ChangesRequested → Approved (+ Rejected)
guide Draft → Published → Deprecated
role / skill Draft → Active → Archived

sq status validates transitions; use --force to override.


Documentation

Full docs (with diagrams) live in docs/:

  • tutorial — a 15-minute, end-to-end first squad.
  • workflow — who creates & links what, and the per-type status lifecycles.
  • agents — operating as an agent inside a squad.
  • roles — the bundled roster, bundles, and stack developers.
  • recipes — copy-paste sequences · faq — common errors.
  • adoption — migrating an existing project (sq adopt, --at).
  • internals / backends — under the hood & writing a backend.

Contributing: CONTRIBUTING.md · contributors: CONTRIBUTORS.md · changes: CHANGELOG.md.


Command reference

Setup

  • sq init [--squad-dir squads] [--backend claude_code] [--roles all|core|minimal|<slugs>] [--no-claude] [--force]
  • sq adopt [--squad-dir squads] [--backend] [--roles] [--no-claude] — bring an existing project under sq management (non-destructive; imports existing items). See docs/adoption.md.
  • sq workflow — print the team-workflow cheatsheet
  • sq sync — regenerate tool-owned managed files to the current version
  • --dir PATH (global) — operate on the squad folder at PATH instead of walking up to .squads.toml
  • --at WHEN (global) — forge timestamps (ISO 8601, UTC) for this command, to preserve history when migrating

Items

  • sq create epic|feature|task|bug|decision|review|guide TITLE [--parent ID] [--desc] [--label] [--ref ID] [--assignee] [--json]
  • sq list [--type|--status|--parent|--label|--assignee] [--json] · sq show ID [--json] · sq tree [ROOT_ID]
  • sq update ID [--title|--desc|--assignee|--add-label|--rm-label] (--title renames the file)
  • sq status ID STATUS [--force] · sq link CHILD --parent P · sq unlink CHILD

Collaboration

  • sq comment ID -m "…" [-m "…"] [--as <slug|operator>] [--story USn|--subtask STn] (use @role to notify)
  • sq story add FEAT-ID [LABEL] [--json] · sq story list FEAT-ID
  • sq subtask add TASK-ID [LABEL] [--story USn] [--json] · sq subtask list TASK-ID · sq subtask done TASK-ID STn [--undo]
  • sq inbox <role> — open items mentioning @role

story add / subtask add scaffold an empty block with a writable body region and print (or return, with --json) the file and the marker/line range to write between — the agent then fills it with free-form paragraphs or bullet lists. The optional LABEL is just a short heading; the substance lives in the body. sq still owns the discussion and the subtask checkbox.

Cross-linking

  • sq ref add FROM TO [--kind related|blocks|implements|fixes|addresses] · sq ref rm FROM TO
  • sq refs ID [--out|--in|--all] [--json] (forward edges stored; backrefs computed)

Agents

  • sq role list [--available] | show <slug> | activate <slug> | regen ID | rm ID [--purge]
  • sq dev add --tech <t> [--name] [--model] | list — stack-specific developers
  • sq skill add NAME [--desc|--when-to-use|--allowed-tools] | list | show | regen | rm [--purge]
  • sq guide add TITLE [--tech] [--tag] | list

Maintenance

  • sq check — lint markers, dangling parent/ref IDs, invalid status, index drift
  • sq repair [--renumber] — rebuild the index from frontmatter; --renumber resolves merged ID collisions

Working with agents

After sq init, open Claude Code in the project. CLAUDE.md tells the agents how the process works and how to impersonate a role on greeting: say "Hi Robert" and Claude becomes Robert Architect; with no name it defaults to Catherine Manager, who triages and routes the request.

The bundled roster: Catherine Manager (manager, default), Robert Architect (architect), Olivia Lead (tech-lead), Paul Reviewer (reviewer), Mara Tester (qa), Hugo Ops (devops), Nina Product (product-owner), Theo Writer (tech-writer). Add stack developers with sq dev add.

Agents create items with sq, get back the file path, write the body directly, and hand off via sq comment … @role. Status and discussion stay owned by the CLI.

sq init/sq sync also generate a skill per item type (sq-feature, sq-task, sq-bug, …) with role-directed guidance, plus the general squads skill. Each role's .claude/agents/<slug>.md pointer preloads (via skills:) only the skills for the item types that role manages — so the product owner gets sq-feature/sq-epic, a developer gets sq-task/sq-bug/sq-review, and the manager (who triages rather than owning a type) gets just squads. Run sq workflow for the cheatsheet.

Team workflow

squads encodes a light division of labour (enforced by validation + sq check):

  • The product owner writes features and their user stories (sq create feature, sq story add).
  • The tech lead writes tasks. A task's parent is the feature it implements, and each subtask maps to one user story:
    sq create task "Token validation" --parent FEAT-000002
    sq subtask add TASK-000003 "Validate expiry" --story US1   # US1 must exist in FEAT-000002
    
  • A task may instead/also link a bug or review via typed refs — or nothing if it's purely technical:
    sq ref add TASK-000003 BUG-000009 --kind fixes
    sq ref add TASK-000003 REV-000010 --kind addresses
    

A task's parent must be a feature (link a bug/review with a ref, not as parent); a feature's parent must be an epic. Invalid links are rejected at create/link time and flagged by sq check.


Git notes

Commit .squads.toml, the squads/ folder, CLAUDE.md, and .claude/ (the pointers + squads skill). squads/.gitignore already excludes the lock/temp files. On a merge conflict in .squads.json, take either side and run sq repair (the frontmatter is the truth); if two branches reused an ID number, run sq repair --renumber.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

squads-0.1.1.tar.gz (104.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

squads-0.1.1-py3-none-any.whl (67.3 kB view details)

Uploaded Python 3

File details

Details for the file squads-0.1.1.tar.gz.

File metadata

  • Download URL: squads-0.1.1.tar.gz
  • Upload date:
  • Size: 104.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for squads-0.1.1.tar.gz
Algorithm Hash digest
SHA256 18512bd0cf89c7a80de5f8d7e209ad5e3ce1729b95df7ee7deae5941a3142d87
MD5 59951d107232266619447ef4db16d97a
BLAKE2b-256 179075c9f13cacb79313ba9932c27ef85ccdfceb9ef26b7953fdab923c3a2162

See more details on using hashes here.

File details

Details for the file squads-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: squads-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 67.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for squads-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cab25d42a412ff45d224fb759ba5dc9f944b8fabc1afb1d1974e8c0f64e161b5
MD5 8bdea9bf0a9027c92d20b6e57d734bb1
BLAKE2b-256 4ee575f155fe78be12a19738543f171597f9b3a19603b2a279fa3a41f6870565

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page