Skip to content

Part of Search X for Research From Your Terminal

Productivity Blueprint

Search X for Research From Your Terminal

0June 2026

A command-line interface for querying X/Twitter, monitoring accounts, and pulling threads with cost tracking and caching.

What problem does this solve?

Provides X API access as a fast CLI so your AI agent or terminal can search tweets, filter by engagement, monitor accounts, and fetch full conversations without calling X endpoints directly. This removes the need to switch to X's web interface or write API calls when you need recent perspectives and sourced research.

How does it work?

After installation, use bun run x-search.ts commands. Main commands: search "query" --sort likes --limit 10 for targeted searches with engagement sorting and noise filtering, profile username for recent tweets from a user, thread TWEET_ID for full conversations, watchlist check to monitor key accounts. The --quick flag reduces costs by limiting to 1 page, 1-hour cache, and auto-filtering retweets. Every search shows estimated API cost. Output: formatted tweets with engagement metrics, links, and author handles.

Included Skills

No skills in this group

What's required to run this?

Requires Bun runtime because the skill uses native TypeScript execution (bun run x-search.ts). Requires X_BEARER_TOKEN environment variable (from X Developer Portal) and prepaid X API credits (pay-per-use, ~$0.50 per search page). Bearer token should not be passed inline in commands; set as environment variable or in ~/.config/env/global.env to reduce exposure risk in agent session logs.

Key Features

Search Commands

Query with --sort (likes/impressions/retweets/recent), --since (time range), --min-likes, --pages, --quality flag, --from for specific users, and auto-retweet filtering.

Quick Mode

Use --quick for cheap pulse checks: limits to 1 page max 10 results, 1-hour cache TTL, auto noise filters, cost summary per search.

Profile & Thread

profile <user> fetches recent tweets from an account. thread <tweet_id> returns full conversation thread with all replies.

Watchlist Monitoring

watchlist add/remove/check to track key accounts without repeated API calls. Useful for heartbeat checks on specific voices.

Cost & Cache

15-minute default cache (1 hour in quick mode) eliminates repeat charges. Every search displays estimated X API cost. 24-hour dedup at API level further saves money.

About This Blueprint

Industry
Technology
1 File
Productivity

Business Automation & Productivity Workflow

Reduce hours lost to repetitive admin without adding a complicated stack. Prioritized, tested workflows automate routine research, client communication, project tracking, and website tasks while keeping people in control of important decisions.

1 File
Engineering

Business Technology & Digital Solutions Workflow

Avoid costly, fragmented digital projects with a plan that connects business goals to practical tools, implementation steps, and measurable results. It also flags performance, security, accessibility, and SEO checks before launch.

WordPressGoogle AnalyticsGoogle Search Console+2 more
Sales

ICP-Filtered Outreach Lists from G2 Buyer Intent

Stop wasting rep time on weak intent signals and mismatched accounts. The workflow ranks ICP-fit buyers by readiness, finds the right contact, and supplies tailored outreach angles for the strongest opportunities.

ClaudeClaudeG2 Buyer Intent (G2 MCP Server)ZoomInfo (MCP)+3 more

Ishani D.

Account Manager at G2