context

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package context loads and manages .context/ files with token counting and metadata.

Directories

Path Synopsis
Package load reads the .context/ directory and assembles its files into an entity.Context with metadata, token estimates, and summaries.
Package load reads the .context/ directory and assembles its files into an entity.Context with metadata, token estimates, and summaries.
Package resolve provides helpers for locating the context directory and formatting its path for user-facing output.
Package resolve provides helpers for locating the context directory and formatting its path for user-facing output.
Package sanitize provides content-level checks for context files, such as detecting effectively empty files that contain only headers or whitespace.
Package sanitize provides content-level checks for context files, such as detecting effectively empty files that contain only headers or whitespace.
Package summary generates brief human-readable summaries from context file content, dispatching to file-specific summarizers for constitution, tasks, decisions, and glossary files.
Package summary generates brief human-readable summaries from context file content, dispatching to file-specific summarizers for constitution, tasks, decisions, and glossary files.
Package token estimates LLM token counts from byte content using a characters-per-token heuristic.
Package token estimates LLM token counts from byte content using a characters-per-token heuristic.
Package verify checks whether the .context/ directory exists and contains the required set of context files.
Package verify checks whether the .context/ directory exists and contains the required set of context files.

Jump to

Keyboard shortcuts

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