Aglet memory technique: rolling LLM-summarised history for long conversations.
Project description
aglet-builtin-memory-summary
Rolling LLM-summarised conversation memory — the right Memory Technique for long chats where a sliding window would drop important context.
Part of the Aglet pluggable Agent runtime.
What it does
When the per-conversation buffer grows past trigger_chars, the technique
asks an LLM to compress the oldest half of the history into a single short
paragraph and recalls that summary on every subsequent turn. Recent turns are
kept verbatim.
Best combined with memory.sliding_window under routing: parallel_merge:
memory:
techniques:
- { name: sliding_window, config: { max_messages: 10 } }
- name: summary
config:
model: cheap
trigger_chars: 6000
keep_recent: 6
routing: parallel_merge
Install
pip install --pre aglet-builtin-memory-summary
Config
| Key | Default | Description |
|---|---|---|
model |
default |
Model alias (from agent.yaml models:) used for compression |
trigger_chars |
6000 |
Compress when the conversation buffer exceeds this many chars |
keep_recent |
6 |
Number of most-recent messages kept verbatim |
summary_prefix |
"[Prior conversation summary]" |
Label prepended to recalled summaries |
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aglet_builtin_memory_summary-0.1.0a1.tar.gz.
File metadata
- Download URL: aglet_builtin_memory_summary-0.1.0a1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f9d6311e72903b2d3db05bcb9ae0c9a1be66d75ce6449d05a3e92966cefd487
|
|
| MD5 |
0c52b747596468caa82fdead47538d7a
|
|
| BLAKE2b-256 |
29c7b5a0d4e768d278890732e7464d263a3b7e84dcaeb2e33023a1392000e1dd
|
File details
Details for the file aglet_builtin_memory_summary-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: aglet_builtin_memory_summary-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e1da4288e4f2459bcde840a1d5f6df0eb8589abb935062a84581aa069f9f847
|
|
| MD5 |
310e6ce1cdd1a9f0a173b8d390d78a6b
|
|
| BLAKE2b-256 |
143be3a3270d2af93edfbb394321eba73e13b3d860d1e98f1e901ed6bfdc8ca7
|