Autonomous Session Cycle

0•

Automates Claude Code sessions by re-triggering tasks in a loop until specific completion criteria are met or limits are reached.

This skill integrates with Claude Code's Stop hooks via the agentapi-proxy to enable autonomous iterative workflows. It allows developers to set up self-correcting loops where the agent continues working—fixing tests, refactoring code, or processing task lists—until a defined success condition is achieved or a maximum retry count is hit. It provides robust control through file-based triggers and automatic termination logic to prevent infinite loops, making it ideal for complex, multi-step engineering tasks.

主要功能

01Configurable maximum retry counts to ensure safety and prevent infinite loops
02Autonomous session re-triggering via integrated Stop hooks
03Automatic completion check instructions injected into every cycle message
04Non-blocking asynchronous execution with real-time logging and polling
050 GitHub stars
06Condition-based termination using the CYCLE_ENABLED control flag

使用场景

01Iteratively fixing code until all unit tests and linting checks pass successfully
02Continuous debugging and refactoring until specific architectural requirements are satisfied
03Processing long lists of project tasks or issues sequentially without manual intervention