docs
This commit is contained in:
12
aggregate.py
12
aggregate.py
@@ -1,4 +1,16 @@
|
||||
# aggregate.py
|
||||
"""
|
||||
Note(Gemini):
|
||||
This module orchestrates the construction of the final Markdown context string.
|
||||
Instead of sending every file to the AI raw (which blows up tokens), this uses a pipeline:
|
||||
1. Resolve paths (handles globs and absolute paths).
|
||||
2. Build file items (raw content).
|
||||
3. If 'summary_only' is true (which is the default behavior now), it pipes the files through
|
||||
summarize.py to generate a compacted view.
|
||||
|
||||
This is essential for keeping prompt tokens low while giving the AI enough structural info
|
||||
to use the MCP tools to fetch only what it needs.
|
||||
"""
|
||||
import tomllib
|
||||
import re
|
||||
import glob
|
||||
|
||||
Reference in New Issue
Block a user