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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| moltbook_poster-0.1.0.tar.gz | 6.3 kB | Without provenance | Details for moltbook_poster-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moltbook_poster-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for moltbook_poster-0.1.0-py3-none-any.whl |
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
|
Security for moltbook-poster 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.