Skip to main content

Research agent using GPT-5.2 to search Reddit and Bluesky

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

social_search_agent-0.1.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

social_search_agent-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file social_search_agent-0.1.1.tar.gz.

File metadata

  • Download URL: social_search_agent-0.1.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for social_search_agent-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a423a8b0ccd944d3cdbbef98d9d9d33a2372fa6d2eda7625c72f1c4a0f2ee657
MD5 c1fe81b89b752381e0c98a5a8001f061
BLAKE2b-256 0968b2c4dc9d10260f562658c5668b8fc8c14556bdcb04074e3ce751b4f40eda

See more details on using hashes here.

File details

Details for the file social_search_agent-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for social_search_agent-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb4104f74735ed9ea7c15cada37a2f280cfd7c9f638e40d05dcd7e844af1a5c2
MD5 2a4102de7eff4bca99f6731f3c3d2f8c
BLAKE2b-256 54a3da7d226fa2b0e8fe11bce6e626812da616c68051d52bbd189bbc7c1181c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page