code_work_spawner/examples/simple-github.yaml

51 lines
1.5 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
pollInterval: 30s
maxConcurrentIssues: 3
mentionTriggers: ["@codex", "@helper"]
commentPrefixTemplate: |
> [!NOTE]
> Automated reply generated by `code_work_spawner` via `gh` as `@{{gh_login}}`.
> Review it as bot output, not as a direct human response.
commentFooterTemplate: |
_Automation note: generated by `code_work_spawner` via `gh` as `@{{gh_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: ["exec", "--json"]
timeout: 10m
# - id: opencode
# command: opencode
# 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
projects:
code-work-spawner:
repo: existedinnettw/code_work_spawner
path: ~/code_work_spawner
defaultBranch: main
# sessionPrefix: app
# issueAssistant:
# notifications:
# - type: discordWebhook
# events: ["no_reply"]