#
#     effort: high
#     model: "gpt-5.6"
#     model: "gpt-5.6-sol"
#     model: "gpt-6-sol"
#     model: "gpt-6.1-sol"
#     model: "gpt-6.1-terra"
#     model: composer
#     model: sonnet
#     pack: [rails, inertia]
#     ref: v1.2.0
#   - harness: claude             # configured default model
#   - harness: codex
#   - harness: cursor
#   - source: compound-packs/local-rules                       # repo-relative, read live
#   - source: https://github.com/org/rails-ce-pack    # git, cached at ref
#   - source: ~/compound-packs/kk-style                        # machine-local, read live
#   - { type: github-issues, id: gh-issues, target: owner/repo, ack_action: "feedback:ack", closeout_action: "feedback:resolved", sensitive: false, approved: true }
#   - { type: slack, id: slack-alpha, target: C0XXXXXXX, ack_action: eyes, closeout_action: white_check_mark, sensitive: false, approved: true }
#   claude:
#   claude: max
#   codex:
#   codex: xhigh
# (e.g. "output:html" or "make it HTML"); a preference you established earlier
# (e.g., LFG, disable-model-invocation) always force `md` regardless.
# (except docs_root -- see below, which fails closed on an unusable value).
# (force the gate on for one run).
# (in-session, saved to memory, or in your agent instructions) overrides these
# --- Artifact root ---
# --- Compound Packs ---
# --- Cross-model review policy and preference ---
# --- Cross-model review preference ---
# --- Fable elevation (Claude Code only) ---
# --- Model elevation ---
# --- Output format ---
# --- PR branding (ce-commit-push-pr) ---
# --- PR concept teaching (ce-commit-push-pr) ---
# --- Product pulse ---
# --- Review subagent model ---
# --- Sweep (ce-sweep) ---
# --- Work delegation (Codex) ---
# --- ce-commit-push-pr babysit handoff ---
# --- ce-plan scoping confirmation ---
# --- ce-promote ---
# --- ce-work implementation engine ---
# After a full-workflow PR is opened, ce-commit-push-pr auto-invokes ce-babysit-pr
# All settings are optional. Invalid ordinary values continue to the next layer.
# All settings are optional. Invalid values fall through to defaults
# All settings are optional. Invalid values fall through to defaults.
# Assumptions section, announces that it's proceeding, and keeps going. It skips
# By default /ce-plan pauses before research/plan-write to show a scoping
# Claude CLI is invoked when installed and authenticated; otherwise the step runs
# Claude Code ONLY; silently ignored on every other harness (Codex, Cursor, ...).
# Codex and Claude at high, native Grok at xhigh, Antigravity at high (it takes
# Codex and Claude at high, native Grok at xhigh, OpenCode with no variant.
# Codex and Claude at high, native Grok at xhigh. OpenCode and Cursor routes
# Compound Engineering -- local config
# Compound Engineering -- repo config
# Copy to .compound-engineering/config.local.yaml in your project root.
# Copy to .compound-engineering/config.yaml in your project root (team defaults).
# Cross-harness: setting a key means every harness you run these skills in will
# Cursor routes take no effort. A map in config.local.yaml replaces this one.
# Declared, never scanned: an entry names a source (repo-relative path,
# Each entry: type (slack | github-issues | email), id (short name), target (channel ID /
# Effort levels: claude low|medium|high|xhigh|max, codex low|medium|high|
# Effort levels: claude low|medium|high|xhigh|max, codex minimal|low|medium|
# Feedback sources swept by /ce-sweep. Generic key: other skills may read this list.
# HTML styling. CLI arguments override these defaults; pipeline contexts
# HTML styling. Precedence: a format request in your prompt for that run wins
# New PRs include a generic Compound Engineering badge by default. Set false to
# Optional override: .compound-engineering/config.local.yaml, same keys.
# Ordinary keys: local wins when set, then this file, then the skill default.
# Per-skill output format default. Selects the exclusive format the artifact
# Preferred peer for ce-doc-review and ce-code-review when their conditional
# Prescriptive domain knowledge folders that planning reads and cites.
# Reasoning effort for the external worker, per harness. Each value is one of
# Relocate every CE-written artifact folder (solutions, plans, ideation,
# Rules are top-level .md files with title + applies_when; subfolders are storage.
# Send only the reasoning-heavy step of /ce-plan (interpret research, then author
# Set this only in this tracked file so every clone and worktree share one
# Settings written by /ce-product-pulse first-run interview. Re-run the skill with
# Standing preferences for who authors implementation units. Live
# Standing, per-checkout preferences for who authors implementation units. Live
# Suppresses that one-time setup nudge in this project. Remove the key to re-enable.
# Sweep-owned settings.
# The pack field picks one id or a list; omit it to install everything the
# The value must be a repo-relative directory whose real (symlink-resolved) path
# Unlike every other setting here, an unusable value does NOT fall through to the
# When a PR introduces a concept new to the codebase, the generated PR
# When on, /ce-plan and /ce-brainstorm dispatch their reasoning-heavy step (plan
# Where to put it: prefer the TRACKED `.compound-engineering/config.yaml` (not
# Written automatically when you decline the Spiral setup offer in /ce-promote.
# `auto`. Conversation instructions still win, and the skills skip routes that
# `cross_model_model` and `cross_model_effort` pin the model and reasoning
# `cross_model_peer` is the preferred peer, consulted only when the mode is
# `cross_model_review_mode` decides whether ce-doc-review and ce-code-review may
# `fable` or a full id such as `claude-opus-5-5` for claude; `gpt-*` for codex,
# `fable` or a full id such as `claude-opus-5` for claude; `gpt-*` for codex).
# `fable` or a full id such as `claude-opus-5` for claude; `gpt-*` for codex,
# `gemini-3.8-flash` for antigravity).
# `off` for that run; a conversation prohibition overrides `auto`.
# `prefer` tries candidates in order, then falls back natively with disclosure.
# `require` asks before native fallback in an interactive ce-work run and blocks
# `require` keeps the requested external identity fixed while viable, then also
# `review_subagents` sets the model and reasoning effort for every subagent
# a different explicit model in the same harness remains eligible.
# and archival. Archival additionally writes the explainer to docs/explainers/
# and links it from the PR (full-workflow runs only; override per run with
# and which layer supplied it.
# and writes; CE never falls back to reading `docs/`.
# archive:on|off). Note: this file is gitignored and per-checkout -- fresh
# archive:on|off). Ordinary cascade: local, then this file, then the skill default.
# argument `setup` or `reconfigure` to edit interactively.
# artifact tree. A docs_root in config.local.yaml is ignored.
# attempt that model. The host serves it natively where it can; otherwise the
# authoring; approach generation) to the Fable model via a subagent, so you get
# auto_babysit: false            # true | false (default: true)
# automatically send review content (diffs, documents) to a second model
# availability failure. `auto` keeps the current behavior. A direct request in
# brainstorm_model: fable        # model alias for approach generation (no default)
# brainstorm_model: fable        # model alias for approach generation; candidate preference for requested Bake-offs (no default)
# brainstorm_model: fable        # model alias for approach generation; candidate preference when a Bake-off runs (no default)
# brainstorm_output: html        # md | html (default: md)
# brainstorm_use_fable: true     # true | false (default: false)
# byte-identical to today. A configured root becomes the sole location CE reads
# cannot establish the required host/peer distinction.
# cannot honor skips the pass with a stated reason -- never substituted.
# ce-code-review and ce-doc-review spawn on the same host (reviewers, checks,
# ce-config-template-version: 1
# ce_promote_spiral_optout: true   # true | (absent) (default: absent -- offer once)
# codex | claude | grok | antigravity | cursor | opencode. Omit model to use that harness's configured
# codex | claude | grok | cursor | opencode. Omit model to use that harness's configured
# codex | claude | grok | cursor. Omit model to use that harness's configured
# composes the summary for itself, records any inferred scope under an
# conversation ("use codex as the independent reviewer this time") overrides
# conversation or in the project's instructions wins. A model the host refuses
# cross-model pass activates. Conversation instructions still win, and the
# cross_model_effort: xhigh        # reasoning effort for the resolved peer target (no default)
# cross_model_model: fable         # model alias or full id for the resolved peer target (no default)
# cross_model_peer: codex          # codex | claude | grok | antigravity | cursor | composer | opencode
# cross_model_peer: codex          # codex | claude | grok | cursor | composer
# cross_model_peer: codex          # codex | claude | grok | cursor | composer | opencode
# cross_model_review_mode: off   # auto | off (default: auto)
# default -- CE stops with an error so a typo can't silently write artifacts into
# default. Composer is a model
# description gains a "New concepts" section teaching it. The section toggle is
# disable-model-invocation) always force `md`.
# docs_root fails closed on an unusable value.
# docs_root is repo layout -- set it only here; local docs_root is ignored.
# docs_root: .compound-engineering/artifacts   # repo-relative dir (default: docs)
# effort of whichever peer target runs; unset keeps the skills' editorial
# effort. A map in config.local.yaml replaces this one.
# elevation.
# explainers, pulse-reports, dogfood-reports,
# explainers, residual-review-findings, pulse-reports, dogfood-reports,
# fable_nudge: false             # true | false (default: true -- one-time tip when elevation is available but off)
# falls back natively with disclosure if the route is unavailable. Harnesses:
# falls back once to the session model, and the review says so.
# family through Cursor: { harness: cursor, model: composer }. Do not put CLI flags
# feedback-sweep, personas) under one repo-relative root. Unset -> `docs`,
# feedback_sources:
# file and config.local.yaml concatenate -- local adds packs, never replaces
# for every subagent; elsewhere, each reviewer's own tier. A model named in
# freezes at its cached resolution and can drift across machines). path: and
# from committed state/plan text), approved (standing approval for source-side writes).
# higher-reasoning output even when your session model is cheaper -- no session
# high|xhigh, grok low|medium|high; cursor/composer routes take none. A value
# ideate_output: md              # md | html (default: html -- ideation docs are human-facing, so HTML is the default; set md to opt out)
# is written in: `md` produces a markdown file, `html` produces a single
# keys (this config is the persisted fallback). A headless or pipeline run
# keys (this config is the persisted fallback); pipeline contexts (e.g., LFG,
# left out keeps the skill default. Defaults: in Codex, gpt-6.1-terra at high
# low|medium|high). OpenCode (2.x) keeps its own per-model default and takes
# low|medium|high). OpenCode and Cursor routes take no effort. A map in config.local.yaml replaces this one.
# mapping. The model must belong to that target's family (an alias such as
# max as each model lists them; cursor/composer routes take none. A value the peer
# model in a prompt for a one-off, which overrides these keys.
# model. The value is a model alias (e.g. `fable`, `opus`). You can also name a
# none. A value the peer
# none|low|medium|high|xhigh|max as each model lists them. Cursor routes take no
# of each skill -- dialogue, research, orchestration -- stays on your session
# omit it (per-run override: branding:on|off). Existing PR rewrites preserve
# on your session model and the run says so. Invalid/commented/missing -> no
# only that confirmation -- genuine blocking questions and the post-plan menu
# opt out standing (per-run override: the babysit:off token).
# opt out standing (per-run override: the babysit:off token). This governs that
# optionally namespace-qualified such as `openai.gpt-5.6-sol` when the codex CLI
# optionally namespace-qualified such as `openai.gpt-6-sol` when the codex CLI
# optionally namespace-qualified such as `openai.gpt-6.1-sol` when the codex CLI
# or commands here. A candidate equivalent to the current host/default is skipped;
# override or narrow these defaults. `off` disables only this standing preference.
# owner/repo / mailbox), ack_action, closeout_action, sensitive (true withholds content
# pack: picks one id or a list; omit it to install everything the source
# packs:
# pass before any route is chosen or process starts, leaves every local
# pasted GitHub /tree/<ref>/<sub> URLs scope a source to a subfolder.
# per-checkout, which splits one project's artifacts across two locations.
# plan_model: fable              # model alias for plan authoring; candidate preference for requested Bake-offs (no default)
# plan_model: fable              # model alias for plan authoring; candidate preference when a Bake-off runs (no default)
# plan_model: fable              # model alias for the plan-authoring step (no default)
# plan_output: html              # md | html (default: md)
# plan_skip_scoping_confirm: true   # true | false (default: false)
# plan_use_fable: true           # true | false (default: false)
# pr_branding: false             # true | false (default: true; new PRs only)
# pr_teaching_archive: true      # true | false (default: false; full-workflow runs only)
# pr_teaching_section: false     # true | false (default: true)
# provider when their conditional cross-model pass activates. `off` skips that
# publishes. id: renames a single-pack entry.
# pulse_analytics_source: posthog                       # posthog | mixpanel | custom (no default)
# pulse_completion_events: "onboarded,first_purchase"   # comma-separated, 0-3 events
# pulse_db_enabled: false                               # true | false (default: false; read-only DB if true)
# pulse_excluded_metrics: "north_star"                  # comma-separated strategy metrics intentionally not in pulse
# pulse_lookback_default: 24h                           # 1h | 24h | 7d | 30d (default: 24h)
# pulse_metric_sources: "retention_d7=posthog,nps=delighted"  # strategy-metric -> source overrides; comma-separated 'metric=source' pairs; unlisted metrics fall back to pulse_analytics_source
# pulse_payments_source: stripe                         # stripe | custom (no default)
# pulse_pending_metrics: "retention_d7,nps"             # comma-separated strategy metrics awaiting instrumentation; render as 'no data'
# pulse_primary_event: "session_started"                # the event that means "user showed up"
# pulse_product_name: "Spiral"                          # used in report titles (no default)
# pulse_quality_dimension: "answer accuracy"            # dimension scored 1-5 when pulse_quality_scoring is true
# pulse_quality_scoring: false                          # true | false (default: false; AI products only)
# pulse_tracing_source: sentry                          # sentry | datadog | custom (no default)
# pulse_value_event: "task_completed"                   # the event that means "user got value"
# resolves the format the same way; nothing forces `md`.
# review_subagents:
# reviewer in place, and reports "disabled by checkout config" instead of an
# routes through a non-default `model_provider`).
# routes through a non-default `model_provider`; a `gemini-*` id such as
# say "use fable" in a prompt for a one-off. Invalid/commented/missing -> off.
# self-contained HTML file. The two are mutually exclusive -- there is no
# sibling artifact. See DESIGN.md or your agent instructions to influence
# skills skip routes that cannot establish the required host/peer distinction.
# source publishes. The id field renames a single-pack entry.
# standing watch only -- lfg's in-pipeline babysit is bounded (3 fix rounds) and
# stays inside the repo, is not the repo root itself, and is not under `.git/`.
# still appear. Override per run with `confirm:auto` (skip) or `confirm:ask`
# still runs, since it is how that pipeline reaches "CI decided".
# summary and wait for you to confirm scope. Set this to skip that wait: ce-plan
# sweep_ack_cap: 25                                 # max acks per source per run before the circuit breaker
# sweep_lease_ttl_minutes: 60                       # single-writer lease staleness threshold
# sweep_shared_branch: false                        # true: push-gated lease for shared-docs-branch topology
# sweep_state_path: docs/feedback-sweep/state.yml   # committed (multi-agent) or /tmp path (solo)
# switch. Per-skill so you can enable one without the other. You can also just
# take no effort. A map in config.local.yaml replaces this one.
# task/session/project instructions and LFG's provenance-bearing binding may
# that harness's own effort levels. An unset harness keeps its own default.
# that harness's own effort levels. An unset harness keeps its own default:
# the location you configured away from. `/ce-setup` reports the resolved root
# the location you configured away from. `/ce-setup` reports the resolved root.
# the pass with a stated reason -- never substituted.
# the peer cannot honor skips the pass with a stated reason -- never substituted.
# the plan) and /ce-brainstorm (generate approaches) to a model you name. The rest
# the single gate: off disables judgment, the section, the /ce-explain offer,
# the team's. Git sources require ref (tag or sha reproduce exactly; a branch
# their current branding and never add or refresh it on their own.
# this gitignored local file) so the setting propagates to every clone and
# to watch CI + incoming review and drive the PR toward merge-ready. Set false to
# validators), per harness. Only the current harness's entry applies; a field
# without prompting under LFG/headless execution. Harnesses: codex | claude | grok
# work_delegate: codex           # codex | false (default: false)
# work_delegate_consent: true    # true | false (default: false)
# work_delegate_decision: auto   # auto | ask (default: auto)
# work_delegate_effort: high     # minimal | low | medium | high | xhigh (default: high)
# work_delegate_effort: high     # minimal | low | medium | high | xhigh (omit to use ~/.codex/config.toml default)
# work_delegate_model: gpt-5.4   # any valid codex model (omit to use ~/.codex/config.toml default)
# work_delegate_model: gpt-5.4  # any valid codex model (default: gpt-5.4)
# work_delegate_sandbox: yolo    # yolo | full-auto (default: yolo)
# work_engine_effort:
# work_engine_mode: prefer        # off | prefer | require (default: off)
# work_engine_preferences:
# worktree of the project. Setting it here in config.local.yaml works but is
# worktrees don't inherit it.
# xhigh plus max and ultra on the models that list them, grok low|medium|high|
# xhigh, antigravity low|medium|high, OpenCode 2.x none|low|medium|high|xhigh|
# xhigh, antigravity low|medium|high; cursor/composer and OpenCode routes take
# xhigh; cursor/composer and OpenCode routes take none. A value the peer
# xhigh; cursor/composer routes take none. A value the peer cannot honor skips
# | cursor. Omit model to use that harness's configured default. Composer is a model
# ~/absolute path, or git URL) and what to install from it. Lists from this
# ce-config-template-version: 2
# `gemini-3.8-flash` for antigravity; a `provider/model` id for opencode and
# pi).
# max as each model lists them; cursor/composer and pi routes take none. A value the peer
# cross_model_peer: codex          # codex | claude | grok | antigravity | cursor | composer | opencode | pi
# codex | claude | grok | antigravity | cursor | opencode | pi. Omit model to use that harness's configured
# `plan_effort` and `brainstorm_effort` separately set the reasoning effort the
# elevated step runs at on the Claude CLI route (one of low, medium, high,
# xhigh, max). Unset keeps the existing default of high. An unrecognized value
# is invalid -- it is rejected and the run skips elevation rather than silently
# using a different effort than configured. The native-dispatch route has no
# per-call effort override, so these keys only take effect when the elevated
# step runs through the Claude CLI.
# plan_effort: high              # low | medium | high | xhigh | max (default: high)
# brainstorm_effort: high        # low | medium | high | xhigh | max (default: high)
# ce-config-template-version: 3
# elevated step runs at (one of low, medium, high, xhigh, max). Unset keeps the
# existing defaults: high on the Claude CLI route, the harness default on native
# dispatch. An unrecognized value is invalid -- it is rejected and the run skips
# elevation rather than silently using a different effort than configured. If
# the host's native subagent tool takes no effort setting, the step still runs
# there and the run says the configured effort was not applied.
# ce-config-template-version: 4
# --- Autonomous mode (afg) ---
# How far `afg` may go without a person. Unset profile means it reports
# and does nothing else. `afg setup` writes these for you. A profile in
# this file, on the default branch, is the repository policy and
# config.local.yaml can only tighten it. Without one here, config.local.yaml
# is the whole policy for that checkout. An invalid autonomous value turns
# autonomous mode off; it does not fall through to a default.
# autonomous_profile: balanced                # cautious | balanced | hands-off
# autonomous_motions: [main-red, bugs, backlog, stack]   # also security, climb, create
# How work lands. `afg setup` fills these in from the project's own
# instructions. Local settings may repeat them, never replace them.
# autonomous_landing: pull-request            # pull-request | direct (one commit on the default branch, no PR)
# autonomous_ci: required                     # required | ignored (direct only, the checks below are then the gate)
# autonomous_merge_method: squash             # squash | rebase | merge (default is the first the repository allows)
# autonomous_checks:                          # must pass on this machine, paths limits one to the files changed
#   - { run: bun run test }
#   - { run: npm run types, paths: "*.ts *.tsx" }
# autonomous_judges:                          # files that decide whether a check passes, changes to them wait for you
#   - test/gates/*
# autonomous_landing_steps:                   # your own words, each confirmed at the exact commit before it lands
#   - The commit message says which checks ran and which did not
# autonomous_trusted_authors:                 # accounts whose PRs may merge; write bots as name[bot]
#   - dependabot[bot]
# autonomous_babysit_authors: [teammate]      # accounts whose PR code may be run and fixed here, never merged
# autonomous_overrides:                       # the strictest match wins; max is report | pr | babysit | merge
#   - { motion: stack, max: babysit }
#   - { author: teammate, max: pr }
# autonomous_rules:                           # your own words; each can only make a landing stricter
#   - Ask me about anything that changes what users pay
# autonomous_jobs_per_hour: 2                 # default 2
# autonomous_open_pr_cap: 5                   # default 5
# autonomous_landing: pull-request            # pull-request | direct (one squashed commit on the default branch, no PR)
# ce-config-template-version: 5
# autonomous_jobs_per_hour: 6                 # unset by default: a run works until a usage limit
# ce-config-template-version: 6
# autonomous_ci: required                     # required | if-running (skips CI GitHub refuses to start, hands-off default) | ignored (direct only)
# autonomous_ignored_checks: [deploy/old-host]   # hosted checks that do not count, such as a retired service
# ce-config-template-version: 7
# ce-config-template-version: 8
# autonomous_landing: pull-request            # pull-request | direct (one commit on the default branch, no PR) | upstream (local file only, your fork of a project you do not maintain)
# autonomous_upstream_open: 3                 # with more of your PRs open there, upstream work only tends them
# ce-config-template-version: 9
