Structs§
Functions§
- detect_
project_ root - Finds the outermost project root by walking up from
file_path. For monorepos with nested.gitdirs (e.g.mono/backend/.git+mono/frontend/.git), returns the outermost ancestor containing.git, a workspace marker, or a known monorepo config file — so the whole monorepo is treated as one project. - detect_
project_ root_ or_ cwd - encode_
instructions - Encode an instruction suffix using short codes with budget hints. Response budget is dynamic based on task complexity to shape LLM output length.
- encode_
instructions_ with_ snr - Encode instructions with SNR metric for context quality awareness.
- format_
savings - instruction_
decoder_ block - Build the decoder block that explains all instruction codes (sent once per session).
- shorten_
path