Glean 拾遗
Recent picks

3picks · chronological

11-09

Loops and Graphs: stop babysitting agents, approve only the last step

Two layers, split cleanly: a loop lives inside a node (produce, check, correct until green), a graph lives between nodes (what work exists, what runs in parallel, where results return). The argument is that a loop without a check that can actually fail is just a scheduler, and that most teams build the work first and bolt a model-based review onto the end. The graph layer gets four node types — splitter, worker, code node, gate — plus two return edges: a short correction edge that fixes the current run, and a long learning edge that feeds an accepted result back into the splitter's brief as a constraint. Gates should open by blast radius, not model confidence, with irreversible work in a lane that never opens. Written for engineers still approving every step by hand.

07-07

Human-in-the-Loop Workflow Design: From Approval Fatigue to Planned Review

Based on an analysis of 400,000 Claude Code sessions, this article reveals that 93% of permission prompts are approved, leading to 'consent fatigue' where humans are nominally in the loop but functionally tuned out. The author proposes restructuring the workflow into three layers: input (precise task description, constraints, examples), steering (plan-level review instead of per-action approval), and output review (defining quality criteria and self-assessing). A single evaluation checkpoint improved generation quality by 8–10% in controlled tests. The article provides actionable steps to move from per-action approval to strategic intervention, targeting AI engineers and agent developers.

x.com · 11 min · Agent Architecture · AI Engineering · Claude Code
06-24

15 AI Agent Design Patterns Every Engineer Must Know

This article outlines 15 AI agent design patterns—ranging from single agent, sequential/parallel multi-agent, review/refinement loops, coordinator, hierarchical decomposition, ReAct, human-in-the-loop, plan-and-execute, reflexion, custom logic, to event-driven agents. Each pattern comes with real-world examples, clear when-to-use and when-it-breaks heuristics, and a decision matrix based on the type of uncertainty. The author emphasizes starting with the simplest pattern, capping iterations and costs, logging full action traces, and keeping irreversible actions behind deterministic checks or human approval. A practical guide for engineers building production agentic systems.