
Opis
Persistent AI agents need more than prompts and retries. They need explicit goals, inspectable state, trustworthy context, enforceable policies, independent verification, recovery paths, and clear human ownership. Loop Engineering with Claude Code shows how to design these controls as one coherent operating model.You will start by defining an eight-field loop contract covering trigger, goal, context, action, verifier, state, policy, and stop condition. Through the cumulative PatchPilot case study, you will turn that contract into goal-based, time-based, and proactive Claude Code loops; add selective context retrieval, durable memory, tools and MCP, reusable skills, hooks, checkpoints, evals, and budget-aware recovery; then introduce specialised agents and programmatic orchestration with the Claude Agent SDK.
The final chapters show how to run loops as operational services, recognise when branching and approvals require an explicit graph, and establish ownership, rollout controls, telemetry, and governance. By the end, you will be able to design agent loops that record inspectable evidence for continuation, stopping, retries, recovery and escalation to a human.