Expand description
Application-owned context discovery and instruction adapters.
Pure context policy lives in thndrs_agent::context; this module performs
filesystem discovery and supplies the resulting application data.
Modules§
- export
- Versioned, bounded context inspection and export projections.
- instructions
- Scoped project instructions: nested
AGENTS.mddiscovery, selection, and turn-boundary reload diagnostics.
Structs§
- Context
Source - A single loaded context source.
- Instruction
Diagnostic - A diagnostic about a discovered instruction file.
- Instruction
Inventory - Result of scoped instruction discovery.
- Instruction
Selection - Result of pure instruction selection for a turn.
- Instruction
Snapshot - A turn-boundary snapshot of instruction file hashes for change detection.
Enums§
- Instruction
Severity - Severity of an
InstructionDiagnostic.
Constants§
- AGENTS_
MD_ SIZE_ CAP - Maximum bytes read from an AGENTS.md file.
Functions§
- discover_
instructions - Discover root and nested
AGENTS.mdfiles belowworkspace_root. - discover_
workspace_ root - Discover the workspace root from
cwd. Prefers the git top-level directory when available; falls back to the canonicalizedcwd. - load_
agents_ md - Load root
AGENTS.mdfrom the workspace root, if present. - scope_
depth - select_
instructions - Select applicable instruction sources for a turn.
- trim_
to_ char_ boundary - Trim a string to at most
max_bytesbytes, ensuring we end on a UTF-8 char boundary.