-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport.example.json
More file actions
75 lines (75 loc) · 2.11 KB
/
Copy pathreport.example.json
File metadata and controls
75 lines (75 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"schemaVersion": 1,
"generatedAt": "2026-06-11T12:00:00.000Z",
"plugin": {
"name": "SpankNSave",
"version": "0.1.0",
"mode": "suggest"
},
"measurementPolicy": {
"authoritative": [
"provider-reported input, output, reasoning, cache, and cost fields",
"OpenCode model context limit"
],
"estimated": [
"prompt component tokens",
"system instruction tokens",
"tool schema tokens",
"tool output attribution",
"potential token savings"
],
"rawContentPersisted": false,
"privacy": {
"perMessageIdentifiers": "never-persisted",
"toolArgHashes": "never-persisted",
"rawPrompts": "never-persisted"
}
},
"summary": {
"sessionID": "session-example",
"contextLimit": 128000,
"latestContextTokens": 108500,
"contextPercent": 85,
"cumulative": {
"input": 218000,
"output": 9100,
"reasoning": 12400,
"cacheRead": 36000,
"cacheWrite": 4000,
"cost": 2.41
},
"estimated": {
"latestTextPromptTokens": 760,
"systemTokens": 4200,
"enabledToolSchemaTokens": 8100
},
"toolCalls": 18,
"retries": 0,
"compactions": 0,
"filesChanged": 4
},
"findings": [
{
"severity": "critical",
"code": "CONTEXT_PRESSURE",
"cause": "The active request is consuming a high percentage of the model context window.",
"confidence": "high",
"evidence": {
"latestContextTokens": 108500,
"contextLimit": 128000,
"contextPercent": 85
},
"estimatedSavingsTokens": 48825,
"recommendation": "Compact completed work, preserve only active decisions and files, and move reusable procedures out of persistent context.",
"proposedPatch": {
"kind": "compaction",
"target": "active OpenCode session",
"summary": "Compact stale session context",
"change": "Run session compaction and retain the task, accepted decisions, active files, unresolved errors, and next actions only.",
"risk": "medium",
"autoApplicable": false
},
"priorityScore": 100
}
]
}