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. |
Click to show internal directories.
Click to hide internal directories.