Nox-Lumen MfgNox-Lumen Mfg

memory-sdk

Capabilities

Provides a full long-term memory (LTM) management API:

ToolactionPurpose
record_knowledgewriteWrite / update memory
record_knowledgedeleteDelete memory
record_knowledgelistList all memories
unified_searchsearchSemantic memory retrieval

Five memory types

TypePurposeExample
factObjective facts“Project uses Java 17 + PostgreSQL 15”
preferenceUser preferences“Prefer concise Chinese output, no emoji”
programOperational workflows“Deploy: lint → test → build → push”
error_patternBug patterns / false positives“Heartbeat timeout must trigger disconnect”
chunk_nodeKB cognitive groupingRecorded after retrieval (usually not manual)

Default behavior

If the user did not configure explicitly, the Agent automatically at appropriate times:

  • Writes stated preferences to preference
  • Writes project constraints and facts to fact
  • Writes reusable workflows to program
  • Writes pitfalls / false positives to error_pattern

How to trigger

/memory-sdk remember: this project uses Rust 1.75 and does not accept async-std

Natural language examples:

  • “Remember I prefer replies in Chinese”
  • “From now on remember this project’s coding standard is Google Java Style”
  • “Forget the convention you just saved for me”
  • “List everything you remember about me”

Hook policy templates

memory-sdk ships built-in memory policy Hooks:

HookWhen it firesDefault behavior
on_user_preferenceUser states a preferenceAuto-write preference
on_error_learnAfter Agent execution errorsAnalyze root cause → error_pattern
on_task_completeTask completesSummarize flow → program

Enable or disable these in Agent configuration.

Extension: structured data → LTM processing pattern

The sections above cover single-turn memory flow (memory born in conversation). The platform also has another path:

Periodically turn structured KB data into LTM insights

Rendering diagram…

The first implementation of this pattern is bug-import — it aggregates standalone Bug records along module / cross-module / file / root cause dimensions and periodically emits bug_pattern-style fact entries for L2 code review.

Why call this out separately

Single-turn memories are fragmented (one preference, one fact). They answer “how should the Agent interact with me?”

Structured-data processing yields aggregated memories — they answer “what patterns has this project / organization accumulated?” That is organizational memory, not personal preference.

Extensible processor types

Following the same “KB → cron → LTM fact” pattern, you could add:

ProcessorInputLTM fact outputUse case
bug-import (implemented)Historical bugsbug_patternL2 review hits
Requirement-change processor (hypothetical)Change historyHot change areas / churn directionsRequirement review alerts
Review-comment processor (hypothetical)Past review threadsCommon critique themesDeveloper self-check lists
Incident processor (hypothetical)PostmortemsRecurring incident types / preventionsSRE change review

Only bug-import exists today. Processors are skills — to add one, design it like bug-import via skill-architect.

Underlying architecture

See Core concepts · Memory — processing path.

On this page