anthropics / anthropics/claude-code
[Bug] Auto-compact triggers at 12% context threshold causing infinite loop and rate limit exhaustion
- Dominant language
- Python
- Stars
- 145k
- Forks
- 23.1k
- PR merge metrics
- PR metrics pending
Description
**Bug Description**
Feedback sent (receipt a5a004cf-b8ad-4e18-ab84-5d75688e5783) Sonnet 5 auto-compact fires @ 12% of session context creating a auto compact loop after 1 prompt which has maxxed my session & weekly limit.
**Environment Info**
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.272
- Feedback ID: e95540a5-c14e-4476-920c-c8e89e42f00b
**Errors**
```json
[]
```
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test is identified. Start by reproducing the report with Sonnet 5 on darwin in iTerm.app, using the supplied feedback and receipt IDs to trace the auto-compact behavior. Done means auto-compact does not loop after one prompt or exhaust the session and weekly limits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100