update-llm-models
Skill2 starsChanged 10 months agoApache-2.0View on GitHub
Autonomously research and update the default lightweight LLM models in `src/core/llm.ts` using web search to ensure the most current versions are used.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/tech-stack.mdcCursor rule
- .cursor/rules/typescript-coding-convention.mdcCursor rule
- .cursor/rules/unit-test-manners.mdcCursor rule
- build-and-fixSkill
- clean-projectSkill
- initialize-projectSkill
- lint-and-fixSkill
- node-upgradeSkill
- security-vulnerability-auditSkill
- setup-dev-envSkill
- test-and-fixSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Use web_search to identify the most recent lightweight model identifiers for the following providers:
- Distinctive: line 18
OpenAI: Look for "mini" or "nano" variants of the latest GPT model (e.g., GPT-5.2).
- Distinctive: line 19
Anthropic: Look for "haiku" variants (e.g., Claude 4.5 Haiku).
- Distinctive: line 20
Google: Look for "flash" variants (e.g., Gemini 3 Flash).
- Distinctive: line 21
Mistral: Look for "small" or "mini" variants (e.g., Mistral Small 3.1).
- Distinctive: line 22
Groq: Look for the most efficient models available on Groq (usually Llama 8B or 70B variants).
- Very specific: line 30
Update the return values in the switch statement for each provider.
- Very specific: line 34
Run pnpm lint to ensure no syntax errors or linting violations.
- Very specific: line 35
Run pnpm build to confirm the project still compiles.
- Very specific: line 39
Prefer Efficiency: Always choose the "lighter" or "faster" version if multiple variants exist (e.g., prefer gemini-2.5-flash over …
- Distinctive: line 40
Exact Identifiers: Use the precise model identifier string required by the provider's API.
- Very specific: line 41
Provider Coverage: Ensure all providers in the LLMProvider type are addressed if they have a known lightweight default.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Update LLM Models
Purpose
This skill maintains the src/core/llm.ts file by ensuring that the default model identifiers for each provider are the latest available "lightweight" versions (e.g., Flash, Haiku, Mini).
Workflow
1. Research Latest Models
Use web_search to identify the most recent lightweight model identifiers for the following providers:
- OpenAI: Look for "mini" or "nano" variants of the latest GPT model (e.g., GPT-5.2).
- Anthropic: Look for "haiku" variants (e.g., Claude 4.5 Haiku).
- Google: Look for "flash" variants (e.g., Gemini 3 Flash).
- Mistral: Look for "small" or "mini" variants (e.g., Mistral Small 3.1).
- Groq: Look for the most efficient models available on Groq (usually Llama 8B or 70B variants).
2. Identify Target Function
Locate the getDefaultModel function in [src/core/llm.ts](src/core/llm.ts).
3. Apply Updates
Update the return values in the switch statement for each provider. Ensure the model identifiers match the exact strings found during research.
4. Verification
- Run
pnpm lintto ensure no syntax errors or linting violations. - Run
pnpm buildto confirm the project still compiles.
Guidelines
- Prefer Efficiency: Always choose the "lighter" or "faster" version if multiple variants exist (e.g., prefer
gemini-2.5-flashovergemini-2.5-pro). - Exact Identifiers: Use the precise model identifier string required by the provider's API.
- Provider Coverage: Ensure all providers in the
LLMProvidertype are addressed if they have a known lightweight default.
Examples
Before
case "google":
return "gemini-2.5-flash";After (Hypothetical Jan 2026)
case "google":
return "gemini-3-flash";Resources
- OpenAI: Models Overview
<!-- trunk-ignore(markdown-link-check/403) --> - Anthropic: Claude Models
- Google Gemini: Gemini Models
- Vertex AI: Model Garden
- Mistral: Models Overview
- Groq: Supported Models
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

