Skip to content

refactor(daemon): single-source model config + bump Scholar to Opus 4.8#17

Merged
nickroci merged 1 commit into
mainfrom
feat/typed-agent-shim
May 29, 2026
Merged

refactor(daemon): single-source model config + bump Scholar to Opus 4.8#17
nickroci merged 1 commit into
mainfrom
feat/typed-agent-shim

Conversation

@nickroci

Copy link
Copy Markdown
Owner

Follow-up to #16 — this commit was made just after #16 merged (at b3a9fc8), so it missed that merge.

What

  • New daemon/agent_mem_daemon/config.py as the single source of truth for the curator's model identities (LIBRARIAN_MODEL, SCHOLAR_MODEL) + the daemon's shared timeouts. The names were previously duplicated across llm.py, scholar.py, librarian.py (and the advisor) — a bump risked landing half-applied.
  • scholar.py / librarian.py now import the model + timeout from config; the dead copies in llm.py are removed. Role-specific OUTPUT_RETRIES (Scholar 4 vs Librarian 3) and the advisor's interactive 300s timeouts stay where they're tuned.
  • Bump SCHOLAR_MODEL claude-opus-4-7claude-opus-4-8 (one place now). The advisor (tools/ultan, separate package coupled only via a runtime sys.path shim) keeps its own copy with a "keep in sync" note, also bumped.

Verification

  • No opus-4-7 left anywhere; scholar.SCHOLAR_MODEL resolves to claude-opus-4-8.
  • ruff clean, pyright strict 0 errors, 584 daemon tests / 90.50%.

Note: the running daemon picks up Opus 4.8 on its next restart (editable install imports modules at startup).

🤖 Generated with Claude Code

The model names were duplicated across llm.py, scholar.py, librarian.py (and
the advisor) — a bump risked landing half-applied. Extract the model identities
+ shared daemon timeouts into agent_mem_daemon/config.py as the single source;
scholar.py / librarian.py import from it (the dead copies in llm.py are removed).
Role-specific OUTPUT_RETRIES (Scholar 4 vs Librarian 3) and the advisor's
interactive 300s timeouts stay where they're tuned — only the genuinely shared
model identity is centralised.

Bump SCHOLAR_MODEL claude-opus-4-7 -> claude-opus-4-8 (one place now). The
advisor is a separate package coupled only via a runtime sys.path shim, so it
keeps its own copy with a "keep in sync" note (also bumped to opus-4-8).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nickroci nickroci merged commit a6ba413 into main May 29, 2026
4 checks passed
@nickroci nickroci deleted the feat/typed-agent-shim branch May 29, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant