From 2464f63eb7ef3c0c16cad5ee6fb76d8facf9a935 Mon Sep 17 00:00:00 2001 From: dj-oyu <68707227+dj-oyu@users.noreply.github.com> Date: Sun, 22 Feb 2026 04:19:55 +0900 Subject: [PATCH] fix: replace Go-hardcoded commands in interview template with generic placeholders The Target Format in GetInterviewContext() had Go-specific examples (go build, go test, golangci-lint) which biased the AI to use them even for non-Go projects (e.g. Python with uv run). Co-Authored-By: Claude Opus 4.6 --- pkg/agent/memory.go | 6 +++--- pkg/agent/memory_test.go | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/agent/memory.go b/pkg/agent/memory.go index 2a4b9777d..a76be6903 100644 --- a/pkg/agent/memory.go +++ b/pkg/agent/memory.go @@ -380,9 +380,9 @@ func (ms *MemoryStore) GetInterviewContext() string { sb.WriteString("## Phase 2: \n") sb.WriteString("- [ ] Step\n") sb.WriteString("## Commands\n") - sb.WriteString("build: go build ./...\n") - sb.WriteString("test: go test ./pkg/... -count=1\n") - sb.WriteString("lint: golangci-lint run\n") + sb.WriteString("build: <project-specific build command>\n") + sb.WriteString("test: <project-specific test command>\n") + sb.WriteString("lint: <project-specific lint command>\n") sb.WriteString("## Context\n") sb.WriteString("<collected requirements, decisions, environment>\n") sb.WriteString("```\n") diff --git a/pkg/agent/memory_test.go b/pkg/agent/memory_test.go index a400c9046..5d21994cb 100644 --- a/pkg/agent/memory_test.go +++ b/pkg/agent/memory_test.go @@ -336,11 +336,11 @@ func TestGetInterviewContext(t *testing.T) { if !strings.Contains(ctx, "## Commands") { t.Error("expected target format to include ## Commands section") } - if !strings.Contains(ctx, "go test") { - t.Error("expected target format Commands to include test command example") + if !strings.Contains(ctx, "project-specific test command") { + t.Error("expected target format Commands to include test command placeholder") } - if !strings.Contains(ctx, "golangci-lint") { - t.Error("expected target format Commands to include lint command example") + if !strings.Contains(ctx, "project-specific lint command") { + t.Error("expected target format Commands to include lint command placeholder") } }