Skip to content

Codebase cleanup: extract dashboard, fix dead code, update README#13

Merged
chanakyav merged 1 commit intomainfrom
codebase-cleanup
Mar 16, 2026
Merged

Codebase cleanup: extract dashboard, fix dead code, update README#13
chanakyav merged 1 commit intomainfrom
codebase-cleanup

Conversation

@chanakyav
Copy link
Copy Markdown
Owner

Summary

Codebase cleanup: extract dashboard module, fix dead code, and update README to document all new features.

Code Changes

Extract dashboard.py (new module, 143 lines)

  • Moved all status rendering logic out of cli.py: status_table(), status_json(), status_watch()
  • Shared _build_table() helper eliminates the duplicated table-building code that existed between _status_table and _status_watch
  • cli.py reduced from 757 to 580 lines (-23%)

Fix dead code in cmd_start

Remove unused imports

  • time was no longer used in cli.py after the dashboard extraction
  • Updated CLI module docstring to list all current subcommands

README Updates

  • New commands documented: restart, attach, next, status --watch, status --json
  • New section: Session Management — covers concurrent sessions, branch detection, STOPPED state, restart
  • New section: tmux Integration — keybinding recipes for popup overlay
  • Updated prerequisites: mentions rich dependency (auto-installed)
  • Commands organized into three groups: Task lifecycle, Monitoring, Session navigation

File Size Summary

File Before After
cli.py 757 580
dashboard.py (new) 143

Tests

  • 97 tests passing, ruff clean

- Extract dashboard rendering into dashboard.py (143 lines)
  - status_table(), status_json(), status_watch() with shared _build_table()
  - cli.py reduced from 757 to 580 lines
- Remove dead code: cmd_start had duplicated inline tmux launch logic
  that was left behind when _launch_in_tmux was introduced
- Remove unused import: time no longer needed in cli.py
- Update CLI module docstring to list all current subcommands
- Update README:
  - Document new commands: restart, attach, next, status --watch/--json
  - Add Session Management section (concurrency, branch detection, STOPPED)
  - Add tmux integration recipes
  - Update prerequisites to mention rich dependency
  - Organize commands into Task lifecycle / Monitoring / Navigation groups
@chanakyav chanakyav merged commit 50177c7 into main Mar 16, 2026
3 checks passed
@chanakyav chanakyav deleted the codebase-cleanup branch March 16, 2026 19:31
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