kdeps-commands-refine
v2.0.1kdeps command: refine
set commands / shelf agent
PurposeShow or toggle pre-turn prompt refinement (off by default)
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.
- you type /name in kdeps
- the command runs: built in, or its declared stepscommands/refine
- 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.
Pin a version with kdeps install commands/refine@<version>.
Contents
- order
- 220
/refine [on|off]Show or toggle pre-turn prompt refinement (off by default)Shows or sets the session setting refine to one of onoff. What it prints is the setting block below.
setting:
key: refine
values:
- on
- off
show: '{{if eq .value "on"}}prompt refinement is on — each prompt is rewritten
for clarity before the turn{{else}}prompt refinement is off — /refine on to
enable{{end}}'
set: '{{if eq .value "on"}}prompt refinement enabled — the next prompt is
rewritten for clarity before the turn{{else}}prompt refinement disabled —
prompts are sent to the model verbatim{{end}}'
invalid: "Usage: /refine [on|off]"
version: 2.0.1
name: refine
order: 220
usage:
- args: "[on|off]"
help: Show or toggle pre-turn prompt refinement (off by default)
# setting: the command shows or sets one session setting; the text is here.
setting:
key: refine # live session state; the choice persists across sessions
values: [on, off] # accepted arguments, matched without case
show: >-
{{if eq .value "on"}}prompt refinement is on — each prompt is rewritten for clarity before the turn{{else}}prompt refinement is off — /refine on to enable{{end}}
set: >-
{{if eq .value "on"}}prompt refinement enabled — the next prompt is rewritten for clarity before the turn{{else}}prompt refinement disabled — prompts are sent to the model verbatim{{end}}
invalid: "Usage: /refine [on|off]"
Versions
| Version | Published | Status |
|---|---|---|
| 2.0.1 | 10/27/2026 | active |
| 2.0.0 | 10/24/2026 | active |
| 1.0.1 | 10/21/2026 | active |
| 1.0.0 | 10/12/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 2.0.1
- Published
- 10/12/2026