Automating tasks through background agents

Overview of background agents

Background agents are Atlas AI agents that watch your environment and react to conditions independent of user input. Creating agents increases your productivity by offloading repetitive tasks to Atlas. For example, you can create an agent that continuously monitors vulnerability feeds for critical CVEs, assesses the CVE exposure of your environment, and surfaces affected endpoints with a recommended remediation path. You can run agents on a schedule (such as daily at 5 AM) or in response to conditions (such as changes in action deployment status). Agents propagate their findings on the relevant pages without interrupting active AI chat conversations.

You create a background agent through a chat conversation by entering a natural language description of what the agent does and the trigger (schedule or condition) that starts the agent. Atlas then configures the agent and adds panels to the page to show the findings when the agent runs. Thereafter, the agent runs in the background without requiring you to remain in the chat session where you created the agent. The agent runs using your own RBAC permissions.

You can also configure background agents to send activity notifications to the Activity Activity panepane in the Atlas sidebar, so you can stay informed of agent findings without actively monitoring each page. For more information, see Create background agents and Exploring activity notifications.

Note: Periodically review background agents to ensure their activities are still relevant and not wasting AI credits. For more information, see Review, pause, and delete background agents.
Note: You must be assigned a user role with Atlas Ambient execute permission to create and manage background agents. For more information, see User role requirements.

Page binding for background agents

Each background agent is bound to one page, where you can view its run history in the Background Agent Runs panel. The agent adds and updates panels on the bound page if you instruct the agent to show run results within the Atlas UI.

By default, the page where you created the agent is the bound page. You can prompt Atlas to change the page binding if you know the name or ID of another page.

If background agents are bound to a page, Atlas prompts you to delete, disable, or retarget the agents before you can delete the page. Retargeting means binding the agent to another page.

Note: An agent loses its binding if you disable the agent and delete the bound page. You must retarget that agent before you can resume it.

Background agent triggers

The trigger type for an agent determines when it runs. You define the trigger when you enter a chat prompt to create the agent. When defining the trigger, use any natural language text that distinguishes the trigger from other types.

  • Cron: The agent runs on a cron schedule in UTC time, such as 05:00 UTC.

  • Interval: The agent runs on a fixed time interval, such as every six hours. The time is relative to the server that runs Atlas.

  • Poll: The agent calls a Tanium REST API endpoint on a recurring basis and evaluates a response value against a condition. If the value matches the condition, the agent runs. When you prompt Atlas to create the agent, use one of the following terms (or a natural language equivalent) to define the condition:

    • Change: The response returns a changed value.

    • Equals <value>: The response equals the specified value.

    • Not equals <value>: The response does not equal the specified value.

    • Contains <value>: The response includes the specified value, regardless of whether the response also includes other values.

    • Absent <value>: The response excludes the specified value, regardless of whether the response includes other values.

    • Greater than <value>: The response returns a value that exceeds the specified value.

    • Less than <value>: The response returns a value that is less than the specified value.

For more information, see Create background agents.

Note:

An agent enters a paused state if you edit the trigger. After completing the edit, you must manually resume the agent. Alternatively, include status="active" in the edit prompt.

Create background agents

Each Tanium user can create up to ten active agents. Review the Best practices for reducing AI usage by background agents before you perform the following steps to create each agent.

Tip: Atlas can help you design new agents. For example, enter the chat prompt Recommend background agents.
  1. Open a chat conversation. In the Atlas sidebar, click + New Page to start a new conversation or select an existing page to resume a conversation.
    Note: Atlas automatically binds the agent to the page where you create the agent.
  2. Enter a prompt that instructs Atlas to create the agent. The two settings that you must specify are the trigger and prompt (the steps that the agent performs). For details about these required settings and the optional settings, see Background agent settings.
    • Example 1: The following prompt creates an agent that runs on a cron schedule, reports metrics about critical and high CVEs:

      Set up a background agent named "Critical and High CVEs" that runs every day at 05:00 UTC and checks for newly published CVEs with a CVSS score above 8.0.

    • Example 2: The following prompt creates an agent that checks every six hours for the presence of endpoints that are non-compliant with respect to Control 1.5.2. This control is a configuration recommendation associated with multiple Center for Internet Security (CIS) benchmarks. If the agent finds non-compliant endpoints, it reports the findings on the page.

      Create a background agent named "CIS Control 1.5.2 Compliance" that polls the compliance endpoint every six hours and runs if any endpoint reports a non-compliant finding for Control 1.5.2.

    Agents can perform most of the same operations as chat prompts. For example, you can configure an agent to:

    In the chat pane, Atlas responds by listing the agent settings (such as the trigger) and the steps that the agent performs when it runs. In the display pane, Atlas adds a Background Agent Runs panel that shows the run history of the agent. This panel is blank until the agent performs its first run. For more information, see Audit the run records of background agents.

  3. Review the agent settings and steps, and prompt Atlas to adjust them if necessary.
    Tip: To test the agent immediately instead of waiting for the first scheduled run, enter the chat prompt Run the <agent name> agent.
  4. (Optional) To enable activity notifications and stay informed of agent findings in the Activity pane without actively monitoring each page, use a prompt such as Notify me about this background agent in the chat prompt. For more information, see Exploring activity notifications.

