DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Grok Xsearch — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@goodandready/dsh-grok-xsearch

Grok Xsearch

由 SuperGrok OAuth 驱动的 DeepSeek Harness 实时 X (Twitter) 搜索、作者画像、趋势和事实核查工具套件。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @goodandready/dsh-grok-xsearch@0.3.16
README兼容性版本

兼容性与来源证明

Grok Xsearch 以 @goodandready/dsh-grok-xsearch 发布,当前版本为 0.3.16。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.3.16stable
2026/9/19
0.3.15stable
2026/9/18
0.3.14stable
2026/9/18
查看其余 18 个版本收起版本
0.3.13stable
2026/9/17
0.3.12stable
2026/9/16
0.3.11stable
2026/9/13
0.3.10stable
2026/9/10
0.3.9stable
2026/9/9
0.3.8stable
2026/9/8
0.3.7stable
2026/9/5
0.3.6stable
2026/9/4
0.3.4stable
2026/9/4
0.3.5stable
2026/9/4
0.3.3stable
2026/9/3
0.3.2stable
2026/9/3
0.3.1stable
2026/9/2
0.3.0stable
2026/9/2
0.2.2stable
2026/8/28
0.2.1stable
2026/8/25
0.2.0stable
2026/8/25
0.1.0stable
2026/8/21
最新版
0.3.16
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
172.1 kB
文件数
21
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 1
周下载
919
安全扫描
✓ v0.3.16 扫描通过
最近提交
2026/9/19
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

README

📦 @goodandready/dsh-grok-xsearch

Real-Time X (Twitter) Intelligence & Search Tool Suite Powered by SuperGrok OAuth for DeepSeek Harness

🇬🇧 English • 🇷🇺 Русский • 🇨🇳 中文说明

⭐ If you like this plugin, please star it on GitHub — it shows me that the plugin is useful to you and motivates me to keep developing it.

🐛 If you find a bug or would like to request a feature, open a GitHub issue in any language — I will review your proposal and implement useful suggestions in a future plugin version.

⚡ Overview

dsh-grok-xsearch equips your DeepSeek Harness agents with real-time X (Twitter) intelligence and a suite of dedicated analytical tools.

By leveraging authenticated SuperGrok OAuth sessions with the xAI Responses API (POST /responses), agents can query live breaking news, developer sentiment, community threads, author timelines, viral trends, and Community Notes fact-checking without expensive per-query X API tiers.

graph LR
    subgraph AgentAction [DSH Agent Reasoning]
        Agent[🤖 Agent: Live X Context Required] --> Select{Tool Selector}
        Select --> T1[x_search: Deep Search]
        Select --> T2[x_author_profile: Stance & Timeline]
        Select --> T3[x_trending_topics: Live Trends]
        Select --> T4[x_fact_check_notes: Community Notes]
        Select --> T5[x_thread_reader: Thread Context]
        Select --> T6[x_find_experts: Expert Discovery]
    end

    subgraph SearchEngine [dsh-grok-xsearch Execution Engine]
        T1 & T2 & T3 & T4 --> Cache{In-Memory TTL Cache}
        Cache -->|Hit| DirectReturn[Cached Result: Instant]
        Cache -->|Miss| Filter[Filter & Multimodal Normalizer]
        Filter --> Auth{SuperGrok PKCE OAuth}
    end

    subgraph UpstreamX [xAI Responses API]
        Auth --> xAI[xAI Responses Endpoint: tool type x_search]
        xAI -->|Rate Limit 429| Fallback[Smart Fallback: Grok 4.5]
        Fallback --> xAI
        xAI --> Raw[Live Posts, Metrics & Annotations]
    end

    subgraph ContextAssembly [Rich Formatting & Deduplication]
        Raw --> Dedup[Citation Deduplication & Tweet Parsing]
        Dedup --> CacheSave[Save Cache: 5 min TTL]
        CacheSave --> Output[Structured Output & Clickable Citations]
        Output --> Agent
    end

    style AgentAction fill:#1e1e2e,stroke:#89b4fa,stroke-width:2px,color:#cdd6f4
    style SearchEngine fill:#181825,stroke:#cba6f7,stroke-width:2px,color:#cdd6f4
    style UpstreamX fill:#11111b,stroke:#a6e3a1,stroke-width:2px,color:#cdd6f4
    style ContextAssembly fill:#181825,stroke:#f38ba8,stroke-width:2px,color:#cdd6f4

