compact

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package compact implements the /compact slash command logic.

When the user runs /compact, the current session's model is asked to summarise the work in progress using SummaryPrompt. The summary is then carried forward into a fresh session via BuildCarryOver, giving the new context window enough information to pick up where the old one left off.

Index

Constants

This section is empty.

Variables

View Source
var SummaryPrompt string

Functions

func BuildCarryOver

func BuildCarryOver(summary string) string

BuildCarryOver formats the summary produced by the old session into the opening user message for the new session.

Types

This section is empty.

Source Files

  • compact.go

Jump to

Keyboard shortcuts

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