ai-gains 1.5.4 → 1.5.5
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 +22 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,13 +18,15 @@ npx ai-gains init
|
|
|
18
18
|
|
|
19
19
|
This sets up `.claude/settings.json` hooks and the `/ai-gains` skill. If you already have a `settings.json`, the hooks are merged in safely — existing hooks are preserved and duplicates are never added.
|
|
20
20
|
|
|
21
|
+
The hooks and scripts are also kept up to date automatically: each time you run `/ai-gains`, the skill checks for newer versions and updates them in place.
|
|
22
|
+
|
|
21
23
|
## Running the dashboard
|
|
22
24
|
|
|
23
25
|
```bash
|
|
24
26
|
npx ai-gains
|
|
25
27
|
```
|
|
26
28
|
|
|
27
|
-
Opens a browser dashboard at `http://localhost:3847` showing sessions from the current project's `.ai-gains` folder.
|
|
29
|
+
Opens a browser dashboard at `http://localhost:3847` showing sessions from the current project's `.ai-gains` folder (and any nested `.ai-gains` directories within subdirectories).
|
|
28
30
|
|
|
29
31
|
To use a different port:
|
|
30
32
|
|
|
@@ -32,6 +34,20 @@ To use a different port:
|
|
|
32
34
|
PORT=4000 npx ai-gains
|
|
33
35
|
```
|
|
34
36
|
|
|
37
|
+
## GitHub mode
|
|
38
|
+
|
|
39
|
+
View sessions from any public (or private, with a token) GitHub repository without cloning it:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Single repo
|
|
43
|
+
npx ai-gains github owner/repo
|
|
44
|
+
|
|
45
|
+
# All repos for a user or organisation
|
|
46
|
+
npx ai-gains github owner
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
A `GITHUB_TOKEN` environment variable or `gh auth login` session is used automatically if available. Without a token the GitHub API rate limit is 60 requests/hour.
|
|
50
|
+
|
|
35
51
|
## Logging achievements
|
|
36
52
|
|
|
37
53
|
After completing a meaningful piece of work — a feature, a bug fix, a refactor — run:
|
|
@@ -48,10 +64,10 @@ Run it as many times as you like within a session to capture checkpoints, or onc
|
|
|
48
64
|
|
|
49
65
|
- **Stats** — total time saved (hero metric), sessions, achievements, weighted average speedup
|
|
50
66
|
- **Chart** — time saved per session as a bar chart, with a 5-session rolling average line showing whether AI is becoming more or less useful over time. Sessions with suspiciously high speedup estimates (>15×) are highlighted amber.
|
|
51
|
-
- **
|
|
52
|
-
- **
|
|
53
|
-
- **Filters** — filter by author and time period
|
|
54
|
-
- **
|
|
67
|
+
- **Leaderboard** — author and repo leaderboards ranking contributors by time saved, with proportional bars
|
|
68
|
+
- **Sessions screen** — full per-session breakdown of achievements, categories, and files touched
|
|
69
|
+
- **Filters** — filter by author, repo, and time period
|
|
70
|
+
- **Light / dark mode** — toggle in the header; preference is saved across visits
|
|
55
71
|
|
|
56
72
|
## What gets tracked
|
|
57
73
|
|
|
@@ -89,5 +105,5 @@ Add `.ai-gains/` to your repository to share gains across your team. Each file i
|
|
|
89
105
|
|
|
90
106
|
## Requirements
|
|
91
107
|
|
|
92
|
-
- Node.js
|
|
108
|
+
- Node.js 18+
|
|
93
109
|
- [Claude Code](https://claude.ai/code)
|