Manage background agents

The easiest way to view and manage background agents on a recurring basis is to add panels from the templates that are predefined for agents.

You can also use chat prompts to view and manage agents, as described in Management tasks for background agents.

Add panels for managing background agents

  1. In the Atlas sidebar, click Command Palette Command Palette in the sidebar and select Gallery Gallery mode.
  2. In the Background Agents Overview template, click Template Actions Command Paletteand add the template to a new or existing page. The template provides the following panels:
  3. (Optional) Add panels that show information about individual agents. For more information, see Agent details.

All Background Agents panel

The All Background Agents panel shows a grid that includes a column for each basic agent setting, such as the Agent name, Status, and Trigger. The Credits column shows the count of AI credits that the agent has consumed after it was created. The panel provides the following options for viewing agent details and managing agents.

Filters

Use the following filters to customize the All Background Agents panel:

  • Owners: Toggle between listing the agents that All users own or just your own (Mine). The owner is the user who created the agent. You must be assigned the Admin reserved role to use this toggle.

  • Run-date range Run date range: Use the calendar picker to specify a date range. The Credits column then shows consumption only during the specified range.

  • Name Run date range: Enter a text string that contains all or part of an agent name.

Agent details

In the All Background Agents panel, click the row for an agent to open a peek drawer that shows the following details for the agent:

  • Overview: The agent status and basic attributes.

  • Prompt: A description of the agent and the complete sequence of steps that it performs during every run.

  • Runs: The status, runtime, and credit consumption of each run. Click a run to drill down into the Outcome and specific Steps that the run performed.

To add the peek drawer for the selected agent as a regular panel on the current page, click Open as a New Panel Open as a New Panel in the drawer header.

Management tasks for background agents

In the All Background Agents panel, select one or more agents to show the buttons for management tasks that you can perform on multiple agents: Stop, Resume, and Delete. You can delete only the agents that you own. In the Actions column, click any of the buttons for managing a single agent.

The following table describes the management tasks that you can perform on agents by using buttons in the All Background Agents panel or by using chat prompts.

Tip:

If you insert an agent reference (@<agent name>) into the prompt input field of a chat, you can hover over the reference to view buttons for managing the agent. To perform a task on all agents, use the prompt <task> all agents instead of <task>@<agent name>.

You can provide Atlas with instructions that change the behavior of all agents. For example, you might instruct Atlas to set a default expiration date for all new agents. For more information, see Configure AI agent instructions.

Table 1. Management tasks for background agents

Task

Button

Chat prompt

Open the page to which the agent is bound.

Bound page

You cannot use prompts to open another page. However, you can prompt Atlas to bind the agent to a different page:

Bind@<agent name> to the <page name> page

Add a reference to the agent in the input field for chat prompts.

Send to Chat

@<agent name>

Tip: Enter only @ to open a popup list of all the agents and then select an agent. You can use your keyboard to navigate the list (press Up ▲ or Down ▼), select an agent (press Enter or Tab), or close the popup list (press Esc).

Enable or disable activity notifications for the agent. For more information, see Exploring activity notifications.

Enable notifications Mute notifications

[Enable | disable] activity notifications for @<agent name>

Resume a paused agent.

Resume agent Resume@<agent name>

Stop an agent run that is in progress and disable the agent to prevent future runs.

Stop Prompt Enter Stop@<agent name> to stop a run in progress. If the agent is idle, enter Pause@<agent name> to disable the agent to prevent future runs.

Run the agent now. You can run only the agents that you own.

Run agent now Run@<agent name>

Delete an agent. You can delete only the agents that you own.

Delete agent Remove@<agent name>

All Background Runs panel

The All Background Runs panel shows run history details for agents. The information is the same as what appears in the Background Agent Runs panel that Atlas adds when you create an agent. For more information, see Audit the run records of background agents.

View and edit background agent settings

In a chat conversation, enter the following prompt to view all the settings for an agent.

List all the settings for @<agent name>.

Tip: After you insert an agent reference (@<agent name>) into the prompt input field, hover over the reference to view a few basic agent settings (such as the steps it performs) and view management options (such as Stop Stop Prompt).

