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

kdeps-commands-session

v2.0.0

kdeps command: session

set commands / shelf agent

PurposeList this folder's saved sessions

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/session
  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/session

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

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

Contents

order
140
/session [list]List this folder's saved sessions
/session save [name]Save the session, optionally named
/session load <id>Load a saved session (its model too)
/session delete <id>Delete a saved session
/session import <path>Import a JSONL session file and load it
/session checkpointMark the current entry (for /session goto)
/session goto <entry-id>Go back to an entry; the turns after it become a branch
/session branchesList the branches /session goto stashed
/session
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: sessions
    

    prints

    {{if not .sessions}}No saved sessions.{{else}}**Saved sessions for this folder:**
    {{range .sessions}}
    - `{{.id}}` {{.updated}} turns={{.turns}} model={{if .model}}{{.model}}{{else}}-{{end}}
      {{if .name}}{{.name}}{{else if .prompt}}{{trunc 80 .prompt}}{{else}}(no preview){{end}}{{end}}{{end}}
/session list
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: sessions
    

    prints

    {{if not .sessions}}No saved sessions.{{else}}**Saved sessions for this folder:**
    {{range .sessions}}
    - `{{.id}}` {{.updated}} turns={{.turns}} model={{if .model}}{{.model}}{{else}}-{{end}}
      {{if .name}}{{.name}}{{else if .prompt}}{{trunc 80 .prompt}}{{else}}(no preview){{end}}{{end}}{{end}}
/session save
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: save
    name: $@
    

    prints

    Session saved as {{.id}}{{if .name}} ({{printf "%q" .name}}){{end}}
/session load
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: load
    id: $1
    

    prints

    Session {{.id}} loaded ({{.turns}} turns).
/session delete
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: delete
    id: $1
    

    prints

    Session {{.id}} deleted.
/session import
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: import
    path: $1
    

    prints

    Session {{.id}} imported and loaded ({{.turns}} turns).
/session checkpoint
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: checkpoint
    

    prints

    {{if .id}}Checkpoint: {{.id}}{{else}}No messages in session.{{end}}
/session goto
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: goto
    id: $1
    

    prints

    {{if .found}}Session restored to entry {{.id}} ({{.turns}} turns).{{else}}Entry ID {{.id}} not found in current session.{{end}}
/session branches
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: branches
    

    prints

    {{if not .branches}}No stashed branches. Use /session goto to create a branch.{{else}}**{{len .branches}} stashed branch(es):**
    {{range .branches}}
    - branch {{.branch}}: branched at entry {{.at}}, {{len .ids}} turn(s). Entry IDs (use /session goto <id>): {{join .ids ", "}}{{end}}{{end}}
requires:
  tools/session_ops: ""

Versions

VersionPublishedStatus
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.0.0
Published
10/12/2026

Tags

kdepscommand