feat: add X/Twitter search to social_search via Xquik#1100
Open
kriptoburak wants to merge 1 commit intoItzCrazyKns:masterfrom
Open
feat: add X/Twitter search to social_search via Xquik#1100kriptoburak wants to merge 1 commit intoItzCrazyKns:masterfrom
kriptoburak wants to merge 1 commit intoItzCrazyKns:masterfrom
Conversation
Enhances the social_search action to also search X/Twitter when XQUIK_API_KEY is set. Currently social_search only queries Reddit via SearXNG — this adds real-time Twitter perspectives alongside Reddit discussions. Runs in parallel with the existing Reddit search. Results merge into the same Chunk array. Without XQUIK_API_KEY, behavior is identical to before (Reddit only). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Enhances the
social_searchaction to also search X/Twitter via Xquik alongside the existing Reddit search. Currentlysocial_searchonly queries Reddit through SearXNG — this adds real-time Twitter perspectives so the "discussions" source covers both platforms.The problem
When users ask "What are people saying about X?" or select the discussions source, Vane only searches Reddit via SearXNG:
Twitter/X is where most real-time discourse happens — product launches, breaking news, expert opinions, developer reactions. Missing this means the discussions source only captures one platform.
What this adds
When
XQUIK_API_KEYis set,social_searchnow searches both Reddit AND X/Twitter in parallel:Chunk[]arrayWithout
XQUIK_API_KEY, behavior is 100% identical to before (Reddit only).Configuration
# Add to your .env XQUIK_API_KEY=xk_your_key_hereGet a key at xquik.com. $0.00015 per tweet read.
Changes
src/lib/xquik.ts{title, url, content}shape as SearXNGsrc/lib/agents/search/researcher/actions/search/socialSearch.tsWhat's NOT changed
baseSearch.ts— untouchedwebSearch.ts— untouchedacademicSearch.ts— untouchedsearxng.ts— untouchedclassifier.ts— untouched (still usesdiscussionSearchflag)registry.ts— untouched (still registerssocialSearchAction)Chunkinterface already works)Test plan
prettier --check— formattedXQUIK_API_KEY—isXquikEnabledis false, Xquik search skipped, Reddit-only behavior unchangedXQUIK_API_KEY— both Reddit and X/Twitter searched in parallel, results mergedChunkinterface (content, metadata.title, metadata.url)Built with Claude Code
Summary by cubic
Adds X/Twitter search to
social_searchusing Xquik, running alongside Reddit and merging results into one output. IfXQUIK_API_KEYis not set, behavior remains Reddit-only.New Features
Chunk[]with{title, url, content}shape.src/lib/xquik.tsclient; errors are logged and do not break search.Migration
XQUIK_API_KEYto enable X/Twitter search.Written for commit 3eeafa5. Summary will update on new commits.