Skip to content

Add [IDLE] status to worktree-list and idle mode to worktree-clean #178

Closed as not planned

Description

@gerchowl

Problem

just wt-list only shows [RUNNING] or [STOPPED]. When an agent finishes its task but the tmux session remains open (waiting for a new prompt), there's no way to distinguish an actively working agent from an idle one.

just wt-clean only supports cleaning stopped worktrees or all worktrees — no way to also clean idle ones while preserving actively running agents.

Solution

worktree-list

  • Check #{window_activity} tmux variable to detect when a session's last output was > N minutes ago (default: 5 min, configurable via WT_IDLE_MINUTES)
  • Show [IDLE] status for sessions with no recent activity

worktree-clean

  • Default (no args): clean stopped worktrees only (unchanged)
  • idle: clean stopped + idle worktrees
  • all: clean everything including running (unchanged)

Acceptance criteria

  • just wt-list shows [IDLE] for sessions idle > threshold
  • just wt-clean default still cleans only stopped
  • just wt-clean idle cleans stopped + idle, skips running
  • just wt-clean all cleans everything (unchanged)
  • BATS tests cover new behavior

Activity

  1. added
    feature
    area:workflow
    effort:small
    on Feb 24, 2026
  2. c-vigo commented on Jun 23, 2026

    @c-vigo
    Contributor

    Built on the worktree pipeline migrated in #625 (#626 paths, #627 CLI swap). Verify idle mode still works once the pipeline is driven by claude. Coordinate — not superseded.

  3. c-vigo commented on Jul 8, 2026

    @c-vigo
    Contributor

    Closing as part of an agreed backlog cleanup (with @gerchowl) — valid but dormant, no work in progress since the Nix migration. Reopen or refile fresh if picked up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workfloweffort:smallfeature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions