Context Curator Agent¶
The context curator is the cold path. It keeps existing records compact, non-duplicative, and current.
The graph below is generated from the compiled LangGraph runtime.
---
config:
flowchart:
curve: linear
---
graph TD;
__start__([<p>__start__</p>]):::first
load_inventory(load_inventory)
build_clusters(build_clusters)
review_clusters(review_clusters)
review_health(review_health)
apply_actions(apply_actions)
__end__([<p>__end__</p>]):::last
__start__ --> load_inventory;
build_clusters --> review_clusters;
load_inventory --> build_clusters;
review_clusters --> review_health;
review_health --> apply_actions;
apply_actions --> __end__;
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc
Inputs¶
- active records for one project
- semantic-neighbor candidates
- curation budget from config
Flow¶
load_inventoryloads active records.build_clustersgroups likely-neighbor records.review_clustersdecides whether records duplicate, replace, or complement each other.review_healthreviews remaining records for routine episodes, stale context, or verbose recap style.apply_actionsapplies validated archive, revise, and supersede actions.
Output¶
The context store is updated in place. The curator prefers fewer stronger records over many overlapping or routine records.