Skip to content

Conversation

@newhook
Copy link
Owner

@newhook newhook commented Jan 15, 2026

Summary

Adds a new feature to open a console (shell) tab in a work's worktree, making it easy to run tests, debug, or explore the codebase while the orchestrator runs in a separate tab.

  • New CLI command: co work console [<id>] opens a zellij tab with a shell in the work's worktree
  • New TUI keybinding: Press t in work mode to open a console for the selected work
  • Tab naming: Console tabs are named console-<work-id> for easy identification

Changes

  • cmd/work.go: Added co work console CLI command with auto-detection of work from current directory
  • cmd/tui_work.go: Added t keybinding and openConsole() method, updated help text and status bar
  • internal/claude/runner.go: Added OpenConsole() function for creating console tabs in zellij

Issues Resolved

  • ac-03mg: work mode: add a way to create a work console
  • ac-uk0v: Add co work console CLI command
  • ac-slsx: Add console keybinding to work mode TUI

Testing

  • co work console command successfully creates a console tab in the correct worktree
  • If a console tab already exists, it switches to the existing tab instead of creating a duplicate
  • TUI keybinding t works from the work list panel

Notes

  • Console tabs persist until manually closed in zellij
  • The feature reuses existing zellij session infrastructure (co-<project-name>)

🤖 Generated with Claude Code

- Add `co work console` CLI command to open a zellij tab with a shell
  in the work's worktree. Auto-detects work from current directory.
- Add `OpenConsole` function to internal/claude/runner.go for creating
  console tabs named "console-<work-id>".
- Add 't' keybinding in work mode TUI to open console for selected work.
- Update TUI help text and status bar to show the new keybinding.

This allows users to quickly open a console in the worktree for testing,
debugging, or exploring while the orchestrator runs in a separate tab.

Closes: ac-03mg, ac-uk0v, ac-slsx

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@newhook newhook merged commit 8dfefd7 into main Jan 15, 2026
@newhook newhook deleted the feat/work-mode-add-a-way-to-create-a-work-console branch January 15, 2026 14:12
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