A Rust CLI tool that predicts tweet engagement using patterns from X's Phoenix recommendation algorithm.
Learning Project: This CLI uses heuristic-based predictions inspired by the Phoenix model's 19 engagement action types. It's designed to help you understand how modern recommendation systems think about engagement.
Takes your tweet draft and predicts how likely users are to:
- โค๏ธ Like it
- ๐ฌ Reply to it
- ๐ Repost it
- ๐ Share it
- ๐ค Click your profile
- โ Follow you
- And 13 more engagement types...
It also detects negative signals (things that might make users block/mute/report).
cargo install banger
## For contributing
```bash
cd banger
cargo build --release
# Basic usage
cargo run -- "Your tweet draft here"
# Example: Analyze a question tweet
cargo run -- "What's your favorite programming language and why?"
# Example: Check a promotional tweet
cargo run -- "๐ Just launched my new project! Check it out!"This tool mirrors the architecture of X's Phoenix recommendation model:
-
Feature Extraction (
analyzer.rs)- Extracts signals: length, hashtags, mentions, questions, media hints
-
Multi-Action Prediction (
scorer.rs)- Predicts 19 engagement types (same as Phoenix!)
- Uses heuristics inspired by the real model's patterns
-
Weighted Scoring
- Positive actions (like, share) boost your score
- Negative actions (block, mute) reduce your score
This tool predicts all 19 engagement types from X's actual algorithm:
| Positive Actions | Neutral Actions | Negative Actions |
|---|---|---|
| Favorite | Photo Expand | Not Interested |
| Reply | Click | Block Author |
| Repost | Profile Click | Mute Author |
| Share | Dwell | Report |
| Quote | Video View | |
| Follow Author |
- ๐ง How X predicts engagement with multi-action models
- โ๏ธ How weighted scoring combines positive and negative signals
- ๐ What content features drive different engagement types
- ๐ฆ Building production CLIs in Rust
