Beyond Single Loops: Open-Source Tool 'Peter' Restructures Coding Agents with Dual-Graph Architecture
BaXRS1988 · reddit · 2026-08-13
Addressing the debate of "loops vs. graphs" in AI agent design, a developer open-sourced Peter, an MIT-licensed Claude Code skill. The tool separates agent architecture into a Role graph (parent orchestrator, scoped builders, independent auditors) and a Work graph (persistent JSONL tasks tracking dependencies, status, and commits).
Loops still exist but are contained within graph nodes (implement → gates → audit → repair). The graph handles dependency ordering, context persistence, and explicit terminal states. In its launch run, the system passed 33/33 tests and 9/9 E2E checks with zero manual intervention.
The author also measured token efficiency: the ESON format reduced tokens by 28% compared to compact JSON with lossless round trips. The Honey benchmark reduced output by 29% and LOC by 43%. However, the author notes a lack of controlled runs means end-to-end dollar savings remain unproven.
More from coding & agent
- Connecting Metrics, Traces, and Logs for AI Coding Agents in Production — Al_Grigor · 2026-08-14
- ChatGPT Automates Luggage Reimbursement, Saving User $300 — intellectronica · 2026-08-14
- AI Beats StS2 A0 Difficulty But Fails to Match Top 5% Human Players — Jsevillamol · 2026-08-14
- Discussion: Catching AI Coding Agents' Confidently Wrong Codebase Assumptions — adarshvp2503 · 2026-08-14
- Demos are Magic, but 90% of AI Agent Code Handles Silent Model Failures — Ok-Salary-6309 · 2026-08-14
- Nitro: Open-source CLI agent turns natural language into shell commands with risk levels and permission prompts — chocolateUI · 2026-08-14