Context
A user pointed out a structural conflict in AGENTS_STARTUP.md. While PRs #9893 and #9900 successfully added the ask_knowledge_base tool to AGENTS.md (§2.1 Tool Hierarchy) and AGENTS_STARTUP.md (§3.4 "Ask the Expert" Protocol), they left legacy instructions untouched in earlier sections of AGENTS_STARTUP.md.
The Problem
Currently, AGENTS_STARTUP.md contains conflicting instructions for agents during session initialization:
- §3.1 The Query Command explicitly states: "Your most important tool is the local AI knowledge base. To use it, call the
query_documents tool."
- §3.3 The Two-Stage Query Protocol (Stage 1) dictates: "Use the
query_documents tool to find relevant source code..."
- Yet, §3.4 The "Ask the Expert" Protocol states: "
ask_knowledge_base ... is the #1 tool in the Anti-Hallucination hierarchy"
This creates a split-brain scenario where agents reading the file sequentially are first told to use query_documents in-depth for conceptual understanding, which wastes context window and violates the newer Tool Hierarchy defined in AGENTS.md.
The Architectural Reality
AGENTS_STARTUP.md sections 3.1 and 3.3 are out of sync with AGENTS.md §2.1. The tool ask_knowledge_base acts as a zero-cost subagent that retrieves, reads, and synthesizes answers, making it strictly superior to query_documents for Stage 1 knowledge querying. query_documents should be restricted to file path discovery only.
The Fix
Refactor AGENTS_STARTUP.md to establish ask_knowledge_base as the undisputed primary tool for conceptual queries:
- Update §3.1 to introduce
ask_knowledge_base as the primary tool.
- Update §3.3 (Stage 1) to mandate
ask_knowledge_base for "how/why" queries, demoting query_documents to file discovery.
- Consolidate §3.4 into the broader Knowledge Base strategy to remove the redundancy.
Acceptance Criteria
Out of Scope
- Modifying
AGENTS.md (it is already correct).
- Altering the implementation of the MCP tools themselves.
Origin Session ID: 27016011-8ae9-48bb-af87-9479dd5b0fd0
Context A user pointed out a structural conflict in
AGENTS_STARTUP.md. While PRs #9893 and #9900 successfully added theask_knowledge_basetool toAGENTS.md(§2.1 Tool Hierarchy) andAGENTS_STARTUP.md(§3.4 "Ask the Expert" Protocol), they left legacy instructions untouched in earlier sections ofAGENTS_STARTUP.md.The Problem Currently,
AGENTS_STARTUP.mdcontains conflicting instructions for agents during session initialization:query_documentstool."query_documentstool to find relevant source code..."ask_knowledge_base... is the #1 tool in the Anti-Hallucination hierarchy"This creates a split-brain scenario where agents reading the file sequentially are first told to use
query_documentsin-depth for conceptual understanding, which wastes context window and violates the newer Tool Hierarchy defined inAGENTS.md.The Architectural Reality
AGENTS_STARTUP.mdsections 3.1 and 3.3 are out of sync withAGENTS.md§2.1. The toolask_knowledge_baseacts as a zero-cost subagent that retrieves, reads, and synthesizes answers, making it strictly superior toquery_documentsfor Stage 1 knowledge querying.query_documentsshould be restricted to file path discovery only.The Fix Refactor
AGENTS_STARTUP.mdto establishask_knowledge_baseas the undisputed primary tool for conceptual queries:ask_knowledge_baseas the primary tool.ask_knowledge_basefor "how/why" queries, demotingquery_documentsto file discovery.Acceptance Criteria
ask_knowledge_baseas the primary query tool.ask_knowledge_basefor Stage 1 conceptual queries.query_documentsis recommended overask_knowledge_baseis completely eliminated fromAGENTS_STARTUP.md.AGENTS.md§2.1.Out of Scope
AGENTS.md(it is already correct).Origin Session ID: 27016011-8ae9-48bb-af87-9479dd5b0fd0