context-window.md +2 −2
180 color: '#B8860B',180 color: '#B8860B',
181 vis: 'hidden',181 vis: 'hidden',
182 desc: 'A PostToolUse hook in `settings.json` runs prettier after every file edit and reports back via `hookSpecificOutput.additionalContext`. That field enters Claude\'s context. Plain stdout on exit 0 does not. It is written to the debug log only.',182 desc: 'A PostToolUse hook in `settings.json` runs prettier after every file edit and reports back via `hookSpecificOutput.additionalContext`. That field enters Claude\'s context. Plain stdout on exit 0 does not. It is written to the debug log only.',
183183 tip: 'Output JSON with `additionalContext` to send info to Claude. For PostToolUse hooks, exit code 2 surfaces stderr as an error but cannot block since the tool already ran. Keep output concise since it enters context without truncation.', tip: 'Output JSON with `additionalContext` to send info to Claude. For PostToolUse hooks, exit code 2 surfaces stderr as an error but cannot block since the tool already ran. Output over 10,000 characters is saved to a file; Claude gets a preview and the file path instead.',
184 link: '/en/hooks-guide'184 link: '/en/hooks-guide'
185 }, {185 }, {
186 t: 0.62,186 t: 0.62,
333 color: '#558A42',333 color: '#558A42',
334 vis: 'full',334 vis: 'full',
335 desc: "You ran a shell command with the ! prefix to see which files Claude modified. The command and its output both enter context as part of your message. Useful for grounding Claude in command output without Claude running it.",335 desc: "You ran a shell command with the ! prefix to see which files Claude modified. The command and its output both enter context as part of your message. Useful for grounding Claude in command output without Claude running it.",
336336 link: '/en/interactive-mode#bash-mode-with-prefix' link: '/en/interactive-mode#shell-mode-with-prefix'
337 }, {337 }, {
338 t: 0.89,338 t: 0.89,
339 kind: 'user',339 kind: 'user',