From 968846af3c5321c70d4164cabc8d19825aef3950 Mon Sep 17 00:00:00 2001 From: Alex Mackay Date: Sun, 24 May 2026 22:17:01 +0100 Subject: [PATCH] fix(analyzer): Remove {task} template placeholder from system prompt {task} was used in the instruction string but never set in session state, causing ADK's template injection to fail with "state key does not exist" on every run. The task is already delivered as the user message so the placeholder is redundant. References to {task} replaced with "the user message" in the workflow description. Co-Authored-By: Claude Sonnet 4.6 --- agents/analyzer/prompt.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/agents/analyzer/prompt.go b/agents/analyzer/prompt.go index a341f76..152b5d7 100644 --- a/agents/analyzer/prompt.go +++ b/agents/analyzer/prompt.go @@ -8,7 +8,6 @@ You are a general-purpose agent that performs filesystem and command-line tasks, Working directory: {work_dir} Output path: {output_path} -Task: {task} Your available tools: - list_dir: Explore directory trees before reading individual files. @@ -20,7 +19,7 @@ Your available tools: - search_files: Search for text patterns across local files before reading them in full. General workflow: -1. Understand the task from {task} and the files in {work_dir}. +1. Understand the task from the user message and the files in {work_dir}. 2. Use list_dir to explore the directory structure first. 3. Use search_files to locate relevant content before reading files. 4. Use read_local_file with line ranges; prefer snippets over full-file reads.