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

kdeps-commands-search

v2.0.0

kdeps command: search

set commands / shelf agent

PurposeSearch the indexed directory and feed the results to the model

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

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

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

Contents

order
320
/search <term>Search the indexed directory and feed the results to the model
/search indexBuild or update the search index of every folder the project searches
/search foldersList the folders the project searches (its own and the ones added)
/search add <folder>Search a folder outside the project with it (docs, a shared library); indexes it now
/search remove <folder>Stop searching a folder with the project
/search index
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: search_index
    

    prints

    {{.output}}
/search folders
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: search_folders
    

    prints

    Project {{.project}} searches:
    {{range .places}}
    - {{.path}} (project){{if not .indexed}} - not indexed yet: `/search index`{{end}}{{end}}{{range .folders}}
    - {{.path}}{{if not .indexed}} - not indexed yet: `/search index`{{end}}{{end}}{{if not .folders}}
    - (no other folders: `/search add <folder>`, or `kdeps --index <folder>`){{end}}
/search add
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: search_folder
    action: add
    folder: $@
    

    prints

    {{.output}}
/search remove
  1. 1

    Calls a kdeps API tool

    session_ops
    operation: search_folder
    action: remove
    folder: $@
    

    prints

    {{.output}}
/search *
  1. 1

    Calls a kdeps API tool

    search_local
    query: $@
    index: true
    limit: 20
    

    prints

    {{if not .results}}search: no results for this query{{else}}**Search results ({{.count}} files):**
    {{range .results}}
    - {{.path}} [match={{.matchCount}} score={{printf "%.2f" .score}}]{{if .snippet}}
      `{{trunc 160 .snippet}}`{{end}}{{end}}{{end}}
requires:
  tools/session_ops: ""
  tools/search_local: ""

Versions

VersionPublishedStatus
2.0.010/24/2026active
1.1.110/21/2026active
1.1.010/16/2026active
1.0.010/12/2026active

Details

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

Tags

kdepscommand