Commit 423857d
feat: add tool activation system to reduce context usage by 92%
Implement comprehensive tool management system allowing users to
enable/disable tool groups and reduce Claude Code context usage
from 43.5k tokens (37 tools) to 3.5k tokens (5 tools) in minimal mode.
New Features:
- Tool registry organizing 37 tools into 6 groups (core, sessions,
monitoring, backup, database, advanced)
- Configuration manager with 3 modes (all/minimal/custom)
- Interactive CLI wizard for easy setup
- Auto-approval config export for Claude Code
- Per-group enable/disable commands
CLI Commands:
- ssh-manager tools list - View current configuration
- ssh-manager tools configure - Interactive setup wizard
- ssh-manager tools enable/disable <group> - Manage groups
- ssh-manager tools reset - Reset to defaults
- ssh-manager tools export-claude - Generate auto-approval config
Files Added:
- src/tool-registry.js - Tool group definitions and helpers
- src/tool-config-manager.js - Configuration management
- cli/commands/tools.sh - CLI commands implementation
- docs/TOOL_MANAGEMENT.md - Complete user guide
- tests/test-tool-registry.js - Test suite (13 tests)
Files Modified:
- src/index.js - Conditional tool registration
- cli/ssh-manager - Integrated tools command
- README.md - Added tool management section
- CLAUDE.md - Updated for AI assistants
- package.json - Version 3.1.0, new test script
Impact:
- 92% context reduction in minimal mode (~40k tokens saved)
- Fewer approval prompts in Claude Code
- Backward compatible (no config = all tools enabled)
- Zero breaking changes
All tests passing (13 new + all existing tests)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent d25550c commit 423857d
File tree
10 files changed
+2040
-41
lines changed- cli
- commands
- docs
- src
- tests
10 files changed
+2040
-41
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
54 | 70 | | |
55 | 71 | | |
56 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
106 | 154 | | |
107 | 155 | | |
108 | 156 | | |
| |||
0 commit comments