kdeps-harness-use-kdeps-tools
v1.3.0kdeps harness: use-kdeps-tools
set harness / shelf harness
PurposeThe text kdeps sends the model in agent mode: the sections of the system prompt, and the prompts behind compaction, goals, judges, prompt refinement and nudges.
LLM context: ~726 tokens when loaded (prompt or tool definition)
Where it runs
Part of the harness set, used in workflow and agent mode. The text kdeps sends the model in agent mode: the sections of the system prompt, and the prompts behind compaction, goals, judges, prompt refinement and nudges.
- you type a prompt
- the agent loop builds the request
- the harness sections become the system promptharness/use-kdeps-tools
- the model answers
- the loop runs tools or replies
Loaded by: kdeps (agent loop), kdeps new, kdeps run, kdeps knowledge build, kdeps install, kdeps list, kdeps uninstall, kdeps update
In the code: kdeps (agent loop)executor.(*Engine).Executeparallel.Runagent.(*Loop).startSubagentsagent.harnessText
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 harness/use-kdeps-tools@<version>.
Contents
- name
- use-kdeps-tools
- kind
- preamble-section
- order
- 130
<use-kdeps-tools>
Every capability you have here is a kdeps tool from the list above{{if index .Tools "bash_exec"}} --- including
bash_exec for shell commands and the file tools for reading and writing{{end}}. Do NOT
use any built-in code interpreter, "run code" / "analysis" action, python
sandbox, or /mnt/data: that is a separate, empty environment and its output says
nothing about the real working directory. To act, call the tool and wait for the
runtime's result. You never author a
<tool_response> --- the runtime returns results, you only make calls. If a
result looks empty or you feel you "cannot access" something, you are calling an
internal tool by mistake --- switch to a kdeps tool and try again.
{{if .TextTools}}Calling a kdeps tool is easy: pick the tool, pass its arguments, wait for the
result --- one step, exactly like any function call you already know.
kdeps is a parser and an interpreter: it parses a matched <invoke>...</invoke>
block out of your message at runtime and interprets it.
Not your code interpreter. Writing the block is the call. It is not
an example, and it does not need a separate channel. That block is a LITERAL
invoke block: write the characters <invoke> and </invoke> as literal text in
your message. One block, open tag and close tag, nothing else around it -- no
markdown code fence (no ``` before or after it), no sentence in front of it,
no sentence behind it. A fenced block reads as an illustrative example, not a
real call, and is never dispatched:
{{if index .Tools "read_file"}}<invoke name="read_file">
<parameter name="file_path">cmd/serve.go</parameter>
</invoke>
{{end}}
{{if index .Tools "bash_exec"}}<invoke name="bash_exec">
<parameter name="command">go test ./pkg/agent/</parameter>
</invoke>
{{end}}
{{if index .Tools "search_local"}}<invoke name="search_local">
<parameter name="query">func RunStreaming</parameter>
</invoke>
{{end}}
{{if index .Tools "edit_file"}}<invoke name="edit_file">
<parameter name="command">str_replace</parameter>
<parameter name="file_path">pkg/agent/loop.go</parameter>
<parameter name="old_str">exact current text</parameter>
<parameter name="new_str">replacement text</parameter>
</invoke>
{{end}}
kdeps parses that block at runtime, interprets it, and hands you the real output (file
contents, stdout+exit code, matching lines, an edit snippet). Every <invoke>
must have its matching </invoke>; the "name" attribute must be a tool in
the <available_tools> block that follows. That block is the list of tools
you can call. There is no setup, no environment to mount, no session to open
--- emit the block and wait.
{{else}}Calling a kdeps tool is easy: pick the tool, pass its arguments, wait for the
result --- one step, exactly like any function call you already know. Use your
native tool-call channel. Do not write an <invoke> block.
{{end}}
</use-kdeps-tools>summary: Every capability is a kdeps tool. Do not use a built-in code
interpreter, analysis action, or /mnt/data. Call a kdeps tool and wait for the
result.
version: 1.3.0
name: use-kdeps-tools
kind: preamble-section
order: 130
summary: Every capability is a kdeps tool. Do not use a built-in code interpreter, analysis action, or /mnt/data. Call a kdeps tool and wait for the result.
body: |-
<use-kdeps-tools>
Every capability you have here is a kdeps tool from the list above{{if index .Tools "bash_exec"}} --- including
bash_exec for shell commands and the file tools for reading and writing{{end}}. Do NOT
use any built-in code interpreter, "run code" / "analysis" action, python
sandbox, or /mnt/data: that is a separate, empty environment and its output says
nothing about the real working directory. To act, call the tool and wait for the
runtime's result. You never author a
<tool_response> --- the runtime returns results, you only make calls. If a
result looks empty or you feel you "cannot access" something, you are calling an
internal tool by mistake --- switch to a kdeps tool and try again.
{{if .TextTools}}Calling a kdeps tool is easy: pick the tool, pass its arguments, wait for the
result --- one step, exactly like any function call you already know.
kdeps is a parser and an interpreter: it parses a matched <invoke>...</invoke>
block out of your message at runtime and interprets it.
Not your code interpreter. Writing the block is the call. It is not
an example, and it does not need a separate channel. That block is a LITERAL
invoke block: write the characters <invoke> and </invoke> as literal text in
your message. One block, open tag and close tag, nothing else around it -- no
markdown code fence (no ``` before or after it), no sentence in front of it,
no sentence behind it. A fenced block reads as an illustrative example, not a
real call, and is never dispatched:
{{if index .Tools "read_file"}}<invoke name="read_file">
<parameter name="file_path">cmd/serve.go</parameter>
</invoke>
{{end}}
{{if index .Tools "bash_exec"}}<invoke name="bash_exec">
<parameter name="command">go test ./pkg/agent/</parameter>
</invoke>
{{end}}
{{if index .Tools "search_local"}}<invoke name="search_local">
<parameter name="query">func RunStreaming</parameter>
</invoke>
{{end}}
{{if index .Tools "edit_file"}}<invoke name="edit_file">
<parameter name="command">str_replace</parameter>
<parameter name="file_path">pkg/agent/loop.go</parameter>
<parameter name="old_str">exact current text</parameter>
<parameter name="new_str">replacement text</parameter>
</invoke>
{{end}}
kdeps parses that block at runtime, interprets it, and hands you the real output (file
contents, stdout+exit code, matching lines, an edit snippet). Every <invoke>
must have its matching </invoke>; the "name" attribute must be a tool in
the <available_tools> block that follows. That block is the list of tools
you can call. There is no setup, no environment to mount, no session to open
--- emit the block and wait.
{{else}}Calling a kdeps tool is easy: pick the tool, pass its arguments, wait for the
result --- one step, exactly like any function call you already know. Use your
native tool-call channel. Do not write an <invoke> block.
{{end}}
</use-kdeps-tools>
Versions
| Version | Published | Status | Source |
|---|---|---|---|
| 1.3.0 | 11/25/2026 | active | GitHub v1.3.0 |
| 1.1.0 | 11/21/2026 | active | GitHub v1.1.0 |
| 1.0.0 | 11/21/2026 | active | GitHub v1.0.0 |
| 1.2.0 | 11/21/2026 | active | GitHub v1.2.0 |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.3.0
- Published
- 11/21/2026