Skip to content

Ability to set token/time based timeouts #743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
maschwenk opened this issue Apr 8, 2025 · 1 comment
Open

Ability to set token/time based timeouts #743

maschwenk opened this issue Apr 8, 2025 · 1 comment
Assignees

Comments

@maschwenk
Copy link

When using Claude unattended in CI, it can be hard to setup guardrails that limit uncontrolled usage. We've been using naive timeouts as a means of achieving this, but this is not as fine-grained as it could be, because not all time spent in Claude Code costs us money. I'd rather have a 30 minute timeout, but set a $ cap for a given session.

@wanderingnature
Copy link

In unattended mode it must be scripted - so why not just have a project command /project:enforce-limits that runs /costs and analyzes the output? Long-term it should just be a built-in command like /cost or /compact - e.g. /enforce-limits which could be called and uses a config variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants