Keep Claude working toward a goal - Claude Code Docs
On this page
- Compare ways to keep a session running
- Use /goal
- Set a goal
- Write an effective condition
- Check status
- Clear a goal
- Resume with an active goal
- Run non-interactively
- How evaluation works
- Requirements
- See also
Automation
Keep Claude working toward a goal
Copy page
Set a completion condition with /goal and Claude keeps working across turns until the condition is met.
Copy page
Was this page helpful?
YesNo
Run prompts on a scheduleProgrammatic usage
⌘I