Skip to main content

Module context

Module context 

Source
Expand description

Project context (AGENTS.md) generation and management.

Responsibilities:

  • Generate initial AGENTS.md from project type detection.
  • Update AGENTS.md with new learnings.
  • Validate AGENTS.md against project structure.

Not handled here:

  • CLI argument parsing (see cli::context).
  • Interactive prompts (see wizard module).

Invariants/assumptions:

  • Templates are embedded at compile time.
  • Project type detection uses simple file-based heuristics.
  • AGENTS.md updates preserve manual edits (section-based merging).

Modules§

merge
Markdown section merging utilities for AGENTS.md updates.
wizard
Interactive AGENTS.md wizard facade.

Structs§

ContextInitOptions
Options for context init command
ContextUpdateOptions
Options for context update command
ContextValidateOptions
Options for context validate command
InitReport
Report from init command
UpdateReport
Report from update command
ValidateReport
Report from validate command

Enums§

DetectedProjectType
Detected project type
FileInitStatus
Status of file initialization

Functions§

run_context_init
run_context_update
run_context_validate