Python CodeAct, Not Fragile JSON Tool Loops
Instead of burning 6+ LLM roundtrips on brittle JSON tool-call schemas, Noah expresses turns as
persistent, typed Python cells with AST syntax preflight, exact-preimage Match anchors,
and atomic multi-file apply_patch edits.
# 1 turn: parallel reads + anchored edit + immediate LSP & pytest check
src, spec = await asyncio.gather(
self.ws.read("src/auth/tokens.py"),
self.ws.read("tests/test_tokens.py"),
)
await self.ws.edit(
"src/auth/tokens.py",
Match("leeway=0", "leeway=CLOCK_SKEW_SECONDS"), # Exact preimage check
)
check = await self.ws.bash("pytest -q tests/test_tokens.py")