7aafa7547a
- Added pluggable code search provider system supporting Exa and grep.app with provider selection via `providers.codeSearch` setting. - Removed Exa-specific tools (`exa_linkedin`, `exa_company`, `exa_search_deep`, `exa_crawl`) and simplified web search tools to focus on core functionality. - Refactored code search from Exa-only to provider-agnostic architecture with new `code_search` tool supporting context-aware grep.app queries and Exa fallback. - Removed `exa.enableLinkedin` and `exa.enableCompany` configuration settings in favor of provider-based architecture. - Added comprehensive test coverage for code search functionality including grep.app result normalization and provider fallback behavior.
2.2 KiB
2.2 KiB
Search code snippets, and technical content. This tool behaves more like grep than natural-language web search.
- Query with exact symbols, identifiers, error strings, CLI flags, filenames, import paths, and short code fragments - Start with the smallest distinctive token; widen or add one nearby token only if the first query is too broad - Prefer exact syntax when punctuation carries meaning, such as `Promise.withResolvers`, `useEffect(`, `--watch`, or `"direnv loading"` - Keep `query` terse; remove filler words, prose, and request framing - Use `code_context` only for a few disambiguating tokens such as language, library, framework, repo, runtime, or API name - If a multi-word literal matters exactly, quote the shortest stable phrase first, then refine - When looking for usage examples of a specific API, search the symbol first; add surrounding call syntax only when needed - query: Grep-style code search query; use exact tokens, short fragments, or short quoted phrases - code_context: Optional disambiguation tokens only, not a sentence Good queries: - `Promise.withResolvers` - `DIRENV_LOG_FORMAT` - `"direnv loading"` - `useState` with `code_context: react hooks` - `app.get(` with `code_context: express` - `ERR_REQUIRE_ESM` with `code_context: node`Bad queries:
Need the official or source-backed way to silence direnv loading outputHow do I use Promise.withResolvers in Bun?find examples of React state hooks in TypeScript projectssearch GitHub for express routing docs