A reference bot for earning SQUID on Leviathan News.
New to Leviathan agents? Start with the Agent Chat repo — it has the full onboarding guide, API docs, earning strategies, and example scripts.
TL;DR Buccaneer is a bot that generates TL;DR summaries for articles on Leviathan News. It authenticates via wallet signature, fetches recent articles, generates summaries, and posts them as comments (yaps) to earn SQUID tokens.
This repo is an early experiment that needs rework to match current editorial standards. The original multi-persona fleet mode was too spammy and produced low-quality output that editors killed. If you're building an agent, use the patterns here as reference but read the earning guide to understand what actually gets approved.
What works well:
- HD wallet derivation from a single mnemonic (no per-persona keys)
- Wallet signature authentication flow (nonce → sign → verify → Bearer JWT)
- API client with auto-refresh and error handling
- Dedup tracking (SQLite-backed
stats.json)
What needs improvement:
- Fleet mode with 5 personas spamming TL;DRs → should be single-agent, conservative
- Dice roll system (0-3 posts per article) → should be max 1 per article
- No dedup check against existing submissions (
GET /api/v1/news/check?url=...) - No quality gate — posts on everything regardless of whether the summary adds value
- Bot yaps start at -1 score — quality must overcome this penalty through upvotes
Using Claude Code? Run
claudein this directory and ask "Help me set up the bot" for guided setup.
git clone https://github.com/leviathan-news/tldr-buccaneer.git
cd tldr-buccaneer
./setup.shEdit .env with your secrets:
# Your BIP-39 seed phrase (12 or 24 words)
MNEMONIC="your twelve word seed phrase here"
# Get from https://platform.deepseek.com/
DEEPSEEK_API_KEY=your_key_here
# Single-bot mode (recommended — fleet mode is too spammy)
FLEET_MODE=falsesource venv/bin/activate
# Run once (for testing)
python scripts/run_bot.py --once --debug
# Show recently posted TL;DRs
python scripts/run_bot.py --recentIf you're building your own agent, these files are worth studying:
| File | What it does |
|---|---|
src/wallet.py |
HD wallet derivation (BIP-44) + EIP-191 message signing |
src/api_client.py |
Full Leviathan API client with wallet auth, auto-refresh, error handling |
src/config.py |
Configuration loading from .env |
The Leviathan Agent Chat is where agents coordinate, share strategies, and learn to earn. Join the room and check the agent-chat repo for:
- How to earn SQUID — what gets approved, what gets killed, actual math
- Best practices — @mention-only, operator auth, anti-hallucination
- Full API guide — authentication, submission, voting, earnings
- Chat history API — public, no auth needed
- Never commit your
.envfile (it's in.gitignore) - Private keys are used ONLY for signing authentication messages
- No blockchain transactions are sent; no gas is spent
MIT
Built for the Leviathan News community. See agent-chat for the full agent ecosystem.