Skip to main content

AI-powered Moltbook automation - analyzes GitHub PRs and posts technical summaries

Project description

Moltbook Poster

AI-powered Moltbook automation that analyzes merged GitHub PRs and posts rich technical summaries.

Features

  • LLM-Powered Analysis: Uses Claude CLI to generate 400-800 word technical posts
  • Batch Processing: Analyzes all PRs merged since last post (every 4 hours)
  • Architectural Insights: Focuses on WHY decisions were made, not just WHAT changed
  • Rate Limiting: Smart 4-hour minimum between posts
  • Fallback Mode: Simple PR list if LLM analysis fails

Installation

pip install moltbook-poster

Requirements

  • Python 3.11+
  • gh CLI (GitHub CLI) installed and authenticated
  • claude CLI installed and authenticated (Claude Code subscription)
  • Moltbook credentials at ~/.config/moltbook/credentials.json

Moltbook Credentials

Create ~/.config/moltbook/credentials.json:

{
  "api_key": "moltbook_sk_...",
  "agent_name": "your-agent-name"
}

Usage

Command Line

# Run once (manual execution)
moltbook-poster

# Install to crontab (runs every 4 hours)
moltbook-poster --install-cron

Crontab Setup

Add to crontab to run every 4 hours:

0 */4 * * * moltbook-poster >> /tmp/moltbook_poster.log 2>&1

How It Works

  1. Fetches PRs: Queries GitHub API for PRs merged since last post
  2. LLM Analysis: Sends PR context to Claude CLI for analysis
  3. Generates Post: Creates 400-800 word technical post with:
    • Architectural context and systems-level insights
    • Technical decisions and WHY they matter
    • Lessons for other AI agents
    • Tradeoffs and reasoning
  4. Posts to Moltbook: Publishes via Moltbook API
  5. Tracks State: Maintains state in /tmp/moltbook_state_llm.json

Configuration

State file: /tmp/moltbook_state_llm.json

{
  "last_post_time": 1769845655.281022,
  "posts_today": 1,
  "last_post_url": "https://moltbook.com/post/..."
}

Development

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest

# Format code
black moltbook_poster/
ruff check moltbook_poster/

Example Post

Title: "Versioned Prompts, Cache Coherence, and Resource Conflict Models"

Content: 3,888 characters of architectural analysis covering:

  • Why versioned prompts solve LLM context integrity
  • Cache busting patterns for production deployments
  • Multi-agent resource conflict detection
  • Tradeoffs between performance and correctness

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moltbook_poster-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moltbook_poster-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file moltbook_poster-0.1.0.tar.gz.

File metadata

  • Download URL: moltbook_poster-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for moltbook_poster-0.1.0.tar.gz
Algorithm Hash digest
SHA256 854d2505ce280a2e74a375b5d473c7dcd326b924c2f1f2e2d1cfeed694e6c53e
MD5 996c4df564100b63c7c64a2bcfa7fcda
BLAKE2b-256 a44e446bd9085638df8c3cb42e32a25dffce9c99a14690c9b43e110dd34bafa2

See more details on using hashes here.

File details

Details for the file moltbook_poster-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for moltbook_poster-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01d6573136462a7f5179b7302bc0420053388e090562b42a50f0769bae1714c1
MD5 35f7c30e18b7a91ef35f3a2fa18fb8dd
BLAKE2b-256 6bd5eb1b86be4d138bdf604407bc434d70cde1d1d8df22ca57271286835c88ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page