kdeps-commands-kartographer
v2.0.0kdeps command: kartographer
set commands / shelf agent
PurposeShow a live map of the internal data-flow pipelines
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/kartographer
- 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/kartographer@<version>.
Contents
- order
- 330
/kartographerShow a live map of the internal data-flow pipelines- 1
Calls a kdeps API tool
session_opsoperation: pipelinesprints
**kdeps internal pipelines** ``` token ├─ GenerateContent → recordTokenUsage → TokenRecorder │ → GlobalPromptCacheStats.RecordCacheUsageFromTokens │ → syncTokenCounter → TokenCounter │ → compactTokenStatus └─ [session sent {{.sent}} | generated {{.generated}} | total {{.total}}] converge ├─ web_search / web_scraper → webToolCache.call() │ → calls++ (now {{.web.calls}}/{{.web.limit}}) │ → {{if .web.reached}}LIMIT REACHED → convergence error{{else}}execute, cache result{{end}} └─ system prompt <output> rule 24 (soft guidance) shell ├─ bash_exec → trackBashCall() │ → calls++ (now {{.bash.calls}}/{{.bash.limit}}) │ → {{if .bash.reached}}LIMIT REACHED → convergence error{{else}}execute, cache result{{end}} └─ bash-call-budget event={{.bash.limit}} file ├─ read_file / list_files → trackFileCall() │ → calls++ (now {{.file.calls}}/{{.file.limit}}) │ → {{if .file.reached}}LIMIT REACHED → convergence error{{else}}execute, cache result{{end}} └─ file-call-budget event={{.file.limit}} code ├─ search_local → trackCodeCall() │ → calls++ (now {{.code.calls}}/{{.code.limit}}) │ → {{if .code.reached}}LIMIT REACHED → convergence error{{else}}execute, cache result{{end}} └─ code-call-budget event={{.code.limit}} compact ├─ shouldAutoCompact() checks token threshold │ → CompactWithLLM() → buildSyntheticWorkflow │ → engine.Execute(synthetic) → LLM summary │ → formatLoopResult() extracts text │ → session.CompactWith(summary, toKeep) │ → Fallback: session.Compact() truncation └─ {{.turns}} turns (threshold: {{.threshold}}) memory ├─ memory_query when memory can help (not before every action) │ → RunStreaming → memoryStore.ExtractTurn() │ → CompactWithLLM → memoryStore.AutoCapture() │ → dispatchToTerminal → ExtractToolResult() └─ {{if lt .memory 0.0}}(no memory store){{else}}{{.memory}} entries saved this session{{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: kartographer
order: 330
usage:
- args: ""
help: Show a live map of the internal data-flow pipelines
run:
- tool: session_ops
args: {operation: pipelines} # the live numbers; the map itself is this text
print: |-
**kdeps internal pipelines**
```
token
├─ GenerateContent → recordTokenUsage → TokenRecorder
│ → GlobalPromptCacheStats.RecordCacheUsageFromTokens
│ → syncTokenCounter → TokenCounter
│ → compactTokenStatus
└─ [session sent {{.sent}} | generated {{.generated}} | total {{.total}}]
converge
├─ web_search / web_scraper → webToolCache.call()
│ → calls++ (now {{.web.calls}}/{{.web.limit}})
│ → {{if .web.reached}}LIMIT REACHED → convergence error{{else}}execute, cache result{{end}}
└─ system prompt <output> rule 24 (soft guidance)
shell
├─ bash_exec → trackBashCall()
│ → calls++ (now {{.bash.calls}}/{{.bash.limit}})
│ → {{if .bash.reached}}LIMIT REACHED → convergence error{{else}}execute, cache result{{end}}
└─ bash-call-budget event={{.bash.limit}}
file
├─ read_file / list_files → trackFileCall()
│ → calls++ (now {{.file.calls}}/{{.file.limit}})
│ → {{if .file.reached}}LIMIT REACHED → convergence error{{else}}execute, cache result{{end}}
└─ file-call-budget event={{.file.limit}}
code
├─ search_local → trackCodeCall()
│ → calls++ (now {{.code.calls}}/{{.code.limit}})
│ → {{if .code.reached}}LIMIT REACHED → convergence error{{else}}execute, cache result{{end}}
└─ code-call-budget event={{.code.limit}}
compact
├─ shouldAutoCompact() checks token threshold
│ → CompactWithLLM() → buildSyntheticWorkflow
│ → engine.Execute(synthetic) → LLM summary
│ → formatLoopResult() extracts text
│ → session.CompactWith(summary, toKeep)
│ → Fallback: session.Compact() truncation
└─ {{.turns}} turns (threshold: {{.threshold}})
memory
├─ memory_query when memory can help (not before every action)
│ → RunStreaming → memoryStore.ExtractTurn()
│ → CompactWithLLM → memoryStore.AutoCapture()
│ → dispatchToTerminal → ExtractToolResult()
└─ {{if lt .memory 0.0}}(no memory store){{else}}{{.memory}} entries saved this session{{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