Skip to main content
Unpage agents are the core building blocks for automating infrastructure operations with LLMs. Unlike traditional automation that requires extensive coding, Unpage agents are defined with simple YAML configurations that specify what they analyze and how they respond.

What are Agents?

In Unpage, an agent is a specialized LLM that is:
  1. Purpose-built for a specific type of infrastructure task or alert
  2. Context-aware with access to your knowledge graph
  3. Tool-enabled with specific permissions to interact with your infrastructure
  4. Configuration-driven rather than requiring custom code development
Agents act as first responders to infrastructure events, analyzing situations and taking appropriate actions based on your predefined instructions.

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.
You can use wildcards and regular expressions to specify tools:

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).
See the schedule command documentation for more details on cron formats and running scheduled agents.

Agent File Location

Agent configuration files are stored in your Unpage profile directory:
Each agent has its own YAML file, named after the agent (e.g., 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

This creates a new agent configuration file from a template and opens it in your default editor.

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:
  1. Specialize your agents - Create purpose-specific agents rather than one general-purpose agent
  2. Clear descriptions - Write detailed descriptions to help the router select the right agent
  3. Structured prompts - Organize prompts with clear steps and expectations
  4. Principle of least privilege - Only grant access to tools the agent actually needs
  5. Include guardrails - Add explicit constraints in prompts about what not to do
  6. Test thoroughly - Run your agents against sample payloads before deploying
  7. Iterative refinement - Review agent responses and refine prompts based on performance

Conclusion

Unpage agents provide a configuration-driven approach to infrastructure automation with LLMs. By defining specialized agents with clear instructions and appropriate tool access, you can create a responsive system that handles routine operations and provides valuable insight for complex incidents. To learn more about how alerts are routed to the appropriate agent, see the Router documentation.