# ScaleDown Agent

> Source: https://aiwiki.ai/wiki/scaledown_agent
> Updated: 2026-12-02
> Categories: Developer Tools, Small Language Models
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "ScaleDown Agent." aiwiki.ai, 2 Dec 2026. https://aiwiki.ai/wiki/scaledown_agent
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**ScaleDown Agent** is a developer tool that identifies places where an application calls a language model and proposes moving individual tasks to [small language models](https://aiwiki.ai/wiki/small_language_model). It is available as a [Model Context Protocol](https://aiwiki.ai/wiki/model_context_protocol) server and a [Claude Code](https://aiwiki.ai/wiki/claude_code) plugin. A developer can keep the original model for the main task and change just one operation, such as shortening a retrieved document before the application sends it to that model. [1][2]

## Finding candidates for migration

The server supplies search patterns for Python, JavaScript and TypeScript. The coding assistant uses them to look for calls made through provider libraries or frameworks, including the OpenAI and Anthropic libraries and LangChain. ScaleDown describes this scan as local. Its migration report identifies files and lines, describes what each call does and provides a proposed code change for the developer to review. [1][2][3]

The choice depends on what the application expects back. A call that assigns a support message to one of several queues can use a classifier. A call that reads a document and returns particular fields can use extraction. Summarization produces a shorter account, while compression shortens the input to a subsequent model call. A single application can use several of these operations and retain a larger model for open-ended writing or planning. [1][2][4]

## Evaluating a replacement

The migration report and the evaluation answer different questions. The report suggests what code a developer could change. To see how that change affects the application, the optimization tool compares a proposed prompt against labeled examples or answers recorded from the original model. It saves the samples, prompt versions, evaluation script and results in the project. Testing the replacement involves sending sample inputs to the ScaleDown API endpoint selected for the test. [2]

The metric follows the task. For classification, the tool can use the macro-averaged [F1 score](https://aiwiki.ai/wiki/f1_score), so a label with few examples still counts as much as a common one. For extraction, it measures precision and recall for individual fields. For compression, it considers both the reduction in input size and whether the downstream model still answers correctly. A smaller prompt can therefore score poorly if it drops a detail the answer depends on. When the comparison uses the previous model's answers as its reference, the score measures agreement with that model. Human-verified answers provide a different reference. [2]

## References

1. ScaleDown. [ScaleDown Agent overview](https://docs.scaledown.ai/slm-agent/overview).
2. ScaleDown. [SLM Agent repository, migration report and prompt optimization](https://github.com/scaledown-team/SLM_Agent).
3. ScaleDown. [Migration server implementation](https://github.com/scaledown-team/SLM_Agent/blob/main/src/index.ts).
4. Neal Patel. [Building Long-Running Agents with ScaleDown and Deep Agents](https://www.langchain.com/blog/building-long-running-agents-with-scaledown-and-deep-agents). LangChain, October 13, 2026.

