I manually created a shell change reminder for the Codex pinned thread.


I use threads like Daily Rhythm every day:
/morning, /next, session-end, today-end all get filled in there.
As a result, the tokens keep accumulating and growing thicker.
Today, I let automation directly monitor tokens_used:
If it exceeds 50M
→ Automatically scan pinned threads
→ Daily Rhythm rolls over itself
→ Create a new clean pinned thread
→ Write back registry / state / backup / latest
Other threads only report candidates.
For example, strategy, portfolio, product, I still want to make the call myself.
This kind of small automation is pretty satisfying.
It’s not about making the agent smarter,
It’s about letting it know when to switch to a new shell and keep working.
View Original
post-image
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
Add a comment
Add a comment
No comments
  • Pinned