{"name":"BASH_MAX_OUTPUT_LENGTH","slug":"bash-max-output-length","family":"env","title":"Environment variables","noun":"environment variable","description":"Maximum number of characters of bash output that Claude Code reads back into a command's result (default: 30000; maximum: 150000). If you set the [`bashOutputMaxChars`](\/docs\/en\/settings-reference#bashoutputmaxchars) setting, Claude Code ignores this variable. See [Output limits](\/docs\/en\/tools-reference#output-limits)","description_source":"docs","described_by":{"doc":"claude-code\/env-vars","title":"Environment variables"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.261","anchor":"new-settings-for-inline-bashtask-output-truncation-limits","heading":"New settings for inline Bash\/Task output truncation limits","line":"New settings let you control how much Bash and Task output Claude sees before it gets truncated to a file.","released_at":"2026-09-04 17:49:34","reason":"found in this entry's text"},{"version":"1.0.85","anchor":"environment-variable-validation-framework","heading":"Environment Variable Validation Framework","line":null,"released_at":"2025-08-19 21:11:17","reason":"found in this entry's text"}],"entries_total":2,"docs":[{"source":"claude-code","path":"env-vars","title":"Environment variables","documented":true},{"source":"claude-code","path":"settings-reference","title":"All settings","documented":false},{"source":"claude-code","path":"tools-reference","title":"Tools reference","documented":false}],"docs_total":3,"gates":[],"related":[{"name":"BASH_ENV","slug":"bash-env","description":"Inline admin policy scripts run with a stripped environment and a PowerShell resolved from fixed paths only."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/bash-max-output-length","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}