Alphakdeps.io is experimental and evolving — the registry and packages may change or reset.
Slash commandkdeps asset

kdeps-commands-model

v2.1.0

kdeps command: model

set commands / shelf model

PurposeShow or set the LLM model (no name opens the picker)

LLM context: none - kdeps uses it without sending it to the model

Where it runs

Part of the commands set, used in workflow and agent mode. Slash commands: the help and completion of the built-in ones, and declared commands that run other commands and prompts.

  1. you type /name in kdeps
  2. the command runs: built in, or its declared stepscommands/model
  3. prompts go to the model; the output is shown

Loaded by: kdeps (agent loop), /update, kdeps run

In the code: kdeps (agent loop)agent.(*REPL).Runagent.declaredCommand

Install

A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.

kdeps install commands/model

Also installs what it requires, when missing or older: tools/hf_repo_files, tools/hf_search, tools/session_ops.

Pin a version with kdeps install commands/model@<version>.

Contents

order
40
/model [name]Show or set the LLM model (no name opens the picker)
/model record [clear]Show the current model's record of caught refusals (sent to it each turn), or clear it
/model default [name]Show or save the default startup model
/model listList all available models with provider status
/model psList running local model servers (llamafile/gguf)
/model ps kill <model>Kill a running local model server
/model ps switch <model>Switch to a running local model server
/model hff search <query>Search HuggingFace for GGUF models
/model hff info <repo>List GGUF files available in a HuggingFace repo
/model hff download <repo> <file>Download a GGUF file from HuggingFace
/model <url>Register a .gguf/.llamafile URL or OpenAI-compatible endpoint
/model favorite <name>Star a model (shown first in /model, persists); unfavorite to remove
/model name [show|hide|abbreviate|auto]Show or set how the modeline displays the model name
/model tool [list]Show agent loop settings (tool rounds, retries, compaction)
/model tool set <setting> <value>Change a setting for this session (e.g. rounds 80, retry-delay 5s)
/model
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model_pick
    

    prints

    {{if not .picked}}Current model: {{.model}}{{end}}
/model *
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model
    name: $1
    

    prints

    {{if .registered}}Registered as {{.registered}} -- use `/model {{.registered}}` next time.{{end}}{{if .ambiguous}}{{printf "%q" .typed}} is ambiguous across backends ({{join .ambiguous ", "}}) -- using {{.model}}. Use the full name to pick a specific one.{{end}}{{if .closest}}No exact match for {{printf "%q" .typed}} -- switched to closest: {{.closest}}{{end}}
/model default
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model_default
    name: $1
    

    prints

    {{if .typed}}{{printf "%q" .typed}} is ambiguous across backends ({{join .ambiguous ", "}}) -- saving {{.model}} as default. Use the full name to pick a specific one. {{end}}{{if eq (printf "%v" .configured) "false"}}No default persistence configured.{{else if eq (printf "%v" .configured) "true"}}**Default model**
      Use `/model default <name>` to set the startup model.{{else}}Default model saved - will be used at next startup.{{end}}
/model record
/model record
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model_record
    

    prints

    {{if not .refusals}}{{.model}} has no refusals on record.{{else}}**{{.model}}: {{.count}} caught refusals** (sent to the model as its record)
    {{range .refusals}}
    - {{.at}} [{{.kind}}] {{.text}}{{end}}{{end}}
/model record clear
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model_record_clear
    

    prints

    {{if .cleared}}Cleared the refusal record of {{.model}}.{{else}}{{.model}} has no refusal record.{{end}}
/model list
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: models
    

    prints

    **Available models** (use `/model <id>` to switch)
    {{range .cloud}}
    **{{.backend}}** {{if .ready}}[READY]{{else}}[NO KEY - set {{.env}}]{{end}}
    {{range .models}}
    - `{{.id}}` {{.desc}}{{if .current}} **<-- current**{{end}}{{end}}
    {{end}}{{if .local}}
    **LOCAL** (ollama / llamafile / gguf)
    {{range .local}}
    - {{if .downloaded}}\* {{end}}`{{.id}}`{{if .repo}} {{.repo}}{{end}}{{if .current}} **<-- current**{{else if .downloaded}} downloaded{{end}}{{end}}
    {{end}}
    \* = downloaded locally | `/model default <name>` to set the startup model | `/model <id>` to switch
/model ps
/model ps
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: servers
    

    prints

    {{if not .servers}}No local model servers running.{{else}}```
    {{printf "%-8s %-6s %-12s %-36s %s" "PID" "PORT" "BACKEND" "MODEL" "STATUS"}}
    {{range .servers}}{{printf "%-8v %-6v %-12s %-36s %s" .pid .port .backend .model .status}}
    {{end}}```{{end}}
/model ps kill
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: server_kill
    model: $1
    

    prints

    Killed server for: {{.model}}
/model ps switch
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model
    name: $1
    

    prints

    {{if .registered}}Registered as {{.registered}} -- use `/model {{.registered}}` next time.{{end}}{{if .ambiguous}}{{printf "%q" .typed}} is ambiguous across backends ({{join .ambiguous ", "}}) -- using {{.model}}. Use the full name to pick a specific one.{{end}}{{if .closest}}No exact match for {{printf "%q" .typed}} -- switched to closest: {{.closest}}{{end}}
