Skip to content

refactor(config): categorize presets into configs/{llm,embedders}/#18

Merged
lfnothias merged 1 commit into
mainfrom
refactor/configs-layout
Jun 14, 2026
Merged

refactor(config): categorize presets into configs/{llm,embedders}/#18
lfnothias merged 1 commit into
mainfrom
refactor/configs-layout

Conversation

@lfnothias

Copy link
Copy Markdown
Collaborator

What

Declutter the repo root: it held 22 config files. This moves the 17 preset configs into a categorized configs/ tree and drops redundant prefixes.

Before (root) After
config.<provider>.example.yml ×6 configs/llm/{claude_code,codex,hermes,ollama,openclaw,openrouter-free}.yml
config_<model>.yml ×11 configs/embedders/{bge_m3,openai_large,specter2,pubmedbert,…}.yml
config.yml.bak.* (junk) removed

config.example.yml and config.yml stay in repo rootconfig.yml is the default the CLI loads when no -c is passed.

Why

Root went from 22 config files → 2. New configs/README.md indexes every preset (provider / embedding model / when to use).

Reference + test updates

  • Updated all live references: README.md, docs/{agent-cli-caveats,embedding-models,recipe-book-2026-05-15,guides/embedding-and-rag-configuration}.md, and each preset's own header comments.
  • tests/integration/test_config_audit.py glob now points at configs/llm/* + configs/embedders/* + root config.example.yml — so it additionally validates the 11 embedder presets and openrouter-free.yml, which were previously unvalidated. 24/24 audit tests pass.
  • Dated handoff/audit docs left as historical record.

Migration note

-c config_openai_large.yml-c configs/embedders/openai_large.yml (and similarly for other presets). Renames are detected by git, so history is preserved.

🤖 Generated with Claude Code

Root had 22 config files. Move the 17 preset configs into a categorized
configs/ tree and drop redundant prefixes:

  configs/llm/        <- config.<provider>.example.yml  (6 LLM-provider presets)
  configs/embedders/  <- config_<model>.yml             (11 embedding presets)

config.example.yml and config.yml stay in repo root (config.yml is the
default the CLI loads with no -c). Added configs/README.md indexing every
preset. Removed a stale config.yml.bak.* backup.

Updated all references (README, docs/{agent-cli-caveats,embedding-models,
recipe-book,guides/embedding-and-rag-configuration}, config header comments)
and the test_config_audit glob — which now also validates configs/embedders/*
and configs/llm/openrouter-free.yml (previously unvalidated). 24/24 audit
tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lfnothias lfnothias merged commit e491760 into main Jun 14, 2026
1 of 2 checks passed
@lfnothias lfnothias mentioned this pull request Jun 19, 2026
8 tasks
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