SLM Agent by ScaleDown
An MCP server + Claude Code plugin that scans your codebase for AI API calls and shows you exactly where and how to integrate ScaleDown SLMs to cut costs by up to 95%.
Privacy: This plugin analyzes your code locally. No source code or codebase data is ever sent to ScaleDown servers. The only network calls are to ScaleDown's API endpoints at runtime, when your application calls them with the SCALEDOWN_API_KEY you provide.
What it does
- Evaluates — scans your project for OpenAI, Anthropic, LangChain, LlamaIndex, Cohere, and other AI API calls
- Plans — generates a structured migration plan showing which ScaleDown SLM fits each call site:
sd_compress — reduce context tokens 50–70% before calling your LLM (for RAG, long docs)
sd_classify — replace frontier LLM classification calls (~95% cheaper)
sd_extract — replace frontier LLM entity extraction calls (~95% cheaper)
sd_summarize — replace frontier LLM summarization calls (~90% cheaper)
- Migrates — applies the changes to your code with your approval, adapting to your real variable names
- Optimizes — tunes the prompt you pass to a ScaleDown SLM against your own sample data and benchmarks it against the frontier-model output it replaced, with a reproducible eval
Installation
Claude Code (recommended)
First add the ScaleDown marketplace:
/plugin marketplace add scaledown-team/SLM_Agent
Then install the plugin:
/plugin install slm-agent@scaledown
Finally, reload your plugins:
/reload-plugins
You are now ready to use the SLM Agent. Go to any project and run:
/slm-agent:evaluate # find & migrate AI calls to ScaleDown SLMs
/slm-agent:optimize # tune a ScaleDown prompt against your own data
The plugin automatically configures the MCP server and registers the /slm-agent:evaluate and /slm-agent:optimize skills. No further setup needed.
Cursor
Add to your project's .cursor/mcp.json (or ~/.cursor/mcp.json for global):
{
"mcpServers": {
"scaledown-migration-agent": {
"command": "npx",
"args": ["-y", "@scaledown/migration-agent"]
}
}
}
Then ask Cursor: "Use the scaledown-migration-agent tools to evaluate this codebase for ScaleDown integration opportunities."
Using optimize in Cursor (Agent Skills)
Cursor natively loads Agent Skills — the same SKILL.md format Claude Code plugins use — from .agents/skills/, .cursor/skills/, or their ~-global equivalents. This package ships optimize (and evaluate) at .agents/skills/, so no MCP setup is required for optimize specifically:
- Install the package so its files are on disk somewhere Cursor can see, either:
npm install @scaledown/migration-agent in your project (skills land in node_modules/@scaledown/migration-agent/.agents/skills/ — copy or symlink that optimize/ folder into your project's own .agents/skills/optimize/ so Cursor's project-scoped loader picks it up), or
- clone github.com/scaledown-team/SLM_Agent and copy
.agents/skills/optimize/ into your project's .agents/skills/ directly.
- Restart Cursor (or reload the window) so it re-scans skill directories.
- In Cursor's Agent chat, ask it to "optimize my ScaleDown prompt" (or similar) — it discovers and runs the
optimize skill, driving the same phased tuning loop (sample ingestion, error clustering, targeted iteration, final report) as /slm-agent:optimize does in Claude Code. It runs with whichever model you've selected in Cursor, not just Claude.
The evaluate skill is exposed the same way, but its instructions call the scaledown-migration-agent MCP tools above (keep that server name so the skill's tool names resolve) for codebase scanning and report generation, so configure the MCP server too if you want to use evaluate in Cursor. optimize has no MCP dependency — it only needs shell/file access, which Cursor's agent already has.
VS Code (Copilot / any MCP-compatible extension)
Add to your workspace .vscode/mcp.json:
{
"servers": {
"scaledown-migration-agent": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@scaledown/migration-agent"]
}
}
}
Manual (any MCP client)
npm install -g @scaledown/migration-agent
Then configure your MCP client to run: scaledown-agent
MCP Tools
The server exposes four tools that any MCP-compatible AI assistant can call: