anthropics / anthropics/claude-agent-sdk-python

non-interactive `/compact`

オープン
#23 コメント 16 件 リアクション 18 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
8.1k
フォーク
1.3k
平均マージ
2日 31分
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。