pack_context
Assemble a clean, token-bounded Markdown context pack from hybrid search hits for RAG prompts, grouping file chunks and trimming to a set token budget.
Instructions
Assemble a clean, token-bounded Markdown prompt context pack from search hits. Groups contiguous chunks by file, dedupes, and trims to strict token budgets (e.g. 4000 tokens).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | ||
| query | Yes | ||
| rerank | No | ||
| path_glob | No | ||
| max_tokens | No | ||
| include_line_numbers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||