log_sanitize
Sanitizes build, test, and terminal outputs by stripping ANSI noise, collapsing routine compiler messages, and isolating failure stack traces to prevent token flooding in AI context.
Instructions
Sanitize build, test, or terminal command outputs. Strips ANSI noise, collapses routine compiler stdout, and isolates actionable failure stack traces to protect context window from token flooding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exitCode | No | ||
| maxChars | No | ||
| rawOutput | Yes | ||
| projectRoot | No | ||
| taskContextId | No | ||
| includeStructured | No |