anthropics / anthropics/claude-agent-sdk-python

non-interactive `/compact`

Abierto
#23 16 comentarios 18 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Python
Estrellas
8.1k
Forks
1.3k
Merge medio
2 d 31 min
PR fusionados (30 d)
1

Descripción

I use Claude code via Telegram app to manage my pet projects on a remote server. As the context of each project accumulates, I sometimes get the error message "prompt is too long". When this happens, I need to open an interactive SSH session, navigate to the appropriate directory, run the `claude` command with the `-c` flag, and then type the `/compact` command interactively. After that, I can continue working with the project via Telegram.
I'm wondering if there's a way to run the context compression tool in non-interactive mode. I've tried using the `-c -p /compact` flags, but it doesn't seem to work. Maybe there's something else I'm missing? Any suggestions would be greatly appreciated.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.