kdeps-commands-knowledge
v2.0.1kdeps command: knowledge
set commands / shelf agent
PurposeShow whether the knowledge vault is on, and where it is
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/knowledge
- 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.
Also installs what it requires, when missing or older: tools/session_ops.
Pin a version with kdeps install commands/knowledge@<version>.
Contents
- order
- 71
/knowledgeShow whether the knowledge vault is on, and where it is/knowledge onTurn on per-turn recall, session notes and the knowledge tools (remembered)/knowledge offTurn them off for this and later sessions/knowledge extractRead the changed notes with the local model and update the graph/knowledge- 1
Calls a kdeps API tool
session_opsoperation: knowledgeprints
knowledge vault is {{if eq .value "on"}}on{{else}}off - `/knowledge on` to enable{{end}} vault: {{.vault}} graph: {{.graph}} {{if .pending}}{{.pending}} notes waiting for extraction (`/knowledge extract` or `kdeps knowledge build --extract`){{end}}
/knowledge stateShows or sets the session setting knowledge to one of onoff. What it prints is the setting block below.
/knowledge on- 1
Runs a command
/knowledge state on
/knowledge off- 1
Runs a command
/knowledge state off
/knowledge extract- 1
Calls a kdeps API tool
session_opsoperation: knowledgeprints
Reading changed notes with the local model...
- 2
Calls a kdeps API tool
session_opsoperation: knowledge_extractprints
{{.output}}
requires:
tools/session_ops: ""
version: 2.0.1
# kdeps update installs these with this command: what its run steps use
requires:
tools/session_ops: ""
name: knowledge
order: 71
usage:
- args: ""
help: Show whether the knowledge vault is on, and where it is
- args: "on"
help: Turn on per-turn recall, session notes and the knowledge tools (remembered)
- args: "off"
help: Turn them off for this and later sessions
- args: extract
help: Read the changed notes with the local model and update the graph
subcommands:
"":
run:
- tool: session_ops
args: {operation: knowledge}
print: |-
knowledge vault is {{if eq .value "on"}}on{{else}}off - `/knowledge on` to enable{{end}}
vault: {{.vault}}
graph: {{.graph}}
{{if .pending}}{{.pending}} notes waiting for extraction (`/knowledge extract` or `kdeps knowledge build --extract`){{end}}
state:
setting:
key: knowledge
values: ["on", "off"]
show: "knowledge vault is {{.value}}"
set: >-
{{if eq .value "on"}}knowledge vault on - each turn recalls related notes; this session writes its note{{else}}knowledge vault off - no recall, no session note, knowledge tools refuse{{end}}
invalid: "Usage: /knowledge [on|off|extract]"
"on":
run:
- command: /knowledge state on
"off":
run:
- command: /knowledge state off
extract:
run:
- tool: session_ops
args: {operation: knowledge} # a quick first step, so this line shows before the long one
print: Reading changed notes with the local model...
- tool: session_ops
args: {operation: knowledge_extract}
print: "{{.output}}"
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/15/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 2.0.1
- Published
- 10/15/2026