Overview
The VM Agent (SecureVirtualizedAgent) is NikCLI’s second registered agent for autonomous development in isolated Docker environments. It provides secure, containerized development capabilities with complete repository management, API key proxy for zero secret exposure, and pull request automation.This document describes the VM Agent, one of only two registered agents in NikCLI. Other specialized agents (React, Backend, Frontend, DevOps) exist as internal code modules but are not registered as separate agents - their functionality is handled by the Universal Agent through cognitive routing.
Isolated Execution
Secure development in containerized environments
Repository Management
Complete Git operations and repository analysis
Pull Request Automation
Automated PR creation and management
Secure Communication
API key proxying and token budget management
Core Capabilities
The VM Agent provides 20 registered capabilities for virtualized development (expandable via configuration):VM-Specific Capabilities (7)
- vm-management - Docker container lifecycle management
- container-orchestration - Multi-container coordination
- isolated-execution - Secure sandboxed code execution
- repository-cloning - Automated Git repository setup
- vscode-server - Remote VS Code server integration
- autonomous-development - Self-directed development workflows
- pull-request-automation - Automated PR creation and management
Repository Management (5)
- repository-analysis - Deep codebase analysis and structure detection
- dependency-management - NPM/Yarn/PNPM package management
- testing-automation - Automated test execution and reporting
- documentation-generation - Auto-generated code documentation
- code-quality-analysis - Static analysis and quality metrics
Security Features (5)
- secure-api-communication - API key proxy with zero secret exposure
- token-budget-management - 50,000 token budget enforcement per session
- audit-logging - Complete activity audit trail
- resource-isolation - Container CPU/memory/disk limits
- credential-management - Secure JWT-based session management
Development Workflows (3)
- full-stack-development - Complete application development in containers
- ci-cd-integration - GitHub Actions/GitLab CI integration
- git-operations - Full Git workflow automation
- package-management - Dependency installation and updates
- environment-setup - Automated environment configuration
- Token Budget: 50,000 tokens per session (enforced)
- Concurrent Tasks: 1 task at a time
- Container Timeout: 30 minutes default
- Max Retries: 2 attempts
Usage Examples
VM Container Operations
- Create VM Container
- Container Management
- Development Tasks
Pull Request Automation
Automated PR Creation
Automated PR Creation
Feature Development Workflow
Feature Development Workflow
VM Agent Configuration
Security Settings
- Permission Model
- Resource Limits
Configuration Options
Container Configuration
Container Configuration
Development Environment
Development Environment
Real-World Examples
Full-Stack Feature Development
Legacy Code Modernization
Comparison with Universal Agent
| Feature | Universal Agent | VM Agent |
|---|---|---|
| Execution Environment | Host system | Isolated container |
| Security Model | Configurable permissions | Strict container isolation |
| Capabilities | 35 comprehensive | 20 specialized for VMs |
| Use Case | General development tasks | Secure/isolated development |
| Repository Access | Direct file system | Container-based cloning |
| Pull Request Creation | Manual process | Automated workflow |
| Resource Isolation | Host limitations | Container boundaries |
| API Communication | Direct API calls | Proxied through secure gateway |
Best Practices
When to Use VM Agent
Secure Development
Use VM Agent for projects requiring strict isolation and security
Repository Automation
Perfect for automated repository analysis and PR creation
Clean Environment
Ideal for testing in clean, reproducible environments
Resource Isolation
Use when you need guaranteed resource limits and isolation
VM Agent Limitations
Performance Considerations
Performance Considerations
- Container overhead may impact performance
- Network latency for external API calls
- Limited to container resources
- Slower file system operations compared to host
Feature Limitations
Feature Limitations
- Cannot modify host system configuration
- Limited network access to approved domains
- No direct access to host file system
- Restricted command execution capabilities
Resource Constraints
Resource Constraints
- Maximum 50,000 token budget per session
- Default 30-minute timeout for operations
- Limited to single concurrent task
- Container resource limits apply
Troubleshooting
Common Issues
Container Creation Failed
Container Creation Failed
Problem: VM container fails to startSolutions:
Connection Timeout
Connection Timeout
Problem: Container connection times outSolutions:
Resource Exceeded
Resource Exceeded
Problem: Container runs out of resourcesSolutions:
Next Steps
Universal Agent
Learn about the comprehensive Universal Agent
Agent Architecture
Understand the agent system architecture
Advanced Examples
See advanced VM Agent development examples
Security Guide
Learn about VM security best practices
The VM Agent is ideal for secure, isolated development tasks where you need guaranteed resource limits and container-based execution. Use it for sensitive projects or when you need reproducible, clean development environments.
