Autonomous AI Tool Factory β Scrapes AI news nightly, identifies trending topics, and autonomously builds, tests, and publishes Python developer tools to GitHub.
Inspired by the "OpenClaw" concept: a fully automated pipeline that stays ahead of AI news by generating usable tools the morning news drops.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β GitHub Actions (FREE scheduler) β
β Cron: 2:00 AM UTC daily β
ββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββΌββββββββββββββββββββββ
β main.py (Orchestrator) β
ββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββ
β β β β
ββββββββββΌβββ ββββββΌβββββ βββΌβββββββββ β
β SCRAPERS β βSTORAGE β βANALYZER β β
β β β β β β β
β YouTube β β SQLite β β LLM β β
β HN API ββ β (news) ββ β topic β β
β Reddit β β β β identify β β
β ArXiv β βChromaDB β ββββββββββββ β
β Dev.to β β(vectors)β β
β GitHub β β βββββββββββ β
βββββββββββββ β
ββββββββββββββΌβββββββββββββ
β IDEATION (Groq LLM) β
β 3-5 tool ideas/topic β
ββββββββββββββ¬βββββββββββββ
β
ββββββββββββββΌβββββββββββββ
β DEVELOPER (Groq LLM) β
β Code gen β pytest β
β Up to 5 fix loops β
ββββββββββββββ¬βββββββββββββ
β
ββββββββββββββΌβββββββββββββ
β PUBLISHER (PyGitHub) β
β β autoaiforge-tools β
β /tools/YYYY-MM-DD/ β
βββββββββββββββββββββββββββ
| Component | Service | Cost |
|---|---|---|
| Scheduler | GitHub Actions cron | FREE (unlimited for public repos) |
| LLM (primary) | Groq API (llama-3.1-70b) | FREE (14,400 req/day) |
| LLM (fallback) | Together.ai | FREE ($25 credit) |
| Embeddings | sentence-transformers (local) | FREE |
| Vector DB | ChromaDB (in-memory, per-run) | FREE |
| Raw storage | SQLite (committed to repo) | FREE |
| News: YouTube | YouTube Data API v3 | FREE (10,000 units/day) |
| News: HN | HN Algolia API | FREE (no auth) |
| News: Reddit | Reddit JSON API | FREE (no auth) |
| News: ArXiv | ArXiv export API | FREE |
| News: Dev.to | Dev.to API | FREE |
| Publishing | GitHub API (PyGitHub) | FREE |
Total cost: $0/month
git clone https://github.com/YOUR_USERNAME/autoaiforge.git
cd autoaiforge
bash setup.sh# 1. Install
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
# 2. Configure
cp .env.example .env
# Edit .env and add your GROQ_API_KEY
# 3. Run
python main.pygit init
git add .
git commit -m "Initial AutoAIForge setup"
gh repo create autoaiforge --public --pushGo to Settings β Secrets and variables β Actions and add:
| Secret | Value | Where to get it |
|---|---|---|
GROQ_API_KEY |
Your Groq key | console.groq.com β Free signup |
YOUTUBE_API_KEY |
YouTube key | Google Cloud Console β Enable YouTube Data API v3 |
TOGETHER_API_KEY |
Together.ai key | api.together.ai β Free $25 credit |
WEBHOOK_URL |
Slack/Discord webhook | Optional: daily summary notifications |
GITHUB_TOKENis automatically provided by GitHub Actions β no setup needed.
- Go to Actions tab β Enable workflows
- Click AutoAIForge Daily Run β Run workflow for an immediate test
- Check the autoaiforge-tools repo for output
The pipeline runs automatically at 2:00 AM UTC every night.
| Step | What happens |
|---|---|
| 1. Scrape | Fetches AI news from YouTube, HackerNews, Reddit, ArXiv, Dev.to, GitHub |
| 2. Store | Saves raw items to SQLite; builds vector index (ChromaDB) |
| 3. Analyze | LLM identifies top 10 trending AI topics |
| 4. Ideate | LLM generates 3-5 Python tool ideas per topic |
| 5. Build | LLM generates code + tests; pytest validates; up to 5 auto-fix loops |
| 6. Publish | Passing tools committed to autoaiforge-tools repo |
The autoaiforge-tools repo (auto-created) looks like:
autoaiforge-tools/
βββ INDEX.md β Daily index of all tools
βββ tools/
βββ 2025-01-15/
β βββ llm_benchmark_runner/
β β βββ llm_benchmark_runner.py
β β βββ test_llm_benchmark_runner.py
β β βββ requirements.txt
β β βββ README.md
β β βββ metadata.json
β βββ rag_pipeline_debugger/
β βββ ...
βββ 2025-01-16/
βββ ...
All config is via environment variables (.env locally, GitHub Secrets in Actions):
# Required (pick at least one LLM)
GROQ_API_KEY=gsk_...
# Optional
YOUTUBE_API_KEY=AIza...
TOGETHER_API_KEY=...
WEBHOOK_URL=https://hooks.slack.com/...
# Tuning (optional overrides)
TOP_TOPICS_COUNT=10 # Topics to identify per run
IDEAS_PER_TOPIC=3 # Tool ideas per topic
MAX_TOOLS_PER_RUN=5 # Cap on tools generated per night
MAX_CORRECTION_LOOPS=5 # LLM self-fix attempts per tool
NEWS_RETENTION_DAYS=30 # Days of news to keep in SQLite- Generated code runs inside a sandboxed subprocess with a 60s timeout
- GitHub Actions provides process-level isolation per job
- No sensitive data is embedded in generated tools
- All tools are published publicly β review the output before using in production
# Run full pipeline
python main.py
# Run individual steps
python -c "from scraper.rss_scraper import scrape_all_free_sources; print(len(scrape_all_free_sources()))"
# Run tests
pytest tests/ -v
# Dry run (scrape + analyze, no tools built)
MAX_TOOLS_PER_RUN=0 python main.py- Add a news source: Create a new scraper in
scraper/and call it frommain.py - Change LLM provider: Add to
PROVIDERSlist inutils/llm_client.py - Change schedule: Edit
cronin.github/workflows/autoaiforge.yml - Add notifications: Set
WEBHOOK_URLfor Slack/Discord summaries
Built with β€οΈ and π€ | Zero cost, fully autonomous