Open Source
Explore the latest AI open-source projects from GitHub and HuggingFace.
Explore the latest AI open-source projects from GitHub and HuggingFace.
Remory supplements an agent's compaction summary with learned soft memory drawn from its history. The memory is conditioned on the summary and appended after it, so a frozen model can continue long-horizon work across context compactions instead of relying on the text summary alone. The Harness.compact method is the drop-in replacement for an agent's own compaction step: it generates a summary, encodes residual memory and returns a checkpoint that is saved with the conversation and passed as previous at the next compaction, with memory stored in a local SQLite file. Serving goes through an SGLang endpoint with the Remory hook installed launched with remory.launch_server, which loads the base model and the memory network together and exposes generation and compaction through one /generate API; the README says to plan for at least two 80 GB GPUs for Qwen3.8-27B. Released memory checkpoints on Hugging Face cover Qwen3.8-27B (a 1.9B memory network) and GLM-5.3-Flash (1.24B), and the repository ships an r-codex launcher that opens the Codex UI with Remory compaction, including an online-training mode that learns from ongoing Qwen sessions while the model stays frozen. Training is two-stage: a reconstruction trainer, then a summary-conditioned residual-memory trainer, with four-GPU launch commands and synthetic JSONL examples; both stages freeze Qwen and train only the memory network. According to the README, residual memory improves BrowseComp and Terminal-Bench 2.1 scores for both models, reduces repeated tool outputs and tool errors, and on SummHay approaches the full-context joint score using 5.2% of the input positions. A companion arXiv paper (2610.11287) gives the full results and settings. MIT licensed.