agentleFS
shidoyushidoyu/scout/skills/search/SKILL.md

search

Skill3 starsChanged 8 months agoMITView on GitHub

Web search and content fetching. Find relevant sources and read web pages with precision.

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use index, browser and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • OpenAISkill

    index

    Route Data Analytics plugin-level requests and broad analytics work to the right focused workflow. Use when Data Analytics is at-mentioned, or for analytics requests involving data, metrics, dashboards, reports, charts, notebooks, spreadsheets, KPIs, market sizing, or semantic layers.

    Also in 3 projects that use this

  • vibesurf-aiSkill

    browser

    Use when user needs direct browser control like navigating to URLs, clicking elements, typing text, scrolling, switching tabs, taking screenshots, or inspecting page state.

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    i18n

    Internationalization and localization

    Also in 3 projects that use this

  • raven-souravSkill

    ingest

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

34 rules. 0 are common, 28 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 28

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If ambiguous: Ask one clarification question.

    line 37
  2. Distinctive:

    All classifications are tentative and may change after Step 2 Pre-Research.

    line 52
  3. Distinctive:

    Use the language closest to the target, with proper noun + attribute keywords

    line 59
  4. Distinctive:

    Default to WebSearch (Pre-Research prioritizes speed for concept understanding)

    line 60
  5. Very specific:

    If needed, fetch source articles following the scout:fetch workflow (max 2 pages.

    line 61
  6. Distinctive:

    Tool allocation: Follow the domain-aware ratio from Step 3b.

    line 130
  7. Distinctive:

    Early termination: Only skip remaining queries when a navigational search has reached the target page.

    line 140
  8. Very specific:

    Source article deep-dive: When search result snippets (125 characters) are insufficient for judgment, fetch URL content following the …

    line 144
  9. Distinctive:

    After Execute completes, evaluate search results against three criteria.

    line 148
  10. Distinctive:

    Primary-source check: If the collected sources lack primary sources for key claims, flag this in the Reliability assessment.

    line 170
  11. Distinctive:

    Before triggering Re-search, estimate whether additional searching will yield new information:

    line 174
  12. Distinctive:

    Uncertainty disclosure: When the answer relies on secondary/tertiary sources for key claims, note this:

    line 215
  13. Distinctive:

    After generating the answer, append the following structured summary.

    line 221
  14. Distinctive:

    Always output this block — no exceptions, even for Tier S / routed queries

    line 239
  15. Distinctive:

    Keep it concise: max 1 line per query, max 1 line per source

    line 241
  16. Very specific:

    Limitation: Search result citation text is truncated to 125 characters max.

    line 264
  17. Distinctive:

    No API key required (free)

    line 281
  18. Distinctive:

    Only covers indexed libraries/frameworks (not all projects are indexed)

    line 284
  19. Distinctive:

    Not suitable for non-library technical topics (infrastructure, OS, networking)

    line 286
  20. Very specific:

    Usage: Use exa-free tools by default (free).

    line 325
  21. Distinctive:

    Default: When uncertain, treat as Conceptual (balanced approach).

    line 344
  22. Very specific:

    Default: When proper nouns are present, always use hybrid (proper noun + concept keywords).

    line 358
  23. Distinctive:

    Fallback: If no category matches, or if the activity language of a person/organization is unknown, default to English.

    line 376
  24. Distinctive:

    When showing planning output during the first demo, prepend this label:

    line 392
  25. Distinctive:

    If Pre-Research results change the initial intent/domain classification or query composition, redesign from Step 3 based on the updated …

    line 433
  26. Distinctive:

    When searching in another language, transliterate proper nouns to the common form in the target language

    line 437
  27. Distinctive:

    When unknown, use the most common international spelling

    line 439
  28. Distinctive:

    Do not generalize proper nouns without justification (hybrid is the default)

    line 443
  29. Distinctive:

    Do not semantically translate proper nouns in cross-language searches (see Transliteration Rules)

    line 444
  30. Distinctive:

    Do not drop country/region names in searches involving jurisdictions, regulations, or government

    line 445
  31. Distinctive:

    Use phrase matching (double quotes) only for official names and precise technical terms

    line 447
  32. Very specific:

    Never send confidential URLs to crawling_exa — use scout:fetch for URL content retrieval instead

    line 450
  33. Distinctive:

    If all available tools fail during both Execute and Re-search, report the failure to the user with the specific errors encountered.

    line 451
  34. Distinctive:

    Primary sources are the goal, not the starting point: Do not force primary-source-only collection in Pre-Research.

    line 452

“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

scout:search v2.2 — Adaptive Search with Primary-Source Focus

Purpose

Maximize the rate of reaching primary sources via web search. Refine query precision through iterative abstraction, adapt search depth and tool selection to domain characteristics, and prioritize authoritative sources in evaluation and synthesis.

Usage

/scout:search what you want to find (natural language)

Design Principles

  1. Query refinement is the core. Pre-Research → Abstraction → vocabulary acquisition → refined queries. This pipeline is the primary mechanism for reaching accurate information. Do not shortcut it.
  2. Primary sources are the goal, not the starting point. Early phases (Pre-Research) may use secondary sources for concept understanding. Later phases (Main Search, Re-search) use refined queries to reach primary sources.
  3. Adapt to the domain. Tool selection and search depth vary by domain characteristics. Not all queries need the same treatment.
  4. Quality over quantity. Fewer high-quality sources beat many low-quality ones. Collect what's needed, not everything available.

Execution Flow

Step 0.5: Clarify (Conditional)

Execute only when the query is ambiguous and the search outcome would significantly differ based on interpretation.

Ambiguity indicators:

  • Comparison axis is unclear (e.g., "best database" — for what use case?)
  • Target version/era is unspecified for version-dependent topics
  • Jurisdiction/region is omitted for location-dependent topics
  • Scope is too broad to design effective queries (e.g., "Rust async best practices" — web backend? embedded? library design?)

If ambiguous: Ask one clarification question. Offer to proceed with an assumed interpretation if the user prefers not to answer.

If clear: Skip entirely. Do not ask unnecessary questions.

Step 1: Analyze

From the user's input, determine:

  1. Search intent → See Intent Classification Table
  2. Presence of proper nouns
  3. Information category → See Language Selection Table
  4. User's language
  5. Domain characteristics → See Domain Classification Table
  6. Risk level — Is this a high-risk topic? (security, compliance, destructive operations, incident response)

All classifications are tentative and may change after Step 2 Pre-Research.

Step 2: Pre-Research

Always execute unless the query is clearly routable (Step 2.5) — i.e., it names a specific library/framework and asks about API usage, config, or setup. In that case, attempt Source-Type Routing first; if it fully answers, Pre-Research is retrospectively unnecessary. If routing only partially answers or misses, execute Pre-Research before Step 3.

  1. Search the target (budget: 1 query, separate from main search budget)
    • Use the language closest to the target, with proper noun + attribute keywords
    • Default to WebSearch (Pre-Research prioritizes speed for concept understanding)
    • If needed, fetch source articles following the scout:fetch workflow (max 2 pages; the goal is concept understanding, not exhaustive research)
    • Secondary sources are acceptable here — the goal is concept understanding and vocabulary acquisition, not authoritative answers
  2. Abstract the essence — Describe the target's mechanism in one sentence
    • Example: "Stripe pricing" → "Online payment platform. Transaction fee-based (2.9% + 30¢/txn) + additional service-specific charges"
  3. Decompose into query vocabulary — List keyword candidates derived from the abstraction
    • Example: Stripe, pricing, fees, transaction, payment processing, plans
  4. Re-evaluate domain classification — Pre-Research may reveal that the domain is different from initial assessment (e.g., what looked like a simple technical query turns out to require academic research)

If Pre-Research does not reach full understanding: Proceed to Step 3 based on current understanding. Design main search queries using only what was reliably understood. Note uncertain parts in the abstraction for later verification.

For navigational intent: Pre-Research only needs to confirm the target exists. Abstraction and vocabulary decomposition can be skipped.

Step 2.5: Route (Source-Type Routing)

Check if the query can be answered by direct lookup without general web search.

Query typeDirect sourceAction
Library/framework docs, API usage, library/framework configContext7 MCPresolve-library-id → query-docs. If Context7 unavailable or library not indexed → continue to Step 3
Package version / dependency infonpm, PyPI, crates.io, Maven CentralFetch API/registry directly
RFC / Internet standardIETFFetch directly
CVE / vulnerabilityNVD, GitHub AdvisoryFetch directly
GitHub issue / PR / releaseGitHub APIFetch directly
Standard library docsOfficial docs (MDN, docs.python.org, etc.)Fetch directly
Law / regulation texte-Gov, official gazetteFetch directly
Kubernetes API / resource speckubernetes.ioFetch directly

If routable: Fetch the direct source. Route fetches are executed synchronously before proceeding to Step 3. If the direct source fully answers the query → skip Steps 3–5, go to Step 6: Synthesize (output abbreviated Assess ✓✓✓ for record). If partially answers → continue to Step 3 with the direct source as baseline.

If not routable: Continue to Step 3.

Step 3: Plan (Query Design + Budget + Tool Selection)

Based on Pre-Research results, design the search plan.

3a: Budget Allocation

Assign a budget tier based on intent and domain complexity:

TierQueriesWhenRe-search cycles
S1–2Navigational, source routing partial hit, simple factoid0
M3–5Standard factual, comparison, how-tomax 1
L6–8Multi-hop, conflicting claims, specialized research, multi-languagemax 2

Budget is a ceiling, not a target. Use fewer queries if sufficient information is found early.

3b: Domain-Aware Tool Selection

Select tool emphasis based on domain classification. This is a directional guideline, not a rigid allocation. For Tier S (1-2 queries), use the single best tool — the tool-diversity requirement is waived.

DomainPrimary toolSecondary toolRationale
Technical (library/framework docs)WebSearch + Exa—Context7 was already called in Step 2.5. If it fully answered → skip to Step 6. If partial: use WebSearch/Exa for remaining gaps. Do not re-call Context7 here.
Technical (non-library: infra, OS, etc.)WebSearchExa supplementsWebSearch reaches official docs directly. Exa adds community context
Empirical (academic/research)ExaWebSearch supplementsExa HyDE excels at finding papers by meaning. WebSearch for DOI/publisher lookup
Conceptual (theory/philosophy)Balanced—Both contribute; balance breadth and depth
Regulatory (law/policy/compliance)WebSearchExa supplementsWebSearch for official sources + freshness. Exa for analytical context

Context7 is a pre-search step (Source-Type Routing), not a query budget item. If Context7 fully answers the query, no further search budget is consumed.

Note: Pre-Research is exempt from this guideline — use whatever tool is fastest for concept understanding.

3c: Query Design

Design queries based on the abstracted concept and query vocabulary from Pre-Research.

  • Budget: Per tier allocation (Tier S: 1–2, Tier M: 3–5, Tier L: 6–8). Pre-Research query is separate.
  • Differentiation: Each query must differ in at least one of: language, intent axis (attribute/concept), or tool (WebSearch / Exa). Do not generate multiple queries with the same language + intent + tool combination.
  • Tool allocation: Follow the domain-aware ratio from Step 3b.
  • HyDE mode: When Exa is selected and the query's purpose is conceptual search (intent is general or practice), generate a hypothetical answer (2-3 sentences) as the Exa query. Skip HyDE for navigational / target / comparison — use keyword queries instead. Mark HyDE queries with [HyDE] tag in the planning format (e.g., Query 2: en [HyDE] "Teams using Terraform typically store state in remote backends..." → Exa).
  • Freshness constraint: For time-sensitive topics (pricing, regulations, benchmarks, API specs, version-dependent info), append the current year to queries and/or use date-range filters. Explicitly note freshness requirements in the plan.
  • Counter-Query (conditional): When intent is comparison, add one counter-query per comparison target (e.g., "X drawbacks", "Y problems"). When risk level is high, add one counter-query (e.g., "X production issues", "why not X"). Counter-queries count toward the budget. This prevents confirmation bias in evaluative searches.
  • Primary source targeting: For Tier M/L, design at least one query specifically aimed at primary sources (e.g., site:docs.*, site:github.com, official domain targeting). This leverages the refined vocabulary from Pre-Research to reach authoritative sources.

Step 4: Execute (Search Execution)

Refer to the Tool Selection Table and execute each query with the assigned tool.

Early termination: Only skip remaining queries when a navigational search has reached the target page. All other quality judgments happen in Step 5: Assess.

Parallel execution: Execute queries with the same language AND same tool sequentially (to allow refinement based on previous results). All other combinations (different language OR different tool) should be executed in parallel via the Agent tool.

Source article deep-dive: When search result snippets (125 characters) are insufficient for judgment, fetch URL content following the scout:fetch workflow.

Step 5: Assess (Search Result Evaluation)

After Execute completes, evaluate search results against three criteria. If all are met, proceed to synthesis (no additional search).

CriterionHow to judge
SufficiencyCan the user's question be directly answered?
ReliabilitySee Reliability sub-criteria below
SpecificityDid we obtain concrete information such as numbers, procedures, or specifications? (If snippets are insufficient, deep-dive with scout:fetch)

Reliability Sub-Criteria

Reliability is evaluated along five dimensions (internal checklist, not separate pass/fail criteria):

DimensionWhat to check
ProvenanceSource tier: primary (official docs, peer-reviewed papers, government sites) > secondary (expert blogs, reputable journalism) > tertiary (aggregator sites, forums, Wikipedia). Are primary sources present?
CorroborationDo multiple independent sources agree?
RecencyIs the information fresh enough for the topic? (Critical for time-sensitive domains)
ConsistencyAre there contradictions across sources?
Perspective diversityIs the information from a single vendor/author, or are multiple viewpoints represented? (Especially important for comparison queries)

Tier scaling: For Tier S, Reliability reduces to "did we reach the target page / official source?" For Tier M/L, evaluate all five dimensions.

Primary-source check: If the collected sources lack primary sources for key claims, flag this in the Reliability assessment. This becomes a trigger for Re-search.

Novelty Check (Re-search decision aid)

Before triggering Re-search, estimate whether additional searching will yield new information:

  • Are there unexplored source types (e.g., searched blogs but not issue trackers)?
  • Did the last search cycle produce genuinely new claims, or just restatements?
  • Would new queries use significantly different vocabulary?
Re-search decision:
  IF criteria unmet AND novelty estimate is positive → Re-search
  IF criteria unmet AND novelty estimate is low → Finalize with uncertainty disclosure

Failure Mode Handling

Failure modeAction
Zero resultsReformulate query (generalize terms, try alternate spelling/transliteration). If still zero, report failure honestly
All low-qualitySwitch tool (e.g., Exa → WebSearch) and target primary source domains specifically
Contradictory resultsPresent the contradiction explicitly with source attribution. Note which sources are primary vs. secondary
Primary-source gapRe-search with primary-source-targeted queries (site: operators, official domain targeting) using refined vocabulary from current results
Information saturationNovelty is low but criteria still unmet → Finalize with uncertainty disclosure. "Additional searching did not yield new authoritative sources"

If any criterion is unmet and novelty is positive → Re-search (max 2 queries per cycle, cycles per tier as defined in Budget Allocation table — Tier S: 0, Tier M: max 1, Tier L: max 2):

  1. Identify which criteria are unmet and what's missing
  2. Design additional queries using new vocabulary/concepts from existing results (apply the differentiation rule from Hard Constraints)
  3. If primary-source gap was flagged: Prioritize primary-source-targeted queries in this cycle
  4. Execute additional queries
  5. Re-assess after each cycle

Re-search cycles per tier are defined in the Budget Allocation table (Step 3a). Absolute ceiling: Tier L main (8) + Re-search (2 cycles × 2 queries = 4) + Pre-Research (1) = 13 queries.

Step 6: Synthesize (Answer Generation)

Generate the answer based on collected sources. Write the answer in the user's language using dynamic equivalence — natural, idiomatic phrasing rather than word-for-word translation. Technical terms and proper nouns stay in their original language.

Source weighting in synthesis:

  • Primary sources form the backbone of the answer
  • Secondary sources provide supplementary context and explanation
  • Tertiary sources are cited only when no better source exists, with appropriate caveats

Uncertainty disclosure: When the answer relies on secondary/tertiary sources for key claims, note this:

  • "This is based on [source type] — official documentation should be consulted for authoritative confirmation"
  • "Sources disagree on [point] — [Source A] states X while [Source B] states Y"

Research Trail (Mandatory — append after every synthesis)

After generating the answer, append the following structured summary. This makes the search process transparent and shareable.

---
### 🔍 Research Trail

| | |
|---|---|
| **Query** | {user's original question} |
| **Designed queries** | {list of queries actually executed, with tool and language} |
| **Sources** | {URLs/sources consulted, with tier: 🟢 primary / 🟡 secondary / ⚪ tertiary} |
| **Re-searches** | {if any: reason + queries. If none: "—"} |
| **Confidence** | {High / Medium / Low} — {one-line rationale} |

---

Rules:

  • Always output this block — no exceptions, even for Tier S / routed queries
  • For routed queries (Step 2.5 full hit), Designed queries = the route lookup, Sources = the direct source
  • Keep it concise: max 1 line per query, max 1 line per source

Search Tools

Query design (Steps 1-3) and search tools are independent. Tool failures do not change query design. If a tool is unavailable, fall back to another.

Tool Selection Table

PurposeRecommendedFallbackReason
Library/framework official docsContext7 (via Step 2.5 Route)WebSearchDirect access to indexed official docs; avoids secondary-source bias
Concept/meaning search (hit even without keyword match)ExaWebSearchSemantic search; returns page content inline
Code examples, API usageContext7 (via Step 2.5) / Exa (get_code_context_exa)WebSearchContext7 for official examples; Exa for community examples
Find a specific page/URLWebSearch—Strong at URL/title identification
Broad, comprehensive collectionWebSearch (multiple queries)—Returns many sources
Speed-priority / quick checkWebSearch—Instant results
Find an official site/homepageWebSearch—Best for navigational search
A vs B comparisonWebSearch (multiple queries)—Needs cross-referencing multiple sources

WebSearch

Claude Code's built-in tool. Keyword-match search.

Limitation: Search result citation text is truncated to 125 characters max. Judge content by title and snippet only. For details, fetch source articles following the scout:fetch workflow.

Context7 MCP

Official documentation search for libraries and frameworks. Retrieves current, indexed docs directly — no web search noise.

Two-step flow (always in this order):

  1. resolve-library-id — Resolve library name to Context7 ID (e.g., "Next.js" → /vercel/next.js)
  2. query-docs — Query documentation with the resolved library ID

Parameters:

  • resolve-library-id: libraryName (official name with proper punctuation) + query (specific question — used to rank results by relevance)
  • query-docs: libraryId (from step 1) + query (specific question)

Strengths:

  • Direct access to official, up-to-date documentation — no secondary-source bias
  • Returns code snippets and structured content
  • No API key required (free)

Limitations:

  • Only covers indexed libraries/frameworks (not all projects are indexed)
  • Max 3 calls per tool per question (Context7 API constraint). Typical flow: resolve(1) + query(1) = 2 calls total
  • Not suitable for non-library technical topics (infrastructure, OS, networking)

Fallback conditions (any triggers fallback to Step 3 — tool selection follows Domain-Aware Tool Selection in Step 3b):

  • Context7 MCP not connected
  • resolve-library-id returns no results or only ambiguous matches
  • query-docs returns insufficient content (low snippet count or irrelevant results)
  • Context7 times out

Usage in scout: Context7 is used in Source-Type Routing (Step 2.5), not as a main search query. It does not consume search budget.

Exa MCP

Semantic search engine. Finds pages by meaning similarity rather than keyword matching. Used via MCP.

Dual configuration: To save credits, scout uses two servers — exa-free (free) and exa (paid, advanced tools).

exa-free tools (free, rate-limited):

  • web_search_exa — General web search. Results include page content (no WebFetch needed)
    • numResults: Number of results (default 8)
    • category: Filter by company / research paper / people
    • contextMaxCharacters: Max content characters (default 10,000)
    • type: auto (default) / fast (high-speed mode)
  • get_code_context_exa — Code & documentation search (GitHub, Stack Overflow, official docs)
    • tokensNum: Tokens to return (1,000-50,000, default 5,000)

exa tools (API key required, costs credits):

  • web_search_advanced_exa — Advanced filtering and structured output
  • crawling_exa — URL-targeted crawl (URL is sent to Exa. Never use for confidential URLs. Use scout:fetch for URL content retrieval instead)
  • company_research_exa — Company research
  • people_search_exa — People search
  • deep_researcher_start / deep_researcher_check — Multi-step autonomous research

Strengths:

  • Semantic search: Hits relevant pages even for conceptual queries
  • Content included: Retrieves article content without needing WebFetch
  • Code-specialized tool: High accuracy for programming-related searches

Exa's known bias: HyDE tends to surface secondary sources (blog posts, explanatory articles) over primary sources (official docs, specs). This is a feature for concept understanding but a liability when authoritative answers are needed. Mitigate by using WebSearch for primary-source-targeted queries.

Usage: Use exa-free tools by default (free). Use exa tools only when: (a) exa-free returned insufficient results, (b) company or people-specific research is needed, or (c) the user explicitly requests deep multi-step research. When exa-free rate limit is reached, fall back to WebSearch.

URL Content Retrieval (Auxiliary)

For deep-diving into source articles from search results. Retrieves URL content. Not a search tool — used to follow up on search results. Tool selection follows the scout:fetch workflow (privacy classification → tool selection → fallback). If the scout:fetch skill is not available, use WebFetch directly for public URLs (prepend https://r.jina.ai/ for cleaner output).

Domain Classification Table

Classify the query's domain to guide tool selection and search strategy.

DomainCharacteristicsPrimary source typesTool emphasis
Technical (library/framework)Library/framework with indexed docs, API/config queriesOfficial docs via Context7, GitHub reposContext7 (Step 2.5) → WebSearch + Exa (Step 3b if needed)
Technical (non-library)Infra, OS, networking, version-dependent specsOfficial docs, release notes, changelogs, CVE/NVDWebSearch-primary
EmpiricalAcademic research, statistical data, effect sizes, experimental resultsPeer-reviewed papers, systematic reviews, meta-analysesExa-primary
ConceptualTheoretical frameworks, philosophical debates, design patternsFoundational texts, survey papers, expert analysesBalanced
RegulatoryLaws, regulations, compliance, policy, government actionsOfficial gazettes, regulatory bodies, legislative textWebSearch-leaning

Default: When uncertain, treat as Conceptual (balanced approach).

Re-classification: Domain classification may change after Pre-Research. If it does, adjust tool allocation accordingly before proceeding to Main Search.

Intent Classification Table

Search intentLabelQuery compositionExample
Information about the target itself (profile, official page, spec)targetProper noun + attribute keywordsStripe pricing plans, Kubernetes pod spec
Methods, practices, explanations related to the targetpracticeProper noun + concept keywordsReact server components data fetching, Terraform state management
General knowledge, best practicesgeneralConcept keywords onlyAI agent memory system best practices
Find an official site/homepagenavigationalProper noun (alone or + official)Exa AI official, Tavily API
A vs B comparisoncomparisonProper noun A + Proper noun B + comparison axisExa vs Tavily search API comparison

Default: When proper nouns are present, always use hybrid (proper noun + concept keywords). Use concept-only when the intent is clearly "general knowledge" AND the proper noun does not help narrow results. When in doubt, go with practice (hybrid).

Comparison note: Include proper nouns for both comparison targets. Using only one leads to biased results.

Language Selection Table

3-tier priority search: Primary source language → English → User's language. Normally max 2 languages. Use 3 only when all three are different.

Information categoryPrimary languageExample
Laws, regulations, tax policyOfficial language of the jurisdictionUS tax law → English, Japan tax → Japanese
Academic, technical specificationsEnglishPapers, RFCs, API documentation
Products, servicesProvider's primary languageStripe → English, SAP → English
People, organizationsLanguage of activityUS researcher → English
Local business, lifestyle infoLocal languageNYC restaurants → English

Speed-priority: Acceptable to use user's language only with 1 query (though quality may suffer if primary sources are in another language).

Fallback: If no category matches, or if the activity language of a person/organization is unknown, default to English.

Planning Output (Internal Process)

Scout internally follows the planning process below for every search. This is always executed internally to ensure search quality, but is only shown to the user in specific situations.

When to show

ConditionShow planning output?
First demo search (session-start hook demo)Yes — with intro label (see below)
User explicitly requests ("show me the plan", "verbose", "detail")Yes
All other searchesNo — output answer + Research Trail only

Demo label

When showing planning output during the first demo, prepend this label:

> 🔍 **Behind the scenes** — Here's how scout thinks through a search.
> This is shown once as a demo. Future searches will skip straight to the answer.

Planning format

--- Phase A: Pre-Research ---
0. Pre-Research: [lang] [query] → [tool]

--- Route (if applicable) ---
R. Source-Type Routing: [source] → [result: full / partial / miss]
   (If full → skip to Phase C. If partial/miss → continue to Phase B)

--- Phase B: Analysis & Plan ---
0a. Abstraction: [one-sentence essence]
0b. Keywords: [query vocabulary derived from abstraction]
1. Intent: [target / practice / general / navigational / comparison]
2. Domain: [technical / empirical / conceptual / regulatory]
3. Budget: Tier [S/M/L] ([N] queries)
4. Tool allocation: WebSearch [N]% / Exa [N]%
5. Primary language: [Language Selection Table result]
6. Query 1: [lang] [query] → [WebSearch / Exa] [primary-source-targeted? Y/N]
7. Query 2: [lang] [query or HyDE text] → [tool] (optional)
8. Query 3+: ... (as budget allows)
9. Counter-Query: [lang] [query] → [tool] (only if comparison/high-risk)
10. Freshness constraint: [year/date filter if applicable]

--- Phase C: Evaluation ---
11. Assess: [Sufficiency ✓/✗] [Reliability ✓/✗] [Specificity ✓/✗]
12. Primary sources found: [N] / [total sources]
13. Novelty estimate: [high/medium/low]
14. Re-search 1: [lang] [query] → [tool] (reason: [unmet criterion]) (only if ✗ and novelty > low)
15. Re-search 2: [lang] [query] → [tool] (optional)

Even when planning output is hidden, the internal process (Steps 0–15) must still be fully generated in internal reasoning before executing search queries. The planning format structures the LLM's reasoning; hiding it from the user does not mean skipping the steps.

If Pre-Research results change the initial intent/domain classification or query composition, redesign from Step 3 based on the updated understanding.

Transliteration Rules

  • When searching in another language, transliterate proper nouns to the common form in the target language
  • Semantic translation is prohibited. Use phonetic transliteration or established forms
  • When unknown, use the most common international spelling

Hard Constraints

  • Do not generalize proper nouns without justification (hybrid is the default)
  • Do not semantically translate proper nouns in cross-language searches (see Transliteration Rules)
  • Do not drop country/region names in searches involving jurisdictions, regulations, or government
  • For comparisons, include proper nouns for both sides
  • Use phrase matching (double quotes) only for official names and precise technical terms
  • Each query must be differentiated by language, intent axis, or tool (no redundant query repetition). This applies to both Main Search and Re-search
  • For time-sensitive topics, append the current year to queries to prioritize recent results
  • Never send confidential URLs to crawling_exa — use scout:fetch for URL content retrieval instead
  • If all available tools fail during both Execute and Re-search, report the failure to the user with the specific errors encountered. Do not fabricate results from prior knowledge
  • Primary sources are the goal, not the starting point: Do not force primary-source-only collection in Pre-Research. Allow concept understanding from any source type, then use refined queries to reach primary sources in Main Search and Re-search
  • Context7 two-step flow is mandatory: Always call resolve-library-id before query-docs. Never guess or hardcode library IDs. If resolve returns no results or low-quality matches, fall back to WebSearch — do not force Context7. If query-docs returns results but does not address the specific version or feature queried, supplement with WebSearch — do not rely solely on Context7 output. After a partial Context7 resolution, do not re-call Context7 in Step 3 — use WebSearch/Exa for the remaining gaps

Examples

Examples below show the full planning format for reference. In normal operation, only the answer and Research Trail are shown to the user.

Example 1: Technical Domain — Context7 Routing (Full Resolution)

Input: "How do I set up middleware in Next.js App Router?"

--- Route (if applicable) ---
R. Source-Type Routing: Context7 → resolve-library-id("Next.js") → /vercel/next.js
   Context7 → query-docs(/vercel/next.js, "middleware setup App Router")
   Result: full — official code examples and configuration returned

--- Phase A: Pre-Research ---
0. Pre-Research: (not needed — Route fully answered)

--- Phase B: Analysis & Plan ---
(skipped — Route fully answered, skip to Phase C)

--- Phase C ---
11. Assess: [Sufficiency ✓] [Reliability ✓] [Specificity ✓]
12. Primary sources: 1/1 (Next.js official docs via Context7)
13. Novelty estimate: n/a

Key point: Context7 resolved the library and returned official docs directly. Zero search budget consumed.

Example 1b: Technical Domain — Context7 Miss + WebSearch Fallback

Input: "How to configure HAProxy health checks for a Kubernetes backend?"

--- Route (if applicable) ---
R. Source-Type Routing: Context7 → resolve-library-id("HAProxy") → no indexed library found → miss

--- Phase A: Pre-Research (after Route miss) ---
0. Pre-Research: en HAProxy health check Kubernetes → WebSearch

--- Phase B ---
0a. Abstraction: HAProxy reverse proxy with active/passive health checking against K8s service endpoints
0b. Keywords: HAProxy, health check, Kubernetes, backend, httpchk, option httpchk, server-template
1. Intent: practice
2. Domain: technical (non-library — infrastructure tool)
3. Budget: Tier M (3 queries)
4. Tool emphasis: WebSearch-primary
5. Primary language: en
6. Query 1: en HAProxy health check configuration Kubernetes backend 2026 → WebSearch [primary-source: Y]
7. Query 2: en HAProxy httpchk server-template dynamic DNS → WebSearch
8. Query 3: en HAProxy Kubernetes ingress health check best practices → Exa

--- Phase C ---
11. Assess: [Sufficiency ✓] [Reliability ✓] [Specificity ✓]
12. Primary sources: 2/5 (HAProxy official docs, Kubernetes docs)
13. Novelty estimate: n/a

Key point: Context7 didn't have HAProxy indexed (infrastructure tool, not a library). Fell back to WebSearch as primary for non-library technical domain.

Example 2: Empirical Domain — Exa-Primary + Re-search with Novelty Check

Input: "What's the evidence for spaced repetition effectiveness in language learning?"

--- Phase A ---
0. Pre-Research: en spaced repetition language learning research → WebSearch

--- Phase B ---
0a. Abstraction: Spaced repetition (expanding interval review) is widely used in language learning. Meta-analyses show moderate-to-large effect sizes for vocabulary retention
0b. Keywords: spaced repetition, language learning, meta-analysis, effect size, vocabulary retention, Leitner, Anki
1. Intent: practice
2. Domain: empirical
3. Budget: Tier L (6 queries — academic research needs breadth)
4. Tool emphasis: Exa-primary (empirical domain)
5. Primary language: en
6. Query 1: en [HyDE] "Meta-analyses of spaced repetition in L2 vocabulary acquisition show effect sizes of 0.5-0.8, with expanding schedules outperforming fixed intervals for long-term retention." → Exa [primary-source: Y]
7. Query 2: en spaced repetition language learning meta-analysis systematic review 2024 2025 → WebSearch [primary-source: Y]
8. Query 3: en spaced repetition vs massed practice vocabulary retention effect size → Exa
9. Counter-Query: n/a (not comparison/high-risk)
10. Freshness: 2024-2025 preferred for meta-analyses

--- Phase C ---
11. Assess: [Sufficiency ✓] [Reliability ✗ — only 1 primary paper found, most results are blog summaries] [Specificity ✗ — need specific effect sizes]
12. Primary sources: 1/8
13. Novelty estimate: high (issue trackers / publisher databases unexplored)
14. Re-search 1: en site:scholar.google.com OR site:pubmed.ncbi.nlm.nih.gov spaced repetition vocabulary meta-analysis → WebSearch (reason: primary-source gap)
15. Re-search 2: en Nakata 2015 OR Ullman 2020 spaced repetition L2 acquisition → Exa (reason: specificity — need named studies)

Key point: Pre-Research with secondary sources (blogs) acquired the vocabulary ("L2 acquisition", "expanding schedules", "Leitner"). Refined queries then targeted primary sources (papers). Re-search was triggered by primary-source gap in Assess.

Example 3: Comparison with Counter-Query + Freshness

Input: "Prisma vs Drizzle for TypeScript backend in 2026"

--- Phase A ---
0. Pre-Research: en Prisma Drizzle ORM TypeScript comparison → WebSearch

--- Phase B ---
0a. Abstraction: Two TypeScript ORMs. Prisma: schema-first, generated client, mature ecosystem. Drizzle: SQL-like, lightweight, type-safe, growing rapidly
0b. Keywords: Prisma, Drizzle, ORM, TypeScript, performance, migration, type safety, bundle size, serverless
1. Intent: comparison
2. Domain: technical
3. Budget: Tier M (4 queries — comparison needs multiple perspectives)
4. Tool emphasis: WebSearch-primary (technical domain)
5. Primary language: en
6. Query 1: en Prisma vs Drizzle TypeScript ORM comparison 2026 → WebSearch
7. Query 2: en Drizzle ORM production experience migration Prisma → Exa
8. Counter-Query: en Prisma drawbacks limitations 2025 2026 → WebSearch
9. Counter-Query: en Drizzle ORM problems issues production → WebSearch
10. Freshness: 2025-2026 required (rapid ecosystem changes)

--- Phase C ---
11. Assess: [Sufficiency ✓] [Reliability ✓] [Specificity ✓]
12. Primary sources: 3/10 (Prisma docs, Drizzle docs, GitHub benchmarks)
13. Novelty estimate: n/a

Key point: Counter-queries ("drawbacks", "problems") are automatically added for comparison intent. Both sides get counter-queries to avoid one-sided evaluation. Freshness constraint ensures 2025-2026 results for rapidly evolving ecosystem.

Changelog

  • v2.2 (2026-04-10): UX improvement — Planning output hidden by default (shown only on first demo and explicit request). Removed "Powered by scout" footer from Research Trail. Planning format renamed from "Output Template" for clarity. Added Examples section annotation. Clarified internal reasoning execution requirement.
  • v2.1 (2026-04-08): Context7 MCP integration for Technical domain. Addresses Round 2 ROI -9 on library/framework docs. Changes: Context7 added to Source-Type Routing (Step 2.5), Domain-Aware Tool Selection split Technical into library vs non-library, Context7 tool documentation added, Example 1 updated with Context7 routing flow
  • v2.0 (2026-04-06): Major redesign based on 3-model cross-model discussion (3 rounds) + effectiveness evaluation data (4-domain cross-validation). Key changes:
    • Added Step 0.5 Clarify (conditional clarification for ambiguous queries)
    • Added Step 2.5 Route (Source-Type Routing for direct lookup)
    • Added Domain Classification (technical/empirical/conceptual/regulatory) with domain-aware tool selection
    • Added Budget Tiers (S/M/L) replacing fixed 6-query limit
    • Expanded Assess with Reliability sub-criteria (Provenance, Corroboration, Recency, Consistency, Perspective diversity)
    • Added Novelty Check as Re-search decision aid
    • Added Failure Mode Handling (zero results, all low-quality, contradictions, primary-source gap, information saturation)
    • Added Freshness constraints for time-sensitive topics
    • Added Counter-Query for comparison and high-risk queries
    • Expanded Re-search to max 2 cycles (intent-dependent) from 1 cycle
    • Added uncertainty disclosure guidance in synthesis
    • Documented Exa's secondary-source bias with mitigation strategy
    • Design principle: "Primary sources are the goal, not the starting point"
  • v1.0 (2026-03-23): Initial release

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.