Spaces:
Sleeping
Sleeping
Edward Fazackerley commited on
Update sisyphus.yaml
Browse files- .github/workflows/sisyphus.yaml +16 -11
.github/workflows/sisyphus.yaml
CHANGED
|
@@ -73,7 +73,7 @@ jobs:
|
|
| 73 |
CONFIG_PATH=~/.config/opencode/opencode.json
|
| 74 |
OMO_CONFIG=~/.config/opencode/oh-my-opencode.json
|
| 75 |
|
| 76 |
-
#
|
| 77 |
jq --arg token "$GH_TOKEN" '.provider = {
|
| 78 |
"github-copilot": {
|
| 79 |
"name": "GitHub Copilot",
|
|
@@ -82,7 +82,7 @@ jobs:
|
|
| 82 |
}
|
| 83 |
} | .model = "github-copilot/gemini-3-flash-preview"' "$CONFIG_PATH" > "$CONFIG_PATH.tmp" && mv "$CONFIG_PATH.tmp" "$CONFIG_PATH"
|
| 84 |
|
| 85 |
-
#
|
| 86 |
jq '.agents.Sisyphus.model = "github-copilot/gemini-3-flash-preview" |
|
| 87 |
.agents.Oracle.model = "opencode/grok-code" |
|
| 88 |
.agents.Librarian.model = "opencode/big-pickle"' \
|
|
@@ -115,7 +115,7 @@ jobs:
|
|
| 115 |
gh api "/repos/${{ github.repository }}/issues/comments/${{ steps.context.outputs.comment_id }}/reactions" \
|
| 116 |
-X POST -f content="eyes" || true
|
| 117 |
|
| 118 |
-
- name: Run CloudWaddie Agent
|
| 119 |
env:
|
| 120 |
GH_TOKEN: ${{ secrets.GH_PAT }}
|
| 121 |
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
|
@@ -128,22 +128,27 @@ jobs:
|
|
| 128 |
|
| 129 |
## MODEL CONFIG
|
| 130 |
- Main engine: github-copilot/gemini-3-flash-preview
|
| 131 |
-
-
|
| 132 |
-
- Search sub-agent: opencode/big-pickle
|
| 133 |
|
| 134 |
-
##
|
| 135 |
-
-
|
| 136 |
-
-
|
|
|
|
| 137 |
</ultrawork-mode>
|
| 138 |
|
| 139 |
---
|
| 140 |
Context: ${{ steps.context.outputs.title }} (#${{ steps.context.outputs.number }})
|
| 141 |
-
Request
|
| 142 |
-
${{ steps.context.outputs.comment }}
|
| 143 |
EOF
|
| 144 |
)
|
| 145 |
|
| 146 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
|
| 148 |
- name: Feedback (Done)
|
| 149 |
if: always()
|
|
|
|
| 73 |
CONFIG_PATH=~/.config/opencode/opencode.json
|
| 74 |
OMO_CONFIG=~/.config/opencode/oh-my-opencode.json
|
| 75 |
|
| 76 |
+
# Setup Copilot Provider with the Token directly in config
|
| 77 |
jq --arg token "$GH_TOKEN" '.provider = {
|
| 78 |
"github-copilot": {
|
| 79 |
"name": "GitHub Copilot",
|
|
|
|
| 82 |
}
|
| 83 |
} | .model = "github-copilot/gemini-3-flash-preview"' "$CONFIG_PATH" > "$CONFIG_PATH.tmp" && mv "$CONFIG_PATH.tmp" "$CONFIG_PATH"
|
| 84 |
|
| 85 |
+
# Assign agents to requested models
|
| 86 |
jq '.agents.Sisyphus.model = "github-copilot/gemini-3-flash-preview" |
|
| 87 |
.agents.Oracle.model = "opencode/grok-code" |
|
| 88 |
.agents.Librarian.model = "opencode/big-pickle"' \
|
|
|
|
| 115 |
gh api "/repos/${{ github.repository }}/issues/comments/${{ steps.context.outputs.comment_id }}/reactions" \
|
| 116 |
-X POST -f content="eyes" || true
|
| 117 |
|
| 118 |
+
- name: Run CloudWaddie Agent & Post Reply
|
| 119 |
env:
|
| 120 |
GH_TOKEN: ${{ secrets.GH_PAT }}
|
| 121 |
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
|
|
|
| 128 |
|
| 129 |
## MODEL CONFIG
|
| 130 |
- Main engine: github-copilot/gemini-3-flash-preview
|
| 131 |
+
- Sub-agents: Grok Code / Big Pickle
|
|
|
|
| 132 |
|
| 133 |
+
## RULES
|
| 134 |
+
- You are running in a GitHub Action.
|
| 135 |
+
- Your response will be posted as a GitHub comment.
|
| 136 |
+
- Deliver FULL implementations.
|
| 137 |
</ultrawork-mode>
|
| 138 |
|
| 139 |
---
|
| 140 |
Context: ${{ steps.context.outputs.title }} (#${{ steps.context.outputs.number }})
|
| 141 |
+
User Request: ${{ steps.context.outputs.comment }}
|
|
|
|
| 142 |
EOF
|
| 143 |
)
|
| 144 |
|
| 145 |
+
# 1. Capture agent output to a file
|
| 146 |
+
# stdbuf ensures we don't miss output due to buffering
|
| 147 |
+
stdbuf -oL -eL bun run dist/cli/index.js run "$PROMPT" > agent_reply.md 2>&1
|
| 148 |
+
|
| 149 |
+
# 2. Post that file as a comment on the Issue/PR
|
| 150 |
+
# We use a heredoc pattern to safely handle multiline markdown
|
| 151 |
+
gh issue comment ${{ steps.context.outputs.number }} --body-file agent_reply.md
|
| 152 |
|
| 153 |
- name: Feedback (Done)
|
| 154 |
if: always()
|