Write the team. Your agents take the turns.
Turning is a small language for describing how a team of AI agents takes turns. A t() expression names a goal, sets a number of rounds, and lists the participants in order. You can give each participant a role and nest a team inside another team when part of the work needs its own conversation.
Read it as a plan
t("Improve the search page", 2,
builder:implementer,
critic:reviewer)This expression creates two distinct agents. The builder acts first, then the critic. They repeat that order for a second round, making four turns in total. Each agent returns to its own session, carrying its earlier context forward. If the harness cannot resume a session, the coordinator must say that it is reconstructing context from saved records.
Teams inside teams
Nested teams follow the same rules: members act from left to right, and their round counts multiply the turns within them.
t("Ship the change", 2,
builder:implementer,
t:review("Check the change",
critic:correctness,
critic:operations),
builder:integrator)Run it with the skill
Turning makes the order, participants, and limits visible before execution starts. The downloadable Turning Teams skill teaches a compatible agent harness how to coordinate that plan using persistent sessions and tmux. It supplies instructions rather than a bundled compiler. Finishing the rounds is separate from proving that the goal was achieved.
curl -fsSL https://turning.work/install.sh | bashInstalls into ~/.claude/skills. Start a new session and run /turning-teams.
curl -fsSL https://turning.work/install.sh | bash -s codexInstalls into ~/.agents/skills. Start a new session and run $turning-teams.
curl -fsSL https://turning.work/install.sh | bash -s ~/path/to/skillsFor another Agent Skills host, pass the skills folder its docs name.
This installs turning-teams 0.4.1, under the Apache License 2.0. The script checks the zip’s sha256 and moves any earlier install to a backup first. You need tmux, Bash on Linux, macOS or WSL, and the agent CLIs you name, installed and signed in.