A two-stage method
Meta FAIR's Self-Improving Memory approach teaches an agent model to manage file-based memory. Each subtask starts with an empty context; only a persistent memory directory, edited with file tools, carries over between tasks. Two prompts control that memory: OFFLOAD updates notes after a subtask, and LOAD retrieves them before the next one.
Prompts are discovered first
In stage one, a meta agent rewrites the LOAD and OFFLOAD prompts. The search starts from four human-written seeds (Summary, Retrieval, Skill and Hypothesis). Each candidate runs the full task stream five times, and the top four by mean score become parents for revision. Selection uses a holdout set the meta agent cannot see.
Then the skills move into the weights
Stage two follows a Discover-Demonstrate-Distill pipeline. The task agent runs subtasks with the optimized prompts and every model call is logged. The optimized prompts are then swapped back to generic ones in that history, which works because the behavior stays valid under generic instructions. The model is fine-tuned with a rank-64 LoRA adapter on attention projection layers. Because the meta agent and task agent are the same Kimi-K2.6 model, it is trained on memory skills it discovered itself.
The results
Tests covered three Continual Learning Bench tasks: Database (SQL), Codebase (repo fixes) and Spectrum (radio scans). The optimized harness beat the best human-written seed on all three. Codebase gained the most, reaching 64.3 versus 43.7. Spectrum was the weakest, where distillation added only 2.9 points. The search was also noisy: 37 of 44 generated revisions failed to beat the previous best.



