Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add svngoku/coding-agents-skills --skill smolagentsgit clone --depth 1 https://github.com/svngoku/coding-agents-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/svngoku/coding-agents-skills/smolagents)<a href="https://agentmods.dev/skills/svngoku/coding-agents-skills/smolagents"><img src="https://agentmods.dev/badge/skills/svngoku/coding-agents-skills/smolagents/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/svngoku/coding-agents-skills/smolagents"><img src="https://agentmods.dev/badge/skills/svngoku/coding-agents-skills/smolagents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00105 | $0.03809 |
| Opus 5 | $0.00053 | $0.01904 |
| Sonnet 5 | $0.00021 | $0.00762 |
| Haiku 4.5 | $0.00011 | $0.00381 |
Grade A, and why
smolagents scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 591 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SmolAgents - Hugging Face AI Agent Framework
SmolAgents is a minimalist Python library (~1000 lines) for building AI agents that write and execute code. It emphasizes simplicity, security, and model-agnostic design.
Installation
pip install smolagents # Core library
pip install 'smolagents[toolkit]' # With default tools (web search, etc.)
pip install 'smolagents[litellm]' # LiteLLM for OpenAI/Anthropic
pip install 'smolagents[transformers]' # Local model support
pip install 'smolagents[mcp]' # MCP server integration
pip install 'smolagents[telemetry]' # OpenTelemetry support
Core Concepts
Agent Types
CodeAgent - Primary agent that writes Python code to execute actions:
from smolagents import CodeAgent, InferenceClientModel
model = InferenceClientModel() # Default: Qwen/Qwen2.5-Coder-32B-Instruct
agent = CodeAgent(tools=[], model=model)
result = agent.run("Calculate the first 20 Fibonacci numbers")
ToolCallingAgent - Uses JSON-based tool calls (no code execution):
from smolagents import ToolCallingAgent, InferenceClientModel
agent = ToolCallingAgent(tools=[], model=InferenceClientModel())
agent.run("Get the title of https://huggingface.co/blog")
Model Configuration
Hugging Face Inference API (recommended for quick start):
from smolagents import InferenceClientModel
# Default model
model = InferenceClientModel()
# Specific model with provider
model = InferenceClientModel(
model_id="meta-llama/Llama-3.3-70B-Instruct",
provider="together", # or "sambanova", "fireworks", etc.
token="YOUR_HF_TOKEN"
)
LiteLLM (100+ providers):
from smolagents import LiteLLMModel
# Anthropic
model = LiteLLMModel(
model_id="anthropic/claude-3-5-sonnet-latest",
api_key="YOUR_ANTHROPIC_API_KEY"
)
# OpenAI
model = LiteLLMModel(model_id="gpt-4o", api_key="YOUR_OPENAI_API_KEY")
Local Transformers:
from smolagents import TransformersModel
model = TransformersModel(
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
max_new_tokens=4096,
device_map="auto"
)
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 591 lines · 105 tokens per session scan A fc15e698069f
smolagents is a skill published in the GitHub repository svngoku/coding-agents-skills (10 stars, last pushed 26d ago), licensed MIT. It adds 105 tokens to every session and 3,809 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
skill-authoring
Author SKILL.md skills: frontmatter, validator limits, structure.
iflytek-hyper-tts
A text-to-speech tool that turns written text into an MP3 recording. It can use an authorized voice and adjust speaking speed, volume, and pitch.
iflytek-pdf-image-ocr
AI-powered OCR service for images and PDF documents using iFlytek's advanced recognition APIs.
iflytek-text-proofread
A tool that checks Chinese writing through iFlytek’s official document-proofreading service. It looks for spelling, punctuation, wording, factual, terminology, and sensitive-content problems.
iflytek-translate
A text-translation tool that uses iFlytek's machine-translation service and supports more than 70 language pairs. It can translate text supplied directly, through standard input, or from a file.
iflytek-video-translate
A tool that translates a video’s speech into another language and creates dubbed audio. Video localization means adapting video content for viewers who speak a different language.