Skip to content

Add --retry flag to re-run only failed or timed-out agents#115

Merged
that-github-user merged 1 commit into
mainfrom
issue-77-retry
Mar 28, 2026
Merged

Add --retry flag to re-run only failed or timed-out agents#115
that-github-user merged 1 commit into
mainfrom
issue-77-retry

Conversation

@that-github-user

Copy link
Copy Markdown
Owner

Summary

  • thinktank run --retry re-runs only failed/timed-out agents from last run
  • Loads latest.json, identifies failures, creates worktrees for those only
  • Merges retry results back into original result set
  • Saves API costs by not re-running successful agents

Generated by thinktank Opus — 5 agents, only Agent #4 completed (298s of 300s timeout). +371/-12.

Change type

  • New feature

Related issue

Closes #77

How to test

npm test  # 147 tests pass
thinktank run "complex task" -n 5      # some agents timeout
thinktank run --retry                   # only re-runs failed ones

Breaking changes

  • This PR introduces breaking changes

🤖 Generated with thinktank (Opus)

Loads latest result, identifies failed/timed-out agents, creates new
worktrees only for those, re-runs with same prompt, merges results
back into original result set. Saves money by not re-running successful
agents.

Generated by thinktank Opus (5 agents, 1 completed just under timeout).

Closes #77

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@that-github-user that-github-user merged commit d8c16d2 into main Mar 28, 2026
4 checks passed
@that-github-user that-github-user deleted the issue-77-retry branch March 28, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --retry flag to re-run only failed or timed-out agents

1 participant