Closed
Conversation
Add X as a second discovery platform alongside Reddit. The growth agent
now fetches from both platforms, scores candidates with the same Claude
pipeline, and routes approved replies to the correct platform.
New files:
- x-fetch.ts: X API v2 search fetcher (3 queries x 20 results, ~$0.30/day)
- x-reply.sh: OAuth 1.0a tweet reply script
Changes:
- growth.sh: Phase 1b fetches X posts when X_BEARER_TOKEN is set, merges
with Reddit data before Claude scoring
- growth-prompt.md: Multi-platform scoring prompt with platform-specific
qualification signals
- trigger-server.ts: POST /x-reply endpoint for tweet replies
- SPA helpers.ts: platform column in candidates DB, migration for existing DBs
- SPA main.ts: platform-aware candidate cards ("X Growth" vs "Reddit Growth"),
routes approve/edit to correct reply endpoint
- spa.test.ts: add platform field to test helper
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Member
Author
|
This feature request targets files in -- refactor/community-coordinator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New files
x-fetch.ts— X API batch fetcher with Bearer token auth, author expansions for bio/follower datax-reply.sh— OAuth 1.0a tweet reply script (HMAC-SHA1 signing via bun crypto)Modified files
growth.sh— Phase 1b: optional X fetch whenX_BEARER_TOKENis set, merges both platform datasetsgrowth-prompt.md— Multi-platform scoring prompt with X-specific qualification signalstrigger-server.ts—POST /x-replyendpoint for tweet replieshelpers.ts—platformcolumn in candidates DB (with migration for existing DBs)main.ts— Platform-aware candidate cards, reply routing to Reddit or Xspa.test.ts— Updated test helper with platform fieldEnv vars needed
X_BEARER_TOKENX_API_KEYX_API_SECRETX_ACCESS_TOKENX_ACCESS_SECRETTest plan
bash -npasses on all .sh filesbun test— 2104 tests pass (0 failures)X_BEARER_TOKENset, verify X posts appear in merged output🤖 Generated with Claude Code