chore: update opencode submodule — no-API-key auto-pipeline
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)
This commit is contained in:
1 parent
5b8b214d57
commit
ca6b8a2eb2
2 files changed
+27
-37
No files matched your search
@@ -1,60 +1,50 @@
|
|||||||
# Research & Improve — Scrape AI agent research, generate proposals
|
# Research & Improve — Trigger research analysis from Forgejo
|
||||||
# Machine A (Forgejo Runner): scrape + commit pipeline signals
|
#
|
||||||
# Machine B (Docker Host): auto-pipeline.sh detects signals, processes with agents
|
# 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:
|
# Architecture:
|
||||||
# ┌─────────────────┐ git push ┌────────────────────┐
|
# Forgejo Runner ── push trigger file ──► Git
|
||||||
# │ Forgejo Action │ ──────────────► │ OpenCode Container │
|
# │
|
||||||
# │ (cron: weekly) │ main │ (cron: every 2h) │
|
# Docker Host (cron) ◄── git pull ────────────────┘
|
||||||
# │ │ │ │
|
# auto-pipeline.sh:
|
||||||
# │ 1. Scrape │ │ 1. git pull │
|
# ├─ Scrape Github + Arxiv (curl, no API key)
|
||||||
# │ 2. LLM analyze │ │ 2. Detect signals │
|
# ├─ opencode run --auto (uses built-in LLM provider)
|
||||||
# │ 3. Write │ │ 3. opencode run │
|
# │ → research-agent analyzes → generates proposals
|
||||||
# │ pipeline/* │ │ → analyze+fix │
|
# ├─ dev-agent implements low-risk improvements
|
||||||
# │ 4. git commit │ │ → learning+heal │
|
# ├─ learning-agent learns from changes
|
||||||
# └─────────────────┘ │ 4. commit+push back│
|
# ├─ heal.sh --apply
|
||||||
# └────────────────────┘
|
# └─ git commit + push back
|
||||||
|
#
|
||||||
|
# No external API key needed — OpenCode uses its own model provider.
|
||||||
name: 🔬 Research & Improve
|
name: 🔬 Research & Improve
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 6 * * 1' # Every Monday at 6:00 UTC
|
- cron: '0 6 * * 1' # Every Monday 6:00 UTC
|
||||||
workflow_dispatch: # Manual trigger
|
workflow_dispatch: # Manual trigger
|
||||||
|
|
||||||
env:
|
|
||||||
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: research-improve-${{ forgeji.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
research:
|
trigger:
|
||||||
runs-on: debian-12
|
runs-on: debian-12
|
||||||
steps:
|
steps:
|
||||||
- uses: https://forgejo.tordais.cc/actions/checkout@v4
|
- uses: https://forgejo.tordais.cc/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: 🔍 Scrape AI agent research
|
- name: 🚀 Trigger research pipeline
|
||||||
run: bash .opencode/scripts/research-scrape.sh
|
|
||||||
env:
|
|
||||||
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
|
|
||||||
|
|
||||||
- name: 📦 Commit proposals to main
|
|
||||||
run: |
|
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.name "openpipe-research"
|
||||||
git config user.email "research@opencode.bot"
|
git config user.email "research@opencode.bot"
|
||||||
|
git add .opencode/local/research/force-run
|
||||||
git add .opencode/local/pipeline/ .opencode/local/research/
|
|
||||||
|
|
||||||
if git diff --cached --quiet; then
|
if git diff --cached --quiet; then
|
||||||
echo "No new proposals — nothing to commit."
|
echo "No changes — trigger already active."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git commit -m "chore: research proposals $(date -u +'%Y-%m-%d') [skip-ci]"
|
git commit -m "chore: force research run $(date -u +'%Y-%m-%d') [skip-ci]"
|
||||||
git push origin HEAD
|
git push origin HEAD
|
||||||
|
echo "✅ Trigger pushed — Docker host cron will pick it up within 2h."
|
||||||
env:
|
|
||||||
GIT_TERMINAL_PROMPT: 0
|
|
||||||
+1
-1
Submodule .opencode updated: 54964f4ad5...4e675483eb.
Reference in new issue
Block a user