XFactor is a complete, autonomous X (Twitter) growth system built for Hermes Agent. It handles your entire X growth loop - research, content creation, engagement, and analytics - without manual effort.
curl -fsSL https://raw.githubusercontent.com/hamzaashergill/xfactor/main/setup.sh | bashOr via Hermes Skill Tap:
hermes skills tap add hamzaashergill/xfactor
hermes skills install xfactor| Time | Action | Description |
|---|---|---|
| 8:00 AM | π§΅ Research + Thread | Searches X for trending AI topics, generates a 6-tweet educational thread |
| 10:00 AM | π¬ Research + Post | Searches X, posts a single value-add insight |
| 2:00 PM | β€οΈ Engagement Run | Likes 20-30 posts, follows 5 productive accounts, replies to mentions |
| 6:00 PM | π Research + Evening Post | Searches X, posts a hot take or reflection |
| Every 30m | π Dashboard Refresh | Fetches latest follower count, post metrics, engagement data |
- Research-first content: Every post starts with X search to find what's trending in your niche
- 3 posts/day: Thread + single + evening post with 2-hour gaps
- Auto engagement: 20-30 likes per run on curated productive accounts
- Smart follows: Max 5/day, only verified AI/tech builders
- Mention reply automation: Every mention gets a thoughtful, topic-matched reply
- Live dashboard: 5-view analytics at localhost:3000
- Growth tracking: Follower chart, posting heatmap, engagement timeline
- Hermes Agent (for cron scheduling)
- X Developer Account (free tier works)
- macOS or Linux
- xurl CLI (installed automatically)
curl -fsSL https://raw.githubusercontent.com/xdevplatform/xurl/main/install.sh | bash
# Register your X API app
xurl auth apps add xfactor --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET
# Authenticate (opens browser)
xurl auth oauth2 --app xfactor YOUR_HANDLE
xurl auth default xfactor
# Verify
xurl whoamiNeed credentials? Go to https://developer.x.com/en/portal/dashboard β Create an app β OAuth 2.0 β Get Client ID + Client Secret. Set callback URI to
http://localhost:8080/callback.
cd ~/.hermes/x-dashboard && python3 -m http.server 3000
open http://localhost:3000In Hermes Agent, create these cron jobs:
| Job | Script | Schedule |
|---|---|---|
| Morning Thread | x-daily-poster.py morning |
0 8 * * * |
| Afternoon Post | x-daily-poster.py afternoon |
0 10 * * * |
| Engagement | x-engagement.py |
0 14 * * * |
| Evening Post | x-daily-poster.py evening |
0 18 * * * |
| Dashboard Refresh | x-dashboard-collector.py |
*/30 * * * * |
python3 ~/.hermes/scripts/x-daily-poster.py afternoonOpen http://localhost:3000 to see:
- Dashboard: KPIs, follower growth chart, top post, post table, activity feed, growth calendar
- Analytics: Total likes/RTs/engagement, posting heatmap, engagement breakdown
- Content: Tracked posts, lifetime stats, recent content list with View links
- Schedule: All cron jobs visualized on cards with descriptions
- Engagement: Engagement count, timeline of all likes/follows/replies
Edit these sections in ~/.hermes/skills/social-media/xfactor/scripts/:
In x-daily-poster.py:
SEARCH_QUERIES = ["your niche topic", "related topic", "another topic"]In x-engagement.py:
PRODUCTIVE_ACCOUNTS = ["influencer1", "builder2", "expert3"]In x-daily-poster.py, the content generation functions:
generate_morning_thread()- 6-tweet threadsgenerate_single_post()- afternoon singlesgenerate_evening_post()- evening postsVALUABLE_REPLIESinx-engagement.py- reply templates
Adjust cron job schedules in Hermes to match your audience's timezone.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β XFactor Engine β
βββββββββββββββββββ¬ββββββββββββββββββββ¬ββββββββββββββββββββββββ€
β Content (3x) β Engagement (1x) β Analytics (30min) β
βββββββββββββββββββΌββββββββββββββββββββΌββββββββββββββββββββββββ€
β xurl search β xurl like β xurl whoami β
β xurl post β xurl follow β xurl user timeline β
β xurl reply β xurl reply β xurl mentions β
βββββββββββββββββββ΄ββββββββββββββββββββ΄ββββββββββββββββββββββββ
β β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Hermes Agent (cron jobs) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
~/.hermes/
βββ skills/social-media/xfactor/
β βββ SKILL.md
β βββ scripts/
β βββ x-daily-poster.py # Research + post (3 modes)
β βββ x-engagement.py # Likes, follows, replies
β βββ x-dashboard-collector.py # Data fetcher
βββ x-dashboard/
β βββ index.html # Analytics dashboard
βββ scripts/ # Symlinked for cron
β βββ x-daily-poster.py -> ..
β βββ x-engagement.py -> ..
β βββ x-dashboard-collector.py -> ..
βββ x-posts.log # Post history
βββ x-engagement.log # Engagement history
βββ x-research.log # Research findings
| β Works | β Blocked |
|---|---|
| Post original content | Reply to strangers |
| Reply to mentions | Quote-post strangers |
| Reply in your threads | |
| Like any post | |
| Follow any account | |
| Search & research |
MIT - use freely, modify, share.
- xurl - Official X API CLI
- Hermes Agent - AI Agent framework
- Python 3 - Scripting
- Vanilla HTML/CSS/JS - Dashboard
