Files
Claude-Code-Workflow/.claude/commands/workflow/session/list.md
catlog22 b945e2de55 docs: Enhance target_files documentation and fix cross-platform command compatibility
## Target Files Enhancement
- Add support for new file creation in target_files format
- Update task-generate.md with comprehensive target_files generation guide
- Update concept-enhanced.md to output code modification targets
- Add examples showing both modification (file:function:lines) and creation (file) formats

## Cross-Platform Command Fixes
- Replace ls with find commands for better Windows Git Bash compatibility
- Update workflow commands: execute.md, status.md, review.md
- Update session commands: list.md, complete.md
- Add Bash environment guidelines to context-search-strategy.md
- Document forbidden Windows commands (findstr, dir, where, etc.)

## Files Updated
- Core workflows: workflow-architecture.md, task-core.md
- Command docs: 9 workflow command files
- Agent docs: action-planning-agent.md, task-generate-agent.md
- Strategy docs: context-search-strategy.md

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 22:40:37 +08:00

2.6 KiB

name, description, usage, examples
name description usage examples
list List all workflow sessions with status /workflow:session:list
/workflow:session:list

List Workflow Sessions (/workflow:session:list)

Overview

Display all workflow sessions with their current status, progress, and metadata.

Usage

/workflow:session:list       # Show all sessions with status

Implementation Flow

Step 1: Find All Sessions

ls .workflow/WFS-* 2>/dev/null

Step 2: Check Active Session

ls .workflow/.active-* 2>/dev/null | head -1

Step 3: Read Session Metadata

jq -r '.session_id, .status, .project' .workflow/WFS-session/workflow-session.json

Step 4: Count Task Progress

find .workflow/WFS-session/.task/ -name "*.json" -type f 2>/dev/null | wc -l
find .workflow/WFS-session/.summaries/ -name "*.md" -type f 2>/dev/null | wc -l

Step 5: Get Creation Time

jq -r '.created_at // "unknown"' .workflow/WFS-session/workflow-session.json

Simple Bash Commands

Basic Operations

  • List sessions: find .workflow/ -maxdepth 1 -type d -name "WFS-*"
  • Find active: find .workflow/ -name ".active-*" -type f
  • Read session data: jq -r '.session_id, .status' session.json
  • Count tasks: find .task/ -name "*.json" -type f | wc -l
  • Count completed: find .summaries/ -name "*.md" -type f 2>/dev/null | wc -l
  • Get timestamp: jq -r '.created_at' session.json

Simple Output Format

Session List Display

Workflow Sessions:

✅ WFS-oauth-integration (ACTIVE)
   Project: OAuth2 authentication system
   Status: active
   Progress: 3/8 tasks completed
   Created: 2025-09-15T10:30:00Z

⏸️ WFS-user-profile (PAUSED)
   Project: User profile management
   Status: paused
   Progress: 1/5 tasks completed
   Created: 2025-09-14T14:15:00Z

📁 WFS-database-migration (COMPLETED)
   Project: Database schema migration
   Status: completed
   Progress: 4/4 tasks completed
   Created: 2025-09-13T09:00:00Z

Total: 3 sessions (1 active, 1 paused, 1 completed)

Status Indicators

  • : Active session
  • ⏸️: Paused session
  • 📁: Completed session
  • : Error/corrupted session

Quick Commands

# Count all sessions
ls .workflow/WFS-* | wc -l

# Show only active
ls .workflow/.active-* | basename | sed 's/^\.active-//'

# Show recent sessions
ls -t .workflow/WFS-*/workflow-session.json | head -3
  • /workflow:session:start - Create new session
  • /workflow:session:switch - Switch to different session
  • /workflow:session:status - Detailed session info