Have a cronjob every morning 3 hours before you usually start work pinging claude code to have a quicker session reset.
热度趋势
趋势数据积累中
百分比基于当前可用热度信号,而非评论数或独立用户人数。
一位用户分享了他们每天使用cronjob来重置Claude会话计时器的方法,以实现更连续的工作。通过在开始工作前三小时运行“claude -p 'ping'”,他们的会话会在一个方便的时间重置,从而有效地获得连续两次会话的令牌。这种方法有助于避免在不方便的时间达到会话限制,尽管Anthropic的服务条款通常禁止通过自动化方式访问服务,除非通过API密钥。
I have a cronjob running every morning that's just "claude -p 'ping' ". I usually start working at 9, and this cronjob runs at 7, so that means my session timer resets every day at 12. If I don't do this, usually my session limit is full at some awkward time where it resets when I stopped working already, this way I get a lot more work done in a single day.
The idea is to get 2 sessions worth of tokens back2back. Ideally the timer resets when your usage is at 99%. So if you hit the session limit usually around 3 hours since your first prompt, set the cronjob 2 hours before you start.
A cronjob is a schedulable task on Linux, I guess Windows and OSX have something similar although I have no idea what they call it.
EDIT: Added some clarification to explain it better.
EDIT2: So this actually might break the TOS unless you do it manually every morning;
From the TOS:
Except when you are accessing our Services via an Anthropic API Key or where we otherwise explicitly permit it, to access the Services through automated or non-human means, whether through a bot, script, or otherwise