Dev builds scope-locked local agent harness: GLM 5.3 Flash fixes a real bug PR-by-PR

HankYeomans · x · 2026-10-14

The author built a wrapper and a small state machine for a local agent harness around a "scope lockdown" idea: the harness/model is confined to specified paths, files, and scope. A scope is essentially a structured checklist—do only this, touch only these files, and log any breakout attempt. Scopes must be approved by an independent agent or a human; asking to "review the entire codebase" defeats the purpose since it grants everything.

The use case is PR-by-PR. 90% of the work ran on a local GLM 5.3 Flash EXL3 (Tensorfold quant), with 10% frontier usage. The demo end-to-end: hunting (3 slices, one real bug after debunking a NUL-byte false positive) → branch → prompt → agent's red test → one-line fix → independent checkpoint (fresh 22/22) → merged and verified on main. PR #6 fixed a SHA-256 hash-stage cap issue with all 5 checks green. The author admits the flow is still clunky and is iterating on consistency.

Original post →

More from coding & agent

coding & agent channel →