Skip to content
Turnless

Work in steps

Some work is better done in steps, by different hands: one agent writes, a second checks, a third publishes. Turnless carries the work from step to step by itself and tells you when it's finished or stuck.

Maker, checker, release

Any skill can name two more skills in the header of its SKILL.md:

---
name: newsletter
review: check-newsletter
release: send-newsletter
---
  • The maker (newsletter) does the work and hands it in.
  • Turnless then starts the checker (check-newsletter) on its own. The checker sees only the ask and what the maker handed in, not the maker's reasoning, so it checks for itself. It says passed, or back with its reasons.
  • Back sends the work to the maker once more, with the reasons, and then to a second check.
  • Passed starts the release skill (send-newsletter) with the finished work.

After a second check, nothing starts by itself. If the work comes back twice, you hear about it and decide.

The checker can run on a different model from the maker. Add reviewModel: to the maker's header.

Several steps in order

To run more than one maker in a row, write a skill whose header lists them:

---
name: weekly-video
makers: write-script, build-video, script:scripts/upload.sh
---

Turnless starts the first maker. When it passes its own check (and release, if it has one), the next one starts. The issue's timeline and the Board show which step it is on.

Script steps

A step written script:<path> is a file in your project, not an agent. Turnless runs it in your project folder with two things passed to it: the run's folder and the issue number.

  • If the script exits with 0, whatever it printed is handed to the next step.
  • Any other exit stops the work, and you see the script's last lines.

Use a script step for anything that doesn't need judgement: fetching a file, uploading, posting, resizing images. It costs no tokens and does the same thing every time.

The script must be inside your project folder, have no spaces or commas in its path, and be executable (chmod +x scripts/upload.sh).

If Turnless quits while a script is running, the work stops with Turnless restarted while its script ran. Start it again.

Starting it and hearing back

Ask a character to run the work, usually on an issue: "Run weekly-video on #12." Or put it in a workflow in your .turnless folder and run it from there, or on a schedule. (See The .turnless folder.)

You hear once: when the work finishes, or when it stops. A question from any step reaches you at once, in the Inbox.

While the work is going, comments on its issue wait for the next finish or stop, so the steps aren't interrupted. If something can't wait, a character can mark its comment as needing an answer now.

How long a step may run

A step that makes no progress for 30 minutes is stopped, and so is one that keeps repeating the same turn. Time spent waiting for your Claude or ChatGPT plan's limit to reset doesn't count. You can also give a run a limit on tokens or turns.

To try stopped work again, ask the character to resume it. It picks up from the step that stopped.

Next: The .turnless folder