codex-agent-hour-tracker 0.1.2__tar.gz → 0.2.1__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.
Files changed (75) hide show
  1. {codex_agent_hour_tracker-0.1.2 → codex_agent_hour_tracker-0.2.1}/.gitignore +4 -0
  2. codex_agent_hour_tracker-0.2.1/CHANGELOG.md +41 -0
  3. codex_agent_hour_tracker-0.2.1/PKG-INFO +164 -0
  4. codex_agent_hour_tracker-0.2.1/README.md +137 -0
  5. codex_agent_hour_tracker-0.2.1/SECURITY.md +39 -0
  6. codex_agent_hour_tracker-0.2.1/community/api.js +431 -0
  7. codex_agent_hour_tracker-0.2.1/community/auth.js +336 -0
  8. codex_agent_hour_tracker-0.2.1/community/cookies.js +34 -0
  9. codex_agent_hour_tracker-0.2.1/community/crypto.js +47 -0
  10. codex_agent_hour_tracker-0.2.1/community/db.js +233 -0
  11. codex_agent_hour_tracker-0.2.1/community/score.js +269 -0
  12. codex_agent_hour_tracker-0.2.1/community-env.d.ts +25 -0
  13. codex_agent_hour_tracker-0.2.1/docs/community.md +111 -0
  14. codex_agent_hour_tracker-0.2.1/docs/exports.md +40 -0
  15. codex_agent_hour_tracker-0.2.1/docs/methodology.md +87 -0
  16. codex_agent_hour_tracker-0.2.1/functions/api/community/[[path]].js +7 -0
  17. codex_agent_hour_tracker-0.2.1/functions/community/_middleware.js +14 -0
  18. codex_agent_hour_tracker-0.2.1/migrations/0001_community.sql +79 -0
  19. codex_agent_hour_tracker-0.2.1/package-lock.json +1853 -0
  20. codex_agent_hour_tracker-0.2.1/package.json +20 -0
  21. {codex_agent_hour_tracker-0.1.2 → codex_agent_hour_tracker-0.2.1}/pyproject.toml +14 -1
  22. codex_agent_hour_tracker-0.2.1/scripts/sync_benchmarks.py +35 -0
  23. codex_agent_hour_tracker-0.2.1/site/_headers +6 -0
  24. codex_agent_hour_tracker-0.2.1/site/app.js +187 -0
  25. codex_agent_hour_tracker-0.2.1/site/benchmarks/index.html +92 -0
  26. codex_agent_hour_tracker-0.2.1/site/benchmarks-data.js +28 -0
  27. codex_agent_hour_tracker-0.2.1/site/benchmarks.js +29 -0
  28. codex_agent_hour_tracker-0.2.1/site/community/index.html +170 -0
  29. codex_agent_hour_tracker-0.2.1/site/community.js +377 -0
  30. codex_agent_hour_tracker-0.2.1/site/favicon.png +0 -0
  31. codex_agent_hour_tracker-0.2.1/site/favicon.svg +1 -0
  32. codex_agent_hour_tracker-0.2.1/site/index.html +301 -0
  33. codex_agent_hour_tracker-0.2.1/site/score.mjs +367 -0
  34. codex_agent_hour_tracker-0.2.1/site/social-card.png +0 -0
  35. codex_agent_hour_tracker-0.2.1/site/styles.css +959 -0
  36. codex_agent_hour_tracker-0.2.1/skills/codex-agent-hour-tracker/SKILL.md +43 -0
  37. codex_agent_hour_tracker-0.2.1/skills/codex-agent-hour-tracker/agents/openai.yaml +4 -0
  38. {codex_agent_hour_tracker-0.1.2 → codex_agent_hour_tracker-0.2.1}/src/agent_hour_tracker/__init__.py +1 -1
  39. codex_agent_hour_tracker-0.2.1/src/agent_hour_tracker/archive.py +549 -0
  40. codex_agent_hour_tracker-0.2.1/src/agent_hour_tracker/benchmarks.json +27 -0
  41. codex_agent_hour_tracker-0.2.1/src/agent_hour_tracker/benchmarks.py +15 -0
  42. codex_agent_hour_tracker-0.2.1/src/agent_hour_tracker/cli.py +629 -0
  43. {codex_agent_hour_tracker-0.1.2 → codex_agent_hour_tracker-0.2.1}/src/agent_hour_tracker/metrics.py +143 -1
  44. codex_agent_hour_tracker-0.2.1/src/agent_hour_tracker/report.py +221 -0
  45. {codex_agent_hour_tracker-0.1.2 → codex_agent_hour_tracker-0.2.1}/src/agent_hour_tracker/scanner.py +35 -2
  46. codex_agent_hour_tracker-0.2.1/src/agent_hour_tracker/session_io.py +47 -0
  47. codex_agent_hour_tracker-0.2.1/src/agent_hour_tracker/share.py +368 -0
  48. codex_agent_hour_tracker-0.2.1/tests/community-api.mjs +260 -0
  49. codex_agent_hour_tracker-0.2.1/tests/community-auth.mjs +181 -0
  50. codex_agent_hour_tracker-0.2.1/tests/community-database.mjs +212 -0
  51. codex_agent_hour_tracker-0.2.1/tests/community-headers.mjs +32 -0
  52. codex_agent_hour_tracker-0.2.1/tests/community-runtime.mjs +121 -0
  53. codex_agent_hour_tracker-0.2.1/tests/community-score.mjs +78 -0
  54. codex_agent_hour_tracker-0.2.1/tests/community-security-auth.mjs +377 -0
  55. codex_agent_hour_tracker-0.2.1/tests/site-local.mjs +86 -0
  56. codex_agent_hour_tracker-0.2.1/tests/site-score.mjs +143 -0
  57. codex_agent_hour_tracker-0.2.1/tests/site-ui.mjs +373 -0
  58. codex_agent_hour_tracker-0.2.1/tests/test_archive.py +258 -0
  59. codex_agent_hour_tracker-0.2.1/tests/test_compressed_sessions.py +189 -0
  60. codex_agent_hour_tracker-0.2.1/tests/test_public_files.py +311 -0
  61. {codex_agent_hour_tracker-0.1.2 → codex_agent_hour_tracker-0.2.1}/tests/test_report.py +1 -1
  62. codex_agent_hour_tracker-0.2.1/tests/test_v020_reports.py +263 -0
  63. codex_agent_hour_tracker-0.2.1/wrangler.jsonc +31 -0
  64. codex_agent_hour_tracker-0.1.2/PKG-INFO +0 -127
  65. codex_agent_hour_tracker-0.1.2/README.md +0 -101
  66. codex_agent_hour_tracker-0.1.2/SECURITY.md +0 -17
  67. codex_agent_hour_tracker-0.1.2/docs/methodology.md +0 -61
  68. codex_agent_hour_tracker-0.1.2/src/agent_hour_tracker/cli.py +0 -287
  69. codex_agent_hour_tracker-0.1.2/src/agent_hour_tracker/report.py +0 -95
  70. codex_agent_hour_tracker-0.1.2/tests/test_public_files.py +0 -801
  71. {codex_agent_hour_tracker-0.1.2 → codex_agent_hour_tracker-0.2.1}/LICENSE +0 -0
  72. {codex_agent_hour_tracker-0.1.2 → codex_agent_hour_tracker-0.2.1}/src/agent_hour_tracker/__main__.py +0 -0
  73. {codex_agent_hour_tracker-0.1.2 → codex_agent_hour_tracker-0.2.1}/tests/test_cli.py +0 -0
  74. {codex_agent_hour_tracker-0.1.2 → codex_agent_hour_tracker-0.2.1}/tests/test_metrics.py +0 -0
  75. {codex_agent_hour_tracker-0.1.2 → codex_agent_hour_tracker-0.2.1}/tests/test_scanner.py +0 -0
