Skip to main content

Social Search

Research agent that searches Reddit and Bluesky using GPT-5.2 with high reasoning.

How It Works

  1. Stage 1: Generates 3 search queries for your task
  2. Stage 2: Runs 3 parallel LLM instances, each making tool calls to search and gather data
  3. Stage 3: Compiles findings into a comprehensive report

Setup

# Clone
git clone https://github.com/yourusername/social-search.git
cd social-search

# Install
pip install -r requirements.txt

# Configure
cp example.env .env
# Edit .env with your credentials

Environment Variables

Variable Required Description
OPENAI_API_KEY Yes OpenAI API key
REDDIT_CLIENT_ID For Reddit Reddit app client ID
REDDIT_CLIENT_SECRET For Reddit Reddit app client secret
REDDIT_USERNAME For Reddit Reddit username
REDDIT_PASSWORD For Reddit Reddit password
BLUESKY_HANDLE For Bluesky e.g., user.bsky.social
BLUESKY_PASSWORD For Bluesky App password from Settings

Usage

CLI

# Reddit only (default)
python agent.py "What are Python best practices in 2024?"

# Both sources
python agent.py "AI trends" --sources reddit bluesky

# No TUI (for scripts)
python agent.py "Query" --no-tui

Interactive

python agent.py
# Prompts for task and sources

Programmatic

from agent import run_agent

report = run_agent(
    "What are Python best practices?",
    sources=["reddit"],
    show_tui=False
)
print(report)

Tools Available

Tool Description
search_reddit Search posts in a subreddit
get_reddit_post_with_comments Get post + comments (2k word limit)
search_bluesky Search Bluesky (needs auth)
get_bluesky_thread Get thread + replies (2k word limit)

License

MIT

Metadata

Release files for social-search-agent 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for social-search-agent 0.1.2
File Size Uploaded
social_search_agent-0.1.2.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for social-search-agent 0.1.2
File Interpreter ABI Platform
social_search_agent-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / social_search_agent-0.1.2.tar.gz

Download URL social_search_agent-0.1.2.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f8380c326ee00eece601e884eeb5806ba9e64e584ec6e2de408bf5ac139ade47
BLAKE2b-256 checksum
How to use checksums
1113b858e182a36844dc29cf6df12747f5f064a0cd323ef7a6929770b41a5f26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / social_search_agent-0.1.2-py3-none-any.whl

Download URL social_search_agent-0.1.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f2976747503d764d9c9d5c01651badc6905c41a09a0471bdb5002282d6f1429
BLAKE2b-256 checksum
How to use checksums
94dfc7f64df6f829dc3341bbd7721dd4bbdd148a7ee7b229eabc7b2fa7f27c28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page