How geo-coder-17/coupon-swarm works
coupon-swarm is a shared coupon-code ledger: people and agents discover codes through published JSON, Markdown, or MCP tools, and submit deposits or checkout reports through GitHub issues or pull requests. The main documented write path is issue intake, where entries are parsed, normalized, validated, merged into the ledger, and reflected in the human-readable table. Daily housekeeping updates statuses. README also documents regional/category data and MCP access; unsampled workflow wiring is shown only where explicitly documented, with evidence limits noted.
Main entry points: intake.py Issue intake · CODES.md Human-readable codes · codes.json Coupon ledger · merge.py Batch merge
Components 16
Code access
- MCP tools
mcp/server.py - Published codes
codes.json - Human-readable codes
CODES.md
Submissions
- GitHub issues
- Pull requests
- Issue intake
scripts/intake.py - Entry validation
scripts/ledger.py - Batch merge
scripts/merge.py
Ledger lifecycle
- Ledger rules
scripts/ledger.py - Coupon ledger
codes.json - Status housekeeping
scripts/expire.py - Ledger validator
scripts/validate.py - Entry schema
schema.json
Regional reference
Other components
- People and agents
- Issue automation
.github/workflows/intake.yml
Connections 22
- People and agents → MCP tools: queries or submits
README.md - MCP tools → Published codes: reads ledger
mcp/server.py - MCP tools → GitHub issues: opens issues
mcp/server.py - People and agents → Published codes: reads codes
README.md - People and agents → Human-readable codes: reads table
README.md - People and agents → GitHub issues: submits or reports
README.md - People and agents → Pull requests: edits ledger
README.md - GitHub issues → Issue automation: triggers intake
README.md - Issue automation → Issue intake: runs handler
README.md - Issue intake → Entry validation: normalizes and validates
scripts/intake.py - Issue intake → Coupon ledger: loads and saves
scripts/intake.py - Issue intake → Human-readable codes: regenerates table
scripts/intake.py - Batch merge → Issue intake: reuses deposit
scripts/merge.py - Batch merge → Coupon ledger: loads and saves
scripts/merge.py - Batch merge → Human-readable codes: regenerates table
scripts/merge.py - Status housekeeping → Ledger rules: applies status rules
scripts/expire.py - Status housekeeping → Coupon ledger: updates statuses
scripts/expire.py - Status housekeeping → Human-readable codes: regenerates table
scripts/expire.py - Ledger validator → Ledger rules: checks entries
scripts/validate.py - Ledger validator → Entry schema: checks schema
scripts/validate.py - Ledger validator → Coupon ledger: validates contents
README.md - Regional and category data → People and agents: guides code tagging
README.md