/model hff
/model hff search
  1. 1

    Calls a kdeps API tool

    hf_search
    query: $@
    

    prints

    ```
    {{.output}}
    ```
    Use `/model hff download <repo> <file>` to download.
/model hff info
  1. 1

    Calls a kdeps API tool

    hf_repo_files
    repo: $1
    

    prints

    ```
    {{.output}}
    ```
    Use `/model hff download <repo> <file>` to download.
/model hff download
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: hf_download
    repo: $1
    file: $2
    

    prints

    Downloaded: {{.path}}
    Registered as: {{.alias}}
    Use `/model {{.alias}}` to switch to it.
/model tool
/model tool
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: loop_settings
    

    prints

    Agent loop settings (`/model tool set <setting> <value>`):
    ```
      rounds             {{index . "rounds"}}  (max tool-call rounds per turn, 0 = unlimited)
      retries            {{index . "retries"}}  (auto-retries on transient API errors)
      retry-delay        {{index . "retry-delay"}}  (initial retry backoff, doubles per retry)
      stall-timeout      {{index . "stall-timeout"}}  (kill a tool after this much silence, set 0 to disable)
      compact-threshold  {{index . "compact-threshold"}}  (tokens; auto-compact trigger, 0 = off)
      compact-budget     {{index . "compact-budget"}}  (tokens kept after compaction)
      max-turns          {{index . "max-turns"}}  (history turns retained, 0 = unlimited)
      history-tokens     {{index . "history-tokens"}}  (history token cap, 0 = unlimited)
      web-limit          {{index . "web-limit"}}  (max web_search/web_scraper per request, 0=unlimited)
      bash-limit         {{index . "bash-limit"}}  (max bash_exec per request, 0=unlimited)
      file-limit         {{index . "file-limit"}}  (max read_file/list_files per request, 0=unlimited)
      code-limit         {{index . "code-limit"}}  (max search_local per request, 0=unlimited)
      leaf-nodes         {{index . "leaf-nodes"}}  (max memory-graph leaf entries kept in the prompt, 0 = unlimited)
      leaf-chars         {{index . "leaf-chars"}}  (max characters kept per leaf entry, 0 = unlimited)
    ```
/model tool list
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: loop_settings
    

    prints

    Agent loop settings (`/model tool set <setting> <value>`):
    ```
      rounds             {{index . "rounds"}}  (max tool-call rounds per turn, 0 = unlimited)
      retries            {{index . "retries"}}  (auto-retries on transient API errors)
      retry-delay        {{index . "retry-delay"}}  (initial retry backoff, doubles per retry)
      stall-timeout      {{index . "stall-timeout"}}  (kill a tool after this much silence, set 0 to disable)
      compact-threshold  {{index . "compact-threshold"}}  (tokens; auto-compact trigger, 0 = off)
      compact-budget     {{index . "compact-budget"}}  (tokens kept after compaction)
      max-turns          {{index . "max-turns"}}  (history turns retained, 0 = unlimited)
      history-tokens     {{index . "history-tokens"}}  (history token cap, 0 = unlimited)
      web-limit          {{index . "web-limit"}}  (max web_search/web_scraper per request, 0=unlimited)
      bash-limit         {{index . "bash-limit"}}  (max bash_exec per request, 0=unlimited)
      file-limit         {{index . "file-limit"}}  (max read_file/list_files per request, 0=unlimited)
      code-limit         {{index . "code-limit"}}  (max search_local per request, 0=unlimited)
      leaf-nodes         {{index . "leaf-nodes"}}  (max memory-graph leaf entries kept in the prompt, 0 = unlimited)
      leaf-chars         {{index . "leaf-chars"}}  (max characters kept per leaf entry, 0 = unlimited)
    ```
/model tool set
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: loop_set
    setting: $1
    value: $2
    

    prints

    {{.setting}} set to {{.value}} (saved; applies from the next turn)
/model favorite
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model_favorite
    name: $@
    on: on
    

    prints

    Favorited {{.name}}{{if .warning}} ({{.warning}}){{end}}
/model fav
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model_favorite
    name: $@
    on: on
    

    prints

    Favorited {{.name}}{{if .warning}} ({{.warning}}){{end}}
/model star
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model_favorite
    name: $@
    on: on
    

    prints

    Favorited {{.name}}{{if .warning}} ({{.warning}}){{end}}
/model unfavorite
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model_favorite
    name: $@
    on: off
    

    prints

    Unfavorited {{.name}}{{if .warning}} ({{.warning}}){{end}}
/model unfav
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model_favorite
    name: $@
    on: off
    

    prints

    Unfavorited {{.name}}{{if .warning}} ({{.warning}}){{end}}
/model unstar
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: model_favorite
    name: $@
    on: off
    

    prints

    Unfavorited {{.name}}{{if .warning}} ({{.warning}}){{end}}
/model name

Shows or sets the session setting model-name to one of showhideabbreviateauto. What it prints is the setting block below.

requires:
  tools/session_ops: ""
  tools/hf_search: ""
  tools/hf_repo_files: ""

Versions

VersionPublishedStatus
2.1.010/25/2026active
2.0.010/24/2026active
1.0.110/21/2026active
1.0.010/12/2026active

Details

Author
kdeps
License
Apache-2.0
Latest Version
2.1.0
Published
10/12/2026

Tags

kdepscommand