> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corridor.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Scheduled Agents

> Recurring Corridor Agent jobs that scan your code, check open findings, and tighten guardrails.

<Note>
  Scheduled Agents are in **private beta** on **Enterprise** plans. Corridor must enable the feature for your team.
</Note>

A lot of security work is the same job on a loop: scan the repo, check open findings, tighten guardrails. It keeps coming back, on a cadence and when new findings land.

Scheduled Agents run those jobs for you. They use [Corridor Agent](/features/corridor-agent).

## Where to find them

Open **Agent → Scheduled Agents**.

You can:

* Create an agent from a template or a custom prompt
* Pick a time schedule **or** a findings trigger
* Choose one project or many
* Run an agent now
* Pause or resume it
* Open run history

<Note>
  A team can have up to **4** scheduled agents.
</Note>

## Templates

| Template                       | What it does                                                                            |
| ------------------------------ | --------------------------------------------------------------------------------------- |
| **Improve Guardrail Coverage** | Author new guardrails from your instructions and find gaps in existing coverage.        |
| **Full Codebase Scan**         | Scan the selected projects, flag new issues, and close findings that no longer apply.   |
| **Validate Open Findings**     | Triage open findings. Confirm true positives, refute false positives, and set severity. |
| **Threat Model**               | Build or refresh a repository threat model and store it as a Corridor guardrail.        |
| **Secret Scan**                | Scan the selected projects and recent changes for leaked secrets.                       |
| **Custom**                     | Run a prompt you write.                                                                 |

## When an agent changes a guardrail

**Improve Guardrail Coverage** and **Threat Model** write guardrails. A custom agent can do the same if you ask it to.

Once an agent can edit a guardrail, you need to see what it changed and go back if the edit is wrong. That is [guardrail versioning](/features/guardrails#guardrail-versioning). Each guardrail keeps an append-only history. In the app, open the **vN** chip. Through MCP, Owner and Admin can list versions with `getGuardrailVersions` and restore one with `restoreGuardrailVersion`.

An AI assistant can also change guardrail text and archive a guardrail through MCP. Use `updateGuardrail` to edit name, overview, or text. Use `archiveGuardrail` to stop a guardrail from running. That write path is a separate private beta. See [Update and archive through MCP](/features/corridor-mcp#update-and-archive-through-mcp).

Un-archive stays on the dashboard. Restoring a version does not un-archive a guardrail.

## When an agent runs

### Time schedules

Pick **daily**, **weekly**, or **monthly**. Times are **Pacific Time**.

Use a time schedule for work you want on a cadence, such as a weekly full scan.

### Findings triggers

You can also run an agent when findings change:

* **Finding created**
* **Finding status changed**

These triggers only fire for findings on the **main branch**. They only fire for finding events after you activate the agent.

Use a findings trigger when you want work to follow new issues, such as tightening guardrails after a scan.

An agent uses a time schedule **or** a findings trigger. It cannot use both.

## Project scope

Pick one project or several. Leave the list empty to cover **every project** on the team.

## Run history

Each run shows when it started, its status, and a link to the chat when one exists. Status is **Dispatched**, **Missed**, **Skipped**, or **Failed**. Open the chat to read what the agent did.

## Next steps

<CardGroup cols={2}>
  <Card title="Corridor Agent" icon="comments" href="/features/corridor-agent">
    Talk to Corridor about findings and fixes
  </Card>

  <Card title="Guardrail versioning" icon="clock-rotate-left" href="/features/guardrails#guardrail-versioning">
    See what an agent changed and restore an earlier version
  </Card>

  <Card title="Update and archive through MCP" icon="pen-to-square" href="/features/corridor-mcp#update-and-archive-through-mcp">
    Edit guardrail text or archive a guardrail from an AI assistant
  </Card>
</CardGroup>
