Skip to content

feat: add sessions command to list recent sessions#21

Merged
spences10 merged 6 commits intomainfrom
feat/sessions-command
Feb 2, 2026
Merged

feat: add sessions command to list recent sessions#21
spences10 merged 6 commits intomainfrom
feat/sessions-command

Conversation

@spences10
Copy link
Owner

Summary

  • Adds ccrecall sessions command to list recent sessions with metadata
  • Table output: Date | Project | Msgs | Tokens | Duration
  • Supports --format json for machine-readable output
  • Supports --project to filter by project path
  • Supports --limit (default 10)

Closes #9

Test plan

  • bun run src/index.ts sessions shows table
  • bun run src/index.ts sessions --format json outputs JSON
  • bun run src/index.ts sessions --project ccrecall filters correctly
  • bun run src/index.ts sessions --limit 5 limits output

Generated with Claude Code

@spences10 spences10 force-pushed the feat/sessions-command branch 3 times, most recently from 3351f97 to 098cb8a Compare February 2, 2026 19:54
spences10 and others added 6 commits February 2, 2026 21:53
Adds `ccrecall sessions` command with:
- Table output showing date, project, messages, tokens, duration
- JSON output format (--format json)
- Filtering by project path (--project)
- Configurable limit (--limit, default 10)

Closes #9

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tests for CLI args and Database.get_sessions() method.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@spences10 spences10 force-pushed the feat/sessions-command branch from 098cb8a to 211c833 Compare February 2, 2026 21:53
@spences10 spences10 merged commit 76c5209 into main Feb 2, 2026
1 check passed
@spences10 spences10 deleted the feat/sessions-command branch February 2, 2026 21:56
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.

CLI: Add sessions command to list recent sessions

1 participant