The following table describes the settings and indicates which settings you can edit through chat prompts.

Note: An agent enters a paused state if you edit the trigger or prompt. After completing the edit, you must manually resume the agent. Alternatively, include status="active" as part of the edit instruction.
Table 2. Background agent settings

Setting

Description

ID

Atlas assigns an ID to the agent and you cannot change the ID.

Name

Atlas assigns a name by default but you can prompt Atlas to rename the agent.

Creating/Current conversation ID

Atlas shows these settings only if you changed the page binding after you created the agent. The values identify the conversation where you created the agent and the conversation of the current bound page. Atlas assigns an ID to each conversation and you cannot change it.

User ID

This identifies the user who owns the agent by virtue of creating it. Tanium Cloud assigns an ID when you add a Tanium user account. You cannot change the user who owns the agent or the ID of that user.

Status

Atlas sets the status automatically. However, you can change the status to Paused for an active agent or set the status to Active for a paused agent. You cannot change any other status. For more information, see Background agent status.

Trigger type

This determines when the agent runs. You can edit the setting. For more information, see Background agent triggers.

Effective cadence / schedule

This is the frequency (for interval triggers) or cron schedule (for cron triggers) of the agent runs. You can edit the setting.

Cron expression

This is the cron expression for agents with a cron trigger. You can edit the setting.

[Cron] Timezone

By default, this is the timezone of the server that runs Atlas. You can change the value to any IANA timezone name, such as America/New_York or Europe/London.

Notifications

This editable setting appears only if you configured the agent to send activity notifications. For more information, see Exploring activity notifications.

Expiration

This editable setting appears only if you specified an expiration for the agent. You can specify an expiration date and time or configure the agent to expire after a certain number of runs. After expiration, Atlas removes the agent but preserves its run history, associated chat conversations, and usage records.

Max run duration

Atlas limits each agent run to 900 seconds (15 minutes) by default. Atlas stops the run if it does not finish within the limit. You can set a higher run duration but you cannot set it lower than the default limit.

Reasoning effort

This is the AI thinking depth that Atlas applies when it runs the agent. The values are None, Low, Medium, and High. Higher effort means more deliberate, step-by-step reasoning before acting, at the cost of slower runs and greater AI processing. Lower effort is faster and requires less AI processing for straightforward tasks. Very high AI processing might cause Atlas to skip runs. You can edit the setting. For more information, see Agent runs skipped due to excessive AI credit consumption.

If you did not set the reasoning effort when you created the agent, Atlas selects a value that reflects the steps that the agent performs. You can edit the reasoning effort.

Fire count

This is the number of times the agent has run. Atlas sets the value automatically and it is not editable.

Last fired at

This is the date when the agent last ran. Atlas sets the value automatically and it is not editable.

Max fires

This is the maximum number of times that Atlas allows the agent to run over its lifetime. The agent stops running permanently after it reaches the limit. The default value is Unlimited but you can edit it.

Bound page / Page ID

This is the name or ID of the page to which the agent is bound. You can change the page binding. For more information, see Page binding for background agents.

Consecutive errors

This is the number of consecutive errors that the agent experienced during the run. The agent status changes to Failed after five or more consecutive errors. Atlas sets the value automatically and it is not editable.

Created by conversation

The identifier of the chat conversation in which you created the agent. Atlas sets the value automatically and it is not editable.

Created at

The date and time when you created the agent. Atlas sets the value automatically and it is not editable.

Updated at

The date and time when you last edited the agent settings. This setting does not appear if you never edited the agent after creating it. Atlas sets the value automatically and it is not editable.

Prompt

This is the sequence of steps that the agent performs. You can edit the steps.

View run results for background agents

Each time an agent runs, it updates the run results in the corresponding panels on the page that is bound to the agent. The agent name appears in the footer of each panel that the agent creates or updates. The page header shows an icon that uniquely identifies each agent that is bound to the page. Hover over the icon to view a popup with the agent name, status, and run cadence. If multiple agents are bound to a page, you can click an agent icon to filter the page to show only the panels that pertain to the agent. For more information, see Page binding for background agents.

An agent might also show run results as a response in the chat pane. The pane shows the agent icon and name beside those responses to distinguish them from other conversation responses.

When notifications are enabled for an agent, the agent posts an activity notification to the Activity pane in the Atlas sidebar. Clicking the notification opens the bound page and highlights the panels related to what the agent found. For more information, see Exploring activity notifications.

Note: If the run results include a proposal to run a command (such a patch deployment) to address its findings, you must manually prompt Atlas to run the command and then you must approve it.

View background agent status

You can troubleshoot agents by checking their status. On the page to which an agent is bound, hover over the agent name in the page header to view a popup with the agent status. On any other page, enter the following prompt to view the status of an agent. To view the status of all agents, replace @<agent name> with all agents.

