stemedb/latent/ingest-reddit/macros/reddit-app-setup/README.md
jordan b3e8a9a058 feat: Multi-application expansion with chaos testing and community UI
Major additions:
- Community Next.js app (port 18187) for browsing claims with API docs
- stemedb-chaos crate: Fault injection, chaos testing, CRDT properties
- Latent ingestion system: Reddit/FDA ingesters with ADK-Go agents
- Disputed claims handling: Manual review workflows and validation
- Aphoria security scanner: New extractors (SQL injection, command
  injection, weak crypto, TLS version), policy-based ignores, UAT reports
- Docker infrastructure: Dockerfile, docker-compose.yml for full stack
- VulnBank demo: Intentionally vulnerable multi-language test corpus

SDK & API enhancements:
- Source registry handlers for tracking data provenance
- Metrics endpoint
- Skeptic filtering improvements

Code quality:
- Split 14 large files (>500 lines) into focused modules
- All files now under 500-line limit per project guidelines

Documentation:
- Chaos testing guide, circuit breakers, observability docs
- Phase 7 UAT documentation updates
- Martin Kleppmann technical writer agent

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 01:24:14 -07:00

985 B

Reddit App Setup Macro

Purpose

Automates the creation of a Reddit API application ("script" type) for use with the Latent Signal ingestor.

Justification

  • Legitimate access: User's own Reddit account
  • No API alternative: Reddit requires web UI to create apps
  • One-time setup: Run once to get credentials, then use API thereafter

What It Does

  1. Opens Reddit app preferences page
  2. Waits for user to log in (if needed)
  3. Creates a new "script" type application
  4. Extracts client_id and client_secret
  5. Writes credentials to ../../.env

Usage

# Install dependencies
pip install -r requirements.txt

# Run (browser will open)
python main.py

Manual Steps Required

  • You must log in to Reddit manually when prompted
  • The macro will wait for you to complete login before proceeding

Output

Creates/updates ../../.env with:

REDDIT_CLIENT_ID=<extracted>
REDDIT_CLIENT_SECRET=<extracted>
REDDIT_USER_AGENT=LatentSignalBot/0.1