added opencode integration

This commit is contained in:
Jimmy 2026-03-22 01:20:02 +01:00
parent 0a4f870f67
commit bfd320c5e9
11 changed files with 58 additions and 21 deletions

33
.github/workflows/opencode.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: opencode
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
jobs:
opencode:
if: |
contains(github.event.comment.body, ' /oc') ||
startsWith(github.event.comment.body, '/oc') ||
contains(github.event.comment.body, ' /opencode') ||
startsWith(github.event.comment.body, '/opencode')
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
pull-requests: read
issues: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Run opencode
uses: anomalyco/opencode/github@latest
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
with:
model: opencode/big-pickle

View file

@ -1 +1 @@
.ralph/events-20260321-235351.jsonl
.ralph/events-20260322-001241.jsonl

View file

@ -1 +1 @@
primary-20260321-235351
primary-20260322-001241

View file

@ -2,3 +2,4 @@
2026-03-21T23:53:51.588132Z INFO ralph: Spawning subprocess for TUI mode child_args=["-c", "ralph.yml", "-H", "builtin:code-assist", "run", "--rpc"]
2026-03-21T23:53:51.588162Z INFO ralph: TUI subprocess stderr redirected to log file log_file=/home/jimmy/inspection_app_n/prototoolagain/.ralph/diagnostics/logs/ralph-2026-03-22T00-53-51-588-32854.log
2026-03-21T23:53:51.588319Z INFO ralph: TUI running in subprocess RPC mode
2026-03-22T00:09:21.753198Z INFO ralph_tui::app: Ctrl+C detected, signaling abort

View file

@ -7,3 +7,9 @@
2026-03-21T23:59:04.846344Z  INFO ralph_core::event_loop: Looking for memories at: "/home/jimmy/inspection_app_n/prototoolagain/.ralph/agent/memories.md" (exists: false)
2026-03-21T23:59:04.846349Z  INFO ralph_core::event_loop: Successfully loaded 0 memories from store
2026-03-21T23:59:04.846352Z  INFO ralph_core::event_loop: Memory store is empty - no memories to inject
2026-03-22T00:08:06.435267Z  WARN ralph::loop_runner: Output indicated `ralph emit`, but no event became readable before fallback logic hat=ralph
2026-03-22T00:08:06.435436Z  INFO ralph_core::event_loop: Memory injection check: enabled=true, inject=Auto, workspace_root="/home/jimmy/inspection_app_n/prototoolagain"
2026-03-22T00:08:06.435450Z  INFO ralph_core::event_loop: Looking for memories at: "/home/jimmy/inspection_app_n/prototoolagain/.ralph/agent/memories.md" (exists: false)
2026-03-22T00:08:06.435455Z  INFO ralph_core::event_loop: Successfully loaded 0 memories from store
2026-03-22T00:08:06.435458Z  INFO ralph_core::event_loop: Memory store is empty - no memories to inject
2026-03-22T00:09:21.753530Z  WARN ralph::rpc_stdin: Failed to write to stdout, stopping emitter

View file

@ -0,0 +1,7 @@
2026-03-22T00:12:41.349334Z  WARN ralph::loop_runner: Interactive mode requested but stdout is not a TTY, falling back to autonomous
2026-03-22T00:12:41.349647Z  INFO ralph_core::event_loop: Memory injection check: enabled=true, inject=Auto, workspace_root="/home/jimmy/inspection_app_n/prototoolagain"
2026-03-22T00:12:41.349653Z  INFO ralph2026-03-22T00:13:10.085278Z INFO ralph_tui::app: Ctrl+C detected, signaling abort
_n/prototoolagain/.ralph/agent/memories.md" (exists: false)
2026-03-22T00:12:41.349657Z  INFO ralph_core::event_loop: Successfully loaded 0 memories from store
2026-03-22T00:12:41.349659Z  INFO ralph_core::event_loop: Memory store is empty - no memories to inject
2026-03-22T00:13:10.085422Z  WARN ralph::rpc_stdin: Failed to write to stdout, stopping emitter

View file

@ -0,0 +1 @@
{"ts":"2026-03-22T00:12:41.349526750+00:00","iteration":0,"hat":"loop","topic":"build.start","triggered":"planner","payload":"You are building a production-ready Inspection Reporting and Management web application from scratch. The GitHub remote URL is: https://github.com/pingud98/prototoolagain.git\n\n---\n\n## TECH STACK\n\n- Language: Python 3.11+\n- Web Framework: Flask (with Flask-Login, Flask-WTF, Flask-SQLAlchemy)\n- Database: SQLite via SQLAlchemy ORM\n- PDF Generation: WeasyPrint (A4-formatted output)\n- TLS/HTTPS: Self-signed certificate via trustme or mkcert for local hosting\n- Frontend: Jinja2 templates + Tailwind CS... [truncated, 7198 chars total]"}

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,5 @@
{
"pid": 32871,
"started": "2026-03-21T23:53:51.590496087Z",
"pid": 36460,
"started": "2026-03-22T00:12:41.348212015Z",
"prompt": "You are building a production-ready Inspection Reporting and Management web application from scra..."
}

View file

@ -182,9 +182,6 @@ Buttons:
## GITHUB INSTRUCTIONS
- The repository already exists and has been initialised with prior commits
- Completely discard all prior history
- Use git checkout --orphan new-branch, add all files, commit, then force-push to main
- Commit message: "Initial commit: Inspection reporting app"
- Include a comprehensive README.md with:
- Project overview
- Requirements (Python version, OS)
@ -221,17 +218,8 @@ Build in this order:
9. run.py
10. README.md
11. .gitignore
12. GitHub force-push
12. GitHub push
13. Review code
14. Implement any issues from the review.
Do not proceed to the next step until the current one is complete and internally consistent.
---
## NOTES FOR THE OPERATOR
- WeasyPrint requires system-level dependencies. Install them before running setup.py:
Debian/Ubuntu: sudo apt install libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0
macOS: brew install pango
Windows: See https://doc.courtbouillon.org/weasyprint/stable/first_steps.html

View file

@ -1,9 +1,9 @@
# Ralph Orchestrator Configuration
# Generated by: ralph init --backend claude
# Generated by: ralph init --backend opencode
# Docs: https://github.com/mikeyobrien/ralph-orchestrator
cli:
backend: "claude"
backend: "opencode"
event_loop:
prompt_file: "PROMPT.md"