slm-agent — Claude Code plugin: migrate AI calls to ScaleDown SLMs
Scans your codebase for AI API calls and maps out where smaller ScaleDown models can take over. Useful when token spend keeps climbing.
/plugin marketplace add anthropics/claude-plugins-community
/plugin install slm-agent@claude-communityWhat slm-agent does
The plugin walks your project looking for calls into OpenAI, Anthropic, LangChain, LlamaIndex, Cohere and other AI APIs. It then writes a migration plan: which call sites fit sd_classify, sd_extract, sd_summarize or sd_compress. Calls scoring 3+/5 get broken into sub-tasks, with a note on what still needs a frontier model.
Scanning happens on your machine. Nothing from the codebase is uploaded; network traffic only starts at runtime, when your own app hits ScaleDown endpoints using the SCALEDOWN_API_KEY you supply. Output lands in scaledown-report.md at the project root — a summary table, a complexity breakdown, a section per opportunity, and the HTTP API shapes for the four endpoints.
A second skill, /slm-agent:optimize, tunes the prompt you send to a ScaleDown model against your own samples and benchmarks it against the frontier output it replaced. The eval metric follows the task: Macro-F1 for classification, per-field precision and recall for extraction, ROUGE for summarization. Once a call is migrated, your app needs that ScaleDown key to run.
What it helps with
- locate every LLM call in a project, including less common providers
- decide which calls a small model can handle without losing quality
- cut spend on classification and entity extraction
- shrink long context before it reaches the model
- test a prompt on real samples and compare it to the old output
Example prompts for the agent
- Run
/slm-agent:evaluateon this repo and show me where ScaleDown SLMs fit - Apply the migration for the classification calls you found
- Run
/slm-agent:optimizeand tune the prompt against mysamples.jsonl
How to install slm-agent
Plugin marketplace
/plugin marketplace add anthropics/claude-plugins-community/plugin install slm-agent@claude-communityStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about slm-agent
How do I install slm-agent in Claude Code?
Add the marketplace first: /plugin marketplace add anthropics/claude-plugins-community. Then install the plugin: /plugin install slm-agent@claude-community.
What does slm-agent do?
It finds AI API calls across your codebase and builds a migration plan toward ScaleDown SLMs. With your approval it edits the code and writes scaledown-report.md.
Does my source code leave my machine during the scan?
No. The analysis runs locally and no codebase data goes to ScaleDown servers. Their API is only contacted at runtime, when your application calls it with your SCALEDOWN_API_KEY.