GooDAnDReaDY/dsh-grok-xsearch

Real-time X (Twitter) search, author profiling, trends, and fact-checking tool suite powered by SuperGrok OAuth for DeepSeek Harness.

Project Overview项目介绍

dsh-grok-xsearch is a native plugin built specifically for the DeepSeek Harness runtime, distributed through npm under the @goodandready scope and installed with the single command dsh plugin --profile web add @goodandready/dsh-grok-xsearch from a profile-scoped terminal. It targets the upstream xAI Responses API endpoint that exposes the x_search tool type, routing every agent request through a SuperGrok OAuth PKCE session so DSH agents can read live breaking news, developer sentiment, Community Notes fact-checking, author timelines, and viral trends without paying for premium per-query X API tiers. The package requires Node.js 20 or newer, exposes management surfaces over a dedicated set of HTTP routes including /dsh-grok-xsearch/config, /dsh-grok-xsearch/cache/clear, /oauth/start, /oauth/callback, /oauth/complete, and /logout, and registers a structured settings card directly inside the DSH web profile interface for live cache inspection and one-click cache flushing.

Inside ctx.tools the plugin registers six purpose-built tools: x_search for natural-language post and thread queries with comma-separated allowed_x_handles/excluded_x_handles filters (up to ten each), from_date/to_date ISO date ranges, only_original_posts, has_media, and has_links toggles; x_author_profile for stance and timeline summaries; x_trending_topics for live trending discovery; x_fact_check_notes for Community Notes fact verification; x_thread_reader for reconstructing thread context; and x_find_experts for targeted expert discovery. Every call first traverses an in-memory TTL cache, and misses are normalized through a multimodal filter, deduplicated, canonicalized to https://x.com/<handle>/status/<id> URLs with tracking parameters such as utm_*, ?s=, ?t=, and ref_src stripped, and then persisted back to cache for a five-minute window. The intended users are researchers, investigative journalists, social-listening operators, and quant traders who want live X intelligence injected directly into DSH reasoning loops without bespoke integration code.

Dependencies are limited to a valid SuperGrok OAuth subscription tied to the installing user's xAI account, and runtime hardening includes a single-flight mutex on the refresh token path, automatic HTTP 401 retry-after-refresh, exponential backoff for transient 5xx and network errors, capacity-bounded proactive cache pruning for both SEARCH_CACHE and MODELS_CACHE, and a graceful Grok 4.5 fallback when the upstream x_search endpoint returns HTTP 429 rate-limit responses. First-run operators must authenticate once via Settings → Plugins → Grok X Search & Intelligence Suite inside the DSH web profile before any tool call will succeed; standalone operators can alternatively complete the PKCE flow by visiting /oauth/start, pasting the redirected URL into /oauth/complete, and clearing their session at any time through /logout. The plugin is released under the permissive MIT license at no cost, although downstream usage volume is ultimately bounded by the user's own SuperGrok subscription quotas and the xAI model's published rate limits.

dsh-grok-xsearch 是一款专为 DeepSeek Harness 设计的 DSH 原生插件,名称以 dsh- 前缀命名并发布在 npm 上,通过 dsh plugin --profile web add @goodandready/dsh-grok-xsearch 一行命令即可安装。插件调用 xAI Responses API 的 x_search 工具类型,借助经过 OAuth PKCE 认证的 SuperGrok 会话,使 DSH 智能体在无需购买昂贵 X API 套餐的前提下,就能实时检索推文、媒体与互动指标。运行时需要 Node.js 20 及以上环境,并通过内置 HTTP 路由(/dsh-grok-xsearch/config、/oauth/start、/oauth/callback 等)完成配置、缓存清理与登出等管理操作。

插件在 ctx.tools 中注册六个专门工具:x_search 支持自然语言与 @handle、日期、原创、含媒体或链接等过滤条件;x_author_profile 汇总作者立场与时间线;x_trending_topics 抓取当下热门话题;x_fact_check_notes 提取社区注释;x_thread_reader 解析长帖上下文;x_find_experts 定向发现领域专家。所有调用先经过内存 TTL 缓存,命中即返回,未命中则经多模态标准化、去重与点击引用格式化后再回填缓存。适合需要在 DSH 中引入实时 X 情报的研究型用户、调查记者、社交聆听运营者及量化交易信号构建者,他们可借此把 X 上的突发新闻、舆论走向、事实核查结果直接注入到 DSH 工作流。

依赖方面,授权完全依赖用户的 SuperGrok OAuth 会话与 xAI 模型目录,每次调用都会按需刷新令牌并具备 HTTP 401 自动恢复、网络 5xx 指数退避重试等容错机制;内置缓存设有容量上限和主动清理,引用会去除 utm_* 等追踪参数并将链接规范化为 x.com 形式。授权通过 "Settings → Plugins → Grok X Search & Intelligence Suite" 完成,速率触发 429 时会自动回退到 Grok 4.5 模型。许可为 MIT,完全免费,但用户需自行持有有效的 SuperGrok 订阅方可使用全部实时检索功能。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

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

把 GooDAnDReaDY/dsh-grok-xsearch 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

📦 @goodandready/dsh-grok-xsearch

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

npm version license DSH Plugin Node version

All Author Projects

🇬🇧 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.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev imgpost 下一个 Next dsh-web-auth-gateway →