Autonomous AI agent team that scales, maintains, and improves open-source repositories. Runs 25 VDays/day on a $5/day OpenRouter budget with 5 specialized agents.
| Agent | Role | Model Tier |
|---|---|---|
| Scout | Scans repos, audits quality, prioritizes work queue | micro |
| Builder | Clones repo, generates upgrades, repair cascade, pushes releases | fast -> standard -> engineering |
| Demo | Creates/updates SEO-optimized demo pages, deploys to VPS | fast |
| Maintainer | Triages issues, labels, auto-responds, health scoring | micro |
| Critic | Reviews Builder output, runs quality gates, daily observation | micro |
git clone https://github.com/AdametherzLab/OSSFactory-Scaler.git
cd OSSFactory-Scaler
bash scripts/setup.shCopy .env.example to .env and fill in your keys:
cp .env.example .envRequired:
OPENROUTER_API_KEY— Your OpenRouter API keyGITHUB_ORG— GitHub org/user to scan (default: AdametherzLab)
Optional:
OSS_BOT_TOKEN/TELEGRAM_USER_ID— Telegram notificationsVPS_HOST/VPS_USER/SSH_KEY_PATH— Demo page deploymentDAILY_BUDGET_USD— Daily spending limit (default: $5)VDAYS_PER_DAY— Virtual days per real day (default: 25)
# Run directly
bun run src/index.ts
# Run with PM2
npx pm2 start ecosystem.config.cjs
# Run tests
bun testEach VDay (~58 minutes), the agents run sequentially:
- Scout scans repos via
gh repo list, audits quality, queues work items - Builder picks top work item, clones repo, generates upgrade via AI cascade, runs quality gates
- Critic reviews recent work, writes 333-char observation
- Demo generates SEO demo pages for recently shipped repos, deploys via SCP
- Maintainer triages open issues, labels them, computes health scores
Every 5th VDay, a team meeting fires with a Slicing Pie leaderboard.
| Action | Points |
|---|---|
| Ship a release | +10 |
| Create demo page | +8 |
| Fix/triage an issue | +5 |
| Update demo page | +5 |
| Quality improvement | +3 |
| Successful review | +2 |
| Failed ship | -3 |
| Regression introduced | -5 |
| Budget overrun | -2 |
- Compile —
bun buildpasses - Tests —
bun testwith >= 50% pass rate - README — >= 800 chars with install + usage sections
- Security — No eval(), hardcoded secrets, or IP addresses
- Ship-ready — Composite >= 70/100
| Tier | Model | Cost (in/out per 1M) |
|---|---|---|
| micro | Gemini 2.5 Flash Lite | $0.075 / $0.30 |
| fast | Gemini 2.5 Flash | $0.15 / $0.60 |
| standard | Kimi K2.5 | $0.45 / $2.20 |
| engineering | DeepSeek R1 | $0.55 / $2.19 |
All persisted in data/ (gitignored):
scaler-state.json— Work queue, audits, completed worktoken-usage.json— Per-model spend logslicing-pie.json— Agent reward historybuilds/— Temporary clone directory
- Bun runtime
- GitHub CLI (
gh) authenticated - OpenRouter API key
MIT