digest-kimi
Ingest multiple files or directories to answer a focused question using extended context. Walks directories, filters files, and returns a concise answer.
Instructions
Ingest many files at once and answer a focused question. Uses Kimi's 262K context to swallow whole modules / docs that don't fit in the caller's context. Walks directories, filters by extension, truncates oversized files, caps total payload. Returns a concentrated brief.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| paths | Yes | Files or directories to ingest. Directories are walked. Globs are NOT expanded — pass concrete paths. | |
| shape | No | summary: 1-paragraph; detailed: structured deep-dive; qa: focused answer to the question. | qa |
| exclude | No | Substrings to exclude from paths (matched against relative path). Default: node_modules, .git, dist, build. | |
| timeout | No | ||
| question | Yes | Focused question to answer using the provided files (e.g., "explain auth flow", "find dead code"). | |
| recursive | No | Walk into subdirectories. Default: true. | |
| extensions | No | Filter by extensions when walking dirs (e.g., [".ts", ".tsx"]). Default: all text-like files. | |
| workingDir | No | ||
| maxTotalBytes | No | Stop adding files once the total payload exceeds this (Kimi context is ~262K tokens / ~1MB safe). Default: 8 MB. | |
| maxBytesPerFile | No | Truncate any single file above this size. Default: 200 KB. |