Guides Extending the Cline loop with plugins and hooks Learn how to extend the Cline agent loop with plugins and hooks to add custom behavior, lifecycle logging, and enforceable guardrails without rebuilding the harness.