slit
89785378bf
feat(costs): Wire up gt costs record to Stop hook
...
Add Claude Code Stop hook that automatically records session costs when
sessions end. The hook calls `gt costs record` which now can derive the
session name from GT_* environment variables (GT_RIG, GT_POLECAT, GT_CREW,
GT_ROLE).
Changes:
- Add deriveSessionName() to infer tmux session name from environment
- Add Stop hook to settings-autonomous.json and settings-interactive.json
- Add unit tests for deriveSessionName function
When a Gas Town session ends, the Stop hook fires and records the session
cost as a bead event. Costs then appear in `gt costs --today` output.
Closes: gt-ntzhc
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-02 18:29:25 -08:00
..
2025-12-30 20:52:23 -08:00
2025-12-30 18:03:06 -08:00
2026-01-01 18:58:56 -08:00
2026-01-01 18:58:56 -08:00
2026-01-01 11:10:52 -08:00
2025-12-30 16:43:39 -08:00
2025-12-30 18:03:06 -08:00
2025-12-31 11:47:10 -08:00
2025-12-30 18:03:06 -08:00
2025-12-30 22:16:47 -08:00
2026-01-01 18:53:39 -08:00
2026-01-02 17:27:53 -08:00
2026-01-02 18:29:25 -08:00
2026-01-02 18:29:25 -08:00
2026-01-02 01:32:45 -08:00
2025-12-30 23:48:34 -08:00
2026-01-02 13:11:08 -08:00
2026-01-02 17:30:24 -08:00
2025-12-30 18:03:06 -08:00
2025-12-30 20:52:23 -08:00
2026-01-02 17:30:24 -08:00
2026-01-01 18:54:36 -08:00
2026-01-01 18:54:36 -08:00
2026-01-02 17:28:40 -08:00
2025-12-30 22:39:22 -08:00
2026-01-02 16:46:10 -08:00
2025-12-30 22:12:10 -08:00
2026-01-01 11:10:52 -08:00
2026-01-01 19:16:06 -08:00
2026-01-02 11:52:23 -08:00
2026-01-02 13:43:32 -08:00
2026-01-01 18:24:37 -08:00
2026-01-02 12:31:20 -08:00
2025-12-30 18:03:06 -08:00
2026-01-02 00:22:17 -08:00
2026-01-02 16:02:39 -08:00
2026-01-01 18:52:42 -08:00
2025-12-30 22:10:08 -08:00
2026-01-01 18:58:56 -08:00
2026-01-01 18:58:56 -08:00
2026-01-02 01:27:35 -08:00
2025-12-30 22:02:45 -08:00
2026-01-02 17:18:27 -08:00
2026-01-02 17:18:27 -08:00
2026-01-01 15:46:34 -08:00
2026-01-01 18:56:35 -08:00
2026-01-01 18:54:36 -08:00
2026-01-01 17:44:37 -08:00
2026-01-01 18:54:36 -08:00
2026-01-01 19:16:06 -08:00
2025-12-30 18:03:06 -08:00
2025-12-30 18:03:06 -08:00
2025-12-30 16:47:28 -08:00
2026-01-01 18:50:32 -08:00
2026-01-02 17:11:11 -08:00
2026-01-01 18:15:37 -08:00
2026-01-02 01:05:16 -08:00
2026-01-02 18:25:15 -08:00
2026-01-01 19:11:04 -08:00
2026-01-02 17:29:21 -08:00
2025-12-30 22:13:14 -08:00
2025-12-31 00:27:59 -08:00
2025-12-30 20:52:23 -08:00
2026-01-02 17:29:52 -08:00
2026-01-02 18:09:42 -08:00
2026-01-01 18:15:37 -08:00
2026-01-02 12:28:42 -08:00
2026-01-02 12:40:54 -08:00
2026-01-01 23:24:26 -08:00
2026-01-01 16:01:28 -08:00
2026-01-01 18:20:50 -08:00
2026-01-01 10:58:33 -08:00
2026-01-02 22:44:58 +01:00
2026-01-02 01:48:29 -08:00
2026-01-02 17:30:24 -08:00
2025-12-30 21:16:43 -08:00