Files
Claude-Code-Workflow/.claude/CLAUDE.md
catlog22 3b842ed290 feat(cli-executor): add streaming option and enhance output handling
- Introduced a `stream` parameter to control output streaming vs. caching.
- Enhanced status determination logic to prioritize valid output over exit codes.
- Updated output structure to include full stdout and stderr when not streaming.

feat(cli-history-store): extend conversation turn schema and migration

- Added `cached`, `stdout_full`, and `stderr_full` fields to the conversation turn schema.
- Implemented database migration to add new columns if they do not exist.
- Updated upsert logic to handle new fields.

feat(codex-lens): implement global symbol index for fast lookups

- Created `GlobalSymbolIndex` class to manage project-wide symbol indexing.
- Added methods for adding, updating, and deleting symbols in the global index.
- Integrated global index updates into directory indexing processes.

feat(codex-lens): optimize search functionality with global index

- Enhanced `ChainSearchEngine` to utilize the global symbol index for faster searches.
- Added configuration option to enable/disable global symbol indexing.
- Updated tests to validate global index functionality and performance.
2025-12-25 22:22:31 +08:00

1.6 KiB

Claude Instructions

  • CLI Tools Usage: @~/.claude/workflows/cli-tools-usage.md
  • Coding Philosophy: @~/.claude/workflows/coding-philosophy.md
  • Context Requirements: @~/.claude/workflows/context-tools-ace.md
  • File Modification: @~/.claude/workflows/file-modification.md
  • CLI Endpoints Config: @.claude/cli-tools.json

CLI Endpoints

Strictly follow the @.claude/cli-tools.json configuration

Available CLI endpoints are dynamically defined by the config file:

  • Built-in tools and their enable/disable status
  • Custom API endpoints registered via the Dashboard
  • Managed through the CCW Dashboard Status page

Tool Execution

Agent Calls

  • Always use run_in_background: false for Task tool agent calls: Task({ subagent_type: "xxx", prompt: "...", run_in_background: false }) to ensure synchronous execution and immediate result visibility
  • TaskOutput usage: Only use TaskOutput({ task_id: "xxx", block: false }) + sleep loop to poll completion status. NEVER read intermediate output during agent/CLI execution - wait for final result only

CLI Tool Calls (ccw cli)

  • Always use run_in_background: true for Bash tool when calling ccw cli:
    Bash({ command: "ccw cli -p '...' --tool gemini", run_in_background: true })
    
  • After CLI call: Stop immediately - let CLI execute in background, do NOT poll with TaskOutput
  • View output later: Use ccw cli output <id> to view cached execution results

Code Diagnostics

  • Prefer mcp__ide__getDiagnostics for code error checking over shell-based TypeScript compilation