claude-profile: remove provider-yaml system, embed model config in profiles

Provider selection phase removed; Anthropic driver→model_id is now
hardcoded in the script and non-Anthropic profiles supply provider.env
(MODEL_ID, ANTHROPIC_BASE_URL, ANTHROPIC_API_KEY_FILE).

Test suite baseline changes 58 → 41 assertions: the 17 dropped
assertions covered the removed provider-yaml selection phase, not
retained behaviour.

Includes refactor-derived memory: decisions (provider architecture,
driver enforcement via --model), bash gotchas (read -rp under set -e,
never eval user config), process lessons.
This commit is contained in:
Paul O'Reilly
2026-06-12 21:26:07 +12:00
parent c0a2110ee6
commit 9e13b7f096
16 changed files with 271 additions and 398 deletions

View File

@@ -7,42 +7,38 @@
# A "deep work" session on the homelab cluster
deep-cluster:
profile: oreillyit
profile: oreillyit-anthropic
mode: deep
project: cluster-bootstrap
time_horizon: hours
async: yes
# A quick edit on the small-scripts repo (no questions, just launch)
quick-skills:
profile: oreillyit
profile: oreillyit-anthropic
mode: quick
project: small-scripts
# Overnight orchestration of container agents on the image-gen project
orch-overnight:
profile: oreillyit
profile: oreillyit-anthropic
mode: orch
project: ai-image-gen
time_horizon: overnight
autoloop: yes
# Cheap conversational session, no project
chat-only:
profile: oreillyit
profile: oreillyit-anthropic
mode: chat
# Hybrid session — Haiku driver with Opus subagents on call
hybrid-day:
profile: oreillyit
profile: oreillyit-anthropic
mode: hybrid
project: cluster-bootstrap
time_horizon: hours
async: yes
# Quick session via MiniMax — uses the minimax profile (no OAuth credentials)
# Quick session via MiniMax — uses the minimax profile (provider.env embedded)
quick-minimax:
profile: minimax
profile: oreillyit-minimax
mode: quick
provider: minimax-sonnet
project: small-scripts

View File

@@ -1,3 +0,0 @@
name: anthropic-haiku
display: Anthropic (Haiku)
model_id: claude-haiku-4-5-20251001

View File

@@ -1,3 +0,0 @@
name: anthropic-opus-1m
display: Anthropic (Opus 1M ctx)
model_id: "claude-opus-4-6[1m]"

View File

@@ -1,3 +0,0 @@
name: anthropic-opus
display: Anthropic (Opus)
model_id: claude-opus-4-6

View File

@@ -1,3 +0,0 @@
name: anthropic-sonnet
display: Anthropic (Sonnet)
model_id: claude-sonnet-4-6

View File

@@ -1,16 +0,0 @@
name: minimax-sonnet
display: MiniMax (M2.7)
model_id: MiniMax-M2.7
base_url: https://api.minimax.io/anthropic
api_key_env: ANTHROPIC_API_KEY
api_key_file: ~/.claude-secrets/minimax-auth-token
extra_env:
ANTHROPIC_MODEL: MiniMax-M2.7
ANTHROPIC_SMALL_FAST_MODEL: MiniMax-M2.7
ANTHROPIC_DEFAULT_SONNET_MODEL: MiniMax-M2.7
ANTHROPIC_DEFAULT_OPUS_MODEL: MiniMax-M2.7
ANTHROPIC_DEFAULT_HAIKU_MODEL: MiniMax-M2.7
API_TIMEOUT_MS: "3000000"
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1"
DISABLE_PROMPT_CACHING: "1"
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1"