# Trellis Configuration # Project-level settings for the Trellis workflow system # # All values have sensible defaults. Only override what you need. #------------------------------------------------------------------------------- # Session Recording #------------------------------------------------------------------------------- # Commit message used when auto-committing journal/index changes # after running add_session.py session_commit_message: "chore: record journal" # Maximum lines per journal file before rotating to a new one max_journal_lines: 2000 #------------------------------------------------------------------------------- # Session Auto-Commit #------------------------------------------------------------------------------- # Auto-commit behavior for session journal + task archive operations. # - true (default): scripts auto-stage and auto-commit journal / task changes # after add_session.py / task.py archive runs. # - false: scripts do not touch git. Files (journal-*.md, task archive moves) # are still written to disk; you decide whether to git add / commit. # # Use `false` if your project's .gitignore intentionally excludes `.trellis/` # and you want session data kept local-only, or if you prefer to review # staged changes manually before each commit. # # Accepts: true / false / yes / no / 1 / 0 / on / off (case-insensitive). # session_auto_commit: false #------------------------------------------------------------------------------- # Task Lifecycle Hooks #------------------------------------------------------------------------------- # Shell commands to run after task lifecycle events. # Each hook receives TASK_JSON_PATH environment variable pointing to task.json. # Hook failures print a warning but do not block the main operation. # # hooks: # after_create: # - "echo 'Task created'" # after_start: # - "echo 'Task started'" # after_finish: # - "echo 'Task finished'" # after_archive: # - "echo 'Task archived'" #------------------------------------------------------------------------------- # Monorepo / Packages #------------------------------------------------------------------------------- # Declare packages for monorepo projects. # Trellis auto-detects workspaces during `trellis init`, but you can also # configure them manually here. # # hyb-oa uses Trellis single-repo mode in this first migration. Domain specs # live as layers under .trellis/spec/ and point to server/, client/, and docs/. # packages: # backend: # path: server # frontend: # path: client # docs: # path: docs # Default package used when --package is not specified. # default_package: backend #------------------------------------------------------------------------------- # Codex (dispatch behavior) #------------------------------------------------------------------------------- # Codex-only knob; other platforms ignore it. Trellis 0.6.9 supports native # sub-agent context injection, but hyb-oa deliberately keeps the main session # in charge unless a task explicitly approves sub-agent work. "sub-agent" is # retained upstream as a backwards-compatible alias for "auto". # codex: dispatch_mode: inline # keep Codex main-session edits until a task explicitly asks for sub-agents #------------------------------------------------------------------------------- # Channel worker OOM guard #------------------------------------------------------------------------------- # Default safeguards for `trellis channel spawn` workers. The guard runs # at spawn time (cleans expired idle workers, then enforces the live-worker # budget) and inside each supervisor (self-terminates a worker that stays # continuously idle past `idle_timeout`). # # Precedence: CLI flag > env var (TRELLIS_CHANNEL_WORKER_IDLE_TIMEOUT / # TRELLIS_CHANNEL_MAX_LIVE_WORKERS) > this config > built-in default. # # `idle_timeout: 0` disables idle cleanup (workers can sit idle forever # unless explicitly killed or given `--timeout`). # `max_live_workers: 0` disables the spawn-time budget check. # # `trusted_context_dirs` extends the `--file`/`--jsonl`/`--agent` containment # check beyond the worker cwd — useful when `.trellis/tasks` or # `.trellis/workspace` is a symlink to an external directory. Realpaths under # any listed dir are accepted in addition to cwd. # `auto_trust_trellis_symlinks: false` disables the narrow auto-trust of # `.trellis/tasks` / `.trellis/workspace` when either is itself a top-level # symlink (auto-trust is on by default). # channel: worker_guard: idle_timeout: 5m max_live_workers: 6 # trusted_context_dirs: # - /work/user/trellis_workspace # auto_trust_trellis_symlinks: false #------------------------------------------------------------------------------- # Sub-agent context injection limits #------------------------------------------------------------------------------- # Trellis 0.6.9 caps injected task artifacts and referenced context. Defaults # are sufficient for hyb-oa; keep them documented but implicit until a real # task proves they need tuning. # # context_injection: # max_file_bytes: 32768 # max_artifact_bytes: 65536 # max_total_bytes: 131072 #------------------------------------------------------------------------------- # Per-turn prompt injection #------------------------------------------------------------------------------- # Optional one-turn escape hatch. The project does not enable it by default so # Trellis task state remains deterministic. # # prompt_injection: # skip_keyword: "no-trellis"