You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ai): add AI auto-run configuration and command classification
- Add AI configuration section to ShellTimeConfig with agent auto-run settings
- Create command classifier to detect view/edit/delete actions
- Implement AI auto-run in query command with safety checks
- Add confirmation prompt for delete commands
- Update documentation with AI configuration examples
- Display helpful tips when auto-run is not configured
The AI auto-run feature allows users to configure automatic execution of
AI-suggested commands based on their type (view, edit, or delete). Delete
commands require explicit confirmation for safety.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|`endpoints`| array |`[]`| Additional API endpoints for development or testing |
29
+
|`ai.agent.view`| boolean |`false`| Auto-run AI for view commands (e.g., ls, cat, show) |
30
+
|`ai.agent.edit`| boolean |`false`| Auto-run AI for edit commands (e.g., vim, nano, code) |
31
+
|`ai.agent.delete`| boolean |`false`| Auto-run AI for delete commands (e.g., rm, rmdir) |
29
32
30
33
Example configuration:
31
34
```toml
@@ -36,10 +39,18 @@ flushCount = 10
36
39
gcTime = 14
37
40
dataMasking = true
38
41
enableMetrics = false
42
+
43
+
# AI configuration (optional)
44
+
[ai.agent]
45
+
view = false# Auto-run AI for view commands
46
+
edit = false# Auto-run AI for edit commands
47
+
delete = false# Auto-run AI for delete commands
39
48
```
40
49
41
50
⚠️ Note: Setting `enableMetrics` to `true` will track detailed metrics for every command execution. Only enable this when requested by developers for debugging purposes, as it may impact shell performance.
42
51
52
+
📤 AI Auto-run: When AI agent auto-run is enabled for specific command types, the AI will automatically analyze and provide suggestions when you run matching commands. This feature requires the AI service to be properly configured.
0 commit comments