Work in progress: Bash output ceiling and refusing Reads of session transcripts

This commit is contained in:
2026-11-18 08:28:38 +01:00
parent 641645c081
commit a7b2fd0ae1
16 changed files with 274 additions and 114 deletions
+10
View File
@@ -0,0 +1,10 @@
"""The environment variables that cut what one tool result adds to a claude's context, and the values loop-claude hands the worker's claude and review-replay tests: docs/decisions.md → `loop-claude: the worker's claude saves a long Bash result to a file`.
A subagent inherits both variables, so they reach every reviewer the worker launches."""
# Claude Code saves a Bash result longer than this many characters to a file, and hands the model the file's path and the first 2,000 characters. The file sits under ~/.claude/projects/<project>/<session>/tool-results/.
BASH_CEILING = "BASH_MAX_OUTPUT_LENGTH"
BASH_CEILING_CHARACTERS = 6_000
# A Read of more than this many tokens fails and asks for an offset and a limit; Claude Code's default is 25,000.
READ_LIMIT = "CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS"
READ_LIMIT_TOKENS = 5_000