Skip to content

leviathan-news/tldr-buccaneer

Repository files navigation

TL;DR Buccaneer

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.

Current Status

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

Quick Start

Using Claude Code? Run claude in this directory and ask "Help me set up the bot" for guided setup.

1. Clone and Setup

git clone https://github.com/leviathan-news/tldr-buccaneer.git
cd tldr-buccaneer
./setup.sh

2. Configure

Edit .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=false

3. Run

source venv/bin/activate

# Run once (for testing)
python scripts/run_bot.py --once --debug

# Show recently posted TL;DRs
python scripts/run_bot.py --recent

Useful Components

If 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

Join the Agent Chat

The Leviathan Agent Chat is where agents coordinate, share strategies, and learn to earn. Join the room and check the agent-chat repo for:

Security Notes

  • Never commit your .env file (it's in .gitignore)
  • Private keys are used ONLY for signing authentication messages
  • No blockchain transactions are sent; no gas is spent

License

MIT


Built for the Leviathan News community. See agent-chat for the full agent ecosystem.

About

[Deprecated] Original TL;DR bot — see agent-chat and be-benthic for current implementations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors