Repository navigation
claude.aiのコネクタの読み込みを監査に加える - #1
Conversation
コネクタのツール名一覧は、使わないセッションでも毎回読み込まれ、実測で入力の約3割を占めた例がある。切っていなければ情報として示し、切り方と注意点を添える。出力の「要確認 N件」の和欧間スペースも直す
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (3)
🧰 Additional context used🪛 ast-grep (0.45.3)tests/test_env_kit.py[info] 74-74: use jsonify instead of json.dumps for JSON output (use-jsonify) [info] 76-76: use jsonify instead of json.dumps for JSON output (use-jsonify) 🪛 Ruff (0.16.6)plugins/env-kit/skills/env-audit/claude-env-audit.py[warning] 139-139: String contains ambiguous (RUF001) [warning] 139-139: String contains ambiguous (RUF001) 📝 WalkthroughWalkthroughClaude.aiコネクタの有効状態を環境監査に追加しました。ユーザー設定またはプロジェクト設定に基づいて結果を報告し、該当するテストを追加しました。通常出力の要確認件数の表記とプラグインのバージョンも変更しました。 Changes環境監査の更新
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Merge Risk: ⚪ Minimal · up to 監査結果への実測例の重複掲載は必須ではなく、例はガイドに記載されています。ユーザー設定の優先順位も正しく反映されており、確認された変更起因の問題はありません。 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. うさぎは設定を見に行った Comment |
There was a problem hiding this comment.
This PR successfully adds auditing for claude.ai connector token usage and provides clear guidance for users to optimize their token consumption. The implementation follows existing code patterns, includes comprehensive test coverage, and addresses a real performance concern where connectors can consume up to 30% of input tokens even when unused.
The changes are well-structured with proper version bumping and consistent error handling. No blocking issues identified.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
何を良くするか
claude.aiのコネクタのツール名一覧は、コネクタを使わないセッションでも毎回読み込まれます。実測で入力トークンの約3割を占めた例があったので、切っていない場合に情報として示し、切り方と注意点を添えます。
確かめたこと
python3 -m unittest discover -s testsが通るplugin.jsonのversionを0.1.1に上げた追加したテストは、変更を外すと落ちることを確かめています。
監査の結果
変わった行は次の2つです。
変更前: 該当行なし
変更後:
| 情報 | 読み込み量 | claude.aiのコネクタ | claude.aiに接続したコネクタのツール名一覧が毎セッション読み込まれる。…あわせて、最終行の表記を「要確認 0件」から「要確認は0件」に直しています。
Summary by CodeRabbit