@ramtinj95/opencode-tokenscope 1.4.1 → 1.4.2
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.
- package/README.md +12 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,19 +24,18 @@ Track and optimize your token usage across system prompts, user messages, tool o
|
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
3. **Create the `/tokenscope` command** by creating `~/.config/opencode/command/tokenscope.md`:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
```
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
mkdir -p ~/.config/opencode/command
|
|
30
|
+
cat > ~/.config/opencode/command/tokenscope.md << 'EOF'
|
|
31
|
+
---
|
|
32
|
+
description: Analyze token usage across the current session with detailed breakdowns by category
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
Call the tokenscope tool directly without delegating to other agents.
|
|
36
|
+
Then cat the token-usage-output.txt. DONT DO ANYTHING ELSE WITH THE OUTPUT.
|
|
37
|
+
EOF
|
|
38
|
+
```
|
|
40
39
|
|
|
41
40
|
4. **Restart OpenCode** and run `/tokenscope`
|
|
42
41
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@ramtinj95/opencode-tokenscope",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.2",
|
|
5
5
|
"description": "OpenCode plugin for detailed token usage analysis with breakdowns by category, visual charts, and subagent cost tracking",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/tokenscope.js",
|