Commit a44b569
committed
feat(agent): add system administration task patterns (fluent_cli-yi95)
Add SysadminPatternDetector with 11 built-in sysadmin patterns for
intelligent task reasoning:
- QEMU/KVM VM management
- VirtualBox VM management
- Disk image operations (qcow2, raw, conversion)
- Network configuration
- OS installation guidance
- Bootloader/GRUB configuration
- Package management (apt, dnf, pacman)
- Service/systemd management
- User and permission management
- System monitoring and performance
- Backup and recovery
Each pattern includes:
- Keyword detection for task matching
- Required tools list
- Step-by-step implementation guide
- Common pitfalls and warnings
- Safety notes for risky operations
- Example shell commands
Patterns are designed to help the agent handle terminal-bench tasks
like install-windows-xp that require VM setup and OS installation.
Includes 8 unit tests covering pattern detection and prompt generation.1 parent 33e1755 commit a44b569
2 files changed
Lines changed: 976 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
0 commit comments