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 agentmods add skills/waltersumbon/minicode-sdk/minicode-usagenpx skills add WalterSumbon/minicode-sdk --skill minicode-usagegit clone --depth 1 https://github.com/WalterSumbon/minicode-sdkWrote 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/waltersumbon/minicode-sdk/minicode-usage)<a href="https://agentmods.dev/skills/waltersumbon/minicode-sdk/minicode-usage"><img src="https://agentmods.dev/badge/skills/waltersumbon/minicode-sdk/minicode-usage.svg" alt="Measured on agentmods" 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 | $0.00045 | $0.00982 |
| Opus 5 | $0.00023 | $0.00491 |
| Sonnet 5 | $0.00009 | $0.00196 |
| Haiku 4.5 | $0.00005 | $0.00098 |
Grade A, and why
minicode_usage 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 5d 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 — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.
minicode-sdk Usage Guide
Installation
pip install minicode-sdk
Quick Start
Basic Agent
import asyncio
from minicode import Agent
from minicode.llm import OpenAILLM
async def main():
agent = Agent(
name="assistant",
llm=OpenAILLM(api_key="your-api-key"),
)
response = await agent.generate("Hello, how are you?")
print(response)
asyncio.run(main())
Streaming Response
async def main():
agent = Agent(name="assistant", llm=OpenAILLM(api_key="your-key"))
async for chunk in agent.stream("Tell me a story"):
if chunk["type"] == "content":
print(chunk["content"], end="", flush=True)
Adding Tools
Built-in Tools
from minicode.tools.builtin import ReadTool, WriteTool, BashTool
agent = Agent(
name="assistant",
llm=my_llm,
tools=[ReadTool(), WriteTool(), BashTool()],
)
Custom Tools
from minicode.tools.base import BaseTool
class MyTool(BaseTool):
@property
def name(self) -> str:
return "my_tool"
@property
def description(self) -> str:
return "Description of what this tool does"
@property
def parameters(self) -> dict:
return {
"type": "object",
"properties": {
"param1": {"type": "string", "description": "First parameter"},
},
"required": ["param1"],
}
async def execute(self, params: dict, context) -> dict:
# Implement tool logic
return {"success": True, "result": "..."}
MCP Integration
Method 1: Direct Configuration
async with Agent(
name="assistant",
llm=my_llm,
mcp_servers=[
{
"name": "memory",
"command": ["npx", "-y", "@modelcontextprotocol/server-memory"],
}
],
) as agent:
response = await agent.generate("Remember that my name is Alice")
Method 2: Configuration File
Create .minicode/mcp.json:
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.
- 5d ago First seen · 199 lines · 45 tokens per session scan A 04fb4a46588a
minicode_usage is a skill published in the GitHub repository WalterSumbon/minicode-sdk (2 stars, last pushed 7mo ago), licensed MIT. It adds 45 tokens to every session and 982 once invoked, about $0.0002 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
fastapi
Use when building, reviewing, testing, securing or shipping a FastAPI / async Python service — routers, Pydantic v2 schemas, dependency injection, async SQLAlchemy 2.0, OAuth2/JWT, ASGITransport tests, production wiring. NOT language-level Python or packaging (that is python), NOT engine-level SQL (that is…
python
Use when the task is Python itself, in any framework or none: PEP 695 generics, mypy --strict typing, dataclass/Protocol/TypedDict/Enum choices, asyncio.TaskGroup, stdlib idioms, src/ layout + pyproject.toml with uv, ruff+mypy+pytest gate. NOT a FastAPI/ASGI service (that is fastapi), NOT a deep pytest suite (that is…
csharp-dotnet
Use when writing, reviewing, testing, or shipping C# / .NET code — ASP.NET Core APIs (minimal APIs vs controllers), EF Core data access, async correctness, solution layout in .cs/.csproj/.sln. NOT a Java/Spring backend (that is spring-boot), NOT a Node/TypeScript backend (that is nestjs), NOT framework-neutral REST…
nodejs
Use when building or operating a plain Node.js / Express 5 backend service: project layout, async correctness, central error middleware, fail-fast config, graceful shutdown on SIGTERM. NOT DI modules/providers/guards (that is nestjs), NOT the type system or tsconfig (that is typescript), NOT REST contract design (that…
worker-integration
Worker-Agent integration for intelligent task dispatch and performance tracking.
foundry-config-setup
Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.