╔═══════════════════════════════════════════════════════════════════╗ ║ Local AI Agent - Copilot CLI+ (Ubuntu 24 LTS) ║ ╚═══════════════════════════════════════════════════════════════════╝
🎯 INSTALLED COMPONENTS ├─ DeepSeek : /root/.local/bin/deepseek ├─ Ollama : /usr/local/lib/ollama (daemon on :11434) ├─ Ansible : /usr/bin/ansible (v2.16.3) ├─ SSH : localhost:22 (pub key auth) ├─ Sudo Safety : Configured with dangerous cmd blocking └─ Auto Shell Exec : /usr/local/bin/agent-exec
═══════════════════════════════════════════════════════════════════
📝 QUICK COMMANDS
Agent Execution: agent-exec "ls -la" # Direct shell command agent-exec --ask "list files" # Ask DeepSeek to interpret
DeepSeek CLI: deepseek -q "What is this?" # Ask a question deepseek -m deepseek-chat # Use specific model deepseek --read file.txt # Read & analyze files deepseek -r # Reasoning mode
Ollama: ollama list # List local models ollama pull deepseek2 # Download model ollama serve # Start server
Ansible: ansible localhost -m shell -a "pwd" ansible-playbook /opt/local-agent/config/playbook.yml
System Services: systemctl status ollama # Check Ollama systemctl status local-agent # Check Agent systemctl status ssh # Check SSH
═══════════════════════════════════════════════════════════════════
🔒 SAFETY & SECURITY
✓ Dangerous commands blocked:
✓ Sudo restrictions:
✓ Logging:
═══════════════════════════════════════════════════════════════════
📦 CONFIG FILES
/opt/local-agent/config/agent.conf # Main config /opt/local-agent/config/playbook.yml # Ansible playbook /opt/local-agent/bin/agent-exec # Main executor /opt/local-agent/logs/agent.log # Activity log
═══════════════════════════════════════════════════════════════════
🚀 EXAMPLES
agent-exec --ask "What processes are using the most CPU?"
ansible-playbook /opt/local-agent/config/playbook.yml
deepseek -q "Analyze this log:" --read /var/log/syslog | head -50
systemctl status local-agent ollama ssh
tail -f /opt/local-agent/logs/agent.log
═══════════════════════════════════════════════════════════════════
✨ FEATURES ENABLED
✅ Auto Shell Execution - Commands executed with safety checks ✅ DeepSeek Integration - AI interpretation of requests ✅ Ollama LLM Backend - Local model serving ✅ Ansible Automation - System task automation ✅ SSH Remote Access - Secure remote connections ✅ Sudo Safety - Dangerous commands blocked ✅ Command Logging - Full audit trail ✅ Service Monitoring - Systemd integration
═══════════════════════════════════════════════════════════════════