How obris-dev/openmagpie works
OpenMagpie is an open-source social-listening system operated through a CLI. The main workflow is to configure feeds and watches, poll community sources into feed items, evaluate new items against natural-language criteria with an OpenAI-compatible LLM, and send matches to a chosen action. The graph also preserves documented backfill, activity, authentication, and delivery capabilities. Relationships beyond the excerpts are based on README workflow statements; unsampled subsystem paths identify their existing source directories, not inspected implementation details.
Main entry points: _service.py Run processing · actions Delivery actions · registry.py Action dispatch · feed_item.py Feed items
Components 25
CLI and access
- CLI commands
apps/cli/src/openmagpie/commands - CLI context
apps/cli/src/openmagpie/context.py - CLI API transport
apps/cli/src/openmagpie/http.py - Core API
apps/core - Authentication
apps/core/auth_api
Feed ingestion
- Feed configuration
apps/core/feeds - Source connectors
apps/core/sources/connectors - Feed polling
apps/core/feeds/services/polling.py - Feed items
apps/core/feeds/models/feed_item.py
Watch processing
- Watch configuration
apps/core/watches/services/watches - Watch triggering
apps/core/watches/operations/trigger.py - Run processing
apps/core/watches/services/runs/_service.py - Action batching
apps/core/watches/services/_run_batches.py - Action dispatch
apps/core/watches/actions/registry.py - Semantic filtering
apps/core/watches/actions/_engine_action.py - Backfill processing
apps/core/watches/operations/backfill.py - Activity and delivery records
apps/core/watches/models/watch_action_run.py
Engines and delivery
- Engine registry
apps/core/engine/registry.py - OpenAI-compatible engine
apps/core/engine/engines/openai_compat/engine.py - Delivery actions
apps/core/watches/actions
Other components
- Operator
- LLM endpoint
- Webhook receiver
- OpenBower
- Logs
Connections 27
- Operator → CLI commands: configures and operates
- CLI commands → CLI context: uses
apps/cli/src/openmagpie/commands/auth.py - CLI context → CLI API transport: creates
apps/cli/src/openmagpie/context.py - CLI API transport → Core API: sends API requests
apps/cli/src/openmagpie/http.py - Core API → Authentication: provides authentication
apps/core/watches/tests_delivery_routes.py - Operator → Feed configuration: curates sources
- Feed configuration → Source connectors: selects sources
- Source connectors → Feed polling: fetches posts
- Feed polling → Feed items: stores items
- Operator → Watch configuration: defines criteria
- Watch configuration → Watch triggering: configures watches
- Feed items → Watch triggering: supplies new posts
- Watch triggering → Run processing: triggers runs
- Run processing → Action batching: uses
apps/core/watches/services/runs/_service.py - Run processing → Action dispatch: dispatches actions
- Action dispatch → Semantic filtering: runs filter
- Semantic filtering → Engine registry: resolves engine
apps/core/watches/actions/_engine_action.py - Engine registry → OpenAI-compatible engine: registers engine
apps/core/engine/registry.py - OpenAI-compatible engine → LLM endpoint: scores posts
- Action dispatch → Delivery actions: runs delivery
- Delivery actions → Webhook receiver: sends matches
- Delivery actions → OpenBower: sends signals
- Delivery actions → Logs: writes matches
- Run processing → Activity and delivery records: records run results
- Operator → Backfill processing: requests backfill
- Backfill processing → Feed items: processes prior posts
- Operator → Activity and delivery records: reviews activity