bootstrap

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MaxBootstrapBytes = 10 * 1024 // 10KB

MaxBootstrapBytes is the safe size limit for bootstrap output. MCP clients (e.g. Claude Code) truncate hook output beyond ~12KB. Keeping under this limit ensures the full bootstrap reaches the agent.

Variables

This section is empty.

Functions

func CheckSize added in v0.2.0

func CheckSize(project string, memories []t.Memory) string

CheckSize returns a warning string if the given memories would produce a bootstrap output exceeding MaxBootstrapBytes. Returns empty string if OK.

func Format

func Format(project string, memories []t.Memory) string

Format renders a list of memories as Markdown for session initialization. When project is non-empty, each memory is prefixed with its scope label (e.g. [global], project/match) so the agent can distinguish provenance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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