Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from typing import Optional
from zoneinfo import ZoneInfo

from claude_agent_sdk import ClaudeSDKClient
from claude_code_sdk import ClaudeSDKClient

# Fix Windows console encoding for Unicode characters (emoji, etc.)
# Without this, print() crashes when Claude outputs emoji like ✅
Expand Down Expand Up @@ -196,6 +196,14 @@ async def run_autonomous_agent(
async with client:
status, response = await run_agent_session(client, prompt, project_dir)

# Check for project completion - EXIT when all features pass
if "all features are passing" in response.lower() or "no more work to do" in response.lower():
print("\n" + "=" * 70)
print(" 🎉 PROJECT COMPLETE - ALL FEATURES PASSING!")
print("=" * 70)
print_progress_summary(project_dir)
break

# Handle status
if status == "continue":
delay_seconds = AUTO_CONTINUE_DELAY_SECONDS
Expand Down