Help us shape the future of Go! Take the 2026 Go Developer Survey

memtree

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package memtree keeps a session's whole history reachable at a constant size: a binary tree of one-line summaries over every message, a view of it that fades with age, and a zoom tool that opens any line back down to its message. In compaction mode the view replaces Orb's summary when the context fills; in fresh mode every prompt starts a new context from it. The design is OptChat's: https://gist.github.com/VictorTaelin/91837951a5ce5b38f341ec1ba1df6449

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extension

func Extension(dir string, settings map[string]any) extensions.Factory

Extension builds memtree. dir holds one node file per persisted session; settings take "mode" ("compaction", the default, or "fresh") and "model" ("provider/id" of the compactor, the session's model when unset).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL