I would like to specify a looping improvement process and have Claude follow it endlessly until a terminal condition is met.

I have tried doing this a few ways, the end result is that with compaction, Claude eventually ends his turn. It feels like Claude forgets the strict, looping, prime directive and falls back to pursuing the goal of improvement.

The looping improvement process is documented in a file such that no context other than ‘do what it says’ is necessary to execute the process.

One idea I had was hooks to actually block the turn ending unless the exit criteria was met. What is the right approach?

Additional context

My use case is a running a heavy script that can take 2-4 hours to complete (running in the GPU utilizing all compute).

Claude’s job is to periodica…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help