Show the status for @<agent name>.

Table 3. Background agent status

Status

Description

Active

The agent is in a healthy idle state and can run at its next scheduled interval.

Running

An agent run is currently in progress.

Triggered

A user manually ran the agent and the run is queued but not yet started. This status changes to Running when the run begins or reverts to Active if the poll condition is not met.

Stopped

Atlas stopped the agent due to one of the following causes:

  • You manually disabled or paused the agent.

  • An administrator disabled Background Agents in the Atlas settings. For more information, see Enable or disable Atlas settings.

  • The agent reached its Max Fires limit. For more information, see Background agent settings.

  • The agent has a malformed cron expression. To fix a cron expression, see View and edit background agent settings.

  • Repeated scheduling failures occurred.

  • Too many consecutive runs failed to complete.

  • The agent encountered an authentication failure, such as an expired API token.

    Note: Atlas creates a long-lived authentication token for each agent that you create and rotates the token every four hours.
  • You edited certain settings in the agent configuration.

After resolving the issue that stopped the agent, you must manually resume the agent to restore its Active status.

Timed Out

The agent expired before a user deleted or resumed it. For more information about the expiration interval, see Background agent settings.

You can resume the agent to restore its Active status.

Deleted

A user removed the agent.

Audit the run records of background agents

Atlas records a run each time a background agent starts. View run records to track what an agent did, how long it took, and whether it succeeded.Atlas

Add one of the following panels to view run records:

  • All Background Runs: See Add panels for managing background agents.

  • <Agent name> Agent Runs: Enter the following chat prompt to add a panel that shows run records for a single agent: Add a Background Runs panel for @<agent name>.

Atlas shows the records in a grid, sorted by run completion time in descending order (most recent first). Each run record includes the following information.

Tip:

Click a run record to open a peek drawer that shows complete details of the run outcome and the sequence of steps that the agent performed.

You can also see run status in the Agents pane. For more information, see View AI credit usage for background agents.

  • Background agent: The name of the agent that ran

  • Reason: The trigger condition that caused the agent to run

  • Started: The date and time when the run began

  • Completed: The date and time when the run ended

  • Duration: The total elapsed time for the run

  • Outcome: The run status

The possible run states are:

  • Completed: The run ended successfully.

  • Running: The run is in progress.

  • Skipped: Atlas did not attempt the run. For more information, see Skipped runs for background agents.

  • Failed: The run ended unsuccessfully.

The following conditions might cause a run to fail:

  • The agent configuration is malformed or references something that no longer exists. For example, if a trigger points to an API route that has since been removed from the catalog, the run fails with an error stating that the route is no longer in the catalog and that the trigger needs editing. To resolve the issue, see View and edit background agent settings.

  • The run Duration exceeded the Max Run Duration. For more information, see Background agent settings.

  • A required Tanium service (such as TDS) is unavailable.

  • A network proxy blocked an outbound request.

  • A DNS failure (unresolved hostname) occurred.

  • The agent lacked RBAC permissions to perform an operation. The RBAC permissions of the user who creates an agent also apply to the agent. To update RBAC permissions, see Managing access permissions through roles

  • The agent attempted a task or sub-tool call that returned an error.

  • An unknown or unclassified error occurred within the agent run.

Note: A run that ends with an indeterminate outcome does not report a status.

View AI credit usage for background agents

Pages that are bound to background agents have a toggle for showing the Chat pane or Agents pane. The Agents pane shows the following information and management options for agents that are bound to the current page:

  • AI credit usage: The pane shows total AI credit usage across all the agents, usage for each of the agents, and usage for each run of the agents.

  • Run status: The pane shows the status of each agent run. For more information, see Audit the run records of background agents.

  • Management options: Click Run Now Run agent now or click Actions Actions and select another agent management option. For example, you can stop or resume an agent. For more information, see Management tasks for background agents.

Skipped runs for background agents

A skipped run is a run that ended without the agent performing its work. The run records for an agent indicate if Atlas skipped any runs. The following scenarios cause Atlas to skip a run.

Note: For more information about run records, see Audit the run records of background agents.

Agent runs skipped due to pending approval

The agent attempted to automatically perform a task that requires user approval. Consider editing the tasks that an agent performs to avoid future skipped runs. You can view the tasks by listing all the settings of the agent. For more information, see View and edit background agent settings.

Agent runs skipped due to excessive AI credit consumption

Atlas skips agent runs if you have consumed AI credits beyond your limit. On the page where you created the agent, Atlas notifies you through a message in the chat pane when it skips a run due to excessive AI credit consumption. For more information, see Monitor and manage AI credit usage.