From d594368f0532f97f48e40195b32aa6aae4d2a09c Mon Sep 17 00:00:00 2001 From: yuvalman Date: Thu, 21 Aug 2025 03:27:15 +0300 Subject: [PATCH] fix: add support to *.go files in deep-planning prompt (#5640) * fix: add support to *.go files in deep-planning feature * fix: add support to *.go files in deep-planning feature * adding go to the todos section --------- Co-authored-by: 0xtoshii <94262432+0xToshii@users.noreply.github.com> --- .changeset/gold-ravens-notice.md | 5 +++++ src/core/prompts/commands.ts | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/gold-ravens-notice.md diff --git a/.changeset/gold-ravens-notice.md b/.changeset/gold-ravens-notice.md new file mode 100644 index 00000000..f692e9f9 --- /dev/null +++ b/.changeset/gold-ravens-notice.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +add \*.go files to deep-planning prompt diff --git a/src/core/prompts/commands.ts b/src/core/prompts/commands.ts index 6f7fa885..7f7f5bc1 100644 --- a/src/core/prompts/commands.ts +++ b/src/core/prompts/commands.ts @@ -199,19 +199,19 @@ Execute these commands to build your understanding. You must tailor them to the # Discover project structure and file types -find . -type f -name "*.py" -o -name "*.js" -o -name "*.ts" -o -name "*.java" -o -name "*.cpp" | head -30 | cat +find . -type f -name "*.py" -o -name "*.js" -o -name "*.ts" -o -name "*.java" -o -name "*.cpp" -o -name "*.go" | head -30 | cat # Find all class and function definitions -grep -r "class\|function\|def\|interface\|struct" --include="*.py" --include="*.js" --include="*.ts" --include="*.java" --include="*.cpp" . | cat +grep -r "class\|function\|def\|interface\|struct\|func\|type.*struct\|type.*interface" --include="*.py" --include="*.js" --include="*.ts" --include="*.java" --include="*.cpp" --include="*.go" . | cat # Analyze import patterns and dependencies grep -r "import\|from\|require\|#include" --include="*.py" --include="*.js" --include="*.ts" --include="*.java" --include="*.cpp" . | sort | uniq | cat # Find dependency manifests -find . -name "requirements*.txt" -o -name "package.json" -o -name "Cargo.toml" -o -name "pom.xml" -o -name "Gemfile" | xargs cat +find . -name "requirements*.txt" -o -name "package.json" -o -name "Cargo.toml" -o -name "pom.xml" -o -name "Gemfile" -o -name "go.mod" | xargs cat # Identify technical debt and TODOs -grep -r "TODO\|FIXME\|XXX\|HACK\|NOTE" --include="*.py" --include="*.js" --include="*.ts" --include="*.java" --include="*.cpp" . | cat +grep -r "TODO\|FIXME\|XXX\|HACK\|NOTE" --include="*.py" --include="*.js" --include="*.ts" --include="*.java" --include="*.cpp" --include="*.go" . | cat ## STEP 2: Discussion and Questions