Skip to main content

Module context_files

Module context_files 

Source
Expand description

AGENTS.md / CLAUDE.md context file discovery (task 3.7).

Discovers context files by walking from the current working directory up to the git root, then optionally checking a global config directory. Deterministic precedence: nearest directory first, then ancestors, then global. Per-directory order: AGENTS.md before CLAUDE.md. OPI.md is NOT loaded (ADR-020).

Structs§

ContextFiles
Result of context file discovery.

Functions§

discover_context_files
Discover and concatenate AGENTS.md and CLAUDE.md context files.