anthropics / anthropics/claude-agent-sdk-python
non-interactive `/compact`
- 主要語言
- Python
- 星號
- 8.1k
- 分支
- 1.3k
- 平均合併
- 2 天 31 分鐘
- 30 天內合併 PR
- 1
描述
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.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。