Managing Agents
Create, link, and manage AI-powered agents
An Agent in OpsSquad.ai is a cloud-based AI entity that works as part of a squad. Agents can investigate issues, execute commands through linked nodes, and respond to incidents using AI-powered intelligence.
Agent Lifecycle
Agents go through several states during their lifecycle:
| State | Description | Node Requirement |
|---|---|---|
| Created | Agent exists in squad, not linked | None |
| Linked | Connected to a node | Has node assignment |
| Active | Receiving and processing requests | Node must be online |
| Unlinked | Disconnected from node | None |
| Inactive | Suspended but linked | Node assignment preserved |
| Deleted | Removed from squad | None |
Viewing Agents
Navigate to the Agents page to see all your agents in a tabular view.
Agent List Columns
| Column | Description |
|---|---|
| Name | Agent identifier |
| Status | Current lifecycle state |
| Squad | Which squad the agent belongs to |
| Linked Node | Which node (if any) the agent is linked to |
| Last Active | Time of last activity |
Filtering Agents
Use the filter options to narrow down your view:
- Search: Filter by agent name or ID
- Status Filter: Show only Active, Linked, Unlinked, or Inactive agents
- Squad Filter: View agents from a specific squad
- Node Filter: View agents by their linked node status
Agent Actions
Individual Actions
Click the actions menu (three dots) on any agent row:
| Action | Description |
|---|---|
| View Details | Go to the full agent details page |
| Link to Node | Connect the agent to an online node |
| Unlink from Node | Disconnect the agent from its linked node |
| Pause | Set agent to inactive (preserves node link) |
| Resume | Reactivate a paused agent |
| Configure | Update agent configuration and settings |
| View Logs | See command execution logs from linked node |
| Delete | Permanently remove the agent |
Warning: Delete is irreversible! This action removes the agent and all its data permanently.
Bulk Actions
Select multiple agents using the checkboxes on the left:
- Bulk Link - Link multiple agents to nodes
- Bulk Unlink - Disconnect multiple agents from nodes
- Bulk Pause - Pause all selected agents
- Bulk Resume - Resume all selected agents
- Bulk Delete - Remove all selected agents
Agent Details Page
Click on an agent name to access its detail page:
Overview Tab
- Status: Current state with health indicator
- Squad: Parent squad with link
- Linked Node: Which node (if any) the agent is linked to
- Node Status: Online/Offline status of linked node
- Last Activity: When the agent last executed a command
- Connection: Real-time connection status to linked node
Logs Tab
View command execution logs from the linked node:
[2024-01-15 10:23:45] INFO Agent linked to node_abc123
[2024-01-15 10:23:46] INFO Received chat request: check CPU usage
[2024-01-15 10:23:47] INFO Executing command on node: top -bn1
[2024-01-15 10:23:48] INFO Command completed successfullyLog Controls:
- Follow: Auto-scroll as new logs arrive
- Filter: Search within logs
- Download: Export logs as a file
- Time Range: Filter by date and time
Node Info Tab
Details about the linked node (if linked):
- Node name and ID
- Server hostname and IP
- Node status (online/offline)
- Last heartbeat time
- Node software version
Configuration Tab
View and edit agent configuration:
- Agent name and description
- System prompt and behavior
- Squad assignment
- Capability settings
Creating and Linking an Agent
Agents are cloud-based AI entities that you create in the dashboard and then link to deployed nodes.
Step 1: Create the Agent
- Navigate to the Agents page
- Click "Create Agent"
- Configure the agent:
- Name: Descriptive identifier
- Squad: Select parent squad
- Description: Agent's purpose and responsibilities
- System Prompt: AI behavior instructions (optional)
- Click "Create Agent"
The agent is now created but not yet linked to a node.
Step 2: Deploy a Node (if needed)
If you don't have a node deployed yet:
- Navigate to Nodes page
- Click "Create Node"
- Get the Node ID and Token
- On your server, install the CLI and deploy:
curl -fsSL https://install.opssquad.ai/install.sh | bash opssquad node install --node-id="your-id" --token="your-token" - The node will appear online in your dashboard
Step 3: Link Agent to Node
- Go back to the Agents page
- Click on your agent
- Click "Link to Node"
- Select an online node from the dropdown
- Confirm the linking
The agent is now active and can execute commands through the linked node!
Agent Configuration
Agent Behavior
Configure how the agent operates:
| Setting | Description |
|---|---|
| System Prompt | Instructions that guide the agent's AI behavior |
| Capabilities | Which tools and commands the agent can use |
| Auto-Approval | Whether certain commands run without asking for approval |
| Context Window | How much conversation history the agent remembers |
System Prompt
The system prompt defines the agent's personality and focus:
You are a database monitoring agent. Your primary focus is monitoring
PostgreSQL performance, analyzing slow queries, and detecting connection
issues. When investigating problems, always check query performance first.Capabilities
Enable or disable specific capabilities:
- System Diagnostics - CPU, memory, disk analysis
- Log Analysis - Search and analyze log files
- Service Management - Start, stop, restart services
- Network Diagnostics - Connectivity and traffic analysis
- Custom Scripts - Execute user-defined diagnostic scripts
Troubleshooting Agents
Agent Not Executing Commands
If an agent isn't executing commands:
- Check if agent is linked - Go to agent details and verify it's linked to a node
- Check node status - Verify the linked node is online
- Check node connectivity - Ensure the node can reach
socket.opssquad.ai:9000 - Review logs - Check the Logs tab for error messages
Common causes:
- Agent is not linked to any node
- Linked node is offline
- Network connectivity issues between node and platform
- Node authentication token expired
Agent Shows as Unlinked
If an agent appears as Unlinked when it should be linked:
- Click on the agent
- Click "Link to Node"
- Select an online node from the dropdown
- Confirm the linking
Linked Node is Offline
If your agent's linked node shows as offline:
- SSH into the server running the node
- Check node status locally:
opssquad node status opssquad node logs - Restart the node if needed:
opssquad node restart - Check network connectivity:
opssquad node validate
Need to Reassign Agent to Different Node
- Go to agent details
- Click "Unlink Node"
- Click "Link to Node"
- Select a different online node
- Confirm the linking
Best Practices
Naming Conventions
Use descriptive names that include:
- Agent purpose (Database Monitor, Web Server Guardian)
- Environment (Production, Staging, Development)
- Specialization (PostgreSQL Agent, Nginx Monitor)
Examples:
Production Database MonitorStaging API AgentDev Security Audit Agent
Squad Organization
- Group agents by environment (Production Squad, Staging Squad)
- Or by function (DevOps Squad, Security Squad)
- Create specialized squads for different teams or purposes
Node Linking
- Link agents to nodes that match their purpose
- One agent links to one node at a time
- Unlink and relink to reassign agents as infrastructure changes
- Monitor node status to ensure agents can execute commands
Security
- Review command execution logs regularly
- Use unique tokens per node
- Rotate node tokens periodically
- Configure auto-approval carefully for sensitive commands
- Review agent activity logs for security audits
Next Steps
- Managing Squads - Learn how to organize agents into squads.
- Chat Interface - Interact with your agents using natural language.
- Billing - Understand credit consumption and billing.