Skip to content

Add --output-format diff for pipe-friendly diff output#149

Merged
that-github-user merged 1 commit into
mainfrom
issue-138-diff-only
Mar 29, 2026
Merged

Add --output-format diff for pipe-friendly diff output#149
that-github-user merged 1 commit into
mainfrom
issue-138-diff-only

Conversation

@that-github-user

Copy link
Copy Markdown
Owner

Summary

  • --output-format diff outputs just the recommended agent's unified diff to stdout
  • Enables: thinktank run "fix" --output-format diff | git apply
  • Works in both run and retry modes

Change type

  • New feature

Related issue

Closes #138

How to test

npm test  # 242 tests pass
thinktank run "add a comment" -n 2 --output-format diff

Breaking changes

  • This PR introduces breaking changes

🤖 Generated with Claude Code

Enables piping: thinktank run "fix bug" --output-format diff | git apply
Or saving: thinktank run "fix bug" --output-format diff > fix.patch

Closes #138

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@that-github-user that-github-user merged commit f896b4c into main Mar 29, 2026
4 checks passed
@that-github-user that-github-user deleted the issue-138-diff-only branch March 29, 2026 05:33
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 --diff-only flag to show just the diff without full output

1 participant