Skip to content

Conversation

@jmgilman
Copy link
Collaborator

@jmgilman jmgilman commented Jan 1, 2026

Summary

  • Rename list command to ps to align with CLI design spec
  • Add dual-mode listing: instances (default) or sessions (when branch specified)
  • Add human-readable time formatting for timestamps

Closes JMG-13

Test plan

  • Run hjk ps to list instances for current repo
  • Run hjk ps --all to list all instances across repos
  • Run hjk ps <branch> to list sessions for a specific instance
  • Verify time formatting displays correctly (e.g., "2h ago", "1d ago")

🤖 Generated with Claude Code

Rename the `list` command to `ps` to align with CLI design spec and add
dual-mode listing capability.

Changes:
- Rename command from `list` to `ps`
- Add optional branch argument for session listing mode
- Instance listing (no args): shows BRANCH, STATUS, SESSIONS, CREATED
- Session listing (with branch): shows SESSION, TYPE, STATUS, CREATED, ACCESSED
- Add human-readable time formatting for created/accessed timestamps
- Keep -a/--all flag for cross-repo instance listing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@linear
Copy link

linear bot commented Jan 1, 2026

@jmgilman jmgilman merged commit 64a3bc1 into master Jan 1, 2026
1 check passed
@jmgilman jmgilman deleted the joshuagilman/jmg-13-command-ps-rename-from-list branch January 1, 2026 04:01
jmgilman added a commit that referenced this pull request Jan 3, 2026
Current behavior:
The list command only supported instance listing with basic columns (ID, BRANCH, STATUS, REPO) and lacked session viewing capabilities.

New behavior:
The ps command provides dual-mode functionality: instance listing (no args) shows BRANCH, STATUS, SESSIONS, CREATED with human-readable timestamps, and session listing (with branch arg) shows SESSION, TYPE, STATUS, CREATED, ACCESSED. Includes human-readable time formatting for all timestamps.

Breaking Changes:
- Command renamed from 'list' to 'ps'
- Instance listing output format changed (removed ID and REPO columns, added SESSIONS and CREATED columns)

Closes: #16
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.

2 participants