Skip to content

Registry Configuration

Ankit Jha edited this page May 29, 2026 · 1 revision

Registry Configuration

All YAML config files live in registry/. Changing behaviour means editing YAML, not bash.


routing.yaml — The Enum File

The single source of truth for tier assignments. Change a value here and every downstream consumer updates.

routing_map:
  GRUNT:      10   # → Qwen2.5-Coder:7b (local)
  TRIVIAL:    9    # → Gemini 3.5 Flash (Low)
  SIMPLE:     8    # → Gemini 3.5 Flash (Medium)
  STANDARD:   7    # → Gemini 3.5 Flash (High)
  MODERATE:   6    # → Gemini 3.1 Pro (Low)
  COMPLEX:    5    # → Gemini 3.1 Pro (High)
  HARD:       4    # → Gemini 2.0 Flash Thinking
  VERY_HARD:  3    # → Claude Sonnet 4.6 (Thinking)
  EXPERT:     2    # → Claude Opus 4.6 (Thinking)
  CORE:       1    # → Claude Code (never dispatched)

Also contains: fallback_chains, pool_fallback_chains, rubber_duck_map, claude_preservation, model_token_thresholds.

models.yaml — Model Definitions

Defines every model: tier, executor, model flag, pool, enabled status. To swap a model change model_flag only. To disable set enabled: false.

domains.yaml — Domain → Enum Routing

Maps task domains to complexity enum keys. First file the orchestrator reads during Step 1.

domains:
  auth:   COMPLEX    # → Tier 5
  api:    STANDARD   # → Tier 7
  data:   SIMPLE     # → Tier 8
  infra:  MODERATE   # → Tier 6

workspace.yaml — Directory Scopes

Defines workspace roots, allowed/denied path globs, and per-extension validation commands. scope.sh reads this before every write.

policy.yaml — Edit Policy Rules

Controls how decide.sh instructs edit.sh to apply edits.

policies:
  - name: large_file_prefers_sr_blocks
    conditions:
      file_lines_gt: 400
    actions:
      set_edit_mode: "sr-blocks"

playbooks.yaml — Automated Playbooks

Named multi-stage workflows for company.sh.

pricing.yaml — Cost Multipliers

Per-model rates for cost estimation written to logs/cost.jsonl.

workforce.yaml — Agent Role Profiles

Assigns named agent roles to allowed tier ranges and workspace associations.

Clone this wiki locally