THREAD ASSISTANT

Intelligence-to-Content Pipeline — Agent #3 in LUX System

LUX Agent Ecosystem
🛡
SENTINEL
Post-Entry Risk Monitor
gap-based LTV monitoring · dynamic intervals
📡
PROTOCOL RADAR
Pre-Entry Discovery
risk scoring · airdrop detection · ROI calc
🧵
THREAD ASSISTANT
Content Pipeline
data + news → publishable content
apy_scanner.py — shared data layer
The Sandwich Flow — Grok → Claude → Grok
STEP 1
🔍
GROK — RESEARCH
raw material
STEP 2
🧠
CLAUDE — ANALYSIS
structured content
STEP 3
GROK — WRITING
5 Operating Modes
MODE 1
reactive_news
Auto morning scan. Grok scrapes X, Claude scores ≥7 → draft post + Telegram alert
MODE 2
portfolio_report
Monthly report from yield_history. Winners, losers, risk notes, outlook
MODE 3
repo_publish
Topic/file → 6-tweet thread + LinkedIn post + YouTube script
MODE 4
reply_engine
Comment analysis. 2 reply strategies: safe/professional vs bold/provocative
MODE 5
session_recap
Building in public. What was built, discovered, decided, next steps

DATA SOURCES

lux_data.json
Positions, LTV, gap, health — SOURCE OF TRUTH for all agents
yield_history.json
34 days of daily P&L, by_protocol breakdown, ROI metrics
sentinel_state.json
Alert history, risk levels, last check timestamps
media_registry.json
8 visual assets with tags for automatic media selection
lux_personality.md
λ Forensics tone: sarcastico, analitico, dati al decimale
config.json
Wallets, news keywords, thresholds, schedule

OUTPUT DESTINATIONS

thread_output.json
Full operational package with tweets, LinkedIn, YouTube, checklist
lux_data.json[content]
Drafts array → LUX Dashboard Content tab (last 20)
Telegram
Alert preview + draft notification via send_telegram()
LUX Dashboard
Content tab: draft cards, platform badges, live chat edit, Apply button
{ mode: "repo_publish", topic: "sentinel", platforms: { x_thread: { tweets: [{index, text, media}] }, linkedin: { text: "..." }, youtube: { sections: [{time, type, text}] } }, checklist: ["...", "..."] }

📊 DASHBOARD INTEGRATION — CONTENT TAB

Draft Cards
Each generated content package appears as a card with topic, timestamp, and platform badges
Platform Toggle
Click X Thread / LinkedIn / YouTube badges to switch view. Active badge glows, content updates
Status Cycle
Click status badge to cycle: draft → ready → published. Persisted in localStorage
LUX Chat + Apply
Chat widget with draft context injection. Ask LUX to rewrite, then Apply to update the draft live
λ FORENSICS — ON-CHAIN TRUTH, NO SPIN