@@ -1,4 +1,5 @@
1
1
  /reports/
2
+ *.agent-hours-private.json
2
3
  /dist/
3
4
  /build/
4
5
  /docs/superpowers/
@@ -14,3 +15,6 @@ __pycache__/
14
15
  !.env.example
15
16
  .dev.vars
16
17
  .wrangler/
18
+ node_modules/
19
+ .dev.vars.*
20
+ !.dev.vars.example
@@ -0,0 +1,41 @@
1
+ # Changelog
2
+
3
+ ## 0.2.1
4
+
5
+ - Read `.jsonl.zst` rollouts in local scans and private exports on Python 3.11–3.14.
6
+ - Prefer the plain file when matching plain and compressed rollouts exist together.
7
+ - Report invalid and truncated compressed streams without exposing transcript content.
8
+ - Preserve existing timing, source classification, and global turn deduplication rules.
9
+ - Require Agent Hours 0.2.1 or newer to merge new private exports. Older private exports remain readable.
10
+
11
+ ## Unreleased website update
12
+
13
+ - Put the local score card directly below the run command, with Upload and Preview tabs.
14
+ - Hide detailed explanations under Stats for Nerds by default.
15
+ - Add a separate, opt-in community scoreboard for self-reported scores.
16
+ - Add GitHub sign-in, bot checks, and five accepted posts per account in a rolling 30-day window.
17
+ - Keep local imports private until the user confirms a community post.
18
+ - Leave the Python package and timing methodology unchanged at 0.2.0.
19
+
20
+ ## 0.2.0
21
+
22
+ - Rename the public metric to Agent-Hour Score. Keep its exact 30-completed-calendar-day definition.
23
+ - Combine multiple session directories and private exports with global turn deduplication.
24
+ - Add explicit exec inclusion and show measurement scope on reports and cards.
25
+ - Calculate optional Agent Leverage from reported period hours or an estimated weekly schedule.
26
+ - Add monthly summaries with partial-period denominators.
27
+ - Export versioned sanitized score JSON for local browser share-card generation.
28
+ - Redesign agenthours.dev with an interactive parallel-runtime explanation, leverage calculator, share studio, and dated benchmarks.
29
+ - Keep the existing timing methodology and human-root duration statistics.
30
+
31
+ ## 0.1.2
32
+
33
+ - Document compaction compatibility and add regressions for retained timing metadata without conversation decoding.
34
+
35
+ ## 0.1.1
36
+
37
+ - Add human-initiated top-level turn count, mean, and median active duration.
38
+
39
+ ## 0.1.0
40
+
41
+ - Publish the local scanner, calendar-day reports, sanitized scorecard, optional skill, and static website.
@@ -0,0 +1,164 @@
1
+ Metadata-Version: 2.5
2
+ Name: codex-agent-hour-tracker
3
+ Version: 0.2.1
4
+ Summary: Measure cumulative Codex agent runtime without decoding conversation content.
5
+ Project-URL: Homepage, https://agenthours.dev
6
+ Project-URL: Repository, https://github.com/tim-osterhus/codex-agent-hour-tracker
7
+ Project-URL: Issues, https://github.com/tim-osterhus/codex-agent-hour-tracker/issues
8
+ Author-email: Tim Osterhus <tim@millrace.ai>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: agents,analytics,codex,privacy
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Programming Language :: Python :: Implementation :: CPython
21
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
22
+ Requires-Python: >=3.11
23
+ Requires-Dist: backports-zstd<2,>=1.0; python_version < '3.14'
24
+ Requires-Dist: tzdata>=2025.2; platform_system == 'Windows'
25
+ Requires-Dist: tzlocal<6,>=5.3
26
+ Description-Content-Type: text/markdown
27
+
28
+ # Agent Hours
29
+
30
+ Agent Hours is a local CLI that measures cumulative Codex agent-hours from completed turns.
31
+
32
+ See your runtime across profiles and machines, calculate optional Agent Leverage, and make a share card at [agenthours.dev](https://agenthours.dev).
33
+
34
+ ```bash
35
+ uvx codex-agent-hour-tracker --share
36
+ ```
37
+
38
+ Requires [uv](https://docs.astral.sh/uv/getting-started/installation/) and a local Codex session archive. The package supports Python 3.11–3.14 on macOS, Linux, and Windows. Archive-derived runtime is an estimate: missing records and sparse timestamps affect coverage.
39
+
40
+ ## Your Agent-Hour Score
41
+
42
+ The score is mean cumulative runtime across the 30 most recent completed local calendar days ending yesterday. Zero-use days count. Overlapping turns count independently: three agents running for one hour contribute three agent-hours.
43
+
44
+ If today is March 1 in a non-leap year, the window is January 30 through February 28. Custom date ranges produce reports, not canonical scores.
45
+
46
+ The default `interactive-only` scope excludes exec/batch files. It includes delegated turns and non-batch turns with uncertain source metadata. Use `--include-exec` to count exec/batch work as well. Every score states its scope.
47
+
48
+ ## Install once
49
+
50
+ ```bash
51
+ uv tool install codex-agent-hour-tracker
52
+ agent-hours --share
53
+ ```
54
+
55
+ Or use pipx:
56
+
57
+ ```bash
58
+ pipx install codex-agent-hour-tracker
59
+ codex-agent-hour-tracker --share
60
+ ```
61
+
62
+ Both command names invoke the same tool. Upgrade an existing uv installation with `uv tool upgrade codex-agent-hour-tracker`.
63
+
64
+ ## Calculate Agent Leverage
65
+
66
+ Supply your human hours for the entire report period:
67
+
68
+ ```bash
69
+ agent-hours --share --human-hours 160
70
+ ```
71
+
72
+ Or estimate them from a weekly schedule:
73
+
74
+ ```bash
75
+ agent-hours --share --human-hours-per-week 40
76
+ ```
77
+
78
+ Agent Leverage divides agent runtime by human hours over the same period. A weekly estimate uses `weekly hours × calendar days / 7`. The output identifies the assumption. The tool does not measure your human work time or infer it from prompt timestamps.
79
+
80
+ ## Make a share card
81
+
82
+ ```bash
83
+ agent-hours --share --format json
84
+ ```
85
+
86
+ Upload or paste this sanitized aggregate JSON into the [share studio](https://agenthours.dev/#share). Preview and download a square or landscape PNG/SVG in your browser. Importing a score and making a card run locally. The website accepts only the public score schema.
87
+
88
+ `--share` is the safe default for sharing, but dates, counts, durations, timezone, and optional human-hours assumptions remain a deliberate aggregate disclosure. Review the card before posting it.
89
+
90
+ ## Join the community scoreboard
91
+
92
+ The separate [community page](https://agenthours.dev/community/) shows self-reported scores. GitHub sign-in identifies the person posting, but does not verify their runtime. Scores can be edited or inflated.
93
+
94
+ After importing your score, choose **Share to community**. Review the public fields, sign in with GitHub, and confirm the post. Importing a file never posts it. The community score omits Agent Leverage and human-hours assumptions.
95
+
96
+ Each GitHub account can make five successful posts in a rolling 30-day window. Updating a score counts as a post. Deleting it does not refund a slot. The page warns you after your fourth post and shows when a slot opens.
97
+
98
+ The local card tool works without an account or community access. Hosting and privacy details are in the [community guide](docs/community.md).
99
+
100
+ ## Profiles and machines
101
+
102
+ Repeat `--sessions-dir` to combine local profile directories:
103
+
104
+ ```bash
105
+ agent-hours --sessions-dir PROFILE_A/sessions --sessions-dir PROFILE_B/sessions --share
106
+ ```
107
+
108
+ For multiple machines, export private timing metadata on each machine:
109
+
110
+ ```bash
111
+ mkdir -p reports
112
+ agent-hours --export reports/laptop.agent-hours-private.json --label laptop
113
+ ```
114
+
115
+ Transfer those private exports using your own secure file-transfer method, then merge them:
116
+
117
+ ```bash
118
+ agent-hours --merge reports/laptop.agent-hours-private.json \
119
+ --merge reports/desktop.agent-hours-private.json --share --include-exec
120
+ ```
121
+
122
+ The merge deduplicates turn identifiers before calculating the combined total. Private exports retain all source classes so you can choose the scope when merging. They contain precise timestamps and hashed turn identifiers. **Do not upload them to the website or commit them.** The tracker does not read account credentials or separate accounts that share a session directory.
123
+
124
+ ## Daily and monthly reports
125
+
126
+ Explicit `--start` and `--end` values define an inclusive local-calendar range:
127
+
128
+ ```bash
129
+ mkdir -p reports
130
+ agent-hours --start 2025-01-01 --end 2025-01-30 --monthly \
131
+ > reports/january-summary.txt
132
+ agent-hours --start 2025-01-01 --end 2025-01-30 --format csv \
133
+ > reports/january-summary.csv
134
+ ```
135
+
136
+ Text reports include daily distribution, monthly summaries when requested, and human-initiated top-level turn count, mean, and median duration. CSV retains one row per calendar date. Partial-month averages use only the days in the requested range. Use `--timezone IANA_ZONE` when combining machines with different local timezones.
137
+
138
+ Full reports and CSVs reveal semi-sensitive activity patterns. Keep generated files in the ignored `reports/` directory and review any output before distribution.
139
+
140
+ ## What the numbers can tell you
141
+
142
+ Agent-hours measure runtime, not useful output, human-equivalent labor, or time saved. Benchmarks are dated contextual references, not a personal ranking. See [benchmarks](https://agenthours.dev/benchmarks/) and the [methodology](docs/methodology.md) for populations, denominators, and timing rules.
143
+
144
+ The scanner retains compact timing metadata without decoding conversation, reasoning, or tool payloads. No session data leaves the machine through the CLI. Compacted records remain supported while completed-turn metadata survives.
145
+
146
+ Scans and private exports read both `.jsonl` and `.jsonl.zst` rollouts. When both forms exist beside each other, the plain file takes precedence. Compressed input streams through the same metadata parser. Invalid or truncated compressed streams produce aggregate decompression diagnostics.
147
+
148
+ ## Development
149
+
150
+ ```bash
151
+ uv run python -m unittest discover -s tests -v
152
+ npm ci --ignore-scripts
153
+ npm test
154
+ npm run build:check
155
+ python3 scripts/sync_benchmarks.py --check
156
+ ```
157
+
158
+ The repository has a Python package in `src/agent_hour_tracker/`, synthetic tests in `tests/`, and browser assets in `site/`. The optional community API uses Pages Functions in `functions/`, application code in `community/`, and D1 migrations in `migrations/`. Node.js 24 runs the website development tools. Installing the Python CLI does not install or run the website backend.
159
+
160
+ The [export contracts](docs/exports.md) define private merge data and public score data separately. The package benchmark registry generates the website copy through `scripts/sync_benchmarks.py`.
161
+
162
+ The [optional Codex skill](https://github.com/tim-osterhus/codex-agent-hour-tracker/tree/main/skills/codex-agent-hour-tracker/) guides collection and sharing workflows. It is not required to install or run the tool.
163
+
164
+ Read the [changelog](CHANGELOG.md), [security policy](SECURITY.md), and [MIT license](LICENSE).
@@ -0,0 +1,137 @@
1
+ # Agent Hours
2
+
3
+ Agent Hours is a local CLI that measures cumulative Codex agent-hours from completed turns.
4
+
5
+ See your runtime across profiles and machines, calculate optional Agent Leverage, and make a share card at [agenthours.dev](https://agenthours.dev).
6
+
7
+ ```bash
8
+ uvx codex-agent-hour-tracker --share
9
+ ```
10
+
11
+ Requires [uv](https://docs.astral.sh/uv/getting-started/installation/) and a local Codex session archive. The package supports Python 3.11–3.14 on macOS, Linux, and Windows. Archive-derived runtime is an estimate: missing records and sparse timestamps affect coverage.
12
+
13
+ ## Your Agent-Hour Score
14
+
15
+ The score is mean cumulative runtime across the 30 most recent completed local calendar days ending yesterday. Zero-use days count. Overlapping turns count independently: three agents running for one hour contribute three agent-hours.
16
+
17
+ If today is March 1 in a non-leap year, the window is January 30 through February 28. Custom date ranges produce reports, not canonical scores.
18
+
19
+ The default `interactive-only` scope excludes exec/batch files. It includes delegated turns and non-batch turns with uncertain source metadata. Use `--include-exec` to count exec/batch work as well. Every score states its scope.
20
+
21
+ ## Install once
22
+
23
+ ```bash
24
+ uv tool install codex-agent-hour-tracker
25
+ agent-hours --share
26
+ ```
27
+
28
+ Or use pipx:
29
+
30
+ ```bash
31
+ pipx install codex-agent-hour-tracker
32
+ codex-agent-hour-tracker --share
33
+ ```
34
+
35
+ Both command names invoke the same tool. Upgrade an existing uv installation with `uv tool upgrade codex-agent-hour-tracker`.
36
+
37
+ ## Calculate Agent Leverage
38
+
39
+ Supply your human hours for the entire report period:
40
+
41
+ ```bash
42
+ agent-hours --share --human-hours 160
43
+ ```
44
+
45
+ Or estimate them from a weekly schedule:
46
+
47
+ ```bash
48
+ agent-hours --share --human-hours-per-week 40
49
+ ```
50
+
51
+ Agent Leverage divides agent runtime by human hours over the same period. A weekly estimate uses `weekly hours × calendar days / 7`. The output identifies the assumption. The tool does not measure your human work time or infer it from prompt timestamps.
52
+
53
+ ## Make a share card
54
+
55
+ ```bash
56
+ agent-hours --share --format json
57
+ ```
58
+
59
+ Upload or paste this sanitized aggregate JSON into the [share studio](https://agenthours.dev/#share). Preview and download a square or landscape PNG/SVG in your browser. Importing a score and making a card run locally. The website accepts only the public score schema.
60
+
61
+ `--share` is the safe default for sharing, but dates, counts, durations, timezone, and optional human-hours assumptions remain a deliberate aggregate disclosure. Review the card before posting it.
62
+
63
+ ## Join the community scoreboard
64
+
65
+ The separate [community page](https://agenthours.dev/community/) shows self-reported scores. GitHub sign-in identifies the person posting, but does not verify their runtime. Scores can be edited or inflated.
66
+
67
+ After importing your score, choose **Share to community**. Review the public fields, sign in with GitHub, and confirm the post. Importing a file never posts it. The community score omits Agent Leverage and human-hours assumptions.
68
+
69
+ Each GitHub account can make five successful posts in a rolling 30-day window. Updating a score counts as a post. Deleting it does not refund a slot. The page warns you after your fourth post and shows when a slot opens.
70
+
71
+ The local card tool works without an account or community access. Hosting and privacy details are in the [community guide](docs/community.md).
72
+
73
+ ## Profiles and machines
74
+
75
+ Repeat `--sessions-dir` to combine local profile directories:
76
+
77
+ ```bash
78
+ agent-hours --sessions-dir PROFILE_A/sessions --sessions-dir PROFILE_B/sessions --share
79
+ ```
80
+
81
+ For multiple machines, export private timing metadata on each machine:
82
+
83
+ ```bash
84
+ mkdir -p reports
85
+ agent-hours --export reports/laptop.agent-hours-private.json --label laptop
86
+ ```
87
+
88
+ Transfer those private exports using your own secure file-transfer method, then merge them:
89
+
90
+ ```bash
91
+ agent-hours --merge reports/laptop.agent-hours-private.json \
92
+ --merge reports/desktop.agent-hours-private.json --share --include-exec
93
+ ```
94
+
95
+ The merge deduplicates turn identifiers before calculating the combined total. Private exports retain all source classes so you can choose the scope when merging. They contain precise timestamps and hashed turn identifiers. **Do not upload them to the website or commit them.** The tracker does not read account credentials or separate accounts that share a session directory.
96
+
97
+ ## Daily and monthly reports
98
+
99
+ Explicit `--start` and `--end` values define an inclusive local-calendar range:
100
+
101
+ ```bash
102
+ mkdir -p reports
103
+ agent-hours --start 2025-01-01 --end 2025-01-30 --monthly \
104
+ > reports/january-summary.txt
105
+ agent-hours --start 2025-01-01 --end 2025-01-30 --format csv \
106
+ > reports/january-summary.csv
107
+ ```
108
+
109
+ Text reports include daily distribution, monthly summaries when requested, and human-initiated top-level turn count, mean, and median duration. CSV retains one row per calendar date. Partial-month averages use only the days in the requested range. Use `--timezone IANA_ZONE` when combining machines with different local timezones.
110
+
111
+ Full reports and CSVs reveal semi-sensitive activity patterns. Keep generated files in the ignored `reports/` directory and review any output before distribution.
112
+
113
+ ## What the numbers can tell you
114
+
115
+ Agent-hours measure runtime, not useful output, human-equivalent labor, or time saved. Benchmarks are dated contextual references, not a personal ranking. See [benchmarks](https://agenthours.dev/benchmarks/) and the [methodology](docs/methodology.md) for populations, denominators, and timing rules.
116
+
117
+ The scanner retains compact timing metadata without decoding conversation, reasoning, or tool payloads. No session data leaves the machine through the CLI. Compacted records remain supported while completed-turn metadata survives.
118
+
119
+ Scans and private exports read both `.jsonl` and `.jsonl.zst` rollouts. When both forms exist beside each other, the plain file takes precedence. Compressed input streams through the same metadata parser. Invalid or truncated compressed streams produce aggregate decompression diagnostics.
120
+
121
+ ## Development
122
+
123
+ ```bash
124
+ uv run python -m unittest discover -s tests -v
125
+ npm ci --ignore-scripts
126
+ npm test
127
+ npm run build:check
128
+ python3 scripts/sync_benchmarks.py --check
129
+ ```
130
+
131
+ The repository has a Python package in `src/agent_hour_tracker/`, synthetic tests in `tests/`, and browser assets in `site/`. The optional community API uses Pages Functions in `functions/`, application code in `community/`, and D1 migrations in `migrations/`. Node.js 24 runs the website development tools. Installing the Python CLI does not install or run the website backend.
132
+
133
+ The [export contracts](docs/exports.md) define private merge data and public score data separately. The package benchmark registry generates the website copy through `scripts/sync_benchmarks.py`.
134
+
135
+ The [optional Codex skill](https://github.com/tim-osterhus/codex-agent-hour-tracker/tree/main/skills/codex-agent-hour-tracker/) guides collection and sharing workflows. It is not required to install or run the tool.
136
+
137
+ Read the [changelog](CHANGELOG.md), [security policy](SECURITY.md), and [MIT license](LICENSE).
@@ -0,0 +1,39 @@
1
+ # Security
2
+
3
+ ## Supported versions
4
+
5
+ The latest version is the supported version. Update to the latest published version before investigating or reporting a security issue. Older versions may not contain current fixes.
6
+
7
+ ## Private reports
8
+
9
+ Report vulnerabilities privately through [GitHub Security Advisories](https://github.com/tim-osterhus/codex-agent-hour-tracker/security/advisories) and GitHub's private vulnerability reporting workflow. Do not use a public issue for undisclosed vulnerabilities.
10
+
11
+ Never attach Codex session files, transcripts, or full generated reports to a public issue. Those files can contain sensitive activity data even when the report looks operational.
12
+
13
+ The `--share` command emits a bounded aggregate designed for sharing. Sharing its dates, counts, or durations is still an intentional disclosure. Review the card before publishing it.
14
+
15
+ ## Data boundaries
16
+
17
+ The scanner reads local plain or Zstandard-compressed archive bytes and decodes only bounded timing and source metadata. It does not decode conversation, reasoning, or tool payloads. The CLI does not send session data over the network.
18
+
19
+ Private merge exports retain exact start timestamps, durations, source classes, and persistent hashed turn identifiers. Hashes permit correlation and do not anonymize activity. Keep these exports private. Full text and CSV reports also reveal activity patterns.
20
+
21
+ Public share exports use a separate allowlist of aggregate fields. The website validates that schema, rejects private archives, and renders images locally. Importing a score does not submit it. Downloaded cards still disclose their displayed aggregates and optional human-hours assumptions.
22
+
23
+ ## Optional community scoreboard
24
+
25
+ Publishing requires a separate confirmation on the community page. A post links your GitHub login to aggregate runtime, dates, timezone, scope, and software versions. It excludes daily rows, machine labels, turn identifiers, and human-hours assumptions. Public scores are visible to anyone and can be copied.
26
+
27
+ Choosing **Share to community** temporarily puts an allowlisted score in browser tab storage for the page handoff. It does not store the raw file or private archive. This is separate from posting to the server.
28
+
29
+ GitHub login requests no repository or email scopes. The service uses a Secure, HttpOnly, SameSite login cookie and checks the request origin and CSRF token for changes. GitHub access tokens are discarded after identity lookup. The site has no analytics scripts. Cloudflare Turnstile loads when you choose to post, and contacts Cloudflare for a bot check.
30
+
31
+ The database stores a stable GitHub account ID, login, session records, current public scores, and a short-lived posting ledger. Five accepted posts are allowed per account in a rolling 30-day window. A separate short-burst limit uses time-bucketed keyed IP fingerprints, not raw IP addresses. Fingerprints are private and are not a guarantee of anonymity.
32
+
33
+ Deleting a score removes its current public entry. It does not refund posting slots or erase copies others made. Expired private records are pruned during service use. Provider backups and operational logs can have separate retention. Hosting providers still receive normal connection metadata, including IP addresses. See the [community guide](docs/community.md) for retention and operator controls.
34
+
35
+ All imported data is untrusted. A share card is self-reported and provides no cryptographic proof of runtime, identity, or productivity.
36
+
37
+ ## Reproduction details
38
+
39
+ Describe the affected version, the command or input shape involved, and the observed impact. Provide a minimal reproduction that contains synthetic data. Do not include private session content.