From 4517699d5e360e3b61ea35983bc4781127d05f68 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Mon, 9 Mar 2026 11:09:13 +0900 Subject: [PATCH] fix(atlas): clarify capped directory diagnostics guidance --- src/agents/atlas/default.ts | 8 ++++---- src/agents/atlas/gemini.ts | 6 +++--- src/agents/atlas/gpt.ts | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/agents/atlas/default.ts b/src/agents/atlas/default.ts index 380606752..8bc360795 100644 --- a/src/agents/atlas/default.ts +++ b/src/agents/atlas/default.ts @@ -184,7 +184,7 @@ task( After EVERY delegation, complete ALL of these steps — no shortcuts: #### A. Automated Verification -1. 'lsp_diagnostics(filePath=".", extension=".ts")' → ZERO errors at project level (for directory paths, extension parameter is required) +1. 'lsp_diagnostics(filePath=".", extension=".ts")' → ZERO errors across scanned TypeScript files (directory scans are capped at 50 files; not a full-project guarantee) 2. \`bun run build\` or \`bun run typecheck\` → exit code 0 3. \`bun test\` → ALL tests pass @@ -346,7 +346,7 @@ You are the QA gate. Subagents lie. Verify EVERYTHING. **After each delegation — BOTH automated AND manual verification are MANDATORY:** -1. 'lsp_diagnostics(filePath=".", extension=".ts")' at PROJECT level → ZERO errors (for directory paths, extension parameter is required) +1. 'lsp_diagnostics(filePath=".", extension=".ts")' across scanned TypeScript files → ZERO errors (directory scans are capped at 50 files; not a full-project guarantee) 2. Run build command → exit 0 3. Run test suite → ALL pass 4. **\`Read\` EVERY changed file line by line** → logic matches requirements @@ -390,14 +390,14 @@ You are the QA gate. Subagents lie. Verify EVERYTHING. - Trust subagent claims without verification - Use run_in_background=true for task execution - Send prompts under 30 lines -- Skip project-level lsp_diagnostics after delegation (use 'filePath=".", extension=".ts"' for TypeScript projects) +- Skip scanned-file lsp_diagnostics after delegation (use 'filePath=".", extension=".ts"' for TypeScript projects; directory scans are capped at 50 files) - Batch multiple tasks in one delegation - Start fresh session for failures/follow-ups - use \`resume\` instead **ALWAYS**: - Include ALL 6 sections in delegation prompts - Read notepad before every delegation -- Run project-level QA after every delegation +- Run scanned-file QA after every delegation - Pass inherited wisdom to every subagent - Parallelize independent tasks - Verify with your own tools diff --git a/src/agents/atlas/gemini.ts b/src/agents/atlas/gemini.ts index 73048975e..48c5b1763 100644 --- a/src/agents/atlas/gemini.ts +++ b/src/agents/atlas/gemini.ts @@ -361,14 +361,14 @@ Subagents CLAIM "done" when: - Trust subagent claims without verification - Use run_in_background=true for task execution - Send prompts under 30 lines -- Skip project-level lsp_diagnostics (use 'filePath=".", extension=".ts"' for TypeScript projects) +- Skip scanned-file lsp_diagnostics (use 'filePath=".", extension=".ts"' for TypeScript projects; directory scans are capped at 50 files) - Batch multiple tasks in one delegation - Start fresh session for failures (use session_id) **ALWAYS**: - Include ALL 6 sections in delegation prompts - Read notepad before every delegation -- Run project-level QA after every delegation +- Run scanned-file QA after every delegation - Pass inherited wisdom to every subagent - Parallelize independent tasks - Store and reuse session_id for retries @@ -392,4 +392,4 @@ This ensures accurate progress tracking. Skip this and you lose visibility into export function getGeminiAtlasPrompt(): string { return ATLAS_GEMINI_SYSTEM_PROMPT -} \ No newline at end of file +} diff --git a/src/agents/atlas/gpt.ts b/src/agents/atlas/gpt.ts index 2a0fe8c80..2549075a5 100644 --- a/src/agents/atlas/gpt.ts +++ b/src/agents/atlas/gpt.ts @@ -55,7 +55,7 @@ Implementation tasks are the means. Final Wave approval is the goal. - Verification (use Bash for tests/build) - Parallelize independent tool calls when possible. - After ANY delegation, verify with your own tool calls: - 1. 'lsp_diagnostics(filePath=".", extension=".ts")' at project level (for directory paths, extension parameter is required) + 1. 'lsp_diagnostics(filePath=".", extension=".ts")' across scanned TypeScript files (directory scans are capped at 50 files; not a full-project guarantee) 2. \`Bash\` for build/test commands 3. \`Read\` for changed files @@ -364,14 +364,14 @@ Your job is to CATCH THEM. Assume every claim is false until YOU personally veri - Trust subagent claims without verification - Use run_in_background=true for task execution - Send prompts under 30 lines -- Skip project-level lsp_diagnostics (use 'filePath=".", extension=".ts"' for TypeScript projects) +- Skip scanned-file lsp_diagnostics (use 'filePath=".", extension=".ts"' for TypeScript projects; directory scans are capped at 50 files) - Batch multiple tasks in one delegation - Start fresh session for failures (use session_id) **ALWAYS**: - Include ALL 6 sections in delegation prompts - Read notepad before every delegation -- Run project-level QA after every delegation +- Run scanned-file QA after every delegation - Pass inherited wisdom to every subagent - Parallelize independent tasks - Store and reuse session_id for retries