🛠️ Complete Tool Suite Reference

The plugin registers six purpose-built tools in ctx.tools:

1. x_search — Deep Post & Thread Search

General-purpose natural language search across X posts, threads, media, and engagement metrics.

ParameterTypeRequiredDescription
querystringYesNatural language search query or topic keywords
allowed_x_handlesstringNoComma-separated @handles to include (up to 10)
excluded_x_handlesstringNoComma-separated @handles to exclude (up to 10)
from_datestringNoStart date filter (YYYY-MM-DD)
to_datestringNoEnd date filter (YYYY-MM-DD)
only_original_postsbooleanNoOmit retweets and quote echoes
has_mediabooleanNoFilter for posts containing images, infographics, or videos
has_linksbooleanNoFilter for posts containing external links, papers, or repositories
only_threadsbooleanNoFilter for extended multi-tweet discussion threads
langstringNoLanguage code filter (e.g. en, ru, ja)
min_likesnumberNoMinimum likes threshold for quality filtering
min_repostsnumberNoMinimum reposts/retweets threshold
enable_image_understandingbooleanNoLet xAI inspect and extract data from images and charts
enable_video_understandingbooleanNo

2. x_author_profile — Author Timeline & Position Analysis

Inspects an expert or developer's recent discussions, technical stances, and shared insights on X.

ParameterTypeRequiredDescription
handlestringYesAuthor's username (e.g., @ylecun or sama)
focus_topicstringNoSpecific topic or thesis to analyze the author's stance on
from_datestringNoStart date filter (YYYY-MM-DD)
to_datestringNoEnd date filter (YYYY-MM-DD)
only_original_postsbooleanNoFocus on original author posts (default true)

3. x_trending_topics — Real-Time Trend Discovery

Uncovers emerging topics, breaking announcements, viral threads, and community discussions.

ParameterTypeRequiredDescription
domainstringNoTopic domain (tech, ai, crypto, science, world, general, default: tech)
regionstringNoGeographic or community focus (Global, US, EU, Asia)
timeframestringNoPeriod (today, past_24h, past_week, default: today)
min_likesnumberNoMinimum likes threshold for viral post detection

4. x_fact_check_notes — Community Notes & Fact-Checking

Investigates claims, viral rumors, or news stories for Community Notes, expert rebuttals, and corrections on X.

ParameterTypeRequiredDescription
claimstringYesStatement or rumor to fact-check
target_urlstringNoSpecific X post or article URL to verify
allowed_x_handlesstringNoComma-separated researcher or institutional handles to check
enable_image_understandingbooleanNoInspect attached images or infographics in debunking posts

5. x_thread_reader — Thread Reconstruction & Discussion Reader

Reconstructs full multi-tweet threads, author continuations, and high-engagement discussion trees by tweet URL or numeric status ID.

