Skip to content

Add --preview flag to apply command for reviewing changes#47

Merged
that-github-user merged 1 commit intomainfrom
issue-33-preview-flag
Mar 28, 2026
Merged

Add --preview flag to apply command for reviewing changes#47
that-github-user merged 1 commit intomainfrom
issue-33-preview-flag

Conversation

@that-github-user
Copy link
Copy Markdown
Owner

Summary

  • thinktank apply --preview shows the diff with syntax-highlighted output
  • Green for additions, red for removals, cyan for hunk headers
  • Shows file list and change summary without modifying the working tree
  • Suggests the apply command after review

Change type

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • CI / infrastructure
  • Chore

Related issue

Closes #33

How to test

# After a thinktank run:
thinktank apply --preview           # show recommended agent's diff
thinktank apply --preview --agent 2 # show specific agent's diff

Breaking changes

  • This PR introduces breaking changes

🤖 Generated with Claude Code

- `thinktank apply --preview` shows the diff with syntax highlighting
  (green for additions, red for removals, cyan for hunk headers)
- Shows file list and change summary
- Suggests the apply command to run after review
- Does not modify the working tree

Closes #33

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@that-github-user
Copy link
Copy Markdown
Owner Author

Self-review: Preview mode returns early without modifying files. Color output uses picocolors for cross-platform support. 56 tests pass, lint clean.

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 --preview flag to apply command for reviewing changes before applying

1 participant