Skip to content

A turn can be cut off ​

Give one turn its own time, cost or token limit, and stop it mid-answer.

  • Every turn starts fresh. The tenth round of a loop gets the same room as the first.
  • Cut off, not killed. Its edits stay on disk and the next turn carries on the same session.
  • The tighter one wins. A turn is held to its own budget or the run's, whichever is tighter.
  • Unpriced is free. A model with no listed price costs $0, so its cost limit never bites.
  • Nothing outlasts it. A goal is held to it, and it beats a hook that would send the agent on.

Tokens and cost counted only at the turn's end: agy cursor-agent grok mcode qwen

A CLI you add yourself never reports them. Give those turns a time limit too.

Released under the Apache-2.0 licence.