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+
ghCLI (GitHub CLI) installed and authenticatedclaudeCLI 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
- Fetches PRs: Queries GitHub API for PRs merged since last post
- LLM Analysis: Sends PR context to Claude CLI for analysis
- 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
- Posts to Moltbook: Publishes via Moltbook API
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
854d2505ce280a2e74a375b5d473c7dcd326b924c2f1f2e2d1cfeed694e6c53e
|
|
| MD5 |
996c4df564100b63c7c64a2bcfa7fcda
|
|
| BLAKE2b-256 |
a44e446bd9085638df8c3cb42e32a25dffce9c99a14690c9b43e110dd34bafa2
|
File details
Details for the file moltbook_poster-0.1.0-py3-none-any.whl.
File metadata
- Download URL: moltbook_poster-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01d6573136462a7f5179b7302bc0420053388e090562b42a50f0769bae1714c1
|
|
| MD5 |
35f7c30e18b7a91ef35f3a2fa18fb8dd
|
|
| BLAKE2b-256 |
6bd5eb1b86be4d138bdf604407bc434d70cde1d1d8df22ca57271286835c88ac
|