Commit e44226a
committed
feat: Implement comprehensive stack trace logging for Claude Code tool usage
Major Features:
- Add debug tracing environment variables to .env
- Initialize tracing system in main CLI with dotenv support
- Create Claude hooks for automatic tool usage logging:
- tool-use-trace.js: Captures all tool executions
- on-startup.js: Logs session initialization
- on-clear.js: Preserves context before clearing
- Add auto-installation hooks script for fresh installs
- Enable comprehensive execution tracing with:
- Performance monitoring (slow operation warnings)
- Memory usage tracking and deltas
- Sensitive data masking
- Structured JSONL log output to ~/.stackmemory/traces/
Tool Usage Logging:
- Automatic approval with trace capture
- Integration with StackMemory context system
- Session tracking with Git repo detection
- Background logging that doesn't interfere with Claude output
This resolves the missing stack trace historical tool use logging by:
1. Environment-based automatic trace initialization
2. Hook-based tool usage capture
3. Persistent trace file storage
4. Seamless Claude Code integration1 parent 12126da commit e44226a
File tree
39 files changed
+417
-9710
lines changed- scripts
- development
- src
- cli
- commands
- features/tui
- components
- services
- templates/claude-hooks
39 files changed
+417
-9710
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 78 | + | |
86 | 79 | | |
87 | 80 | | |
88 | 81 | | |
89 | 82 | | |
90 | | - | |
91 | 83 | | |
92 | 84 | | |
93 | 85 | | |
| |||
97 | 89 | | |
98 | 90 | | |
99 | 91 | | |
100 | | - | |
101 | | - | |
102 | 92 | | |
103 | 93 | | |
104 | 94 | | |
| |||
121 | 111 | | |
122 | 112 | | |
123 | 113 | | |
124 | | - | |
125 | 114 | | |
126 | 115 | | |
127 | 116 | | |
| |||
134 | 123 | | |
135 | 124 | | |
136 | 125 | | |
137 | | - | |
138 | 126 | | |
139 | 127 | | |
140 | 128 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments