tokenjam 0.5.5 → 0.5.6
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 +51 -22
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -1,40 +1,69 @@
|
|
|
1
|
-
#
|
|
1
|
+
# tokenjam
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
<img src="https://raw.githubusercontent.com/Metabuilder-Labs/tokenjam/main/docs/brand/tokenjam-repo-header.png" alt="TokenJam: token efficiency for AI agents. Reads your agent's telemetry, finds the waste, runs 100% local." width="760">
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/tokenjam)
|
|
8
|
+
[](https://www.npmjs.com/package/tokenjam)
|
|
9
|
+
[](https://pypi.org/project/tokenjam/)
|
|
10
|
+
[](https://github.com/Metabuilder-Labs/tokenjam/blob/main/LICENSE)
|
|
11
|
+
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
TokenJam ingests telemetry data about your agents from a multitude of sources and provides you a quick and easy way to visualize and optimize cost so that you get the most out of the tokens you pay for. This package is the zero-install launcher: one command, no pip environment, no config.
|
|
2
15
|
|
|
3
16
|
```bash
|
|
4
17
|
npx tokenjam
|
|
5
18
|
```
|
|
6
19
|
|
|
7
|
-
|
|
8
|
-
and shows you **where your
|
|
9
|
-
Claude Code quota actually goes** — quota composition (re-reading context vs.
|
|
10
|
-
net-new work) plus a session timeline. No pip env, no daemon, no onboarding.
|
|
20
|
+
## What you get
|
|
11
21
|
|
|
12
|
-
|
|
13
|
-
package [`tokenjam`](https://pypi.org/project/tokenjam/) (command: `tj`). `npx tokenjam`
|
|
14
|
-
shells out to the first available Python runner:
|
|
22
|
+
Bare `npx tokenjam` reads the session logs you already have (Claude Code today; more sources land in the full CLI) and prints a 15-second, read-only report: quota composition (what share of your tokens went to re-reading history and context vs. net-new work) plus a session timeline. Nothing is installed, nothing is kept.
|
|
15
23
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
<div align="center">
|
|
25
|
+
<img src="https://raw.githubusercontent.com/Metabuilder-Labs/tokenjam/main/docs/assets/tj-quickstart-hero.png" alt="Sample npx tokenjam output: quota composition (95.9% re-reading context, 4.1% net-new work) and a session timeline table" width="620">
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
## Commands
|
|
19
29
|
|
|
20
|
-
All arguments pass straight through, so `
|
|
21
|
-
|
|
30
|
+
All arguments pass straight through to the Python CLI, so any `tj` subcommand and flag works here too.
|
|
31
|
+
|
|
32
|
+
| Command | What it does |
|
|
33
|
+
|---|---|
|
|
34
|
+
| `npx tokenjam` / `npx tokenjam quickstart` | Zero-install first run: quota composition and a session timeline from your existing session logs. |
|
|
35
|
+
| `npx tokenjam context` | Where your quota goes: re-read vs. net-new share, recurring inclusions, `/compact` candidates. |
|
|
36
|
+
| `npx tokenjam optimize` | Cost-saving candidates: model downsizing, cache opportunities, prompt trimming, workflow reuse, subagent right-sizing. |
|
|
37
|
+
| `npx tokenjam onboard` | Guided setup: writes a config, generates an ingest secret, and optionally installs the background daemon for live capture. |
|
|
22
38
|
|
|
23
39
|
## Go deeper
|
|
24
40
|
|
|
25
|
-
`npx tokenjam` is the no-setup front door.
|
|
26
|
-
dashboard, and the MCP server for Claude Code, install the full CLI and onboard:
|
|
41
|
+
`npx tokenjam` is the no-setup front door. One command sets up live capture, the local Lens dashboard, and the zero-token statusline:
|
|
27
42
|
|
|
28
43
|
```bash
|
|
29
|
-
pipx install tokenjam
|
|
30
|
-
tj onboard
|
|
44
|
+
npx tokenjam onboard # or: pipx install tokenjam && tj onboard
|
|
31
45
|
```
|
|
32
46
|
|
|
33
|
-
|
|
34
|
-
|
|
47
|
+
`tj onboard` asks how you use AI agents (Claude Code, Codex, or your own SDK/API agents) and wires the right path. For Claude Code and Codex that means backfilling recent history plus a statusline and hooks; restart and you're live. From there:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
tj optimize # cost-saving candidates from your actual usage
|
|
51
|
+
tj serve # open the Lens dashboard at http://127.0.0.1:7391/
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
- Full feature set, six analyzers, and Lens screenshots: [github.com/Metabuilder-Labs/tokenjam](https://github.com/Metabuilder-Labs/tokenjam)
|
|
55
|
+
- Product site and docs: [tokenjam.dev](https://tokenjam.dev)
|
|
56
|
+
|
|
57
|
+
## How the launcher works
|
|
58
|
+
|
|
59
|
+
This npm package is a thin launcher, not the real CLI. `npx tokenjam` shells out to the first available Python runner:
|
|
60
|
+
|
|
61
|
+
1. `uvx --from tokenjam tj …`
|
|
62
|
+
2. `pipx run --spec tokenjam tj …`
|
|
63
|
+
3. an already-installed `tj` on your `PATH`
|
|
64
|
+
|
|
65
|
+
The real CLI is the Python package [`tokenjam`](https://pypi.org/project/tokenjam/) (command: `tj`).
|
|
35
66
|
|
|
36
67
|
## Requirements
|
|
37
68
|
|
|
38
|
-
A Python runner
|
|
39
|
-
[`pipx`](https://pipx.pypa.io/). If neither is present, `npx tokenjam` prints install
|
|
40
|
-
guidance.
|
|
69
|
+
A Python runner: [`uv`](https://docs.astral.sh/uv/) (recommended) or [`pipx`](https://pipx.pypa.io/). If neither is present, `npx tokenjam` prints install guidance instead of failing silently.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tokenjam",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "Zero-install launcher for TokenJam (tj)
|
|
3
|
+
"version": "0.5.6",
|
|
4
|
+
"description": "Zero-install launcher for TokenJam (tj): npx tokenjam runs the Python CLI via uvx/pipx and prints where your AI agent's token quota actually goes, no setup required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
7
7
|
"ccusage",
|
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
"llm",
|
|
11
11
|
"agents",
|
|
12
12
|
"observability",
|
|
13
|
-
"tokenjam"
|
|
13
|
+
"tokenjam",
|
|
14
|
+
"anthropic",
|
|
15
|
+
"claude",
|
|
16
|
+
"token-usage",
|
|
17
|
+
"cost-tracking",
|
|
18
|
+
"cli",
|
|
19
|
+
"statusline",
|
|
20
|
+
"opentelemetry",
|
|
21
|
+
"agent-observability"
|
|
14
22
|
],
|
|
15
23
|
"homepage": "https://tokenjam.dev",
|
|
16
24
|
"bugs": "https://github.com/Metabuilder-Labs/tokenjam/issues",
|