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

kdeps-tools-memory_query

v1.2.0

Run a relational query over agent state. Relations: `memory` (persistent memory entries: key, value, namespace, type, references, createdAt, updatedAt), `tool_calls` (recent tool call history: name, args (the arguments as an object, e.g. .args.command), args_json (the raw text), result, timestamp), `tasks` (active goal's task list: id, desc, status, rounds, note). Query language is expr-lang: filter(relation, predicate) selects rows (e.g. filter(memory, .type == "error")), map(relation, expr) projects fields, join(left, right, leftField, rightField) equi-joins two relations into rows with left_/right_ prefixed fields, union(a, b) combines two relations with set semantics. String operators are infix: .value contains "x", .value startsWith "x", .value endsWith "x", .value matches "regex"; lower()/upper() are functions (lower(.value)); membership is .key in ["a", "b"]. A list field such as references is tested with in: "fact:x" in .references (contains works on text only).

set tools / shelf memory

LLM context: ~320 tokens when loaded (prompt or tool definition)

Where it runs

Part of the tools set, used in workflow and agent mode. What the model is told about each built-in tool: its description, usage notes and parameters. kdeps runs the tool itself.

  1. the agent loop builds the request
  2. the tool definitions are sent to the modeltools/memory_query
  3. the model calls a tool
  4. kdeps runs it
  5. the result goes back to the model

Loaded by: kdeps (agent loop), kdeps new, kdeps run, kdeps install, kdeps list, kdeps uninstall, kdeps update, kdeps upgrade

In the code: kdeps (agent loop)executor.(*Engine).Executeparallel.Runjudge.Panelagent.runJudgePanelagent.definedAs

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 tools/memory_query

Pin a version with kdeps install tools/memory_query@<version>.

Contents

Run a relational query over agent state. Relations: `memory` (persistent memory entries: key, value, namespace, type, references, createdAt, updatedAt), `tool_calls` (recent tool call history: name, args (the arguments as an object, e.g. .args.command), args_json (the raw text), result, timestamp), `tasks` (active goal's task list: id, desc, status, rounds, note). Query language is expr-lang: filter(relation, predicate) selects rows (e.g. filter(memory, .type == "error")), map(relation, expr) projects fields, join(left, right, leftField, rightField) equi-joins two relations into rows with left_/right_ prefixed fields, union(a, b) combines two relations with set semantics. String operators are infix: .value contains "x", .value startsWith "x", .value endsWith "x", .value matches "regex"; lower()/upper() are functions (lower(.value)); membership is .key in ["a", "b"]. A list field such as references is tested with in: "fact:x" in .references (contains works on text only).

ParameterTypeDescription
limitintegerMax rows returned when the result is a relation (capped by the memory-query-rows-max event, 500)default: 50
query *stringexpr-lang expression over the memory/tool_calls/tasks relations

Versions

VersionPublishedStatusSource
1.0.111/21/2026activeGitHub v1.0.1
1.1.011/21/2026activeGitHub v1.1.0
1.0.011/21/2026activeGitHub v1.0.0
1.2.011/21/2026activeGitHub v1.2.0

Details

Author
kdeps
License
Apache-2.0
Latest Version
1.2.0
Published
11/21/2026

Tags

kdepstool