tlc-claude-code 1.5.6 → 1.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -120,12 +120,29 @@ For each provider in `reviewProviders` (except `claude` which is the current ses
|
|
|
120
120
|
|
|
121
121
|
**How to invoke:**
|
|
122
122
|
|
|
123
|
-
1. **Save diff to temporary file** (
|
|
123
|
+
1. **Save diff to temporary file with size limit** (max 500 lines per chunk):
|
|
124
124
|
```bash
|
|
125
|
-
|
|
125
|
+
# Get diff and check size
|
|
126
|
+
git diff main...HEAD > /tmp/review-diff-full.patch
|
|
127
|
+
line_count=$(wc -l < /tmp/review-diff-full.patch)
|
|
128
|
+
|
|
129
|
+
if [ "$line_count" -gt 500 ]; then
|
|
130
|
+
echo "⚠️ Large diff ($line_count lines) - chunking for review..."
|
|
131
|
+
|
|
132
|
+
# Split by file for targeted review
|
|
133
|
+
git diff --name-only main...HEAD | while read file; do
|
|
134
|
+
git diff main...HEAD -- "$file" > "/tmp/review-chunk-${file//\//_}.patch"
|
|
135
|
+
done
|
|
136
|
+
|
|
137
|
+
# Or truncate with warning
|
|
138
|
+
head -500 /tmp/review-diff-full.patch > /tmp/review-diff.patch
|
|
139
|
+
echo "... truncated (showing first 500 of $line_count lines)" >> /tmp/review-diff.patch
|
|
140
|
+
else
|
|
141
|
+
cp /tmp/review-diff-full.patch /tmp/review-diff.patch
|
|
142
|
+
fi
|
|
126
143
|
```
|
|
127
144
|
|
|
128
|
-
2. **Invoke each configured provider
|
|
145
|
+
2. **Invoke each configured provider** (one chunk at a time if split):
|
|
129
146
|
|
|
130
147
|
```bash
|
|
131
148
|
# For Codex (GPT-5.2) - use file attachment
|
|
@@ -135,6 +152,12 @@ codex --print "Review this code diff for quality issues, bugs, security vulnerab
|
|
|
135
152
|
gemini --print "Review this code diff for quality and security issues. File: /tmp/review-diff.patch"
|
|
136
153
|
```
|
|
137
154
|
|
|
155
|
+
**Large Diff Handling:**
|
|
156
|
+
- Diffs over 500 lines are automatically chunked by file
|
|
157
|
+
- Each file's changes reviewed separately
|
|
158
|
+
- Results aggregated across all chunks
|
|
159
|
+
- Alternative: truncate with warning (shows first 500 lines)
|
|
160
|
+
|
|
138
161
|
**Note:** Each CLI has its own syntax. Check `codex --help` and `gemini --help` for exact flags. The `--print` flag outputs the response without interactive mode.
|
|
139
162
|
|
|
140
163
|
**Example output:**
|