models

models is a command for Claude Code from dansasser/claude-code-marketplace. It costs 0 tokens per session (1,300 once invoked), scanned B, original, MIT.

A command for discovering, listing, checking, and managing Ollama models, which are AI models that run through the Ollama tool.

In plain words
What is it for?
Use it to scan installed models, list registered models, verify one model, or view the default model chosen for each task type.
Why use it?
It makes the available models and their registered capabilities visible, so the agent pipeline can check whether a requested model exists and see its defaults.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; positional $N argument.

Part of the ollama-agents plugin — 5 commands, 3 agents shipped together

Good fit Use it to scan installed models, list registered models, verify one model, or view the default model chosen for each task type.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/dansasser/claude-code-marketplace/models
Install

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.

Clone the repo
git clone --depth 1 https://github.com/dansasser/claude-code-marketplace

Made for: Claude Code.

Or install ollama-agents, the plugin that ships this one along with the rest of its 5 commands, 3 agents.

Wrote 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.

agentmods badge for models

README.md
[![agentmods](https://agentmods.dev/badge/commands/dansasser/claude-code-marketplace/models/github.svg)](https://agentmods.dev/commands/dansasser/claude-code-marketplace/models)
Your own site
<a href="https://agentmods.dev/commands/dansasser/claude-code-marketplace/models"><img src="https://agentmods.dev/badge/commands/dansasser/claude-code-marketplace/models/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.

agentmods 80×15 button for models

Your own site · 80×15
<a href="https://agentmods.dev/commands/dansasser/claude-code-marketplace/models"><img src="https://agentmods.dev/badge/commands/dansasser/claude-code-marketplace/models.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,300 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01300
Opus 5.5 $0.00000 $0.00520
Sonnet 5.5 $0.00000 $0.00260
Haiku 4.5 $0.00000 $0.00130

Measured 2mo ago against content hash ba5af7a92a3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

models scanned grade B with 1 finding 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 2mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/model-capabilities.json | python3 -c "
plugins/claude-ollama-agents/commands/models.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Manage Ollama Models

Discover, list, and manage ollama models for the agent pipeline.

Usage: /models [action] [target]

Actions:

  • discover: Scan and register all installed ollama models
  • list: Show all registered models and capabilities
  • check <model>: Verify specific model availability
  • defaults: Show default models for each task type

Examples:

  • /models discover - Scan for new models
  • /models list - Show all models
  • /models check kimi-k2-thinking:cloud - Check if model available
  • /models defaults - Show default selections

You are managing the ollama model registry.

Action: ${1:-list} Target: $2

Your Process:

  1. Execute Action:

    Discover:

    # Scan ollama and update registry
    ~/.claude/scripts/discover-models.sh
    
    # Show results
    cat ~/.claude/model-capabilities.json | python3 -c "
    import json, sys
    data = json.load(sys.stdin)
    print(f'Discovered {len(data[\"models\"])} models:')
    for model, info in data['models'].items():
        caps = ', '.join(set(info['capabilities']))
        print(f'  - {model}: {caps}')
    "
    

    List:

    # Show all models with capabilities
    cat ~/.claude/model-capabilities.json | python3 -c "
    import json, sys
    from pathlib import Path
    
    registry_file = Path.home() / '.claude' / 'model-capabilities.json'
    with open(registry_file, 'r', encoding='utf-8') as f:
        data = json.load(f)
    
    print('## Registered Models\n')
    for model, info in sorted(data['models'].items()):
        caps = ', '.join(set(info['capabilities']))
        family = info.get('family', 'unknown')
        context = info.get('context_window', 'unknown')
        cost = info.get('cost', 'unknown')
    
        print(f'### {model}')
        print(f'  - Family: {family}')
        print(f'  - Capabilities: {caps}')
        if isinstance(context, int):
            print(f'  - Context: {context:,} tokens')
        else:
            print(f'  - Context: {context}')
        print(f'  - Cost: {cost}')
        print()
    "
    

    Check:

    # Check if specific model is available
    ~/.claude/scripts/check-model.sh $2
    

    Defaults:

    # Show default model selections
    cat ~/.claude/model-capabilities.json | python3 -c "
    import json, sys
    from pathlib import Path
    
    registry_file = Path.home() / '.claude' / 'model-capabilities.json'
    with open(registry_file, 'r', encoding='utf-8') as f:
        data = json.load(f)
    
    print('## Default Models by Task\n')
    defaults = data.get('user_defaults', {})
    for task, model in sorted(defaults.items()):
        print(f'- **{task}**: {model}')
    
    print('\n## Task Preferences with Fallbacks\n')
    prefs = data.get('task_preferences', {})
    for task, config in sorted(prefs.items()):
        if config.get('preferred'):
            print(f'### {task}')
            print(f'  Preferred: {config[\"preferred\"][0]}')
            if config.get('fallback'):
                fallbacks = config['fallback'][:3]
                print(f'  Fallbacks: {\" -> \".join(fallbacks)}')
            print()
    "
    
  2. Model Capability Reference:

    Vision Models:

    • qwen3-vl:235b-instruct-cloud (best vision, 262K context)
    • qwen3:1.7b (lightweight, has vision)

    Code Models:

    • kimi-k2-thinking:cloud (reasoning + code, 262K context)
    • deepseek-v3.1:671b-cloud (strong code, 163K context)
    • qwen2.5-coder:3b (lightweight coder)

    Reasoning Models:

    • kimi-k2-thinking:cloud (explicit thinking)
    • deepseek-v3.1:671b-cloud (strong reasoning)

    General Purpose:

    • All models have general capability
    • Prefer larger models for complex tasks
  3. Registry Location:

    • File: ~/.claude/model-capabilities.json
    • Contains: Models, capabilities, defaults, task preferences
    • Auto-updated: By discover-models.sh
  4. Capability Taxonomy:

    • vision: Image analysis, OCR, screenshots
    • code: Code review, refactoring, security
    • reasoning: Multi-step logic, complex analysis
    • general: General purpose tasks

Read the full file on GitHub · 182 lines

Changes

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.

  1. 2mo ago First seen · 182 lines · 0 tokens per session scan B ba5af7a92a3d

Subscribe to this mod's changes

models is a command published in the GitHub repository dansasser/claude-code-marketplace (9 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,300 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

models compared with commands from other repositories

models next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modelsdansasser/claude-code-marketplaceCommand96mo agoMITB0Claude Code
bootmicrosoft/PromptKitCommand11412d agoMITA14GitHub Copilot
music-suno-promptfrankxai/Starlight-Intelligence-SystemCommand103d agoMITA23Claude Code
audit-promptOwl-Listener/ai-design-skillsCommand2025mo agoMITA13Claude Code
laravel-ai-sdkjpcaparas/superpowers-laravelCommand1574mo agoMITA27Claude Code
vlm-ocr-evaluationscdenney/open-science-skillsCommand695d agononeA0Claude Code
dare-llm-integrationdewtech-technologies/dare-methodCommand54mo agoMITA0Claude Code