Files
Claude-Code-Workflow/.claude/commands/cli/chat.md
catlog22 292dc113e3 refactor(workflow): complete migration from .workflow/sessions/ to .workflow/active/ directory structure
Update all command files to use the new standardized directory structure:
- Active sessions: .workflow/active/WFS-{session}/
- Archived sessions: .workflow/archives/WFS-{session}/

Changes:
- Updated workflow-architecture.md with new directory structure (active/ not sessions/)
- Fixed 31 path references across 12 command files
- Verified compliance across all 73 command files using parallel agent checks
- Confirmed directory naming: active/ (adjective, no plural) + archives/ (noun plural)

Files modified:
- .claude/workflows/workflow-architecture.md (directory structure definition)
- .claude/commands/cli/*.md (8 files: analyze, chat, codex-execute, discuss-plan, execute, mode/*)
- .claude/commands/memory/docs.md (4 path fixes)
- .claude/commands/task/*.md (execute, replan)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 10:25:28 +08:00

2.2 KiB

name, description, argument-hint, allowed-tools
name description argument-hint allowed-tools
chat Read-only Q&A interaction with Gemini/Qwen/Codex for codebase questions with automatic context inference [--tool codex|gemini|qwen] [--enhance] inquiry SlashCommand(*), Bash(*), Task(*)

CLI Chat Command (/cli:chat)

Purpose

Direct Q&A interaction with CLI tools for codebase analysis. Read-only - does NOT modify code.

Tool Selection:

  • gemini (default) - Best for Q&A and explanations
  • qwen - Fallback when Gemini unavailable
  • codex - Alternative for technical deep-dives

Parameters

  • --tool <gemini|qwen|codex> - Tool selection (default: gemini)
  • --enhance - Enhance inquiry with /enhance-prompt
  • <inquiry> (Required) - Question or analysis request

Tool Usage

Gemini (Primary):

--tool gemini  # or omit (default)

Qwen (Fallback):

--tool qwen

Codex (Alternative):

--tool codex

Execution Flow

Uses cli-execution-agent (default) for automated Q&A:

Task(
  subagent_type="cli-execution-agent",
  description="Codebase Q&A with intelligent context discovery",
  prompt=`
    Task: ${inquiry}
    Mode: chat
    Tool: ${tool_flag || 'gemini'}
    Enhance: ${enhance_flag}

    Execute codebase Q&A with intelligent context discovery:

    1. Context Discovery:
       - Parse inquiry to identify relevant topics/keywords
       - Discover related files using MCP/ripgrep (prioritize precision)
       - Include @CLAUDE.md + discovered files
       - Validate context relevance to question

    2. CLI Command Construction:
       - Tool: ${tool_flag || 'gemini'} (qwen fallback, codex for deep dives)
       - Context: @CLAUDE.md + discovered file patterns
       - Mode: analysis (read-only)
       - Expected: Clear, accurate answer with code references

    3. Execution & Output:
       - Execute CLI tool with assembled context
       - Validate answer completeness
       - Save to .workflow/active/WFS-[id]/.chat/chat-[timestamp].md (or .scratchpad/)
  `
)

Core Rules

  • Read-only: Provides answers, does NOT modify code
  • Context: @CLAUDE.md + inferred or all files (@**/*)
  • Output: .workflow/active/WFS-[id]/.chat/chat-[timestamp].md (or .scratchpad/ if no session)