load

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: 2 Imported by: 0

Documentation

Overview

Package load provides the command for outputting assembled context.

The load command assembles context files from .context/ and outputs them in the recommended read order, suitable for providing to an AI assistant. This is the primary mechanism for giving AI tools access to project context.

Assembly Order

Context files are assembled in priority order:

  1. CONSTITUTION.md - Hard rules and constraints
  2. TASKS.md - Current work items
  3. CONVENTIONS.md - Code patterns and standards
  4. ARCHITECTURE.md - System design
  5. DECISIONS.md - Architectural decisions with rationale
  6. LEARNINGS.md - Gotchas, tips, lessons learned
  7. GLOSSARY.md - Domain terminology
  8. AGENT_PLAYBOOK.md - AI-specific instructions

Token Budget

The --budget flag limits output to approximately the specified token count. This is useful for AI assistants with context window limitations. Files are prioritized by importance, with lower-priority files truncated or omitted when budget constraints are reached.

Raw Output

The --raw flag outputs file contents directly without assembly headers or priority-based ordering. This is useful for debugging or when exact file contents are needed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the "ctx load" command for outputting assembled context.

Types

This section is empty.

Directories

Path Synopsis
cmd
root
Package root implements the ctx load command.
Package root implements the ctx load command.
Package core provides shared helpers for the load command: file sorting, title conversion, and output formatting.
Package core provides shared helpers for the load command: file sorting, title conversion, and output formatting.

Jump to

Keyboard shortcuts

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