yoke/src/templates/saga/yoke.conf

42 lines
2.2 KiB
Text
Raw Normal View History

2026-03-04 15:38:23 +00:00
# Yoke configuration (saga mode)
# Lines starting with # are comments. Blank lines are ignored.
# ── Backend ────────────────────────────────────────────────────────────
# Model to use for the agent. If unset, defaults to Claude CLI.
# Use provider/model format for OpenRouter or other opencode providers.
# model openrouter/anthropic/claude-sonnet-4
# model openai/gpt-4o
# model anthropic/claude-sonnet-4
# ── Sandbox ──────────────────────────────────────────────────────────
# Docker image to run the agent inside. Required unless you pass --no-sandbox.
# Note: sandbox is not currently supported with the 'model' directive.
image claude-code-sandbox:latest
# ── Output ───────────────────────────────────────────────────────────
# Max lines of tail output kept per guard in guard-results.md.
max-tail 200
# Uncomment to save raw stream-json output per iteration.
# log-dir .loop/logs
# ── Scope rules (diff boundary enforcement) ──────────────────────────
# Controls what files the agent is allowed to change. Most-specific
# (longest prefix) match wins.
#
# allow <prefix> — any change permitted (add, modify, delete)
# add-only <prefix> — new files only; existing files cannot be modified
# no-modify <prefix> — no changes at all (adds or modifications rejected)
allow .
# ── Guards (run after each plan stage, fail-fast) ────────────────────
# Shell commands executed after each agent iteration. If any guard
# exits non-zero the iteration fails and results are fed back.
#
# NOTE: avoid "cargo check" as the sole guard — its type-error output
# can confuse the agent into chasing compiler noise instead of finishing
# the task. Prefer a test suite or linter that validates behaviour.
# guard cargo check