code_work_spawner/examples/simple-github.yaml

72 lines
2.3 KiB
YAML

# Minimal setup for a single GitHub repo with GitHub Issues.
# Replies require at least one configured responder.
dataDir: ~/.agent-orchestrator
worktreeDir: ~/.worktrees
defaults:
issueAssistant:
enabled: true
maxConcurrentIssues: 3
maxResponsesAfterHuman: 1
mentionTriggers: ["@codex", "@helper"]
commentPrefixTemplate: |
> [!NOTE]
> Automated reply generated by `code_work_spawner` via `{{tracker_cli}}` as `@{{tracker_login}}`.
> Review it as bot output, not as a direct human response.
commentFooterTemplate: |
_Automation note: generated by `code_work_spawner` via `{{tracker_cli}}` as `@{{tracker_login}}`._
# prompt: |
# You are helping on {{repo}}.
# Trigger: {{trigger}}
# Thread:
# {{thread_json}}
responders:
# Replace this with a responder available on your machine.
- id: codex
command: codex
args: ["-s", "danger-full-access", "exec", "--json"]
timeout: 10m
# - id: opencode
# command: opencode
# args: ["run", "-f", "json"]
# timeout: 10m
# - id: copilot-cli
# command: copilot
# args: ["--allow-all", "--autopilot", "-p", "--output-format", "json"]
# timeout: 10m
# notifications:
# # Optional Discord notifications for assistant activity.
# - type: discordWebhook
# enabled: true
# events: ["mention_detected", "reply_posted", "responder_failed"]
# webhookUrl: ${CWS_DISCORD_WEBHOOK}
# username: code-work-spawner
# # Optional desktop notifications for local polling runs.
# - type: desktop
# enabled: false
# events: ["mention_detected", "responder_failed"]
projects:
code-work-spawner:
issueTracker:
provider: github
# Use gh/gosmee or gh/webhook-forward for long-running runs.
eventSource:
type: gh/polling
pollInterval: 30s
# eventSource:
# type: gh/gosmee
# reconciliation: startup-only
# reconcileInterval: 30s
scm:
provider: github
repo: existedinnettw/code_work_spawner
path: ~/code_work_spawner
defaultBranch: main
# sessionPrefix: app
# issueAssistant:
# notifications:
# - type: discordWebhook
# events: ["no_reply"]