Skip to content

chore: add mise tasks for data exploration and database management - #55

Merged
zawakin merged 1 commit into
mainfrom
chore/add-data-exploration-tasks
Feb 8, 2026
Merged

chore: add mise tasks for data exploration and database management#55
zawakin merged 1 commit into
mainfrom
chore/add-data-exploration-tasks

Conversation

@zawakin

@zawakin zawakin commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add db:* tasks (init, update, rebuild, info, doctor) for database management
  • Add sessions / session tasks for session browsing with --all-worktrees
  • Add lab:stats and lab:export tasks, update lab:grep description
  • Add lab:raw:* tasks (ls, cat, latest, fields, diff) for raw Claude Code log exploration
  • Add watch and projects convenience tasks

New tasks

Task Description
db:init Initialize workspace
db:update Scan for new sessions
db:rebuild Clear and rebuild index
db:info Show DB location and stats
db:doctor Report parsing errors
sessions List sessions across worktrees
session Show session analysis
lab:stats Tool usage statistics
lab:export Export session data
lab:raw:ls List raw log files for current project
lab:raw:cat View raw JSONL by session ID prefix
lab:raw:latest Show latest session's raw records
lab:raw:fields Extract JSON field names by record type
lab:raw:diff Compare normalized vs raw data
watch Real-time TUI dashboard
projects List indexed projects

Notes

  • lab:raw:* tasks use shell scripts with jq — no Rust code changes needed
  • Path derivation matches Claude Code's encoding: replace(['/', '.'], "-") with leading -
  • lab:raw:cat and lab:raw:latest use head | jq instead of doctor inspect (workaround for pre-existing clap --format name collision bug)

Test plan

  • mise tasks — all 37 tasks listed
  • mise run lab:raw:ls — lists log files
  • mise run lab:raw:latest -- 3 — shows 3 raw records
  • mise run lab:raw:cat -- <prefix> 2 — resolves session by prefix
  • mise run lab:raw:fields — groups fields by record type
  • mise run lab:raw:diff -- 'Read' 1 — shows raw AgentEvent
  • mise run sessions -- --limit 3 — lists sessions
  • mise run db:info — shows DB stats

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zawakin zawakin self-assigned this Feb 8, 2026
@zawakin
zawakin merged commit b1ab738 into main Feb 8, 2026
8 checks passed
@zawakin
zawakin deleted the chore/add-data-exploration-tasks branch February 8, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant