claude.nagdy.me

Goal-directed session with turn cap

Use /goal to set a completion condition and CLAUDE_CODE_MAX_TURNS to cap the run.

bash
# Cap turns for safety in automated/goal-directed sessions
export CLAUDE_CODE_MAX_TURNS=50
claude

# Inside the session, set your goal:
#   /goal all tests pass and coverage exceeds 80%
# /goal is a slash command — run it at the Claude Code prompt, not in the shell.
View Full Module