23 lines
1.3 KiB
Python
23 lines
1.3 KiB
Python
"""The changes to how a reviewer starts that review-replay tests against the reviewer unchanged: each a flag, the settings it hands claude, and the words the report uses for the replays with and without it."""
|
|
import dataclasses
|
|
|
|
from claude_code.output_limits import BASH_CEILING, BASH_CEILING_CHARACTERS, READ_LIMIT, READ_LIMIT_TOKENS
|
|
|
|
|
|
@dataclasses.dataclass(frozen=True)
|
|
class Change:
|
|
flag: str
|
|
# What the report calls a replay without the change, and one with it, as in "three with CLAUDE.md, one without CLAUDE.md".
|
|
unchanged: str
|
|
changed: str
|
|
# The environment the replay with the change starts claude under, through its settings.
|
|
env: dict[str, str]
|
|
# Where the change turns the instruction files off, the prompt holds what the SubagentStart hook and the header's last line would hand the reviewer.
|
|
without_instruction_files: bool = False
|
|
|
|
|
|
OMIT = Change("--omit-claude-md", "with CLAUDE.md", "without CLAUDE.md", {"CLAUDE_CODE_DISABLE_CLAUDE_MDS": "1"}, without_instruction_files=True)
|
|
BASH = Change("--bash-ceiling", "as archived", f"under a Bash ceiling of {BASH_CEILING_CHARACTERS:,} characters", {BASH_CEILING: str(BASH_CEILING_CHARACTERS)})
|
|
READ = Change("--read-limit", "as archived", f"under a Read limit of {READ_LIMIT_TOKENS:,} tokens", {READ_LIMIT: str(READ_LIMIT_TOKENS)})
|
|
CHANGES = (OMIT, BASH, READ)
|