Updates submodule with self-contained auto-pipeline.sh: - Includes Github trending + Arxiv scraping - Uses opencode run --auto for analysis (no external API key) - Detects force-run triggers from Forgejo Action - Full cycle: research → analyze → implement → learn → heal → commit Updates .forgejo/workflows/research-improve.yml: - Now just pushes a trigger file (force-run) - No API key needed (Action is pure git operations)
51 lines
1.8 KiB
YAML
51 lines
1.8 KiB
YAML
# Research & Improve — Trigger research analysis from Forgejo
|
|
#
|
|
# This Action is a lightweight trigger. It writes a flag file to git.
|
|
# The Docker host cron (T2h) pulls, detects the flag, runs full pipeline.
|
|
#
|
|
# Architecture:
|
|
# Forgejo Runner ── push trigger file ──► Git
|
|
# │
|
|
# Docker Host (cron) ◄── git pull ────────────────┘
|
|
# auto-pipeline.sh:
|
|
# ├─ Scrape Github + Arxiv (curl, no API key)
|
|
# ├─ opencode run --auto (uses built-in LLM provider)
|
|
# │ → research-agent analyzes → generates proposals
|
|
# ├─ dev-agent implements low-risk improvements
|
|
# ├─ learning-agent learns from changes
|
|
# ├─ heal.sh --apply
|
|
# └─ git commit + push back
|
|
#
|
|
# No external API key needed — OpenCode uses its own model provider.
|
|
name: 🔬 Research & Improve
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 6 * * 1' # Every Monday 6:00 UTC
|
|
workflow_dispatch: # Manual trigger
|
|
|
|
jobs:
|
|
trigger:
|
|
runs-on: debian-12
|
|
steps:
|
|
- uses: https://forgejo.tordais.cc/actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: 🚀 Trigger research pipeline
|
|
run: |
|
|
mkdir -p .opencode/local/research
|
|
date -u +"%Y-%m-%dT%H:%M:%SZ" > .opencode/local/research/force-run
|
|
git config user.name "openpipe-research"
|
|
git config user.email "research@opencode.bot"
|
|
git add .opencode/local/research/force-run
|
|
|
|
if git diff --cached --quiet; then
|
|
echo "No changes — trigger already active."
|
|
exit 0
|
|
fi
|
|
|
|
git commit -m "chore: force research run $(date -u +'%Y-%m-%d') [skip-ci]"
|
|
git push origin HEAD
|
|
echo "✅ Trigger pushed — Docker host cron will pick it up within 2h."
|