From 47f0bb7bde2ab14593bd8ebf191564002d842e8a Mon Sep 17 00:00:00 2001 From: catlog22 Date: Thu, 11 Sep 2025 16:48:25 +0800 Subject: [PATCH] config: Extend execution timeout and default --all-files for CLI workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add 5-minute timeout for Bash commands in both gemini and codex workflows - Mark --all-files as default behavior for gemini with fallback on content limits - Update all examples to show explicit --all-files usage in gemini-unified.md - Add execution settings section for both workflow guides 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .claude/workflows/codex-unified.md | 5 +++++ .claude/workflows/gemini-unified.md | 21 +++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.claude/workflows/codex-unified.md b/.claude/workflows/codex-unified.md index 66b37027..cf2ac336 100644 --- a/.claude/workflows/codex-unified.md +++ b/.claude/workflows/codex-unified.md @@ -86,6 +86,11 @@ type: technical-guideline - Enclose paths with spaces in quotes: `@{"My Project/src/**/*"}`. - Escape special characters like brackets: `@{src/**/*\[bracket\]*}`. +### ⏱️ Execution Settings + +- **Default Timeout**: Bash command execution extended to **5 minutes** to handle complex autonomous development workflows. +- **Autonomous Intelligence**: Codex automatically manages file discovery and context gathering in `--full-auto` mode. + ### 📁 Shared Template Directory Structure > **📋 Complete Template Reference**: See [Shared Template System](./shared-template-system.md) for comprehensive template directory structure, cross-tool compatibility, and detailed usage patterns. diff --git a/.claude/workflows/gemini-unified.md b/.claude/workflows/gemini-unified.md index e58a76b8..304f8f3a 100644 --- a/.claude/workflows/gemini-unified.md +++ b/.claude/workflows/gemini-unified.md @@ -24,21 +24,21 @@ type: technical-guideline gemini [flags] -p "@{patterns} {template} prompt" ``` - **Key Arguments**: - - `--all-files`: Includes all files in the current working directory. + - `--all-files`: Includes all files in the current working directory. **Default behavior unless content limit exceeded**. - `-p`: The prompt string, which must contain file reference patterns and the analysis query. - `{template}`: Template injection using `$(cat ~/.claude/workflows/cli-templates/prompts/[category]/[template].txt)` for standardized analysis - `@{pattern}`: A special syntax for referencing files and directories. - **Template Usage**: ```bash - # Without template (manual prompt) - gemini -p "@{src/**/*} @{CLAUDE.md} Analyze code patterns and conventions" + # Without template (manual prompt) - --all-files is default + gemini --all-files -p "@{src/**/*} @{CLAUDE.md} Analyze code patterns and conventions" - # With template (recommended) - gemini -p "@{src/**/*} @{CLAUDE.md} $(cat ~/.claude/workflows/cli-templates/prompts/analysis/pattern.txt)" + # With template (recommended) - --all-files is default + gemini --all-files -p "@{src/**/*} @{CLAUDE.md} $(cat ~/.claude/workflows/cli-templates/prompts/analysis/pattern.txt)" - # Multi-template composition - gemini -p "@{src/**/*} @{CLAUDE.md} $(cat <<'EOF' + # Multi-template composition - --all-files is default + gemini --all-files -p "@{src/**/*} @{CLAUDE.md} $(cat <<'EOF' $(cat ~/.claude/workflows/cli-templates/prompts/analysis/architecture.txt) Additional Security Focus: @@ -66,6 +66,11 @@ type: technical-guideline - Enclose paths with spaces in quotes: `@{"My Project/src/**/*"}`. - Escape special characters like brackets: `@{src/**/*\[bracket\]*}`. +### ⏱️ Execution Settings + +- **Default Timeout**: Bash command execution extended to **5 minutes** to handle large codebase analysis. +- **Content Limits**: When `--all-files` exceeds token limits, automatically fall back to selective `@` patterns. + ### TPL (Templates) @@ -123,7 +128,7 @@ These are recommended command templates for common scenarios. - **Multi-Template Composition** ```bash - gemini -p "@{src/**/*} @{CLAUDE.md} + gemini --all-files -p "@{src/**/*} @{CLAUDE.md} $(cat ~/.claude/workflows/cli-templates/prompts/analysis/pattern.txt) Additional Security Focus: