kdeps-commands-memory
v2.0.0kdeps command: memory
set commands / shelf agent
PurposeShow memory store overview (entry count, most recent entries)
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/memory
- 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/memory@<version>.
Contents
- order
- 260
/memoryShow memory store overview (entry count, most recent entries)/memory listList all stored memory entries/memory search <query>Search memory keys/values for a substring/memory show <key>Show one entry's full value, type, and related keys/memory- 1
Calls a kdeps API tool
session_opsoperation: memory_entries order: recent limit: 10prints
{{if not .entries}}no memory entries yet{{else}}**Memory: {{.total}} entries** Most recently updated: {{range .entries}} - {{.key}}{{if .type}} [{{.type}}]{{end}}: {{trunc 80 .value}}{{end}} {{if .more}} `/memory list` shows all entries · `/memory search <query>` filters by substring{{end}}{{end}}
/memory list- 1
Calls a kdeps API tool
session_opsoperation: memory_entriesprints
{{if not .entries}}no memory entries yet{{else}}**Memory: {{.total}} entries** {{range .entries}} - {{.key}}{{if .type}} [{{.type}}]{{end}}: {{trunc 80 .value}}{{end}}{{end}}
/memory search- 1
Calls a kdeps API tool
session_opsoperation: memory_entries query: $@prints
{{if not .entries}}no memory entries matching {{printf "%q" .query}}{{else}}**Memory: {{.total}} matches for {{printf "%q" .query}}** {{range .entries}} - {{.key}}{{if .type}} [{{.type}}]{{end}}: {{trunc 80 .value}}{{end}}{{end}}
/memory show- 1
Calls a kdeps API tool
session_opsoperation: memory_entry key: $1prints
**{{.key}}** {{if .type}}type: {{.type}} {{end}}updated: {{.updated}} {{if .related}}related: {{join .related ", "}} {{end}} {{.value}} {{if .graph}} ``` {{.graph}} ```{{end}}
requires:
tools/session_ops: ""
version: 2.0.0
# kdeps update installs these with this command: what its run steps use
requires:
tools/session_ops: ""
name: memory
order: 260
usage:
- args: ""
help: "Show memory store overview (entry count, most recent entries)"
- args: list
help: List all stored memory entries
- args: "search <query>"
help: Search memory keys/values for a substring
- args: "show <key>"
help: "Show one entry's full value, type, and related keys"
subcommands:
"":
run:
- tool: session_ops
args: {operation: memory_entries, order: recent, limit: 10} # the 10 most recently updated
print: |-
{{if not .entries}}no memory entries yet{{else}}**Memory: {{.total}} entries**
Most recently updated:
{{range .entries}}
- {{.key}}{{if .type}} [{{.type}}]{{end}}: {{trunc 80 .value}}{{end}}
{{if .more}}
`/memory list` shows all entries · `/memory search <query>` filters by substring{{end}}{{end}}
list:
run:
- tool: session_ops
args: {operation: memory_entries}
print: |-
{{if not .entries}}no memory entries yet{{else}}**Memory: {{.total}} entries**
{{range .entries}}
- {{.key}}{{if .type}} [{{.type}}]{{end}}: {{trunc 80 .value}}{{end}}{{end}}
search:
run:
- tool: session_ops
args: {operation: memory_entries, query: "$@"}
print: |-
{{if not .entries}}no memory entries matching {{printf "%q" .query}}{{else}}**Memory: {{.total}} matches for {{printf "%q" .query}}**
{{range .entries}}
- {{.key}}{{if .type}} [{{.type}}]{{end}}: {{trunc 80 .value}}{{end}}{{end}}
show:
run:
- tool: session_ops
args: {operation: memory_entry, key: "$1"}
# graph is the <graph-node> block the model sees for this key
print: |-
**{{.key}}**
{{if .type}}type: {{.type}}
{{end}}updated: {{.updated}}
{{if .related}}related: {{join .related ", "}}
{{end}}
{{.value}}
{{if .graph}}
```
{{.graph}}
```{{end}}
Versions
| Version | Published | Status |
|---|---|---|
| 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.0
- Published
- 10/12/2026