Durmem
v0.807.3Shared memory and Kanban for coordinating coding agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whoami Which Durmem store this key opens
Show which Durmem store the presented key opens, with its name and domain when available. Use only to confirm which store a key belongs to; to learn what a store holds call loom_describe_store, and to read facts call loom_query or loom_read_probe_bundle. Takes no arguments.
loom_describe_store Describe the connected store
Describe the Durmem store this key opens: what it holds, plus the server version and storage capacity when available. Use to learn what the store contains before querying; to read specific facts use loom_query or loom_read_probe_bundle. Takes no arguments.
loom_query Run a read-only query rule
Run one named read-only Durmem rule and return its rows. Use for a structured read when you know the rule and its argument order, such as rule_name facts_by_groups on namespace default_root; for a natural-language question use loom_read_probe_bundle, and to learn what a store holds use loom_describe_store. Only allow-listed root-tier read rules run; write, admin, and user-tier rules are refused.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Rule tier: default_root, the store's read-only root rule set. default_user is not callable through this hosted endpoint. |
rule_name * | string | Allow-listed read rule to run: facts_by_groups, current_facts_by_groups, facts_in_scope, scope_chain, fact_history, text_search, field_search, list_rules, list_types, list_nodes, edge_targets, subtree… |
args | array | The rule's own arguments, in its documented order; the server adds the store and date. At most 16 items and 16 KB of JSON. |
include_history | boolean | False, the default, drops rows that are not current from multi-row results that mark current_status; true returns every row the rule produced. |
when | string | Point-in-time cutoff as ISO date YYYY-MM-DD; omit for today. |
loom_read_probe_bundle Retrieve facts for a question
Retrieve the most relevant Durmem facts, ranked and bounded, for a question or label query. Use for open natural-language questions and current-state answers; to run one specific read rule use loom_query, and to learn what a store holds use loom_describe_store. Requires at least one of query_text, label_queries, or label_exprs.
| Parameter | Type | Description |
|---|---|---|
include_stale | boolean | True to also return stale_context: retracted, disputed or superseded facts. False, the default, omits it and metadata.stale_omitted says whether any existed. |
label_exprs | array | Up to 32 [relation, target] pairs selecting facts by label, e.g. [["SubTypeOf()", "Directive"]]. |
label_queries | array | Up to 32 entries of [[relation, target], "inquiry text"] ranking each label pair by its own inquiry. |
max_facts | integer | Cap on facts in each section (current_facts, and stale_context when requested), integer 1-50; default 16. The best fact for each requested label pair is kept even beyond the cap, so a section can be l… |
mode | string | Label combination: "or", the default, matches any pair; "and" requires all. |
query_text | string | Natural-language question or topic to embed and match, at most 8000 bytes. |
since | string | Earliest event date to include, inclusive, as ISO YYYY-MM-DD; a fact with no event_time uses its known_from. Omit for no start. |
top_k_sources | integer | How many best-matching facts each requested label pair, and the question as a whole, contributes (up to this many current and this many stale), integer 1-20; default 5. |
until | string | Latest event date to include, inclusive, as ISO YYYY-MM-DD; a fact with no event_time uses its known_from. Omit for no end. |
when | string | Point-in-time cutoff as ISO date YYYY-MM-DD; omit for today. |
loom_save Save a fact
Save one fact to the store: a typed entity expression, its content, and optional [relation, target] edges. Use to write new memory; to read memory use loom_query or loom_read_probe_bundle. Returns a fact_id: the new fact's, or the existing live fact's when the same entity is saved again.
| Parameter | Type | Description |
|---|---|---|
content * | string | Fact body as plain text or a JSON string, non-empty and at most 24000 bytes. |
entity * | string | One Julia constructor expression giving the fact's type and identity, such as Directive("Never deploy on Friday"), at most 2000 bytes; reserved system types are refused. |
edges | array | At most 64 [relation, target] string pairs, each string 1-500 characters, e.g. [["Has()", "Importance(\"normal\")"]]. |
known_from | string | Belief date as ISO YYYY-MM-DD; omit to default to today. |
source_text | string | Optional verbatim source utterance the fact was derived from, at most 24000 bytes. |
loom_nearest_types Find the closest existing entity types
Find the existing Durmem entity types most similar to a text, so you reuse one instead of minting a near-duplicate. Use before declaring a new type; to read facts use loom_query. Returns type names with neighbor counts and maximum similarity.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text describing the fact or concept you are about to save, at most 8000 bytes. |
k | integer | How many nearest facts to count types over, integer 1-100; default 30. |