Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.
Shell agent-teamsai-agentai-automationanthropicautonomous-agentawsbusiness-operationsclaudeclaude-codeclaude-code-plugindevopsecommerceinbox-zeroklaviyomarketingmcpmorning-briefingpr-automationshopifyterminal
Strip hard-coded Claude model pins; inherit session default (#955)
Aurora Capital48e635857fb3
diff --git a/claude-ops/CHANGELOG.md b/claude-ops/CHANGELOG.mdindex 7c3ce603..2c05c7df 100644--- a/claude-ops/CHANGELOG.md+++ b/claude-ops/CHANGELOG.md@@ -2,6 +2,10 @@## Unreleased+- Removed every hard-coded Claude model id and `model:` frontmatter pin; agents, skills and cron scripts now inherit the session default (env-overridable per script).++- Fixed `ops-release` to move the existing `Unreleased` body into the new version once, leaving a blank `Unreleased` heading for future changes.+- fix(security): a third party's identifiers can no longer reach this publicrepo. Every identity check was denylist-driven, and a denylist can only holdthe operator's OWN terms — it structurally cannot hold a client's workspacediff --git a/claude-ops/agents/ar-producer.md b/claude-ops/agents/ar-producer.mdindex 4d5ca0c9..46e1d34a 100644--- a/claude-ops/agents/ar-producer.md+++ b/claude-ops/agents/ar-producer.md@@ -1,7 +1,6 @@---name: ar-producerdescription: "OPS specialist: A&R a record like a dance-pop hit label owner + master producer"-model: opustools: Bash, Read, WebSearch, mcp__audio-ar__full_ar_report, mcp__audio-ar__analyze_track, mcp__audio-ar__mood_score, mcp__audio-ar__transcribe_vocals, mcp__audio-ar__separate_stems, mcp__audio-ar__render_visuals, mcp__audio-ar__analyze_stems, mcp__audio-ar__cyanite_analyze, mcp__audio-ar__musicai_analyze, mcp__audio-ar__soundcharts_lookup---diff --git a/claude-ops/agents/build-fixer.md b/claude-ops/agents/build-fixer.mdindex 7e3b57b8..a6b7e490 100644--- a/claude-ops/agents/build-fixer.md+++ b/claude-ops/agents/build-fixer.md@@ -2,7 +2,6 @@name: build-fixerdescription: "OPS specialist: Repairs a SINGLE failed local build (`npm run build:*`, fastlane, expo, etc.)"tools: Read, Edit, Bash, Grep, Glob-model: sonnet---You are **Build Fixer** — focused mobile/native build engineer persona.diff --git a/claude-ops/agents/comms-scanner.md b/claude-ops/agents/comms-scanner.mdindex 7678494a..af53fde2 100644--- a/claude-ops/agents/comms-scanner.md+++ b/claude-ops/agents/comms-scanner.md@@ -1,7 +1,6 @@---name: comms-scannerdescription: "OPS specialist: Scans all communication channels for FULL inbox state (not just unread)"-model: claude-sonnet-4-6effort: lowmaxTurns: 10tools:diff --git a/claude-ops/agents/daemon-agent.md b/claude-ops/agents/daemon-agent.mdindex caeab4f3..f1a6fd27 100644--- a/claude-ops/agents/daemon-agent.md+++ b/claude-ops/agents/daemon-agent.md@@ -1,7 +1,6 @@---name: ops-daemon-managerdescription: "OPS specialist: Manages the ops background daemon"-model: claude-sonnet-4-6effort: lowmaxTurns: 10memory: projectdiff --git a/claude-ops/agents/dependency-auditor.md b/claude-ops/agents/dependency-auditor.mdindex c18d08ec..e2271d6b 100644--- a/claude-ops/agents/dependency-auditor.md+++ b/claude-ops/agents/dependency-auditor.md@@ -2,7 +2,6 @@name: dependency-auditordescription: "OPS specialist: Audits project dependencies for security advisories, version drift, and unused…"tools: Read, Bash, Grep, Glob, WebFetch-model: sonnet---You are a **Dependency Auditor**. Read-only by default — you produce a report, you do not modify the lockfile.diff --git a/claude-ops/agents/deploy-fixer.md b/claude-ops/agents/deploy-fixer.mdindex b82339f6..351e6a78 100644--- a/claude-ops/agents/deploy-fixer.md+++ b/claude-ops/agents/deploy-fixer.md@@ -2,7 +2,6 @@name: deploy-fixerdescription: "OPS specialist: Diagnoses and remediates a SINGLE failed post-merge deployment"tools: Read, Edit, Bash, Grep, Glob-model: sonnet---You are **Deploy Fixer** — focused infrastructure SRE persona. You execute one repair, open one PR, and exit.diff --git a/claude-ops/agents/doctor-agent.md b/claude-ops/agents/doctor-agent.mdindex 3f13de1e..410ddc3a 100644--- a/claude-ops/agents/doctor-agent.md+++ b/claude-ops/agents/doctor-agent.md@@ -1,7 +1,6 @@---name: doctor-agentdescription: "OPS specialist: Diagnoses and auto-fixes ops plugin configuration errors, manifest issues, broken…"-model: claude-sonnet-4-6effort: highmaxTurns: 30tools:diff --git a/claude-ops/agents/general-purpose.md b/claude-ops/agents/general-purpose.mdindex 2b7a6a81..4608bbd0 100644--- a/claude-ops/agents/general-purpose.md+++ b/claude-ops/agents/general-purpose.md@@ -2,7 +2,6 @@name: general-purposedescription: "OPS specialist: Fully-equipped fallback agent for tasks that don't fit a known specialist"tools: Read, Write, Edit, Bash, Grep, Glob, NotebookEdit, TodoWrite, WebSearch, WebFetch-model: sonnet---You are a senior full-stack engineer acting as the safety net when no claude-ops specialist fits. You are NOT a generic LLM — you operate with discipline:diff --git a/claude-ops/agents/infra-monitor.md b/claude-ops/agents/infra-monitor.mdindex 023af2b0..bdc355f0 100644--- a/claude-ops/agents/infra-monitor.md+++ b/claude-ops/agents/infra-monitor.md@@ -1,7 +1,6 @@---name: infra-monitordescription: "OPS specialist: Multi-service infrastructure health checker"-model: claude-sonnet-4-6effort: mediummaxTurns: 25tools:diff --git a/claude-ops/agents/marketing-optimizer.md b/claude-ops/agents/marketing-optimizer.mdindex f0912eb1..13abdbe0 100644--- a/claude-ops/agents/marketing-optimizer.md+++ b/claude-ops/agents/marketing-optimizer.md@@ -1,12 +1,10 @@---name: marketing-optimizerdescription: "OPS specialist: Cross-platform ad budget optimization"-model: sonnet---# Marketing Optimizer Agent-**Model:** claude-sonnet-4-5**Purpose:** Cross-platform ad budget optimization — reads Meta + Google Ads data, computes blended ROAS, and recommends specific budget shifts.---diff --git a/claude-ops/agents/memory-extractor.md b/claude-ops/agents/memory-extractor.mdindex 2c39a403..74a25d24 100644--- a/claude-ops/agents/memory-extractor.md+++ b/claude-ops/agents/memory-extractor.md@@ -1,7 +1,6 @@---name: memory-extractordescription: "OPS specialist: Background agent that extracts user profiles, contact cards, and behavioral patterns…"-model: sonneteffort: lowmaxTurns: 10memory: project@@ -69,7 +68,7 @@ Both sources are optional — the extractor exits cleanly if unavailable.## Extraction Model-Uses `claude-haiku-4-5-20251001` for cost efficiency. Typical cost per run: <$0.01.+Inherits the session default model. Typical cost per run: <$0.01.## Memory Formatdiff --git a/claude-ops/agents/monitor-agent.md b/claude-ops/agents/monitor-agent.mdindex 842c28fd..90365ec6 100644--- a/claude-ops/agents/monitor-agent.md+++ b/claude-ops/agents/monitor-agent.md@@ -1,7 +1,6 @@---name: monitor-agentdescription: "OPS specialist: Lightweight APM and metrics probe agent"-model: sonneteffort: lowmaxTurns: 15tools:diff --git a/claude-ops/agents/ops:home-agent.md b/claude-ops/agents/ops:home-agent.mdindex b8225ec8..13370729 100644--- a/claude-ops/agents/ops:home-agent.md+++ b/claude-ops/agents/ops:home-agent.md@@ -1,7 +1,6 @@---name: ops:home-agentdescription: "OPS specialist: Homey Pro probe agent"-model: claude-sonnet-4-6effort: lowmaxTurns: 10tools:diff --git a/claude-ops/agents/ops:unifi-agent.md b/claude-ops/agents/ops:unifi-agent.mdindex 006ade78..b576fe2f 100644--- a/claude-ops/agents/ops:unifi-agent.md+++ b/claude-ops/agents/ops:unifi-agent.md@@ -1,7 +1,6 @@---name: ops:unifi-agentdescription: "OPS specialist: UniFi probe agent"-model: claude-sonnet-4-6effort: lowmaxTurns: 10tools:diff --git a/claude-ops/agents/project-scanner.md b/claude-ops/agents/project-scanner.mdindex 0240b5e2..9b6c08aa 100644--- a/claude-ops/agents/project-scanner.md+++ b/claude-ops/agents/project-scanner.md@@ -1,7 +1,6 @@---name: project-scannerdescription: "OPS specialist: Git, PR, and CI status scanner across all registered repos"-model: claude-sonnet-4-6effort: lowmaxTurns: 15tools:diff --git a/claude-ops/agents/revenue-tracker.md b/claude-ops/agents/revenue-tracker.mdindex 983631af..f0cb3681 100644--- a/claude-ops/agents/revenue-tracker.md+++ b/claude-ops/agents/revenue-tracker.md@@ -1,7 +1,6 @@---name: revenue-trackerdescription: "OPS specialist: Revenue, billing, and credits analysis agent"-model: claude-sonnet-4-6effort: highmaxTurns: 30tools:diff --git a/claude-ops/agents/triage-agent.md b/claude-ops/agents/triage-agent.mdindex 4510ede7..bd40e7a4 100644--- a/claude-ops/agents/triage-agent.md+++ b/claude-ops/agents/triage-agent.md@@ -1,7 +1,6 @@---name: triage-agentdescription: "OPS specialist: Investigates a specific issue from Sentry, Linear, or GitHub"-model: claude-sonnet-4-6effort: highmaxTurns: 40tools:diff --git a/claude-ops/agents/yolo-ceo.md b/claude-ops/agents/yolo-ceo.mdindex b4c81d6e..7b5e7f0e 100644--- a/claude-ops/agents/yolo-ceo.md+++ b/claude-ops/agents/yolo-ceo.md@@ -1,7 +1,6 @@---name: yolo-ceodescription: "OPS specialist: Strategic priority agent"-model: claude-opus-4-6effort: highmaxTurns: 35tools:diff --git a/claude-ops/agents/yolo-cfo.md b/claude-ops/agents/yolo-cfo.mdindex 176850a4..ca789ae0 100644--- a/claude-ops/agents/yolo-cfo.md+++ b/claude-ops/agents/yolo-cfo.md@@ -1,7 +1,6 @@---name: yolo-cfodescription: "OPS specialist: Financial analysis agent"-model: claude-opus-4-6effort: highmaxTurns: 35tools:diff --git a/claude-ops/agents/yolo-coo.md b/claude-ops/agents/yolo-coo.mdindex deb6a3de..c0e5c512 100644--- a/claude-ops/agents/yolo-coo.md+++ b/claude-ops/agents/yolo-coo.md@@ -1,7 +1,6 @@---name: yolo-coodescription: "OPS specialist: Operations execution agent"-model: claude-opus-4-6effort: highmaxTurns: 40tools:diff --git a/claude-ops/agents/yolo-cto.md b/claude-ops/agents/yolo-cto.mdindex 172b3576..d18b765c 100644--- a/claude-ops/agents/yolo-cto.md+++ b/claude-ops/agents/yolo-cto.md@@ -1,7 +1,6 @@---name: yolo-ctodescription: "OPS specialist: Technical health agent"-model: claude-opus-4-6effort: highmaxTurns: 40tools:diff --git a/claude-ops/bin/ops-bg b/claude-ops/bin/ops-bgindex 0d61239e..5834b33b 100755--- a/claude-ops/bin/ops-bg+++ b/claude-ops/bin/ops-bg@@ -18,7 +18,7 @@# respawn [<id>|--all] Restart sessions (e.g. to pick up a CC upgrade).## Dispatch defaults (override via flags):-# --model opus+# --model inherits the session default (or OPS_BG_MODEL when set)# --effort high# --add-dir $PWD# --name (optional) name shown in `claude agents` / fleet TUI for the bg session@@ -26,7 +26,7 @@## Examples:# ops-bg dispatch "audit My-Project repos for cost-leak gaps"-# ops-bg dispatch --agent ops:yolo-cto --model sonnet "analyze prod incidents"+# ops-bg dispatch --agent ops:yolo-cto --model <model> "analyze prod incidents"# ops-bg list# ops-bg list --json | jq '.[] | select(.status=="busy")'# ops-bg logs 7c5dcf5d@@ -63,7 +63,7 @@ USAGE() {SUB="$1"; shiftcmd_dispatch() {- local model="opus"+ local model="${OPS_BG_MODEL:-}"local effort="high"local add_dir="$PWD"local agent=""@@ -89,15 +89,20 @@ cmd_dispatch() {# Background sessions run on Claude Code's own OAuth credential. A retired# relay backend used to inject a --settings overlay here that pinned every# session to a base URL and a static relay token; nothing is injected now.- local -a args=(--bg --model "$model" --effort "$effort" --add-dir "$add_dir")+ local -a args=(--bg --effort "$effort" --add-dir "$add_dir")if [ -n "$name" ]; then- args=(--bg --name "$name" --model "$model" --effort "$effort" --add-dir "$add_dir")+ args=(--bg --name "$name" --effort "$effort" --add-dir "$add_dir")+ fi+ if [ -n "$model" ]; then+ args+=(--model "$model")fiif [ -n "$agent" ]; thenargs+=(--agent "$agent")fiargs+=("$prompt")- args+=("${extra[@]}")+ if [ "${#extra[@]}" -gt 0 ]; then+ args+=("${extra[@]}")+ fi# Never let agents inherit the API key — force OAuth (subscription) auth.unset ANTHROPIC_API_KEY# Doppler-wrap the launch (unless the caller already provisioned the env):diff --git a/claude-ops/bin/ops-creative-brief b/claude-ops/bin/ops-creative-briefindex 6796a039..b2d3136f 100755--- a/claude-ops/bin/ops-creative-brief+++ b/claude-ops/bin/ops-creative-brief@@ -205,7 +205,11 @@ EOF# shellcheck disable=SC1091source "$PLUGIN_ROOT/scripts/lib/claude-invoke.sh" 2>/dev/null || trueif command -v claude_invoke >/dev/null 2>&1; then- printf '%s' "$prompt" | claude_invoke --model sonnet --no-session-persistence -p > "$out"+ local -a claude_args=(--no-session-persistence -p)+ if [ -n "${OPS_CREATIVE_BRIEF_CLAUDE_MODEL:-}" ]; then+ claude_args=(--model "$OPS_CREATIVE_BRIEF_CLAUDE_MODEL" "${claude_args[@]}")+ fi+ printf '%s' "$prompt" | claude_invoke "${claude_args[@]}" > "$out"elseprintf '%s' "$prompt" | claude -p > "$out"fidiff --git a/claude-ops/bin/ops-marketing-autopilot b/claude-ops/bin/ops-marketing-autopilotindex 29d1d283..d912d803 100755--- a/claude-ops/bin/ops-marketing-autopilot+++ b/claude-ops/bin/ops-marketing-autopilot@@ -2227,18 +2227,19 @@ delegate_claude() {. "${_lib_dir}/generate.sh" 2>/dev/null || { report "- ERROR: could not source generate.sh"; return 1; }# Build models_json from config- local mm_model img_model api_key_ref+ local mm_model img_model judge_model api_key_refmm_model="$(ap_get "$proj" '.creative_gen.analysis.multimodal')"; mm_model="${mm_model:-gemini-3.1-pro-preview}"img_model="$(ap_get "$proj" '.creative_gen.image')"; img_model="${img_model:-gemini-3.1-flash-image-preview}"+ judge_model="$(ap_get "$proj" '.creative_gen.analysis.judge')"; judge_model="${judge_model:-${OPS_CREATIVE_JUDGE_MODEL:-}}"api_key_ref="$(ap_get "$proj" '.creative_gen.api_key')"; api_key_ref="${api_key_ref:-env:GEMINI_API_KEY}"local models_jsonmodels_json="$(jq -n \--arg mm "$mm_model" \--arg img "$img_model" \- --arg judge "claude-opus-4-7" \+ --arg judge "$judge_model" \--arg key "$api_key_ref" \'{multimodal:$mm,image:$img,judge:$judge,api_key_ref:$key}' 2>/dev/null \- || echo '{"multimodal":"gemini-3.1-pro-preview","image":"gemini-3.1-flash-image-preview","judge":"claude-opus-4-7","api_key_ref":"env:GEMINI_API_KEY"}')"+ || echo '{"multimodal":"gemini-3.1-pro-preview","image":"gemini-3.1-flash-image-preview","judge":"","api_key_ref":"env:GEMINI_API_KEY"}')"local state_dir="${OPS_DATA_DIR}/autopilot_state/${proj}"local asset_dir="${state_dir}/assets"@@ -2267,7 +2268,11 @@ delegate_claude() {filocal brief_prompt="Generate a brief for a single ad creative for brand '${brand_name}' with voice: ${brand_voice}. Return ONLY JSON: {\"prompt\":\"<vivid 9:16 portrait ad description>\",\"type\":\"video\",\"copy\":\"<headline copy 5-8 words>\"}"local brief_raw- brief_raw="$(claude_invoke -p "$brief_prompt" --model claude-opus-4-7 --no-session-persistence --output-format json 2>/dev/null || echo '')"+ local -a brief_args=(-p "$brief_prompt" --no-session-persistence --output-format json)+ if [ -n "${OPS_MARKETING_AUTOPILOT_MODEL:-}" ]; then+ brief_args+=(--model "$OPS_MARKETING_AUTOPILOT_MODEL")+ fi+ brief_raw="$(claude_invoke "${brief_args[@]}" 2>/dev/null || echo '')"local brief_jsonbrief_json="$(extract_json "$brief_raw" 2>/dev/null || echo '')"if [ -z "$brief_json" ] || [ "$brief_json" = "{}" ]; then@@ -2550,7 +2555,11 @@ Return ONLY a JSON object with these exact keys:Return ONLY the JSON, no other text."local derive_raw- derive_raw="$(claude_invoke -p "$derive_prompt" --model claude-opus-4-7 --no-session-persistence --output-format json 2>/dev/null || echo '')"+ local -a derive_args=(-p "$derive_prompt" --no-session-persistence --output-format json)+ if [ -n "${OPS_MARKETING_AUTOPILOT_MODEL:-}" ]; then+ derive_args+=(--model "$OPS_MARKETING_AUTOPILOT_MODEL")+ fi+ derive_raw="$(claude_invoke "${derive_args[@]}" 2>/dev/null || echo '')"local strategystrategy="$(extract_json "$derive_raw" 2>/dev/null || echo '')"if [ -z "$strategy" ] || [ "$strategy" = "{}" ]; thendiff --git a/claude-ops/bin/ops-release b/claude-ops/bin/ops-releaseindex d038d273..d9e1c348 100755--- a/claude-ops/bin/ops-release+++ b/claude-ops/bin/ops-release@@ -29,14 +29,14 @@# [--no-ai] [--no-docs] [--no-wiki]# [--no-merge] [--no-tag] [--dry-run] [-h|--help]#-# Defaults: --type patch, AI changelog, doc-count sync, auto squash-merge, tag,-# wiki sync. --notes overrides the AI changelog. --no-ai falls back to-# commit subjects.+# Defaults: --type patch, doc-count sync, auto squash-merge, tag, and wiki+# sync. A non-empty Unreleased body is drained into the release;+# otherwise --notes overrides AI, and --no-ai uses commit subjects.# Examples:# ops-release # patch bump, AI changelog, docs+wiki sync, merge+tag# ops-release --type minor # minor bump# ops-release --version 3.0.0 # explicit version-# ops-release --notes "..." # hand-written changelog (skips AI)+# ops-release --notes "..." # hand-written fallback when Unreleased is empty# ops-release --no-ai --no-wiki # commit-subject changelog, no wiki push# ops-release --no-merge # open the PR, leave it for review# ops-release --dry-run # show what would change (incl. AI changelog), touch nothing@@ -55,6 +55,8 @@ MARKETPLACE_JSON="$REPO_ROOT/.claude-plugin/marketplace.json"CHANGELOG="$PLUGIN_DIR/CHANGELOG.md"PLUGIN_NAME="ops" # name in marketplace.json .plugins[]GH_REPO="Lifecycle-Innovations-Limited/claude-ops"+# shellcheck source=../scripts/lib/release-changelog.sh+. "$PLUGIN_DIR/scripts/lib/release-changelog.sh"# package.json may live under claude-ops/ (current layout) or at the repo root.# Record its path RELATIVE to the repo root so we can reapply it inside a worktree.@@ -302,9 +304,14 @@ REL_DATE="$(date +%F)"echo "ops-release: $CUR -> $NEW (type=$bump_type, date=$REL_DATE)"# ----- changelog body ------# Priority: explicit --notes > AI-synthesized (Keep a Changelog style) > commit subjects.+# A maintained Unreleased body is the release source of truth. Consume it once;+# explicit/AI/generated notes are fallbacks only when Unreleased is empty.ai_used=0-if [ -z "$notes" ]; then+unreleased_notes="$(release_unreleased_body "$CHANGELOG")"+if [ -n "$unreleased_notes" ]; then+ notes="$unreleased_notes"+ echo "ops-release: using and draining existing Unreleased notes"+elif [ -z "$notes" ]; thenprev_marker="$(git -C "$REPO_ROOT" log -1 --format=%H -- "$CHANGELOG" 2>/dev/null || true)"commits=""; range=""if [ -n "$prev_marker" ]; then@@ -352,7 +359,7 @@ if [ "$dry_run" -eq 1 ]; then[ -n "$PACKAGE_REL" ] && echo " $REPO_ROOT/$PACKAGE_REL"echo " $PLUGIN_DIR/hermes-plugin/plugin.yaml"echo " $REPO_ROOT/installer/src/config.mjs (DEFAULT_CONFIG.source.ref)"- echo "--- would prepend to $CHANGELOG:"+ echo "--- would drain Unreleased into $CHANGELOG:"printf '%s\n' "$changelog_section"echo "--- would: branch release/v$NEW -> PR to main$([ "$do_merge" -eq 1 ] && echo ' -> wait for CI -> squash-merge')$([ "$do_tag" -eq 1 ] && echo " -> tag v$NEW")"exit 0@@ -423,16 +430,9 @@ if n == 1:PYfi-# 4. prepend CHANGELOG section before the first existing "## [" entry.-# The section is multi-line; pass it via a temp file (awk -v mangles embedded-# newlines → "awk: newline in string"), reading it with getline at the insert.+# 4. drain Unreleased into the new version while preserving a blank heading.sec_file="$(mktemp)"; printf '%s\n' "$changelog_section" >"$sec_file"-awk -v secfile="$sec_file" '- function emit_sec( line) { while ((getline line < secfile) > 0) print line; print "" }- !done && /^## [0-9[]/ { emit_sec(); done=1 }- { print }- END { if (!done) { print ""; emit_sec() } }-' "$wCL" >"$wCL.tmp" && mv "$wCL.tmp" "$wCL"+release_write_changelog "$wCL" "$sec_file" "$wCL.tmp" && mv "$wCL.tmp" "$wCL"rm -f "$sec_file"echo "ops-release: bumped plugin.json + marketplace.json$([ -n "$PACKAGE_REL" ] && echo " + $PACKAGE_REL") + hermes-plugin/plugin.yaml + installer ref + CHANGELOG.md"diff --git a/claude-ops/bin/ops-suggest-specialized-agent b/claude-ops/bin/ops-suggest-specialized-agentindex 91b16b02..fc858dae 100755--- a/claude-ops/bin/ops-suggest-specialized-agent+++ b/claude-ops/bin/ops-suggest-specialized-agent@@ -82,7 +82,6 @@ Task:name: <kebab-name>description: <one-paragraph: when to use, with 2-3 example scenarios in <example>...</example> tags>tools: <comma-separated tool list scoped to genuine needs>-model: sonnet---<persona body — 100-300 words covering capabilities, operating constraints, output format>@@ -90,8 +89,12 @@ Final line of your output: 'NEW: <name>' or 'SKIP: <reason>'."nohup bash -c ". '$PLUGIN_ROOT/scripts/lib/claude-invoke.sh'- printf '%s' \"\$1\" | claude_invoke -p --model claude-sonnet-4-6 --dangerously-skip-permissions --no-session-persistence > '$drafter_log' 2>&1- " _ "$draft_prompt" </dev/null >/dev/null 2>&1 &+ drafter_args=(-p --dangerously-skip-permissions --no-session-persistence)+ if [ -n "\$2" ]; then+ drafter_args+=(--model "\$2")+ fi+ printf '%s' "\$1" | claude_invoke "\${drafter_args[@]}" > '$drafter_log' 2>&1+ " _ "$draft_prompt" "${OPS_AGENT_DRAFTER_MODEL:-}" </dev/null >/dev/null 2>&1 &disown 2>/dev/null || truefidiff --git a/claude-ops/docs/agents-reference.md b/claude-ops/docs/agents-reference.mdindex 5c3d92b5..ff4e0784 100644--- a/claude-ops/docs/agents-reference.md+++ b/claude-ops/docs/agents-reference.md@@ -23,7 +23,7 @@ All 21 agents in claude-ops v2.1.0. Agent files live in `agents/`.> Agents are spawned by skills — they are not invoked directly. Each has a `memory` scope for cross-session learning and a defined `effort` level that controls token budget.> [!IMPORTANT]-> **v1.1.0 model bumps:** All scanner, fix, and daemon agents upgraded to **`claude-sonnet-4-6`**. All C-suite analysts upgraded to **`claude-opus-4-6`**. The `memory-extractor` stays on Haiku for cost — it's the only background service that runs every 30 min on every box.+> **v1.1.0 model bumps:** All scanner, fix, and daemon agents upgraded to **session default (no pin)**. All C-suite analysts upgraded to **session default (no pin)**. The `memory-extractor` stays on Haiku for cost — it's the only background service that runs every 30 min on every box.---@@ -33,14 +33,14 @@ These agents run in the background, feeding structured JSON data to the main ski| Agent | Model | Effort | maxTurns | Tools | Consumed by || ----------------- | ------------------- | ------ | -------- | ---------------- | ------------------------- |-| `comms-scanner` | `claude-sonnet-4-6` | low | 10 | Bash (read-only) | `ops-inbox`, `ops-go` |-| `infra-monitor` | `claude-sonnet-4-6` | low | 15 | Bash | `ops-fires`, `ops-deploy` |-| `project-scanner` | `claude-sonnet-4-6` | low | 15 | Bash | `ops-projects`, `ops-go` |-| `revenue-tracker` | `claude-sonnet-4-6` | medium | 20 | Bash | `ops-revenue`, `ops-go` |+| `comms-scanner` | session default (no pin) | low | 10 | Bash (read-only) | `ops-inbox`, `ops-go` |+| `infra-monitor` | session default (no pin) | low | 15 | Bash | `ops-fires`, `ops-deploy` |+| `project-scanner` | session default (no pin) | low | 15 | Bash | `ops-projects`, `ops-go` |+| `revenue-tracker` | session default (no pin) | medium | 20 | Bash | `ops-revenue`, `ops-go` |### `comms-scanner` · `agents/comms-scanner.md`-- **Model**: `claude-sonnet-4-6`+- **Model**: session default (no pin)- **Effort**: low · **maxTurns**: 10- **Memory**: project scope- **Tools**: Bash only (read-only)@@ -48,7 +48,7 @@ These agents run in the background, feeding structured JSON data to the main ski### `infra-monitor` · `agents/infra-monitor.md`-- **Model**: `claude-sonnet-4-6`+- **Model**: session default (no pin)- **Effort**: low · **maxTurns**: 15- **Memory**: project scope- **Tools**: Bash only@@ -56,7 +56,7 @@ These agents run in the background, feeding structured JSON data to the main ski### `project-scanner` · `agents/project-scanner.md`-- **Model**: `claude-sonnet-4-6`+- **Model**: session default (no pin)- **Effort**: low · **maxTurns**: 15- **Memory**: project scope- **Tools**: Bash only@@ -64,7 +64,7 @@ These agents run in the background, feeding structured JSON data to the main ski### `revenue-tracker` · `agents/revenue-tracker.md`-- **Model**: `claude-sonnet-4-6`+- **Model**: session default (no pin)- **Effort**: medium · **maxTurns**: 20- **Memory**: project scope- **Tools**: Bash only@@ -78,7 +78,7 @@ These agents are dispatched when issues are found and need resolution.### `triage-agent` · `agents/triage-agent.md`-- **Model**: `claude-sonnet-4-6`+- **Model**: session default (no pin)- **Effort**: high · **maxTurns**: 40- **Isolation**: worktree (sandboxed)- **Purpose**: Investigates a specific issue from Sentry, Linear, or GitHub. Finds the root cause in code, checks if it's already fixed, and either confirms resolution or creates a fix branch with a PR. Runs in an isolated worktree to avoid polluting the main working tree.@@ -93,7 +93,7 @@ These agents are dispatched when issues are found and need resolution.All four run in **parallel** when `/ops:yolo` is invoked. Each uses **Opus 4.6** for maximum analytical depth.> [!IMPORTANT]-> **v1.1.0 bump:** all four C-suite agents now run on `claude-opus-4-6` (up from `claude-opus-4-5` in v0.7.x). Expect sharper reasoning and slightly higher per-run token cost.+> **v1.1.0 bump:** all four C-suite agents now run on session default (no pin) (up from session default (no pin) in v0.7.x). Expect sharper reasoning and slightly higher per-run token cost.### C-Suite Spawn Flow@@ -139,28 +139,28 @@ sequenceDiagram### `yolo-ceo` · `agents/yolo-ceo.md`-- **Model**: `claude-opus-4-6`+- **Model**: session default (no pin)- **Effort**: high · **maxTurns**: 20- **Purpose**: Strategic priority analysis. Growth blockers, resource allocation, build vs. buy decisions, investor-readiness. No sugar-coating.- **Competitor slice**: `competitor_vertical_slice ceo` — NEW entrants, comp funding, strategic moves. Factors into market-positioning recommendations.### `yolo-cto` · `agents/yolo-cto.md`-- **Model**: `claude-opus-4-6`+- **Model**: session default (no pin)- **Effort**: high · **maxTurns**: 25- **Purpose**: Technical health analysis. Architecture, tech debt, production risks, scalability limits, and cut corners. Brutally honest about what will break.- **Competitor slice**: `competitor_vertical_slice cto` — changelog/feature page-diffs, Show HN / Launch HN. Benchmarks tech velocity.### `yolo-cfo` · `agents/yolo-cfo.md`-- **Model**: `claude-opus-4-6`+- **Model**: session default (no pin)- **Effort**: high · **maxTurns**: 20- **Purpose**: Financial analysis. AWS burn rate, runway, ROI on current work, credits expiry, cost anomalies. No optimism without data.- **Competitor slice**: `competitor_vertical_slice cfo` — pricing diffs with money tokens (severity:high), comp funding rounds. Quantifies revenue impact of competitor pricing moves.### `yolo-coo` · `agents/yolo-coo.md`-- **Model**: `claude-opus-4-6`+- **Model**: session default (no pin)- **Effort**: high · **maxTurns**: 25- **Purpose**: Operations execution analysis. Stale work, broken processes, missing automation, communication failures. What the CEO doesn't see.- **Competitor slice**: `competitor_vertical_slice coo` — Greenhouse/Lever hiring signals (especially senior roles), layoff signals. Surfaces operational threats and poaching opportunities.@@ -174,21 +174,21 @@ sequenceDiagram### `daemon-agent` · `agents/daemon-agent.md`-- **Model**: `claude-sonnet-4-6`+- **Model**: session default (no pin)- **Effort**: low · **maxTurns**: 10- **Memory**: project scope- **Purpose**: Manages the ops background daemon — start, stop, restart services, check health. Spawned by `ops-doctor` and `ops-setup` when daemon configuration changes are needed.### `doctor-agent` · `agents/doctor-agent.md`-- **Model**: `claude-sonnet-4-6`+- **Model**: session default (no pin)- **Effort**: high · **maxTurns**: 30- **Tools**: Bash, Read, Write, Edit, Grep, Glob (no Agent spawning)- **Purpose**: Diagnoses and auto-fixes ops plugin configuration errors, manifest issues, broken permissions, invalid JSON, and stale cache copies. Spawned by `/ops:doctor`.### `memory-extractor` · `agents/memory-extractor.md`-- **Model**: `claude-haiku-4-5-20251001`+- **Model**: session default (no pin)- **Effort**: low · **maxTurns**: 10- **Memory**: project scope- **Purpose**: Background agent that extracts user profiles, contact cards, and behavioral patterns from chat history. Runs as a daemon service every 30 minutes. Writes structured markdown to `memories/`. Used by all communication skills for context-aware drafting.diff --git a/claude-ops/docs/agents.md b/claude-ops/docs/agents.mdindex fa116fd4..a204805e 100644--- a/claude-ops/docs/agents.md+++ b/claude-ops/docs/agents.md@@ -88,7 +88,7 @@ To extend: copy [`config/specialist-keywords.example.json`](../config/specialist## Adding your own specialist1. Drop a `<name>.md` file under `~/.claude/agents/` (user-scoped) or `agents/` (committed to your project's `.claude/`).-2. Frontmatter must include `name`, `description`, `model`, `tools` (allow-list).+2. Frontmatter must include `name`, `description`, `tools` (allow-list). Omit `model`: every agent inherits the session default, and a pinned id breaks the moment an org restricts it.3. Add an entry to your `~/.claude/config/specialist-keywords.json` mapping keywords → agent name.4. Verify with `/ops:deploy-fix test` (which exercises the keyword path) or by manually invoking `Task` with a matching prompt.@@ -98,7 +98,6 @@ Minimal example:---name: my-rust-fixerdescription: Diagnoses and fixes Rust compile errors-model: sonnettools: [Bash, Read, Edit, Write]---diff --git a/claude-ops/docs/memories-system.md b/claude-ops/docs/memories-system.mdindex 8f84b0d4..2bcdb696 100644--- a/claude-ops/docs/memories-system.md+++ b/claude-ops/docs/memories-system.md@@ -193,7 +193,7 @@ The daemon triggers extraction when **any** of these conditions are met:| Volume-based | Message count in `~/.whatsapp-bridge/.health` increased by more than 5 || Manual | `/ops:doctor --run-memory-extractor` |-The extractor uses `claude-haiku-4-5-20251001` (fast + cheap) for all extraction work. It merges new information into existing profiles rather than overwriting, so context accumulates over time.+The extractor uses the model named in `OPS_MEMORY_EXTRACTOR_MODEL` (no pin in the script) for all extraction work. It merges new information into existing profiles rather than overwriting, so context accumulates over time.> [!NOTE]> Haiku 4.5 is used deliberately here — memory extraction is a high-frequency, low-reasoning-depth workload. The tradeoff: cost stays low enough to run every 30 min on every user's machine.diff --git a/claude-ops/email-cos/email-cos-approve-agent.py b/claude-ops/email-cos/email-cos-approve-agent.pyindex f8403a1a..ebc81706 100755--- a/claude-ops/email-cos/email-cos-approve-agent.py+++ b/claude-ops/email-cos/email-cos-approve-agent.py@@ -26,7 +26,7 @@ SD = pathlib.Path())ACCOUNT = os.environ.get("EMAIL_COS_ACCOUNT", "")-NL_MODEL = os.environ.get("EMAIL_COS_NL_MODEL", "claude-haiku-4-5-20251001")+NL_MODEL = os.environ.get("EMAIL_COS_NL_MODEL", "") # empty = inherit session defaultWA_ENABLE = os.environ.get("EMAIL_COS_WA_ENABLE", "false").lower() == "true"WA_JID = os.environ.get("EMAIL_COS_WA_JID", "")WA_BRIDGE_URL = os.environ.get("EMAIL_COS_WA_BRIDGE_URL", "http://localhost:8080")@@ -147,8 +147,7 @@ def interpret(reply_text, codemap):"--strict-mcp-config","--mcp-config",'{"mcpServers":{}}',- "--model",- NL_MODEL,+ *(["--model", NL_MODEL] if NL_MODEL else []),"--dangerously-skip-permissions",prompt,],diff --git a/claude-ops/email-cos/email-cos-orch.sh b/claude-ops/email-cos/email-cos-orch.shindex 30474852..fadc08a8 100755--- a/claude-ops/email-cos/email-cos-orch.sh+++ b/claude-ops/email-cos/email-cos-orch.sh@@ -53,7 +53,7 @@ rc=0# claude exit, so the metrics + failure-notify error-handling below still runs.# Under pipefail the pipeline status is claude's (rightmost non-zero) exit code.printf '%s' "$RENDERED_PROMPT" | \- claude --print --model "$EMAIL_COS_ORCH_MODEL" --dangerously-skip-permissions \+ claude --print ${EMAIL_COS_ORCH_MODEL:+--model "$EMAIL_COS_ORCH_MODEL"} --dangerously-skip-permissions \--strict-mcp-config --mcp-config "$_ORCH_MCP" >> "$SD/orch.out" 2>&1 || rc=$?secs=$(( $(date +%s) - start ))echo "{\"ts\":\"$ts\",\"tier\":\"orch\",\"exit\":$rc,\"secs\":$secs}" >> "$SD/metrics.jsonl"diff --git a/claude-ops/email-cos/email-cos-sweep.sh b/claude-ops/email-cos/email-cos-sweep.shindex dd9ef483..77da4dd4 100755--- a/claude-ops/email-cos/email-cos-sweep.sh+++ b/claude-ops/email-cos/email-cos-sweep.sh@@ -77,7 +77,7 @@ rc=0# `|| rc=$?` keeps `set -e`/`pipefail` from aborting before the metrics line# below runs. Under pipefail the pipeline status is claude's exit code.printf '%s' "$RENDERED_PROMPT" | \- claude --print --model "$EMAIL_COS_SWEEP_MODEL" --dangerously-skip-permissions \+ claude --print ${EMAIL_COS_SWEEP_MODEL:+--model "$EMAIL_COS_SWEEP_MODEL"} --dangerously-skip-permissions \--strict-mcp-config --mcp-config '{"mcpServers":{}}' --allowedTools Bash >> "$SD/sweep.out" 2>&1 || rc=$?secs=$(( $(date +%s) - start ))echo "{\"ts\":\"$ts\",\"tier\":\"sweep\",\"exit\":$rc,\"secs\":$secs,\"new\":$new}" >> "$SD/metrics.jsonl"diff --git a/claude-ops/email-cos/email-cos.config.example.sh b/claude-ops/email-cos/email-cos.config.example.shindex 8630715e..03ed8243 100755--- a/claude-ops/email-cos/email-cos.config.example.sh+++ b/claude-ops/email-cos/email-cos.config.example.sh@@ -22,13 +22,13 @@ EMAIL_COS_POCKET_STATE_DIR="/var/lib/pocket-pipeline"# ── LLM models ───────────────────────────────────────────────────────────────# L1 sweep classifier (fast, cheap — haiku-class recommended).-EMAIL_COS_SWEEP_MODEL="claude-haiku-4-5-20251001"+EMAIL_COS_SWEEP_MODEL="" # empty = inherit the session default# L2 orchestrator (full reasoning — opus recommended for quality drafts).-EMAIL_COS_ORCH_MODEL="claude-opus-4-5"+EMAIL_COS_ORCH_MODEL="" # empty = inherit the session default# Natural-language approval interpreter (haiku-class recommended).-EMAIL_COS_NL_MODEL="claude-haiku-4-5-20251001"+EMAIL_COS_NL_MODEL="" # empty = inherit the session default# Optional: path to a JSON file with ONLY the enrichment MCP servers the# orchestrator needs (e.g. gbrain + tavily). Headless agents must NOT load the# full MCP env or the model context overflows. Empty => orchestrator runs withdiff --git a/claude-ops/email-cos/pocket-responder.py b/claude-ops/email-cos/pocket-responder.pyindex cdfbb0aa..e0f21ed4 100644--- a/claude-ops/email-cos/pocket-responder.py+++ b/claude-ops/email-cos/pocket-responder.py@@ -36,7 +36,7 @@ Config (env or ~/.config/email-cos/config.sh + ~/.mcp-secrets.env):POCKET_STATE_DIR Pipeline state dir (default /var/lib/pocket-pipeline).COS_TG_SEND_CAP Max button messages per send run (default 8).POCKET_CLAUDE_BIN claude binary for the LLM mapper (default: resolved).- POCKET_RESPONDER_MODEL LLM model for freeform mapping (default claude-haiku-4-5).+ POCKET_RESPONDER_MODEL LLM model for freeform mapping (unset = session default model).POCKET_RESPONDER_LLM "0" disables the LLM fallback (fast-path only).POCKET_RESPONDER_LLM_THRESHOLD Min confidence to act on an LLM mapping (default 0.6).POCKET_TYPEFULLY_JS typefully.js path (social publish). Default: skill path.@@ -239,7 +239,7 @@ def _redraft_email(er, orig_body, instruction):if not cb:return ""model = os.environ.get("POCKET_REDRAFT_MODEL") or os.environ.get(- "POCKET_RESPONDER_MODEL", "claude-haiku-4-5"+ "POCKET_RESPONDER_MODEL", "")prompt = ("You revise a DRAFT email reply per the owner's instruction. Output ONLY JSON: "@@ -252,7 +252,7 @@ def _redraft_email(er, orig_body, instruction):f"CURRENT DRAFT:\n{orig_body}\n\nOWNER INSTRUCTION:\n{instruction}\n\nJSON:")try:- r = subprocess.run([cb, "-p", prompt, "--model", model, *_CLAUDE_FLAGS],+ r = subprocess.run([cb, "-p", prompt, *(["--model", model] if model else []), *_CLAUDE_FLAGS],capture_output=True, text=True, timeout=120, env=os.environ)out = (r.stdout or "").strip()except Exception as e:@@ -547,7 +547,7 @@ def _validate_action(ent):}ctx = _gather_action_context(ent)rules = _load_approval_rules()- model = os.environ.get("POCKET_RESPONDER_MODEL", "claude-haiku-4-5")+ model = os.environ.get("POCKET_RESPONDER_MODEL", "")prompt = ("You are a pre-send guard for an action the owner already approved. Decide ""PROCEED (send it) or HOLD (it looks stale, already handled, or breaks a rule). "@@ -558,7 +558,7 @@ def _validate_action(ent):"If context is empty or unclear, default to proceed. JSON:")try:- r = subprocess.run([cb, "-p", prompt, "--model", model, *_CLAUDE_FLAGS],+ r = subprocess.run([cb, "-p", prompt, *(["--model", model] if model else []), *_CLAUDE_FLAGS],capture_output=True, text=True, timeout=90, env=os.environ)out = (r.stdout or "").strip()except Exception as e:@@ -702,7 +702,7 @@ def _llm_map(codemap, message):ob = " options: " + "; ".join(f"{o['key']}) {o['label'][:50]}" for o in opts) if opts else ""lines.append(f"{code}: {ent.get('title','')[:120]}{ob}")catalog = "\n".join(lines)- model = os.environ.get("POCKET_RESPONDER_MODEL", "claude-haiku-4-5")+ model = os.environ.get("POCKET_RESPONDER_MODEL", "")prompt = ("You map a person's freeform approval message to decisions on a fixed list ""of pending items. Output ONLY a JSON array, no prose.\n\n"@@ -718,7 +718,7 @@ def _llm_map(codemap, message):f"PENDING ITEMS:\n{catalog}\n\nMESSAGE:\n{message}\n\nJSON:")try:- r = subprocess.run([cb, "-p", prompt, "--model", model, *_CLAUDE_FLAGS],+ r = subprocess.run([cb, "-p", prompt, *(["--model", model] if model else []), *_CLAUDE_FLAGS],capture_output=True, text=True, timeout=90, env=os.environ)out = (r.stdout or "").strip()except Exception as e:diff --git a/claude-ops/scripts/lib/claude-invoke.sh b/claude-ops/scripts/lib/claude-invoke.shindex b66ef198..728c43a1 100644--- a/claude-ops/scripts/lib/claude-invoke.sh+++ b/claude-ops/scripts/lib/claude-invoke.sh@@ -3,7 +3,7 @@## Usage (source this file, then call claude_invoke):# . "$PLUGIN_ROOT/scripts/lib/claude-invoke.sh"-# claude_invoke --model claude-sonnet-4-6 --no-session-persistence [other claude args]+# claude_invoke --no-session-persistence [other claude args]## Gate:# CLAUDE_OPS_USE_CREDIT_POOL=1 -> route through claude-p-as.mjs (credit pool)@@ -42,41 +42,11 @@ _claude_invoke_find_root() {return 1}-_claude_invoke_sanitize_args() {- CLAUDE_INVOKE_ARGS=()- while [ "$#" -gt 0 ]; do- case "$1" in- --model)- shift- if [[ "${1:-}" =~ [Hh]aiku ]]; then- CLAUDE_INVOKE_ARGS+=(--model claude-sonnet-4-6)- else- CLAUDE_INVOKE_ARGS+=(--model "$1")- fi- ;;- --model=*)- local model="${1#--model=}"- if [[ "$model" =~ [Hh]aiku ]]; then- CLAUDE_INVOKE_ARGS+=(--model=claude-sonnet-4-6)- else- CLAUDE_INVOKE_ARGS+=("$1")- fi- ;;- *)- CLAUDE_INVOKE_ARGS+=("$1")- ;;- esac- shift- done-}-_claude_invoke_exec() {env -u ANTHROPIC_API_KEY -u CLAUDE_API_KEY -u CLAUDE_CODE_OAUTH_TOKEN "$@"}claude_invoke() {- local CLAUDE_INVOKE_ARGS- _claude_invoke_sanitize_args "$@"if [ "${CLAUDE_OPS_USE_CREDIT_POOL:-0}" = "1" ]; thenlocal repo_rootrepo_root="$(_claude_invoke_find_root)" || repo_root=""@@ -85,11 +55,11 @@ claude_invoke() {# Wrapper not found — log a warning and fall back to direct claude so# daemon jobs are never silently dropped due to misconfiguration.printf '[claude-invoke] WARNING: claude-p-as.mjs not found (root=%s) — falling back to direct claude\n' "${repo_root:-unresolved}" >&2- _claude_invoke_exec claude "${CLAUDE_INVOKE_ARGS[@]}"+ _claude_invoke_exec claude "$@"return $?fi- _claude_invoke_exec node "$wrapper" -- "${CLAUDE_INVOKE_ARGS[@]}"+ _claude_invoke_exec node "$wrapper" -- "$@"else- _claude_invoke_exec claude "${CLAUDE_INVOKE_ARGS[@]}"+ _claude_invoke_exec claude "$@"fi}diff --git a/claude-ops/scripts/lib/creative/analyze.sh b/claude-ops/scripts/lib/creative/analyze.shindex da8870d2..7b366c39 100644--- a/claude-ops/scripts/lib/creative/analyze.sh+++ b/claude-ops/scripts/lib/creative/analyze.sh@@ -5,7 +5,7 @@# creative_analyze <asset_path> <copy_text> <models_json>## models_json example:-# '{"multimodal":"gemini-3.1-pro-preview","judge":"claude-opus-4-7",+# '{"multimodal":"gemini-3.1-pro-preview","judge":"",# "image":"gemini-flash-latest","api_key_ref":"env:GEMINI_API_KEY"}'## Prints ONE JSON:@@ -299,10 +299,10 @@ Return ONLY a JSON object with these exact keys. Example:printf '%s' "$raw_text"}-# ── _claude_copy_score — Opus 4.7 copy analysis ──────────────────────────────+# ── _claude_copy_score — Claude copy analysis (session default model unless overridden) ──────────────────────────────_claude_copy_score() {local copy_text="$1"- local model="${2:-claude-opus-4-7}"+ local model="${2:-}"local promptprompt="$(cat <<PROMPT@@ -332,7 +332,7 @@ PROMPT)"local raw- raw="$(claude_invoke -p "$prompt" --model "$model" --no-session-persistence --output-format json 2>/dev/null || true)"+ raw="$(claude_invoke -p "$prompt" ${model:+--model "$model"} --no-session-persistence --output-format json 2>/dev/null || true)"printf '%s' "$raw"}@@ -346,7 +346,7 @@ creative_analyze() {local multimodal_model image_model judge_model api_key_refmultimodal_model="$(printf '%s' "$models_json" | jq -r '.multimodal // "gemini-3.1-pro-preview"' 2>/dev/null)"image_model="$(printf '%s' "$models_json" | jq -r '.image // "gemini-flash-latest"' 2>/dev/null)"- judge_model="$(printf '%s' "$models_json" | jq -r '.judge // "claude-opus-4-7"' 2>/dev/null)"+ judge_model="$(printf '%s' "$models_json" | jq -r '.judge // empty' 2>/dev/null)"api_key_ref="$(printf '%s' "$models_json" | jq -r '.api_key_ref // "env:GEMINI_API_KEY"' 2>/dev/null)"local gemini_keydiff --git a/claude-ops/scripts/lib/creative/judge.sh b/claude-ops/scripts/lib/creative/judge.shindex 47b0bb3c..7cdadd58 100644--- a/claude-ops/scripts/lib/creative/judge.sh+++ b/claude-ops/scripts/lib/creative/judge.sh@@ -55,7 +55,7 @@ creative_judge() {return 0fi- # ── LLM verdict via claude_invoke Opus 4.7 ──────────────────────────────+ # ── LLM verdict via claude_invoke (session default unless overridden) ───local live_countlive_count="$(printf '%s' "$live_context_json" | jq 'length' 2>/dev/null || echo 0)"@@ -95,10 +95,10 @@ PROMPT)"local raw- raw="$(claude_invoke -p "$prompt" --model "claude-opus-4-7" --no-session-persistence --output-format json 2>/dev/null || true)"+ raw="$(claude_invoke -p "$prompt" ${OPS_CREATIVE_JUDGE_MODEL:+--model "$OPS_CREATIVE_JUDGE_MODEL"} --no-session-persistence --output-format json 2>/dev/null || true)"_judge_retry_llm() {- claude_invoke -p "$prompt" --model "claude-opus-4-7" --no-session-persistence --output-format json 2>/dev/null || true+ claude_invoke -p "$prompt" ${OPS_CREATIVE_JUDGE_MODEL:+--model "$OPS_CREATIVE_JUDGE_MODEL"} --no-session-persistence --output-format json 2>/dev/null || true}local parseddiff --git a/claude-ops/scripts/lib/creative/landing.sh b/claude-ops/scripts/lib/creative/landing.shindex ef905508..5f3a9673 100755--- a/claude-ops/scripts/lib/creative/landing.sh+++ b/claude-ops/scripts/lib/creative/landing.sh@@ -183,7 +183,7 @@ SYSTEMlocal raw_outputraw_output="$(claude_invoke \- --model claude-haiku-4-5 \+ ${OPS_CREATIVE_LANDING_MODEL:+--model "$OPS_CREATIVE_LANDING_MODEL"} \--no-session-persistence \-p "${system_prompt}${user_prompt}" 2>/dev/null || echo '')"diff --git a/claude-ops/scripts/lib/release-changelog.sh b/claude-ops/scripts/lib/release-changelog.shnew file mode 100644index 00000000..4032bf4f--- /dev/null+++ b/claude-ops/scripts/lib/release-changelog.sh@@ -0,0 +1,47 @@+#!/usr/bin/env bash+# Helpers for moving the Unreleased changelog body into one versioned release.++release_unreleased_body() {+ local changelog="$1"+ awk '+ /^## Unreleased[[:space:]]*$/ { in_unreleased=1; next }+ in_unreleased && /^## / { exit }+ in_unreleased { lines[++n]=$0 }+ END {+ first=1; last=n+ while (first <= last && lines[first] ~ /^[[:space:]]*$/) first+++ while (last >= first && lines[last] ~ /^[[:space:]]*$/) last--+ for (i=first; i<=last; i++) print lines[i]+ }+ ' "$changelog"+}++release_write_changelog() {+ local changelog="$1" section_file="$2" output="$3"+ awk -v secfile="$section_file" '+ function emit_sec( line) {+ while ((getline line < secfile) > 0) print line+ close(secfile)+ print ""+ }+ /^## Unreleased[[:space:]]*$/ {+ print "## Unreleased"+ print ""+ emit_sec()+ found=1+ skip=1+ next+ }+ skip && /^## / { skip=0 }+ skip { next }+ { print }+ END {+ if (!found) {+ print ""+ print "## Unreleased"+ print ""+ emit_sec()+ }+ }+ ' "$changelog" > "$output"+}diff --git a/claude-ops/scripts/ops-cron-competitor-intel.sh b/claude-ops/scripts/ops-cron-competitor-intel.shindex c2f27528..40f4eb0a 100755--- a/claude-ops/scripts/ops-cron-competitor-intel.sh+++ b/claude-ops/scripts/ops-cron-competitor-intel.sh@@ -309,7 +309,7 @@ Output format (STRICT):...EOF- SYNTHESIS=$(claude_invoke --model claude-sonnet-4-6 --no-session-persistence \+ SYNTHESIS=$(claude_invoke ${OPS_COMPETITOR_INTEL_MODEL:+--model "$OPS_COMPETITOR_INTEL_MODEL"} --no-session-persistence \--system-prompt "$SYSTEM_PROMPT" -p < "$PROMPT_FILE" 2>>"$LOG" || echo "")rm -f "$PROMPT_FILE"elsediff --git a/claude-ops/scripts/ops-cron-email-draft.sh b/claude-ops/scripts/ops-cron-email-draft.shindex f2e4240d..017c3cd2 100755--- a/claude-ops/scripts/ops-cron-email-draft.sh+++ b/claude-ops/scripts/ops-cron-email-draft.sh@@ -203,7 +203,7 @@ USER)"claude_invoke \- --model claude-haiku-4-5 \+ ${OPS_EMAIL_DRAFT_MODEL:+--model "$OPS_EMAIL_DRAFT_MODEL"} \--no-session-persistence \-p "${system_prompt}${user_prompt}" </dev/null 2>/dev/null | _strip_fences || echo ''@@ -254,7 +254,7 @@ USER)"claude_invoke \- --model claude-haiku-4-5 \+ ${OPS_EMAIL_DRAFT_MODEL:+--model "$OPS_EMAIL_DRAFT_MODEL"} \--no-session-persistence \-p "${system_prompt}${user_prompt}" </dev/null 2>/dev/null | _strip_fences || echo ''diff --git a/claude-ops/scripts/ops-cron-pocket-executor.py b/claude-ops/scripts/ops-cron-pocket-executor.pyindex ae699abe..1ee78594 100755--- a/claude-ops/scripts/ops-cron-pocket-executor.py+++ b/claude-ops/scripts/ops-cron-pocket-executor.py@@ -39,7 +39,7 @@ Env:POCKET_CLAUDE_BIN default /usr/local/bin/claudePOCKET_EXEC_CWD worker working dir, default $HOMEPOCKET_MAX_CONCURRENT default 3- POCKET_WORKER_MODEL default claude-sonnet-4-6+ POCKET_WORKER_MODEL optional; unset = session default modelPOCKET_WORKER_TIMEOUT seconds, default 1800 (30 min)POCKET_EXEC_DRY_RUN=1 inspect only, no spawns / no writes."""@@ -63,7 +63,7 @@ STATE_DIR = Path(os.environ.get("POCKET_STATE_DIR", HOME / ".claude/state/pocketCLAUDE_BIN = os.environ.get("POCKET_CLAUDE_BIN", "/usr/local/bin/claude")EXEC_CWD = Path(os.environ.get("POCKET_EXEC_CWD", str(HOME)))MAX_CONCURRENT = int(os.environ.get("POCKET_MAX_CONCURRENT", "3"))-WORKER_MODEL = os.environ.get("POCKET_WORKER_MODEL", "claude-sonnet-4-6")+WORKER_MODEL = os.environ.get("POCKET_WORKER_MODEL", "") # empty = inherit session defaultWORKER_TIMEOUT = int(os.environ.get("POCKET_WORKER_TIMEOUT", "1800"))DRY_RUN = os.environ.get("POCKET_EXEC_DRY_RUN") == "1"@@ -409,8 +409,7 @@ def spawn_worker(task: dict) -> dict | None:display_name,"--effort","high",- "--model",- WORKER_MODEL,+ *(["--model", WORKER_MODEL] if WORKER_MODEL else []),"--add-dir",str(EXEC_CWD),"-p",@@ -476,7 +475,7 @@ def spawn_worker(task: dict) -> dict | None:"deadline_epoch": int(time.time()) + WORKER_TIMEOUT,"stdout": str(stdout_path),"stderr": str(stderr_path),- "model": WORKER_MODEL,+ "model": WORKER_MODEL or "session-default","bg_session_id": bg_session_id, # for SendMessage / claude attach"spawn_mode": "claude-bg",}@@ -488,7 +487,7 @@ def spawn_worker(task: dict) -> dict | None:"pid": proc.pid,"pocket_task_id": task_id,"title": record["title"],- "model": WORKER_MODEL,+ "model": WORKER_MODEL or "session-default","bg_session_id": bg_session_id,"spawn_mode": "claude-bg",},diff --git a/claude-ops/scripts/ops-cron-pocket-watcher.py b/claude-ops/scripts/ops-cron-pocket-watcher.pyindex 76dd0e9e..2e54b9a9 100755--- a/claude-ops/scripts/ops-cron-pocket-watcher.py+++ b/claude-ops/scripts/ops-cron-pocket-watcher.py@@ -482,8 +482,14 @@ def infer_tasks_from_recording(recording: dict) -> tuple[list[dict], bool]:headers["x-api-key"] = (extras or {}).get("_apikey", "")_base_url = (extras or {}).get("_base_url", "https://api.anthropic.com")+ # Raw Messages API: no session default to inherit, so the operator names+ # the model. Never pin it here.+ infer_model = os.environ.get("POCKET_INFER_MODEL", "")+ if not infer_model:+ log("infer: POCKET_INFER_MODEL is unset; set it to the model id the watcher may call")+ return [], Falsepayload = {- "model": "claude-haiku-4-5-20251001",+ "model": infer_model,"max_tokens": 1024,"system": system_prompt,"messages": [{"role": "user", "content": user_msg}],@@ -591,7 +597,7 @@ class GigaClient:if not self.ok or not self._buffered:return Trueclaude_bin = os.environ.get("POCKET_CLAUDE_BIN", str(HOME / ".local/bin/claude"))- parser_model = os.environ.get("GIGA_FLUSH_MODEL", "claude-sonnet-4-6")+ parser_model = os.environ.get("GIGA_FLUSH_MODEL", "") # empty = inherit session default# Strip ANTHROPIC_API_KEY so claude uses OAuth subscription authenv = {k: v for k, v in os.environ.items() if k != "ANTHROPIC_API_KEY"}@@ -611,7 +617,7 @@ class GigaClient:f"No other output. No prose. No markdown.")cmd = [claude_bin, "--dangerously-skip-permissions",- "--model", parser_model, "-p", prompt]+ *(["--model", parser_model] if parser_model else []), "-p", prompt]try:proc = subprocess.run(cmd, env=env, capture_output=True,text=True, timeout=120)diff --git a/claude-ops/scripts/ops-cron-seo-blog-gen.sh b/claude-ops/scripts/ops-cron-seo-blog-gen.shindex f1287737..22fffc0a 100755--- a/claude-ops/scripts/ops-cron-seo-blog-gen.sh+++ b/claude-ops/scripts/ops-cron-seo-blog-gen.sh@@ -203,7 +203,7 @@ USERlocal outputoutput="$(claude_invoke \- --model claude-haiku-4-5 \+ ${OPS_SEO_BLOG_MODEL:+--model "$OPS_SEO_BLOG_MODEL"} \--no-session-persistence \-p "${system_prompt}${user_prompt}" 2>/dev/null || echo '')"diff --git a/claude-ops/scripts/ops-cron-social-calendar.sh b/claude-ops/scripts/ops-cron-social-calendar.shindex 5cf0155c..a9523aa1 100755--- a/claude-ops/scripts/ops-cron-social-calendar.sh+++ b/claude-ops/scripts/ops-cron-social-calendar.sh@@ -145,7 +145,7 @@ USER)"claude_invoke \- --model claude-haiku-4-5 \+ ${OPS_SOCIAL_CALENDAR_MODEL:+--model "$OPS_SOCIAL_CALENDAR_MODEL"} \--no-session-persistence \-p "${system_prompt}${user_prompt}" 2>/dev/null || echo ''diff --git a/claude-ops/scripts/ops-memory-extractor.sh b/claude-ops/scripts/ops-memory-extractor.shindex fd111f6b..8e65b902 100755--- a/claude-ops/scripts/ops-memory-extractor.sh+++ b/claude-ops/scripts/ops-memory-extractor.sh@@ -566,10 +566,13 @@ print(json.dumps(data))# the store was smaller; it is the store's growth that crossed the boundary.# Measured: max_tokens 4096 -> stop_reason "max_tokens", invalid JSON;# max_tokens 8192 -> stop_reason "end_turn" at 4187 tokens, valid JSON.+ # The raw Messages API needs a model id; there is no session default to+ # inherit here, so the operator must name one. Never pin it in this file.+ [[ -n "${OPS_MEMORY_EXTRACTOR_MODEL:-}" ]] || die "OPS_MEMORY_EXTRACTOR_MODEL is unset; set it to the model id the extractor may call"local payloadpayload=$(cat <<EOF{- "model": "claude-haiku-4-5-20251001",+ "model": "${OPS_MEMORY_EXTRACTOR_MODEL}","max_tokens": 8192,"stream": true,"system": $(printf '%s' "${system_prompt}" | python3 -c "import sys, json; print(json.dumps(sys.stdin.read()))"),@@ -580,7 +583,7 @@ print(json.dumps(data))EOF)- log "Calling Claude Haiku for extraction (auth: ${OPS_AUTH_MODE:-unknown}, streaming)..."+ log "Calling Claude (${OPS_MEMORY_EXTRACTOR_MODEL}) for extraction (auth: ${OPS_AUTH_MODE:-unknown}, streaming)..."local http_status# --max-time bounds a stream that stalls mid-flight. The proxy's own read# timeout is 900s, which is far too long to leave a scheduled job hanging;diff --git a/claude-ops/scripts/ops-pocket-email-bridge.py b/claude-ops/scripts/ops-pocket-email-bridge.pyindex 2bf0f35b..53419adf 100755--- a/claude-ops/scripts/ops-pocket-email-bridge.py+++ b/claude-ops/scripts/ops-pocket-email-bridge.py@@ -419,7 +419,7 @@ Schema:claude_bin = os.environ.get("POCKET_CLAUDE_BIN", str(HOME / ".local/bin/claude"))env = {k: v for k, v in os.environ.items() if k != "ANTHROPIC_API_KEY"}cmd = [claude_bin, "--dangerously-skip-permissions",- "--model", parser_model, "-p", prompt]+ *(["--model", parser_model] if parser_model else []), "-p", prompt]try:proc = subprocess.run(cmd, env=env, capture_output=True, text=True, timeout=90)except subprocess.TimeoutExpired:@@ -484,7 +484,7 @@ def drain_inbound(cfg: dict) -> tuple[int, int]:new_messages = messagesopens = open_questions()- parser_model = cfg.get("parser_model", "claude-sonnet-4-6")+ parser_model = cfg.get("parser_model", "") # empty = inherit session defaultscanned = 0routed = 0new_last_id = last_iddiff --git a/claude-ops/scripts/ops-pocket-triage.py b/claude-ops/scripts/ops-pocket-triage.pyindex 7a91d475..efa6cf1b 100755--- a/claude-ops/scripts/ops-pocket-triage.py+++ b/claude-ops/scripts/ops-pocket-triage.py@@ -27,7 +27,7 @@ Safety doctrine — the model is told that "safe to ACT autonomously" means:Env:POCKET_STATE_DIR default ~/.claude/state/pocket- POCKET_TRIAGE_MODEL default claude-opus-4-7+ POCKET_TRIAGE_MODEL optional; unset = session default modelPOCKET_TRIAGE_THINKING_TOKENS default 4000POCKET_TRIAGE_MAX_TOKENS default 1500POCKET_TRIAGE_DRY_RUN=1 skip routing writes, just log decisions@@ -112,7 +112,7 @@ _TEAM_MEMBERS_DESC = ()STATE_DIR = Path(os.environ.get("POCKET_STATE_DIR", HOME / ".claude/state/pocket"))-MODEL = os.environ.get("POCKET_TRIAGE_MODEL", "claude-sonnet-4-6")+MODEL = os.environ.get("POCKET_TRIAGE_MODEL", "") # empty = inherit session defaultRETRY_ON_RATE_LIMIT = os.environ.get("POCKET_TRIAGE_RETRY_RATE_LIMIT", "1") != "0"RATE_LIMIT_BACKOFF_SECS = int(os.environ.get("POCKET_TRIAGE_RATE_LIMIT_BACKOFF", "60"))THINKING_BUDGET = int(os.environ.get("POCKET_TRIAGE_THINKING_TOKENS", "4000"))@@ -264,8 +264,7 @@ def _triage_once(task: dict) -> dict:cmd = [claude_bin,"--dangerously-skip-permissions",- "--model",- MODEL,+ *(["--model", MODEL] if MODEL else []),"-p",user_msg,]@@ -327,7 +326,7 @@ def _triage_once(task: dict) -> dict:"concerns": [f"bad json: {text_out[:80]}"],}decision["_thinking"] = thinking_text.strip()[:4000]- decision["_model"] = MODEL+ decision["_model"] = MODEL or "session-default"decision["_raw_output_len"] = len(text_out)return decision@@ -435,7 +434,7 @@ def route(task: dict, decision: dict) -> str:def main() -> int:write_health("running", "triage tick")- log(f"start (dry_run={DRY_RUN}, model={MODEL})")+ log(f"start (dry_run={DRY_RUN}, model={MODEL or 'session-default'})")try:initial = PENDING.read_bytes()@@ -496,7 +495,7 @@ def main() -> int:confidence=float(decision.get("confidence", 0) or 0),reasoning=str(decision.get("reasoning", ""))[:1500],action_taken=verdict,- model=MODEL,+ model=MODEL or "session-default",))except Exception as _e:diff --git a/claude-ops/scripts/ops-pocket-whatsapp-bridge.py b/claude-ops/scripts/ops-pocket-whatsapp-bridge.pyindex 4bcc221b..2155008c 100755--- a/claude-ops/scripts/ops-pocket-whatsapp-bridge.py+++ b/claude-ops/scripts/ops-pocket-whatsapp-bridge.py@@ -24,7 +24,7 @@ Config (~/.claude/state/pocket/whatsapp-config.json):"chat_jid": "[email protected]", # required"last_processed_id": "BAE12345...", # auto-managed"enabled": true,- "parser_model": "claude-sonnet-4-6" # optional override+ "parser_model": "" # optional override; empty = session default}Cron: every 1min.@@ -181,7 +181,7 @@ Schema:claude_bin = os.environ.get("POCKET_CLAUDE_BIN", str(HOME / ".local/bin/claude"))env = {k: v for k, v in os.environ.items() if k != "ANTHROPIC_API_KEY"}cmd = [claude_bin, "--dangerously-skip-permissions",- "--model", parser_model, "-p", prompt]+ *(["--model", parser_model] if parser_model else []), "-p", prompt]try:proc = subprocess.run(cmd, env=env, capture_output=True, text=True, timeout=90)except subprocess.TimeoutExpired:@@ -285,7 +285,7 @@ def main() -> int:return 4opens = open_questions()- parser_model = cfg.get("parser_model", "claude-sonnet-4-6")+ parser_model = cfg.get("parser_model", "") # empty = inherit session defaultprocessed = 0matched = 0new_last_id = last_iddiff --git a/claude-ops/scripts/recap/README.md b/claude-ops/scripts/recap/README.mdindex 4be274dc..67fc8e7b 100644--- a/claude-ops/scripts/recap/README.md+++ b/claude-ops/scripts/recap/README.md@@ -5,7 +5,7 @@ Background daemon + helpers that synthesize a one-line digest across all paralle| Script | Role || ------------ | ----------------------------------------------------------------------------------------------------------------- || `daemon.sh` | Long-lived loop — polls per-session recap inputs, calls `digest.sh` when stale, writes `/tmp/claude-recap-digest` |-| `digest.sh` | Synthesizes the one-liner via `claude -p --model claude-sonnet-4-6` over recent sessions + tool-activity files |+| `digest.sh` | Synthesizes the one-liner via `claude -p` (session default model; `OPS_RECAP_MODEL` overrides) over recent sessions + tool-activity files || `marquee.sh` | Tmux-side scroller (called from `status-right`) — reads the digest file and emits a windowed slice |## Display surfacesdiff --git a/claude-ops/scripts/recap/digest.sh b/claude-ops/scripts/recap/digest.shindex 0dc4d979..fcfb7fe4 100755--- a/claude-ops/scripts/recap/digest.sh+++ b/claude-ops/scripts/recap/digest.sh@@ -76,7 +76,7 @@ ${shell_activity:-(none)}Produce ONE single line (max 240 chars) describing the CURRENT state of work, weighted heavily toward the most-recent activity (last 1-2 headlines + current session activity + last few shell commands). DROP themes from older headlines that are no longer mentioned in current activity — assume they are resolved or no longer relevant. Only carry forward an older theme if there is concrete evidence in the current activity that it is still in flight. Translate raw shell commands into plain English (e.g., 'ssh into bastion', 'inspecting prod logs', 'running tests'). Plain English ticker style. No bullets, no quotes, no preface, no markdown."-result=$(printf '%s' "$prompt" | claude_invoke -p --model claude-sonnet-4-6 --no-session-persistence --output-format text 2>/dev/null | head -c 260 | LC_ALL=C tr '\n' ' ')+result=$(printf '%s' "$prompt" | claude_invoke -p ${OPS_RECAP_MODEL:+--model "$OPS_RECAP_MODEL"} --no-session-persistence --output-format text 2>/dev/null | head -c 260 | LC_ALL=C tr '\n' ' ')# Reject Claude error / auth / quota strings — never let them pollute the# digest OR the rolling log (which feeds back as PRIOR HEADLINES on next run).diff --git a/claude-ops/scripts/systemd/pocket-executor.service b/claude-ops/scripts/systemd/pocket-executor.serviceindex 599f1c97..075bc3ed 100644--- a/claude-ops/scripts/systemd/pocket-executor.service+++ b/claude-ops/scripts/systemd/pocket-executor.service@@ -13,7 +13,7 @@ Environment=POCKET_STATE_DIR=__HOME__/.claude/state/pocketEnvironment=POCKET_CLAUDE_BIN=/usr/local/bin/claudeEnvironment=POCKET_EXEC_CWD=__HOME__Environment=POCKET_MAX_CONCURRENT=3-Environment=POCKET_WORKER_MODEL=claude-sonnet-4-6+# POCKET_WORKER_MODEL is intentionally unset: workers inherit the session default model.Environment=POCKET_WORKER_TIMEOUT=1800ExecStart=__HOME__/.venv-pocket/bin/python3 __PLUGIN_ROOT__/scripts/ops-cron-pocket-executor.pyStandardOutput=append:__HOME__/.claude/state/pocket/executor-stdout.logdiff --git a/claude-ops/skills/ops-marketing/references/details.md b/claude-ops/skills/ops-marketing/references/details.mdindex 2e1a81c4..978987d3 100644--- a/claude-ops/skills/ops-marketing/references/details.md+++ b/claude-ops/skills/ops-marketing/references/details.md@@ -2054,7 +2054,7 @@ Cross-platform ad optimization agent. Reads Meta + Google Ads data, computes bleSpawn the marketing optimizer agent:```-Agent(prompt="Run the marketing optimizer agent. Read ops-marketing-dash data for Meta Ads and Google Ads spend/conversions/ROAS. Compute blended ROAS across platforms. Identify the highest-ROAS platform. Recommend budget shifts with specific dollar amounts. List top 3 actions by expected impact. Use the marketing-optimizer.md agent instructions.", model="claude-sonnet-4-5")+Agent(prompt="Run the marketing optimizer agent. Read ops-marketing-dash data for Meta Ads and Google Ads spend/conversions/ROAS. Compute blended ROAS across platforms. Identify the highest-ROAS platform. Recommend budget shifts with specific dollar amounts. List top 3 actions by expected impact. Use the marketing-optimizer.md agent instructions.")```If Agent Teams are available (`CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`):@@ -2117,7 +2117,7 @@ The binary owns all deterministic, money-touching logic (cap pre-flight, pause s"enabled": true,"video": "veo-3.1-fast-generate-preview","image": "gemini-3.1-flash-image-preview",- "analysis": { "multimodal": "gemini-3.1-pro-preview", "judge": "claude-opus-4-7" },+ "analysis": { "multimodal": "gemini-3.1-pro-preview", "judge": "" },"daily_gen_spend_cap_usd": 5,"neurons": { "enabled": false }},diff --git a/claude-ops/skills/ops-orchestrate/SKILL.md b/claude-ops/skills/ops-orchestrate/SKILL.mdindex b82cac21..a31c6587 100644--- a/claude-ops/skills/ops-orchestrate/SKILL.md+++ b/claude-ops/skills/ops-orchestrate/SKILL.md@@ -32,7 +32,6 @@ allowed-tools:- mcp__linear__update_issue- mcp__linear__create_issueeffort: high-model: claude-opus-4-6maxTurns: 100context: fork---diff --git a/claude-ops/skills/ops-recap/SKILL.md b/claude-ops/skills/ops-recap/SKILL.mdindex 3d345403..087987aa 100644--- a/claude-ops/skills/ops-recap/SKILL.md+++ b/claude-ops/skills/ops-recap/SKILL.md@@ -23,7 +23,7 @@ The recap marquee is a launchd-managed daemon that aggregates per-session Claude| Path | Role || ---------------------------------------------------------- | ---------------------------------------------------------- || `${CLAUDE_PLUGIN_ROOT}/scripts/recap/daemon.sh` | Background loop — polls inputs, calls digest.sh when stale |-| `${CLAUDE_PLUGIN_ROOT}/scripts/recap/digest.sh` | Synthesizes one-line digest via `claude -p --model claude-sonnet-4-6` |+| `${CLAUDE_PLUGIN_ROOT}/scripts/recap/digest.sh` | Synthesizes one-line digest via `claude -p` (session default model; `OPS_RECAP_MODEL` overrides) || `${CLAUDE_PLUGIN_ROOT}/scripts/recap/marquee.sh` | Tmux-side scroller (called from `status-right`) || `${CLAUDE_PLUGIN_ROOT}/hooks/recap-capture.sh` | Stop hook → writes `/tmp/claude-recap-<sid>` || `${CLAUDE_PLUGIN_ROOT}/hooks/recap-tool-activity.sh` | PostToolUse hook → live activity per session |diff --git a/claude-ops/skills/ops-triage/SKILL.md b/claude-ops/skills/ops-triage/SKILL.mdindex fc17ff6a..25500285 100644--- a/claude-ops/skills/ops-triage/SKILL.md+++ b/claude-ops/skills/ops-triage/SKILL.md@@ -25,7 +25,6 @@ allowed-tools:- mcp__linear__get_issue- mcp__linear__list_teamseffort: high-model: claude-opus-4-6maxTurns: 40---diff --git a/claude-ops/skills/ops-yolo/SKILL.md b/claude-ops/skills/ops-yolo/SKILL.mdindex 31e39ffa..90228743 100644--- a/claude-ops/skills/ops-yolo/SKILL.md+++ b/claude-ops/skills/ops-yolo/SKILL.md@@ -28,7 +28,6 @@ allowed-tools:- mcp__claude_ai_Slack__slack_search_public_and_private- mcp__claude_ai_Gmail__search_threadseffort: high-model: claude-opus-4-6maxTurns: 50disable-model-invocation: truecontext: forkdiff --git a/claude-ops/skills/setup/channels/marketing.md b/claude-ops/skills/setup/channels/marketing.mdindex e7ef64de..43e0838d 100644--- a/claude-ops/skills/setup/channels/marketing.md+++ b/claude-ops/skills/setup/channels/marketing.md@@ -509,7 +509,7 @@ Write the block to `$PREFS_PATH` under `marketing.projects.<name>.autopilot` (me"enabled": true,"video": "veo-3.1-fast-generate-preview","image": "gemini-3.1-flash-image-preview",- "analysis": { "multimodal": "gemini-3.1-pro-preview", "judge": "claude-opus-4-7" },+ "analysis": { "multimodal": "gemini-3.1-pro-preview", "judge": "" },"daily_gen_spend_cap_usd": 5,"neurons": { "enabled": false }},diff --git a/claude-ops/skills/setup/channels/pocket.md b/claude-ops/skills/setup/channels/pocket.mdindex b4a8cba9..0f265c02 100644--- a/claude-ops/skills/setup/channels/pocket.md+++ b/claude-ops/skills/setup/channels/pocket.md@@ -159,8 +159,7 @@ jq -n \--arg addr "$SELF_EMAIL" \--arg from "$SELF_EMAIL" \'{"enabled": true, "self_address": $addr, "from_account": $from,- "subject_prefix": "[Pocket]", "label": "Pocket",- "parser_model": "claude-sonnet-4-6"}' \+ "subject_prefix": "[Pocket]", "label": "Pocket"}' \> "$HOME/.claude/state/pocket/email-config.json"```diff --git a/claude-ops/tests/test-agents-lint.sh b/claude-ops/tests/test-agents-lint.shindex bd5482ee..e4d5b914 100755--- a/claude-ops/tests/test-agents-lint.sh+++ b/claude-ops/tests/test-agents-lint.sh@@ -76,7 +76,7 @@ for agent_file in "${agent_files[@]}"; doerr "missing 'description' field in frontmatter"fi- # --- 3. model field present ---+ # --- 3. model field (optional: inherits session default if omitted) ---if echo "$frontmatter" | grep -q "^model:"; thenmodel_val=$(fm_val model)if [[ -n "$model_val" ]]; then@@ -85,7 +85,7 @@ for agent_file in "${agent_files[@]}"; doerr "empty 'model' field"fielse- err "missing 'model' field — agents must declare a model"+ ok "model omitted (inherits session default)"fi# --- 4. maxTurns must be a positive integer if present ---diff --git a/claude-ops/tests/test-claude-invoke.sh b/claude-ops/tests/test-claude-invoke.shindex 26abe91c..47ed086c 100755--- a/claude-ops/tests/test-claude-invoke.sh+++ b/claude-ops/tests/test-claude-invoke.sh@@ -2,9 +2,9 @@# test-claude-invoke.sh — unit tests for scripts/lib/claude-invoke.sh## Tests:-# T1: CLAUDE_OPS_USE_CREDIT_POOL unset -> calls `claude` directly, upgrading Haiku to Sonnet-# T2: CLAUDE_OPS_USE_CREDIT_POOL=0 -> calls `claude` directly, upgrading Haiku to Sonnet-# T3: CLAUDE_OPS_USE_CREDIT_POOL=1 -> calls `node .../claude-p-as.mjs --` with sanitized args+# T1: CLAUDE_OPS_USE_CREDIT_POOL unset -> calls `claude` directly, preserving args+# T2: CLAUDE_OPS_USE_CREDIT_POOL=0 -> calls `claude` directly, preserving args+# T3: CLAUDE_OPS_USE_CREDIT_POOL=1 -> calls `node .../claude-p-as.mjs --` with unchanged args# T4: CLAUDE_OPS_USE_CREDIT_POOL=1 but wrapper missing -> falls back to `claude`, exits non-zero# (warning printed to stderr, direct claude called)# T5: direct invocation strips API-key env so the OAuth credential wins@@ -88,33 +88,33 @@ run_invoke() {# T1: gate unset -> direct claude# ---------------------------------------------------------------------------echo "T1: gate unset -> direct claude"-result=$(run_invoke -- -p --model haiku --no-session-persistence)-if [[ "$result" == "claude -p --model claude-sonnet-4-6 --no-session-persistence" ]]; then- ok "called claude directly with correct args"+result=$(run_invoke -- -p --model custom-model --no-session-persistence)+if [[ "$result" == "claude -p --model custom-model --no-session-persistence" ]]; then+ ok "called claude directly without rewriting model args"else- err "expected 'claude -p --model claude-sonnet-4-6 --no-session-persistence', got: '$result'"+ err "expected 'claude -p --model custom-model --no-session-persistence', got: '$result'"fi# ---------------------------------------------------------------------------# T2: gate=0 -> direct claude# ---------------------------------------------------------------------------echo "T2: gate=0 -> direct claude"-result=$(run_invoke CLAUDE_OPS_USE_CREDIT_POOL=0 -- -p --model haiku)-if [[ "$result" == "claude -p --model claude-sonnet-4-6" ]]; then+result=$(run_invoke CLAUDE_OPS_USE_CREDIT_POOL=0 -- -p --model custom-model)+if [[ "$result" == "claude -p --model custom-model" ]]; thenok "called claude directly with CREDIT_POOL=0"else- err "expected 'claude -p --model claude-sonnet-4-6', got: '$result'"+ err "expected 'claude -p --model custom-model', got: '$result'"fi# ---------------------------------------------------------------------------# T3: gate=1 -> node .../claude-p-as.mjs -- <args># ---------------------------------------------------------------------------echo "T3: gate=1 -> node ...claude-p-as.mjs -- <args>"-result=$(run_invoke CLAUDE_OPS_USE_CREDIT_POOL=1 -- -p --model haiku --no-session-persistence)+result=$(run_invoke CLAUDE_OPS_USE_CREDIT_POOL=1 -- -p --model custom-model --no-session-persistence)wrapper_path="$PLUGIN_ROOT/scripts/account-rotation/claude-p-as.mjs"-expected="node $wrapper_path -- -p --model claude-sonnet-4-6 --no-session-persistence"+expected="node $wrapper_path -- -p --model custom-model --no-session-persistence"if [[ "$result" == "$expected" ]]; then- ok "routed through claude-p-as.mjs with correct args after --"+ ok "routed through claude-p-as.mjs with unchanged args after --"elseerr "expected: '$expected'"err " got: '$result'"@@ -140,15 +140,15 @@ stderr_out=$(unset PLUGIN_ROOT# shellcheck source=../scripts/lib/claude-invoke.sh. "$HELPER"- claude_invoke -p --model haiku+ claude_invoke -p --model custom-model) 2>&1 >/dev/null || true)fallback_result=$(cat "$capture_missing")-if [[ "$fallback_result" == "claude -p --model claude-sonnet-4-6" ]]; then+if [[ "$fallback_result" == "claude -p --model custom-model" ]]; thenok "fell back to direct claude when wrapper missing"else- err "fallback: expected 'claude -p --model claude-sonnet-4-6', got: '$fallback_result'"+ err "fallback: expected 'claude -p --model custom-model', got: '$fallback_result'"fiif echo "$stderr_out" | grep -q "WARNING"; thenok "emitted WARNING to stderr"@@ -160,7 +160,7 @@ fi# T5: direct invocation strips API-key env# ---------------------------------------------------------------------------echo "T5: direct claude strips conflicting API-key env"-result=$(run_invoke ANTHROPIC_API_KEY=bad CLAUDE_API_KEY=bad CLAUDE_CODE_OAUTH_TOKEN=bad CAPTURE_ENV=1 -- -p --model sonnet)+result=$(run_invoke ANTHROPIC_API_KEY=bad CLAUDE_API_KEY=bad CLAUDE_CODE_OAUTH_TOKEN=bad CAPTURE_ENV=1 -- -p --model custom-model)if echo "$result" | grep -q "env api=unset claude_api=unset oauth=unset"; thenok "stripped conflicting API-key env"elsediff --git a/claude-ops/tests/test-ops-release-changelog-heading.sh b/claude-ops/tests/test-ops-release-changelog-heading.shindex 211f25b1..bc35461c 100755--- a/claude-ops/tests/test-ops-release-changelog-heading.sh+++ b/claude-ops/tests/test-ops-release-changelog-heading.sh@@ -91,6 +91,40 @@ elseerr "section does not start with '## [version] - date'"fi+# 6. A release drains Unreleased into the new version exactly once.+# shellcheck source=../scripts/lib/release-changelog.sh+. "$PLUGIN_ROOT/scripts/lib/release-changelog.sh"+tmpdir="$(mktemp -d)"+trap 'rm -rf "$tmpdir"' EXIT+cat > "$tmpdir/in.md" <<'MD'+# Changelog++## Unreleased++### Fixed+- first pending fix+- second pending fix++## [1.2.3] - 2026-01-01++### Changed+- old release+MD+unreleased="$(release_unreleased_body "$tmpdir/in.md")"+printf '## [1.2.4] - 2026-01-02++%s+' "$unreleased" > "$tmpdir/section.md"+release_write_changelog "$tmpdir/in.md" "$tmpdir/section.md" "$tmpdir/out.md"+if [[ "$(grep -c 'first pending fix' "$tmpdir/out.md")" == "1" ]] \+ && [[ "$(grep -c '^## Unreleased$' "$tmpdir/out.md")" == "1" ]] \+ && awk '/^## Unreleased$/{getline; if ($0=="") ok=1} END{exit !ok}' "$tmpdir/out.md" \+ && grep -q '^## \[1.2.4\] - 2026-01-02$' "$tmpdir/out.md"; then+ ok "Unreleased is drained into the new version exactly once"+else+ err "Unreleased body was duplicated, retained, or lost"+fi+echo ""echo "---"echo "Results: $pass passed, $fail failed"diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 9c6345fb..a76f7d79 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -46,7 +46,7 @@ A typical `/ops:go` morning briefing flows as follows:1. **SessionStart hook** — `hooks/hooks.json` fires `bin/ops-welcome` (displays setup status) and `scripts/setup.sh` (surfaces any unresolved configuration issues).2. **Skill invocation** — the user runs `/ops:go`; the `skills/ops-go/SKILL.md` skill is loaded by Claude Code.3. **Cache read** — the skill calls `bin/ops-gather` (or reads the pre-warmed `daemon-cache.json` written by the daemon's `briefing-pre-warm` service every 2 minutes).-4. **Agent fan-out (optional)** — for deeper analysis (`/ops:yolo`), the skill spawns 4 parallel agents (CEO, CTO, CFO, COO) via the Claude Agent SDK. Each agent runs independently using `claude-opus-4-6` and writes its analysis to a temp file.+4. **Agent fan-out (optional)** — for deeper analysis (`/ops:yolo`), the skill spawns 4 parallel agents (CEO, CTO, CFO, COO) via the Claude Agent SDK. Each agent runs independently using the session-default model and writes its analysis to a temp file.5. **Merge + present** — the main skill orchestrator reads all agent output files, merges them into a unified report, and returns it to the user in the Claude Code session.6. **Stop hook** — `bin/ops-post-session-cleanup` runs on session end to clean up temp files and stale PIDs.@@ -60,7 +60,7 @@ For communication skills (`/ops:inbox`, `/ops:comms`), a PreToolUse hook (`bin/o| ------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------- || `plugin.json` | `claude-ops/.claude-plugin/plugin.json` | Plugin manifest: name, version, `userConfig` schema (20 configurable keys), MCP server declarations || `SKILL.md` | `claude-ops/skills/<name>/SKILL.md` | Each skill is a markdown prompt file loaded by Claude Code as a slash command |-| Agent `.md` files | `claude-ops/agents/<name>.md` | Each agent is a markdown prompt file with frontmatter declaring model, effort, maxTurns, and memory scope |+| Agent `.md` files | `claude-ops/agents/<name>.md` | Each agent is a markdown prompt file with frontmatter declaring resource settings such as effort, maxTurns, and memory scope; model is optional || `hooks.json` | `claude-ops/hooks/hooks.json` | Declares SessionStart, PreToolUse (Bash matcher), and Stop lifecycle hooks || `registry.json` | `claude-ops/scripts/registry.json` | User-maintained project index with alias, repo, infra platform, revenue model, and GSD flag per project || `ops-daemon.sh` | `claude-ops/scripts/ops-daemon.sh` | Shell supervisor for 7 persistent background services; managed via launchd |@@ -93,7 +93,7 @@ claude-ops/```- **`skills/`** — User-facing layer. Each subdirectory is one slash command. Skills are markdown prompt files; they contain no executable code, only instructions for Claude.-- **`agents/`** — Background worker layer. Agent `.md` files are spawned by skills using the Claude Agent SDK. They have declared resource budgets (model, maxTurns, effort) and memory scopes.+- **`agents/`** — Background worker layer. Agent `.md` files are spawned by skills using the Claude Agent SDK. They can declare resource budgets (maxTurns, effort) and memory scopes; when model is omitted they inherit the session default.- **`bin/`** — Executable layer. Shell and Node.js scripts that interact with external CLIs (`wacli`, `aws`, `gh`, `doppler`, `gog`) and APIs. Skills and agents call these via Bash tool calls.- **`scripts/`** — Infrastructure layer. The daemon supervisor, launchd plists, cron scripts, and the project registry live here.- **`telegram-server/`** — Bundled Telegram user-auth server (MTProto, not a bot). Not auto-started from `.mcp.json` (that file is empty so sessions do not spawn a stdio MCP each). Started on demand via `/ops:setup` / host config.@@ -124,9 +124,9 @@ The daemon installs at setup Step 2c — deliberately early — so the briefing| Agent class | Model | Use case || ----------------------------------------------------------------- | --------------------------- | ---------------------------------------------------------------- |-| C-suite analysts (`yolo-ceo`, `yolo-cto`, `yolo-cfo`, `yolo-coo`) | `claude-opus-4-6` | High-depth strategic, technical, financial, operational analysis |-| Scanner, fix, and daemon agents | `claude-sonnet-4-6` | Efficient read-scan-report loops and targeted code fixes |-| `memory-extractor` | `claude-haiku-4-5-20251001` | High-frequency (every 30 min) low-cost contact extraction |+| C-suite analysts (`yolo-ceo`, `yolo-cto`, `yolo-cfo`, `yolo-coo`) | session default (no pin) | High-depth strategic, technical, financial, operational analysis |+| Scanner, fix, and daemon agents | session default (no pin) | Efficient read-scan-report loops and targeted code fixes |+| `memory-extractor` | session default (no pin) | High-frequency (every 30 min) low-cost contact extraction |---diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.mdindex 32277948..74ee6047 100644--- a/docs/DEVELOPMENT.md+++ b/docs/DEVELOPMENT.md@@ -122,7 +122,6 @@ Agent `.md` format:---name: my-agentdescription: What this agent does and when it is invoked.-model: claude-sonnet-4-6 # claude-opus-4-6 | claude-sonnet-4-6 | claude-haiku-4-5effort: mediummaxTurns: 25tools:@@ -141,11 +140,7 @@ memory: project # project | user | noneAgent instructions here.```-**Model selection convention:**--- `claude-opus-4-6` — C-suite agents (`yolo-ceo`, `yolo-cfo`, `yolo-coo`, `yolo-cto`)-- `claude-sonnet-4-6` — Scanner, monitor, and fix agents-- `claude-haiku-4-5` — High-frequency lightweight agents (memory extraction)+**Model convention:** never set `model:`. Every agent inherits the session default. A pinned id drifts as models are retired and fails outright when an organization restricts it (`/ops:ops-orchestrate` died on `claude-opus-4-6` this way). Scripts that call `claude -p` follow the same rule: `--model` only when an env var is set.Agents are invoked from skills via the `Agent` tool. They never call other agents (note `Agent` in `disallowedTools` for most agents — this prevents recursive spawning).@@ -320,7 +315,7 @@ If `test-no-secrets.sh` fails, the commit must not proceed. This is enforced by**Agents (`agents/`):**- Agents are read-only by default — add `Write` and `Edit` to `disallowedTools` unless the agent genuinely needs to write files-- C-suite agents run on `claude-opus-4-6`; scanner and fix agents run on `claude-sonnet-4-6`+- Agents carry no `model:` pin; every one inherits the session default- Agents must not call other agents (`Agent` in `disallowedTools`) to prevent recursive spawning**Secrets and credentials:**