Skip to main content

Module procedural_memory

Module procedural_memory 

Source
Expand description

Procedural Memory — recurring workflow detection and template storage.

Detects repeated tool-call sequences in Episodic Memory and stores them as reusable Procedures with activation/termination conditions.

Structs§

ProceduralStore
Procedure
ProcedureStep

Functions§

auto_detect_from_episodes
Auto-learning hook (GL #478): run pattern detection over the full episode log and persist the result. Called after every recorded episode, so recurring workflows surface on the dashboard without anyone ever invoking ctx_session action=procedures value=detect by hand. Best-effort: returns the number of stored procedures, or None when there is nothing to learn from yet. Detection is cheap (n-grams over <= max_episodes sequences), so no throttling is needed.
format_suggestion