Skip to content

Commit aa10b8e

Browse files
committed
cleanup
1 parent 9810711 commit aa10b8e

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Automatically reduces token usage in OpenCode by removing obsolete tool outputs from conversation history.
66

7-
![DCP in action](dcp-demo3.png)
7+
![DCP in action](dcp-demo5.png)
88

99
## Installation
1010

dcp-demo4.png

96 KB
Loading

dcp-demo5.png

94.9 KB
Loading

lib/commands/context.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ function formatContextMessage(breakdown: TokenBreakdown): string {
164164
const lines: string[] = []
165165
const barWidth = 30
166166

167-
// Find max for scaling (include pruned for bar scaling)
168167
const values = [
169168
breakdown.system,
170169
breakdown.user,
@@ -175,7 +174,6 @@ function formatContextMessage(breakdown: TokenBreakdown): string {
175174
]
176175
const maxValue = Math.max(...values)
177176

178-
// Category definitions - shading decreases top to bottom
179177
const categories = [
180178
{ label: "System", value: breakdown.system, char: "█" },
181179
{ label: "User", value: breakdown.user, char: "▓" },
@@ -193,7 +191,6 @@ function formatContextMessage(breakdown: TokenBreakdown): string {
193191
lines.push("─".repeat(60))
194192
lines.push("")
195193

196-
// Create bars with aligned labels and values
197194
for (const cat of categories) {
198195
const bar = createBar(cat.value, maxValue, barWidth, cat.char)
199196

0 commit comments

Comments
 (0)