sessioncost 0.2.1__tar.gz → 0.2.2__tar.gz
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.
- {sessioncost-0.2.1/sessioncost.egg-info → sessioncost-0.2.2}/PKG-INFO +30 -17
- {sessioncost-0.2.1 → sessioncost-0.2.2}/README.md +29 -16
- {sessioncost-0.2.1 → sessioncost-0.2.2}/pyproject.toml +1 -1
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/__init__.py +1 -1
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/skill/SKILL.md +5 -5
- {sessioncost-0.2.1 → sessioncost-0.2.2/sessioncost.egg-info}/PKG-INFO +30 -17
- {sessioncost-0.2.1 → sessioncost-0.2.2}/LICENSE +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/MANIFEST.in +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/__main__.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/analyse.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/cli.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/fixes.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/locate.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/model.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/prices.json +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/prices.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/readers/__init__.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/readers/_pb.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/readers/antigravity.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/readers/claude.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/readers/codex.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/readers/cursor.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/report.py +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost/report_template.html +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost.egg-info/SOURCES.txt +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost.egg-info/dependency_links.txt +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost.egg-info/entry_points.txt +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/sessioncost.egg-info/top_level.txt +0 -0
- {sessioncost-0.2.1 → sessioncost-0.2.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sessioncost
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: See how many tokens each turn of your coding-agent chat sends, why, and what to cut. Cost goes down with it.
|
|
5
5
|
Author: kish21
|
|
6
6
|
License-Expression: MIT
|
|
@@ -25,28 +25,41 @@ runs on your computer, and sends nothing anywhere.
|
|
|
25
25
|
|
|
26
26
|
## Get it
|
|
27
27
|
|
|
28
|
-
**
|
|
28
|
+
Works with **Claude Code, Codex, Cursor and Antigravity**. You don't need Python or Git: the installer brings what
|
|
29
|
+
it needs.
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
/plugin marketplace add kish21/sessioncost
|
|
32
|
-
/plugin install sessioncost@sessioncost
|
|
33
|
-
```
|
|
31
|
+
**1. Open a terminal**
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
gives you the line below.
|
|
33
|
+
- **Windows:** press the Windows key, type `powershell`, press Enter.
|
|
34
|
+
- **Mac:** press Cmd + Space, type `terminal`, press Enter.
|
|
38
35
|
|
|
39
|
-
**
|
|
36
|
+
**2. Paste this line and press Enter**
|
|
40
37
|
|
|
41
38
|
| Your computer | Paste this |
|
|
42
39
|
|---|---|
|
|
43
|
-
| Windows
|
|
44
|
-
|
|
|
40
|
+
| Windows | `irm https://raw.githubusercontent.com/kish21/sessioncost/main/install.ps1 \| iex` |
|
|
41
|
+
| Mac or Linux | `curl -fsSL https://raw.githubusercontent.com/kish21/sessioncost/main/install.sh \| sh` |
|
|
42
|
+
|
|
43
|
+
Wait about a minute. It ends with a line like `Claude Code /sessioncost added` for each agent it found.
|
|
44
|
+
|
|
45
|
+
**3. Restart your agent, and type `/sessioncost` in any chat**
|
|
46
|
+
|
|
47
|
+
To update later, paste the same line again.
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
<details>
|
|
50
|
+
<summary>Already have Git and Python? Install it as a Claude Code plugin instead</summary>
|
|
51
|
+
|
|
52
|
+
In a Claude Code chat:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
/plugin marketplace add kish21/sessioncost
|
|
56
|
+
/plugin install sessioncost@sessioncost
|
|
57
|
+
```
|
|
48
58
|
|
|
49
|
-
**
|
|
59
|
+
(Or **Manage Plugins → Marketplaces**, add `kish21/sessioncost`, then install **sessioncost** from the **Plugins**
|
|
60
|
+
tab.) Claude Code downloads plugins with Git, so this needs [Git](https://git-scm.com/downloads), and SessionCost
|
|
61
|
+
needs Python 3.10 or newer. If the plugin says "git not found", use the line above instead.
|
|
62
|
+
</details>
|
|
50
63
|
|
|
51
64
|
## What you get
|
|
52
65
|
|
|
@@ -80,11 +93,11 @@ into the chat.
|
|
|
80
93
|
- **`/sessioncost` does nothing:** restart the agent after installing.
|
|
81
94
|
- **Two `/sessioncost` in Claude Code** (the plugin and the one-line install): run `sessioncost setup` again; with the
|
|
82
95
|
plugin installed it removes the extra copy.
|
|
96
|
+
- **"git not found" when adding the plugin:** use the one-line install instead; it needs neither Git nor Python.
|
|
83
97
|
- **"Python is not found" with the Claude Code plugin:** paste the one line for your computer from above.
|
|
84
98
|
- **Windows says running scripts is disabled:** run the line as
|
|
85
99
|
`powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/kish21/sessioncost/main/install.ps1 | iex"`.
|
|
86
|
-
- **Already have Python and prefer pip:** `pip install
|
|
87
|
-
then `python -m sessioncost setup`.
|
|
100
|
+
- **Already have Python and prefer pip:** `pip install sessioncost`, then `python -m sessioncost setup`.
|
|
88
101
|
|
|
89
102
|
## Which agents, and how exact
|
|
90
103
|
|
|
@@ -10,28 +10,41 @@ runs on your computer, and sends nothing anywhere.
|
|
|
10
10
|
|
|
11
11
|
## Get it
|
|
12
12
|
|
|
13
|
-
**
|
|
13
|
+
Works with **Claude Code, Codex, Cursor and Antigravity**. You don't need Python or Git: the installer brings what
|
|
14
|
+
it needs.
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
/plugin marketplace add kish21/sessioncost
|
|
17
|
-
/plugin install sessioncost@sessioncost
|
|
18
|
-
```
|
|
16
|
+
**1. Open a terminal**
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
gives you the line below.
|
|
18
|
+
- **Windows:** press the Windows key, type `powershell`, press Enter.
|
|
19
|
+
- **Mac:** press Cmd + Space, type `terminal`, press Enter.
|
|
23
20
|
|
|
24
|
-
**
|
|
21
|
+
**2. Paste this line and press Enter**
|
|
25
22
|
|
|
26
23
|
| Your computer | Paste this |
|
|
27
24
|
|---|---|
|
|
28
|
-
| Windows
|
|
29
|
-
|
|
|
25
|
+
| Windows | `irm https://raw.githubusercontent.com/kish21/sessioncost/main/install.ps1 \| iex` |
|
|
26
|
+
| Mac or Linux | `curl -fsSL https://raw.githubusercontent.com/kish21/sessioncost/main/install.sh \| sh` |
|
|
27
|
+
|
|
28
|
+
Wait about a minute. It ends with a line like `Claude Code /sessioncost added` for each agent it found.
|
|
29
|
+
|
|
30
|
+
**3. Restart your agent, and type `/sessioncost` in any chat**
|
|
31
|
+
|
|
32
|
+
To update later, paste the same line again.
|
|
30
33
|
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
<details>
|
|
35
|
+
<summary>Already have Git and Python? Install it as a Claude Code plugin instead</summary>
|
|
36
|
+
|
|
37
|
+
In a Claude Code chat:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
/plugin marketplace add kish21/sessioncost
|
|
41
|
+
/plugin install sessioncost@sessioncost
|
|
42
|
+
```
|
|
33
43
|
|
|
34
|
-
**
|
|
44
|
+
(Or **Manage Plugins → Marketplaces**, add `kish21/sessioncost`, then install **sessioncost** from the **Plugins**
|
|
45
|
+
tab.) Claude Code downloads plugins with Git, so this needs [Git](https://git-scm.com/downloads), and SessionCost
|
|
46
|
+
needs Python 3.10 or newer. If the plugin says "git not found", use the line above instead.
|
|
47
|
+
</details>
|
|
35
48
|
|
|
36
49
|
## What you get
|
|
37
50
|
|
|
@@ -65,11 +78,11 @@ into the chat.
|
|
|
65
78
|
- **`/sessioncost` does nothing:** restart the agent after installing.
|
|
66
79
|
- **Two `/sessioncost` in Claude Code** (the plugin and the one-line install): run `sessioncost setup` again; with the
|
|
67
80
|
plugin installed it removes the extra copy.
|
|
81
|
+
- **"git not found" when adding the plugin:** use the one-line install instead; it needs neither Git nor Python.
|
|
68
82
|
- **"Python is not found" with the Claude Code plugin:** paste the one line for your computer from above.
|
|
69
83
|
- **Windows says running scripts is disabled:** run the line as
|
|
70
84
|
`powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/kish21/sessioncost/main/install.ps1 | iex"`.
|
|
71
|
-
- **Already have Python and prefer pip:** `pip install
|
|
72
|
-
then `python -m sessioncost setup`.
|
|
85
|
+
- **Already have Python and prefer pip:** `pip install sessioncost`, then `python -m sessioncost setup`.
|
|
73
86
|
|
|
74
87
|
## Which agents, and how exact
|
|
75
88
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "sessioncost"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.2"
|
|
8
8
|
description = "See how many tokens each turn of your coding-agent chat sends, why, and what to cut. Cost goes down with it."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""SessionCost: see where every token of your agent session went, turn by turn, and what to fix."""
|
|
2
|
-
__version__ = "0.2.
|
|
2
|
+
__version__ = "0.2.2"
|
|
@@ -14,10 +14,10 @@ no AI model.
|
|
|
14
14
|
1. Run this from the project folder of the current session (one command, nothing else):
|
|
15
15
|
|
|
16
16
|
```
|
|
17
|
-
{{RUN}} last
|
|
17
|
+
{{RUN}} last
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
If that fails because the program is missing, try `sessioncost last
|
|
20
|
+
If that fails because the program is missing, try `sessioncost last`. If that fails too, tell the user
|
|
21
21
|
SessionCost is not installed and give them the one line for their system, then stop:
|
|
22
22
|
|
|
23
23
|
- Windows (PowerShell): `irm https://raw.githubusercontent.com/kish21/sessioncost/main/install.ps1 | iex`
|
|
@@ -25,9 +25,9 @@ no AI model.
|
|
|
25
25
|
|
|
26
26
|
2. Show the user the printed summary exactly as printed, in a code block. Do not reword or recompute it.
|
|
27
27
|
|
|
28
|
-
3.
|
|
29
|
-
|
|
30
|
-
on macOS, `xdg-open <path>` on Linux).
|
|
28
|
+
3. The tool opens the report in the browser by itself. Add one line: "The full report is open in your browser"
|
|
29
|
+
and its path from the summary. Do not offer to open it. Only if the user says it did not open, open the file with
|
|
30
|
+
the system's default opener (`start "" <path>` on Windows, `open <path>` on macOS, `xdg-open <path>` on Linux).
|
|
31
31
|
|
|
32
32
|
## Never
|
|
33
33
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sessioncost
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: See how many tokens each turn of your coding-agent chat sends, why, and what to cut. Cost goes down with it.
|
|
5
5
|
Author: kish21
|
|
6
6
|
License-Expression: MIT
|
|
@@ -25,28 +25,41 @@ runs on your computer, and sends nothing anywhere.
|
|
|
25
25
|
|
|
26
26
|
## Get it
|
|
27
27
|
|
|
28
|
-
**
|
|
28
|
+
Works with **Claude Code, Codex, Cursor and Antigravity**. You don't need Python or Git: the installer brings what
|
|
29
|
+
it needs.
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
/plugin marketplace add kish21/sessioncost
|
|
32
|
-
/plugin install sessioncost@sessioncost
|
|
33
|
-
```
|
|
31
|
+
**1. Open a terminal**
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
gives you the line below.
|
|
33
|
+
- **Windows:** press the Windows key, type `powershell`, press Enter.
|
|
34
|
+
- **Mac:** press Cmd + Space, type `terminal`, press Enter.
|
|
38
35
|
|
|
39
|
-
**
|
|
36
|
+
**2. Paste this line and press Enter**
|
|
40
37
|
|
|
41
38
|
| Your computer | Paste this |
|
|
42
39
|
|---|---|
|
|
43
|
-
| Windows
|
|
44
|
-
|
|
|
40
|
+
| Windows | `irm https://raw.githubusercontent.com/kish21/sessioncost/main/install.ps1 \| iex` |
|
|
41
|
+
| Mac or Linux | `curl -fsSL https://raw.githubusercontent.com/kish21/sessioncost/main/install.sh \| sh` |
|
|
42
|
+
|
|
43
|
+
Wait about a minute. It ends with a line like `Claude Code /sessioncost added` for each agent it found.
|
|
44
|
+
|
|
45
|
+
**3. Restart your agent, and type `/sessioncost` in any chat**
|
|
46
|
+
|
|
47
|
+
To update later, paste the same line again.
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
<details>
|
|
50
|
+
<summary>Already have Git and Python? Install it as a Claude Code plugin instead</summary>
|
|
51
|
+
|
|
52
|
+
In a Claude Code chat:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
/plugin marketplace add kish21/sessioncost
|
|
56
|
+
/plugin install sessioncost@sessioncost
|
|
57
|
+
```
|
|
48
58
|
|
|
49
|
-
**
|
|
59
|
+
(Or **Manage Plugins → Marketplaces**, add `kish21/sessioncost`, then install **sessioncost** from the **Plugins**
|
|
60
|
+
tab.) Claude Code downloads plugins with Git, so this needs [Git](https://git-scm.com/downloads), and SessionCost
|
|
61
|
+
needs Python 3.10 or newer. If the plugin says "git not found", use the line above instead.
|
|
62
|
+
</details>
|
|
50
63
|
|
|
51
64
|
## What you get
|
|
52
65
|
|
|
@@ -80,11 +93,11 @@ into the chat.
|
|
|
80
93
|
- **`/sessioncost` does nothing:** restart the agent after installing.
|
|
81
94
|
- **Two `/sessioncost` in Claude Code** (the plugin and the one-line install): run `sessioncost setup` again; with the
|
|
82
95
|
plugin installed it removes the extra copy.
|
|
96
|
+
- **"git not found" when adding the plugin:** use the one-line install instead; it needs neither Git nor Python.
|
|
83
97
|
- **"Python is not found" with the Claude Code plugin:** paste the one line for your computer from above.
|
|
84
98
|
- **Windows says running scripts is disabled:** run the line as
|
|
85
99
|
`powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/kish21/sessioncost/main/install.ps1 | iex"`.
|
|
86
|
-
- **Already have Python and prefer pip:** `pip install
|
|
87
|
-
then `python -m sessioncost setup`.
|
|
100
|
+
- **Already have Python and prefer pip:** `pip install sessioncost`, then `python -m sessioncost setup`.
|
|
88
101
|
|
|
89
102
|
## Which agents, and how exact
|
|
90
103
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|