Diagnose slow chezmoi status performance and identify bottlenecks
Diagnoses slow chezmoi status performance by measuring template expansion, git operations, and network latency to identify bottlenecks.
/plugin marketplace add signalcompose/claude-tools/plugin install chezmoi@claude-toolsThis command helps diagnose why chezmoi status is slow by measuring timing for different operations.
以下のBashコマンドを即座に実行してください:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/diagnose-timeout.sh
The diagnostic script measures:
━━━ [chezmoi] Timeout Diagnosis ━━━
1. Template expansion: 3.2s
→ High (includes 1Password API, Age decryption)
2. Git status: 0.1s
→ Normal
3. chezmoi status (total): 3.8s
→ Timeout threshold: 5s
Bottleneck: Template expansion (1Password/Age)
Recommendations:
- Increase timeout: export CHEZMOI_STATUS_TIMEOUT=10
- Optimize 1Password API calls
- Consider caching template results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
| Cause | Impact | Solution |
|---|---|---|
| 1Password API | High | Cache results, reduce API calls |
| Age encryption | Medium-High | Optimize encrypted files |
| Git operations | Low-Medium | Check repository size |
| Network latency | Variable | Use offline mode or caching |
After diagnosing:
CHEZMOI_STATUS_TIMEOUTdocs/troubleshooting-timeout.md for solutionsCHEZMOI_STATUS_TIMEOUT environment variable/chezmoi:check - Manual status checkdocs/troubleshooting-timeout.md - Detailed troubleshooting guide