Loading...
Loading...
MixSeek-Plusのデバッグ機能を有効化し、ログ出力を制御します。「デバッグモードを有効化」「verbose」「ログを出力」「ログレベル」「デバッグ設定」といった依頼で使用してください。
npx skill4agent add drillan/mixseek-plus mixseek-debug| 環境変数 | 値 | 効果 | スコープ |
|---|---|---|---|
| | 統合デバッグモード | MCPツールログ + |
| | claudecode-model単体のログ | claudecode-modelパッケージのみ |
| | Logfireインストルメンテーション | pydantic-ai トレース(要Logfire設定) |
MIXSEEK_VERBOSE=1MIXSEEK_VERBOSE=1mixseek.member_agentsclaudecode_modelbash skills/mixseek-debug/scripts/check-debug-env.sh# 統合デバッグモード(推奨)
MIXSEEK_VERBOSE=1 uv run mskp team "タスク" --config configs/agents/team.toml
# claudecode-model単体のデバッグ
CLAUDECODE_MODEL_LOG_LEVEL=DEBUG uv run mskp team "タスク" --config configs/agents/team.toml
# 複数の環境変数を組み合わせ
MIXSEEK_VERBOSE=1 MIXSEEK_LOGFIRE=1 uv run mskp team "タスク" --config configs/agents/team.toml# 現在のセッションに設定
export MIXSEEK_VERBOSE=1
# 以降のコマンドはすべてverboseモードで実行される
uv run mskp team "タスク" --config configs/agents/team.toml
# 無効化
unset MIXSEEK_VERBOSEimport mixseek_plus
# 方法A: enable_verbose_mode()を使用(推奨)
mixseek_plus.enable_verbose_mode()
mixseek_plus.patch_core()
# これ以降のClaudeCodeエージェントはverboseログを出力
# コンソール出力例:
# [Tool Start] fetch_page: url=https://example.com
# [Tool Done] fetch_page: success in 1234ms
# ファイル出力先: $WORKSPACE/logs/member-agent-YYYY-MM-DD.log
# verboseモードを無効化
mixseek_plus.disable_verbose_mode()import os
import mixseek_plus
# 方法B: 環境変数を直接設定
os.environ["MIXSEEK_VERBOSE"] = "1"
mixseek_plus.patch_core()
# 方法C: 一時的に有効化(コンテキストマネージャは非提供、手動管理)
os.environ["MIXSEEK_VERBOSE"] = "1"
try:
# デバッグしたい処理
pass
finally:
del os.environ["MIXSEEK_VERBOSE"]MIXSEEK_VERBOSE=1[Tool Start] <tool_name>: <params>
[Tool Done] <tool_name>: <status> in <time>ms
[Tool Result Preview] <result_preview>[Tool Start] fetch_page: url=https://example.com/docs
[Tool Done] fetch_page: success in 2345ms
[Tool Result Preview] # Documentation\n\nWelcome to...$MIXSEEK_WORKSPACE/logs/member-agent-YYYY-MM-DD.logMIXSEEK_VERBOSE=1claudecode_modelclaudecode_model - DEBUG - <message>MIXSEEK_VERBOSE=1 uv run mskp team "Webページを取得して要約して" --config configs/agents/team.toml# 事前にLogfireの設定が必要
MIXSEEK_VERBOSE=1 MIXSEEK_LOGFIRE=1 uv run mskp team "タスク" --config configs/agents/team.tomlCLAUDECODE_MODEL_LOG_LEVEL=DEBUG uv run mskp team "タスク" --config configs/agents/team.toml# 確認
echo $MIXSEEK_VERBOSE
# 正しく設定
export MIXSEEK_VERBOSE=1patch_core()import mixseek_plus
mixseek_plus.enable_verbose_mode()
mixseek_plus.patch_core() # これを忘れないことimport logging
logging.basicConfig(level=logging.DEBUG)# 確認
echo $MIXSEEK_WORKSPACE
# 設定
export MIXSEEK_WORKSPACE=/path/to/workspace
# ログファイルの場所
ls -la $MIXSEEK_WORKSPACE/logs/MIXSEEK_VERBOSE=1# claudecode-model単体のみ
CLAUDECODE_MODEL_LOG_LEVEL=DEBUG uv run mskp team "タスク" --config configs/agents/team.tomlimport logging
# 特定のロガーのみDEBUGに
logging.getLogger("claudecode_model").setLevel(logging.DEBUG)
# 他はINFOに抑制
logging.getLogger("mixseek.member_agents").setLevel(logging.INFO)import logfire
logfire.configure()unset MIXSEEK_VERBOSE
unset CLAUDECODE_MODEL_LOG_LEVEL
unset MIXSEEK_LOGFIREimport mixseek_plus
mixseek_plus.disable_verbose_mode()