What are Agents?
In Unpage, an agent is a specialized LLM that is:- Purpose-built for a specific type of infrastructure task or alert
- Context-aware with access to your knowledge graph
- Tool-enabled with specific permissions to interact with your infrastructure
- Configuration-driven rather than requiring custom code development
Agent Configuration
Agents are defined using YAML configuration files with three key components:1. Description
The description specifies when the agent should be used. This is particularly important for the routing system, which automatically selects the most appropriate agent for each incoming alert.2. Prompt
The prompt contains detailed instructions for the agent, defining:- What information to gather
- How to analyze the situation
- What actions to take
- Any constraints or guidelines to follow
3. Tools
The tools section explicitly grants the agent permission to use specific infrastructure tools. This follows the principle of least privilege, ensuring agents only have access to the tools they need.4. Schedule (Optional)
The optional schedule section enables agents to run periodically on a cron schedule. This is useful for “background chores” like cost optimization reports, security audits, and routine maintenance tasks. Unpage supports multiple cron formats:Scheduled agents run with no input payload. Make sure your agent prompt specifies how to get any required inputs (e.g., via tool calls).
Agent File Location
Agent configuration files are stored in your Unpage profile directory:cpu-alert-agent.yaml). You can have multiple agents, each specialized for different tasks.
Example Agent Configuration
Here’s an example of a complete agent configuration:Creating and Managing Agents
Unpage provides several commands to work with agents:Creating a New Agent
Editing an Existing Agent
Listing Available Agents
Running an Agent Manually
Starting the Scheduler for Periodic Agents
Common Agent Use Cases
Agents can be configured for various infrastructure tasks:Incident Response
Automatically analyze and respond to alerts from monitoring systems:- Triage alerts based on severity and impact
- Gather relevant logs and metrics
- Post status updates with analysis
- Suggest remediation steps
Troubleshooting
Assist with diagnosing complex infrastructure issues:- Analyze performance bottlenecks
- Correlate events across multiple systems
- Identify potential root causes
- Suggest debugging approaches
Automation
Handle routine operational tasks:- Respond to common alerts with well-defined playbooks
- Gather context for human responders
- Document incident timelines
- Check system health after changes
Scheduled Maintenance
Run periodic “background chores” on a schedule:- Generate cost optimization reports
- Run security audits and compliance checks
- Monitor for unused resources
- Analyze performance trends
- Generate weekly/monthly summaries
Best Practices for Agent Design
When designing agents, follow these best practices:- Specialize your agents - Create purpose-specific agents rather than one general-purpose agent
- Clear descriptions - Write detailed descriptions to help the router select the right agent
- Structured prompts - Organize prompts with clear steps and expectations
- Principle of least privilege - Only grant access to tools the agent actually needs
- Include guardrails - Add explicit constraints in prompts about what not to do
- Test thoroughly - Run your agents against sample payloads before deploying
- Iterative refinement - Review agent responses and refine prompts based on performance

