Answer architecture round 1: 2 🔴, 2 🟡 (0 misread); move transcript parsing into claude_code and keep repeat_read pure
This commit is contained in:
@@ -27,6 +27,7 @@ def shell_reads(command: str, cwd: str, home: str) -> Reads:
|
||||
return Reads(read, added)
|
||||
|
||||
|
||||
# rule_hook/repeat_read.py parses a shell read too, strictly: a measure of reading counts any file a reader names, while a rule that blocks must match only a read whose lines it knows exactly.
|
||||
def operands(words: list[str]) -> list[str]:
|
||||
program = posixpath.basename(words[0])
|
||||
if program not in READERS or (program == "sed" and any(word.startswith("-i") for word in words)):
|
||||
|
||||
Reference in New Issue
Block a user