anthropics / anthropics/claude-code
[BUG] API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup).
- Lenguaje dominante
- Python
- Estrellas
- 145k
- Forks
- 23.1k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
### Preflight Checklist
- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
### What's Wrong?
When talking about organisation of automatic bug-fixing for users of my system, the security infrastructure of Claude Code is triggered by the words "eliminating the need for sudo", "immediate response without consulting the human", etc. This discussion is completely benign, it is about automatic bug fixes in my system, done by Claude, and not requiring me to jump out of bed in the middle of the night to approve a file modification. We were talking about running Claude Code in the _**correct account**_, but the net effect was Antropics security stepping in at each turn and making the dialog impossible. Please fix!
### What Should Happen?
This API message should not trigger in a legitimate conversation.
### Error Messages/Logs
```shell
API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Please double press esc to edit your last message or start a new session for Claude Code to assist with a different task.
Request ID: req_011CeenSqXFFHSfmomp9e86P
```
### Steps to Reproduce
NOt sure what triggers it
### Claude Model
Sonnet (default)
### Is this a regression?
I don't know
### Last Working Version
_No response_
### Claude Code Version
2.1.258.
### Platform
Anthropic API
### Operating System
macOS
### Terminal/Shell
Terminal.app (macOS)
### Additional Information
_No response_
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start from the reported Claude Code version 2.1.258 on macOS Terminal and the logged API policy error with request ID req_011CeenSqXFFHSfmomp9e86P. The issue does not give a reliable reproducer, so first confirm what prompt text triggers the block. Done means a benign automatic bug-fixing conversation no longer produces the Usage Policy API error, or the report is narrowed to a reproducible policy false positive.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- macos, python
- Área
- ai-infra-agents, api, cli, security
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Activo
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 28/100