Local-first agent harness: fail-closed permissions and human-in-the-loop on irreversible actions
omaths · reddit · 2026-12-03
The author shares safety design lessons from building a local-first agent harness:
- Fail-closed by default: every write path (file edits, shell commands, memory writes) goes through a guard that checks the current agent mode (chat, dev, review, observe); disallowed actions raise an exception before any bytes are written.
- Human-in-the-loop: the agent works autonomously but pauses for human validation on irreversible actions like git pushes or strategic decisions. In practice it refused to commit documentation until two pending strategic decisions were resolved.
- Provider & tool agnostic: a normalization layer translates tool calls between API schemas (OpenAI, Anthropic, etc.) so the agent doesn't care which model runs underneath.
More from coding & agent
- Voice AI latency: median 1400-1700ms, 5-6x slower than the 300ms users expect — JiaZhihao · 2026-12-03
- Open-source Glowline puts AI agent status in a glowing macOS screen-edge bar — Daniel_Farinax · 2026-12-03
- Sergey Karayev jokes about a future pipeline: Opus 5.5 codes, Astra 6.2 does QA — sergeykarayev · 2026-12-03
- AI QA step caught 4 real video bugs, then one false positive destroyed the trust — saitnrvn · 2026-12-03
- Designers need to learn evals now — your eval sets will define the product experience — round · 2026-12-03
- Use Copilot as a proofreader to find gaps in your instructions — RichardW_Dev · 2026-12-03