memory_zafra
Keep AI coding agent memory accurate: decay, prune, merge, summarize, rank, deduplicate, export, and re-embed project-scoped observations.
Instructions
[alias of cuba_zafra] Memory maintenance, scoped to the active project: decay, prune, merge, summarize, pagerank, find_duplicates, export, reembed, decay_episodes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| c | No | Power-law c parameter for decay_episodes (default 0.1) | |
| beta | No | Power-law β exponent for decay_episodes (default 0.5) | |
| action | Yes | decay: stratified exponential decay by type. prune: deletes low-importance observations, dry-run unless confirm=true. merge: deduplicates similar entities. summarize: replaces an entity's observations with compressed_summary. stats: counts. pagerank: personalized importance ranking. find_duplicates: lists near-duplicate pairs. export: writes a JSON dump. reembed: re-encodes with the current model. decay_episodes: power-law decay on brain_episodes. | |
| confirm | No | prune only: actually delete. Without it, prune returns a dry-run plan (would_prune, by_project) and deletes nothing — read the plan first, the default threshold reaches a large share of a mature corpus. | |
| threshold | No | Importance threshold for prune (default 0.1) | |
| batch_size | No | Max observations to re-encode in reembed (default 500) | |
| entity_name | No | Entity to summarize (for summarize action) | |
| allow_secret | No | Refused when the text looks like a live credential (token, password, URL with embedded creds). Set true only for a false match — the text is then stored verbatim, in clear, and reachable by search, export and every client. | |
| halflife_days | No | Global halflife override for decay (overrides per-type stratification) | |
| compressed_summary | No | Compressed text replacing observations (for summarize) | |
| similarity_threshold | No | Similarity threshold for merge (default 0.8) |