Skip to main content

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

Metadata

Release files for moltbook-poster 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moltbook-poster 0.1.0
File Size Uploaded
moltbook_poster-0.1.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moltbook-poster 0.1.0
File Interpreter ABI Platform
moltbook_poster-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / moltbook_poster-0.1.0.tar.gz

Download URL moltbook_poster-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
854d2505ce280a2e74a375b5d473c7dcd326b924c2f1f2e2d1cfeed694e6c53e
BLAKE2b-256 checksum
How to use checksums
a44e446bd9085638df8c3cb42e32a25dffce9c99a14690c9b43e110dd34bafa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Release files / moltbook_poster-0.1.0-py3-none-any.whl

Download URL moltbook_poster-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01d6573136462a7f5179b7302bc0420053388e090562b42a50f0769bae1714c1
BLAKE2b-256 checksum
How to use checksums
6bd5eb1b86be4d138bdf604407bc434d70cde1d1d8df22ca57271286835c88ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page