ParameterTypeRequiredDescription
tweet_url_or_idstringYesTweet URL (e.g. https://x.com/username/status/1234567890) or numeric tweet ID
include_repliesbooleanNoInclude notable community replies and expert rebuttals (default: true)
max_depthnumberNoMaximum thread depth to retrieve (default: 10, max: 25)
extract_tablesbooleanNoFormat benchmarks, charts, and metrics from thread media into Markdown tables

6. x_find_experts — Domain Expert & Key Opinion Leader Discovery

Discovers verified practitioners, seminal researchers, and high-signal domain contributors on X by topic or technology.

ParameterTypeRequiredDescription
domain_or_topicstringYesDomain, research field, technology, or topic (e.g. quantum computing, distributed LLM training)
min_followersnumberNoOptional minimum followers threshold
languagestringNoLanguage focus code (e.g. en, zh)
limitnumberNoNumber of expert profiles to return (default: 5, max: 15)

🛡️ Resilience & Performance Features

  • Smart Model Fallback (429 Rate Limit): When grok-4.6 encounters temporary upstream rate limits (HTTP 429), the execution engine automatically falls back to grok-4.5 or grok-4-fast-reasoning, ensuring uninterrupted agent workflow.
  • In-Memory TTL Caching: Identical queries within a 5-minute window are served instantly from the local cache, conserving xAI API quotas.
  • Citation Deduplication & Parsing: Citations are parsed into structured references with author handles (@handle), status IDs, and clickable URLs.
  • Full Multi-Language UI: Settings card supports English, Russian, and Chinese localization via ctx.locale.register.

⚙️ Configuration (settings.yaml / Web UI)

dsh-grok-xsearch:
  enabled: true
  grokClientId: "<YOUR_GROK_OAUTH_CLIENT_ID>"
  model: "grok-4.6"
  timeoutSeconds: 180
  retries: 2
  autoFallbackModel: true
  enableCache: true
  cacheTtlSeconds: 300
ParameterTypeDefaultDescription
enabledbooleantrueEnables or disables all Grok X tools
grokClientIdstring""OAuth Client ID for SuperGrok authentication
modelstring"grok-4.6"Default Grok model for Responses queries
timeoutSecondsnumber180Request timeout before cancellation
retriesnumber2Number of retry attempts on transient 5xx errors
autoFallbackModelbooleantrueAutomatically try Grok 4.5 upon HTTP 429 rate limit
enableCachebooleantrueIn-memory cache for recent search queries
cacheTtlSecondsnumber300Cache retention time in seconds

Compatibility & Stability

  • Version 0.3.14 (Settings De-duplication & Plugin Card Exclusivity):

    • Removed Redundant settings.section Fallback: Settings are surfaced exclusively within the collapsible card under Settings → Plugins (settings.plugin.item), removing duplicate root sidebar entries (#51).
    • Diagnostic Slot Logging: Unavailability of settings.plugin.item slot now logs an actionable warning via ctx.logger.warn instead of masking errors with a redundant root section.
  • Version 0.3.13 (Lifecycle State Cleanup & Export Hygiene):

    • Cordis Lifecycle Disposers: clearPendingStore, clearRefreshMutex, and clearModelsCache connected to the plugin effect disposer in lib/index.js, preventing memory retention and stale state across sessions and restarts (#48).
    • Comprehensive Logout Flush: Route /dsh-grok-xsearch/logout guaranteed to flush stored tokens, pending OAuth PKCE requests, token refresh mutex, and the cached models catalog.
    • Manual Cache Clear Route: Route /dsh-grok-xsearch/cache/clear flushes both query results cache and the models catalog cache.
    • Export Modifier Hygiene: Stripped unneeded export keywords from internal-only functions and constants across models.js, oauth-pending.js, and updater.js.
  • Version 0.3.12 (One-Click Updater, Route Security Hardening & Client Decomposition):

    • One-Click Updater (lib/updater.js): Added host-side /api/dsh-grok-xsearch/update route and settings card update UI for version checking, update status inspection, and one-click upgrades with semver prerelease support and standard pnpm package resolution.
    • Fail-Closed Route Security: Upgraded write routes (/config, /cache/clear, /oauth/complete, /logout, /api/dsh-grok-xsearch/update) with strict loopback and origin/referer verification protecting against DNS rebinding and cross-site request forgery (CSRF).
    • Client UI Decomposition: Streamlined and decomposed lib/client.js below 600 lines with reusable input field helpers and compact layout while strictly retaining browser ModuleLoader self-containment.

📦 Quick Installation

dsh plugin --profile web add @goodandready/dsh-grok-xsearch

[!IMPORTANT] Authenticate your SuperGrok session in Settings → Plugins → Grok X Search & Intelligence Suite.


🔌 HTTP API Routes

RouteMethodDescription
/dsh-grok-xsearch/configGET, PUTInspects or updates search configuration and model selection
/dsh-grok-xsearch/cache/clearPOSTClears in-memory query cache and cached models catalog
/dsh-grok-xsearch/oauth/startGETInitiates standalone SuperGrok OAuth PKCE flow
/dsh-grok-xsearch/oauth/callbackGETHandles browser OAuth redirect callback
/dsh-grok-xsearch/oauth/completePOSTFinalizes authentication from manual URL paste
/dsh-grok-xsearch/logoutPOSTClears stored session tokens, pending OAuth requests, models cache, and refresh mutex

📄 License

MIT © GooDAnDReaDY

Let xAI analyze video clips and speech
extract_tablesbooleanNoExtract benchmarks, financial metrics, or comparison tables into Markdown format
  • Tool Registration Resilience: Safe companion tool registration wrapped with ctx.logger.warn to log diagnostics instead of silent error swallowing.
  • Locale Lifecycle Disposer: Client locale registration moved inside ctx.effect with disposer cleanup.
  • Package Metadata Alignment: Populated dsh.client.inject with @deepseek-ai/dsh-client-locale and @deepseek-ai/dsh-client-ui-settings.
  • Version 0.3.10 (UI Redesign & Comprehensive Hardening):

    • Unified dsh-clinebot Styling: Rebuilt settings surface to mirror the reference dsh-clinebot architecture: isolated .gx-section-card containers, soft translucent status badges, adaptive inputs, and native --dsw-alias-* styling tokens.
    • Slot Error Isolation: Integrated React ErrorBoundary component around settings views to catch and isolate runtime errors with inline retry capabilities, preventing parent DSH slot crashes.
    • Interactive Cache Telemetry Meter: Added live LRU cache visualizer (.gx-bar-container, track, and animated percentage fill) with one-click cache purge action.
    • Safe Service Resolution: Replaced brittle credentials proxy accesses with defensive resolution (typeof ctx?.get === 'function' ? ctx.get('credentials') : ctx?.credentials) in lib/token-manager.js.
    • Dynamic User-Agent: Configured dynamic package version detection (dsh-grok-xsearch/${PKG_VERSION}) in lib/xsearch.js for upstream telemetry.
    • Dead Code Pruning: Eliminated legacy uncalled functions publicAccountView, requestOrigin, and webCallbackUri.
    • Extended Test Coverage: Added test/helpers.test.mjs verifying blob.js, oauth.js, http.js, wire.js, pkce.js, and jwt.js (58/58 test suite passing).
  • Version 0.3.9 (Robustness & Resilience Hardening):

    • Token Request Socket Timeout: formTokenRequest in lib/wire.js now enforces a strict 15-second AbortSignal.timeout preventing hanging sockets during token exchanges or refresh attempts.
    • Auto-Eviction of Invalid Credentials: When upstream refresh returns fatal invalid_grant or HTTP 400, stored invalid credentials blob is automatically purged from DSH credentials store to prevent infinite retry storms.
    • OAuth Error Handling in Callback: Handles ?error= and ?error_description= query parameters from xAI OAuth provider (e.g. user denied permissions) cleanly, displaying actionable instructions instead of cryptic "Missing code" errors.
    • Proactive Cache Pruning & Capacity Limits: SEARCH_CACHE (search queries) and MODELS_CACHE (xAI model catalog) proactively prune expired entries upon insertion and enforce upper capacity bounds to prevent memory bloat.
    • UI Cache Management: The settings card now displays live in-memory cache usage and provides an interactive "Clear cache" button calling /dsh-grok-xsearch/cache/clear.
    • Formal Design Contract: Added comprehensive docs/design/DESIGN.md specifying all agent tools, UI card states, foundations, user flows, and locked design decisions.
  • Version 0.3.8 (Architecture & Stability Hardening):

    • Single-Flight OAuth Mutex: Prevents concurrent request token refresh races by consolidating simultaneous refresh triggers into a single upstream request.
    • Auto-Recovery on HTTP 401 Unauthorized: If an access token expires mid-operation, tools automatically perform an explicit token refresh and retry the search query transparently.
    • Network & Transient Error Backoff: Added exponential backoff retry logic for upstream network and 5xx transient failures.
    • In-Memory Catalog Caching: Cached xAI model catalog lookups (listModelsForSettings, 15-minute TTL) eliminate UI setting panel loading stalls.
    • Citation Canonicalization & Tracking Stripping: Automatically removes URL tracking parameters (?s=, ?t=, ref_src, utm_*) and harmonizes twitter.com into canonical https://x.com/<handle>/status/<id> citations to eliminate duplicate citations.
    • Streamlined OAuth Pending Store: Replaced multi-file disk pending store with a lightweight in-memory Map with automatic TTL expiration.
    • Settings Scope Race Elimination: Removed dual-write race in client settings UI to use single authoritative HTTP config persistence.
  • Version 0.3.3: Hardens compatibility with mixed DeepSeek Harness alpha/rc peer resolutions. All four registered tools expose an object-root JSON Schema (type: "object" with properties and required) even when an older dsh-tools runtime returns the legacy property-map form. Tool behavior and OAuth/API contracts are unchanged.