Tool Output Budget

Truncate oversized tool output so it does not blow the agent's context window. USE WHEN: tool output > 3000 tokens, line > 500 chars, large log, JSON array, minified code, fetched HTML, verbose npm/cargo/test output, `cat` of a big file, "truncated" / "output cut off" / "use offset to read more" message. TRIGGER PHRASES: "输出太长", "context 满了", "log 太大", "截断", "truncate", "output cut off", "读不完", "太大了", "context 撑爆", "too long". SKIP WHEN: output is small (<100 lines), output is the user-facing final answer, output is structured and needs full parse (read once with a guard).

MiniMax AI Updated 12.9k repo stars

File contents

minimax-ai/minimax-code-plugins/tree/main/plugins/antianqi/codex-harness-patterns/skills/tool-output-budget commit 54af6d10c0

Frequently asked questions

npx skillmds@latest add minimax-ai/tool-output-budget