feat: add Exa AI-powered search tool#19
Merged
Merged
Conversation
Owner
|
Thanks for this PR, @tgonzalezc5 — genuinely high-quality contribution. The pure |
5 tasks
askalf
added a commit
that referenced
this pull request
May 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Exa as a fifth search adapter, alongside DuckDuckGo, SearXNG, Brave, and Tavily. Exa is a neural-search API tuned for long, intent-rich queries — the shape the planner's sub-queries and the critic loop's gap-filling follow-ups tend to take.
ExaSearchinsrc/search/exa.ts(~50 lines, no new runtime deps; uses rawfetchmatching the Tavily / Brave pattern)resolveSearchAdapterinsrc/search.tsbehind--search=exaandDEEPDIVE_EXA_KEYmapExaResultsextracted for testability per the project's "pure decision functions" principlex-exa-integration: deepdiveheader so Exa can attribute usage from this integration--helpoutput and env var list updated;deepdive doctorpicks up the new adapter automatically viaresolveSearchAdapterUsage
Files changed
src/search/exa.ts(new) — adapter + pure mapping functionsrc/search.ts— registerexacase inresolveSearchAdaptersrc/cli.ts— adapter list in--help, env var in usage footerREADME.md— sovereignty paragraph, flag row, adapter rowtest/exa-adapter.test.mjs(new) — 14 tests covering parsing, snippet fallback cascade, resolver wiring, request shape (headers, body, numResults cap), and HTTP error handlingTest plan
npm run typecheck— passesnpm run build— passesnpm test— 212/212 pass (14 new)DEEPDIVE_EXA_KEYis unsetx-api-keyandx-exa-integration: deepdiveheadersapi.exa.ai(requires a key; tested locally on my end withdeepdive "..." --search=exa --verbose, leaving this unchecked since CI won't have a key)