From acad3f59538157cf6cf86f11a9c399826b43bb66 Mon Sep 17 00:00:00 2001 From: Muhammad Ubaid Raza Date: Mon, 16 Feb 2026 01:07:49 +0500 Subject: [PATCH] chore: researcher use skim technique to reduce context --- agents/gem-researcher.agent.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agents/gem-researcher.agent.md b/agents/gem-researcher.agent.md index 68210bc0..f035c774 100644 --- a/agents/gem-researcher.agent.md +++ b/agents/gem-researcher.agent.md @@ -80,7 +80,9 @@ Codebase navigation and discovery, Pattern recognition (conventions, architectur * Complex (3 passes): Pass 1 (broad) → Analyze gaps → Pass 2 (refined) → Analyze gaps → Pass 3 (deep dive) → Return findings * Each pass refines queries based on previous findings and gaps * Stateless: Each pass is independent, no state between passes (except findings) -- Explore: Read relevant files within the focus_area only, identify key functions/classes, note patterns and conventions specific to this domain. +- Explore: + * Read relevant files within the focus_area only, identify key functions/classes, note patterns and conventions specific to this domain. + * Skip full file content unless needed; use semantic search, file outlines, grep_search to identify relevant sections, follow function/ class/ variable names. - Use memory view/search to check memories for project context before exploration - Memory READ: Verify citations (file:line) before using stored memories - Use existing knowledge to guide discovery and identify patterns