docs: cloud agent guides (#9495)
* Update Guides nav to include cloud agents * Add guide to cloud agents * Update for GEO * Add new folder structure and link * Add cloud agents taxonomy * Add mermaid diagram * Remove verbose line * Add when to use cloud agents guide * Add task to automation guide * Add cloud agents v cicd * Add operating cloud agents guide * Add to navigation * Make snyk guide clearer * Revise taxonomy for clarity and style * Clean up * Edit and Polish * Edit and Optimize * Beautify the mermaid chart * Add diagram for CICD + Continue * Change CTA * Add to overview guides page * Update docs/guides/cloud-agents/cloud-agents-taxonomy.mdx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * fix typo Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * Fix indentation Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * Fix spacing * Fix path to guide Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * Refine wording in cloud agents guide * Move guides to top level * Remove next steps --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
parent
94a7b56cee
commit
f7323381fe
10 changed files with 1319 additions and 20 deletions
|
|
@ -253,10 +253,26 @@
|
|||
{
|
||||
"tab": "Guides",
|
||||
"groups": [
|
||||
{
|
||||
"group": "Getting Started",
|
||||
"icon": "rocket-launch",
|
||||
"pages": ["guides/overview"]
|
||||
},
|
||||
{
|
||||
"group": "Cloud Agents",
|
||||
"pages": [
|
||||
"guides/cloud-agents/cloud-agents-taxonomy",
|
||||
"guides/cloud-agents/guide-to-cloud-agents",
|
||||
"guides/cloud-agents/when-to-use-cloud-agents",
|
||||
"guides/cloud-agents/from-task-to-automation",
|
||||
"guides/cloud-agents/cloud-agents-vs-ci",
|
||||
"guides/cloud-agents/operating-cloud-agents-safely",
|
||||
"guides/cloud-agents/automated-security-remediation-with-snyk"
|
||||
]
|
||||
},
|
||||
{
|
||||
"group": "Guides",
|
||||
"pages": [
|
||||
"guides/overview",
|
||||
{
|
||||
"group": "Understanding Continue",
|
||||
"pages": [
|
||||
|
|
@ -288,26 +304,26 @@
|
|||
"guides/notion-continue-guide",
|
||||
"guides/github-pr-review-bot"
|
||||
]
|
||||
},
|
||||
{
|
||||
"group": "Cookbooks",
|
||||
"icon": "book-open-cover",
|
||||
"pages": [
|
||||
"guides/posthog-github-continuous-ai",
|
||||
"guides/continue-docs-mcp-cookbook",
|
||||
"guides/github-mcp-continue-cookbook",
|
||||
"guides/atlassian-mcp-continue-cookbook",
|
||||
"guides/sanity-mcp-continue-cookbook",
|
||||
"guides/sentry-mcp-error-monitoring",
|
||||
"guides/snyk-mcp-continue-cookbook",
|
||||
"guides/supabase-mcp-database-workflow",
|
||||
"guides/dlt-mcp-continue-cookbook",
|
||||
"guides/netlify-mcp-continuous-deployment",
|
||||
"guides/chrome-devtools-mcp-performance",
|
||||
"guides/klavis-mcp-continue-cookbook"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"group": "Cookbooks",
|
||||
"icon": "book-open-cover",
|
||||
"pages": [
|
||||
"guides/posthog-github-continuous-ai",
|
||||
"guides/continue-docs-mcp-cookbook",
|
||||
"guides/github-mcp-continue-cookbook",
|
||||
"guides/atlassian-mcp-continue-cookbook",
|
||||
"guides/sanity-mcp-continue-cookbook",
|
||||
"guides/sentry-mcp-error-monitoring",
|
||||
"guides/snyk-mcp-continue-cookbook",
|
||||
"guides/supabase-mcp-database-workflow",
|
||||
"guides/dlt-mcp-continue-cookbook",
|
||||
"guides/netlify-mcp-continuous-deployment",
|
||||
"guides/chrome-devtools-mcp-performance",
|
||||
"guides/klavis-mcp-continue-cookbook"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,279 @@
|
|||
---
|
||||
title: "Automatically Remediate High & Critical Vulnerabilities with Cloud Agents"
|
||||
description: "How teams use cloud agents to automatically investigate and remediate high and critical Snyk vulnerabilities safely, reviewably, and without a dedicated security team."
|
||||
sidebarTitle: "Snyk Remediation"
|
||||
---
|
||||
|
||||
## Why This Workflow Exists
|
||||
|
||||
Most teams don’t struggle to *detect* security vulnerabilities. They struggle to *keep up with fixing them*.
|
||||
|
||||
- alerts pile up
|
||||
- critical issues linger
|
||||
- fixes get deferred behind feature work
|
||||
- security becomes reactive instead of routine
|
||||
|
||||
This guide shows how teams use cloud agents to automatically remediate high and critical Snyk vulnerabilities without introducing risk or losing control.
|
||||
|
||||
<Info>
|
||||
**Who this is for?**
|
||||
Full-stack teams without a dedicated AppSec or DevOps function who still need to ship securely.
|
||||
</Info>
|
||||
|
||||
## The Core Problem
|
||||
|
||||
<CardGroup cols={3}>
|
||||
<Card title="Signal Overload">
|
||||
Snyk finds real issues, but teams can’t keep up with triage and fixes.
|
||||
</Card>
|
||||
<Card title="Context Switching">
|
||||
Security work interrupts feature delivery and breaks focus.
|
||||
</Card>
|
||||
<Card title="Manual Toil">
|
||||
Many fixes are repetitive, low-risk, and still handled manually.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Warning>
|
||||
The risk isn’t that vulnerabilities exist. The risk is that known high-severity issues remain unfixed.
|
||||
</Warning>
|
||||
|
||||
## Why use an Agent? (vs. Snyk's Native Auto-PRs)
|
||||
|
||||
Snyk has an excellent "Automatic Fix" feature that opens PRs to upgrade vulnerable dependencies. However, because Snyk cannot run your application's build or test suite, these PRs often break the build and require human cleanup.
|
||||
|
||||
Continue's Cloud Agent sits *on top* of Snyk to complete the engineering work:
|
||||
|
||||
| Feature | Snyk Native Auto-PR | Continue Cloud Agent |
|
||||
| :--- | :--- | :--- |
|
||||
| **The Fix** | "Bump `lodash` to v4.17.21" | "Analyze security issue and create PR with fix" |
|
||||
| **Context** | Vulnerability Database | Vuln DB + Security Impact Analysis |
|
||||
| **Intelligence** |Deterministic (Always bumps version) | Reasoning: "Analyzes dependency risks" and suggests updates |
|
||||
| **Result** | A PR that might break the build | A PR that is green and ready to merge |
|
||||
|
||||
<Tip>
|
||||
Snyk tells you *what* to upgrade. The Cloud Agent does the *engineering work* to make that upgrade safe.
|
||||
</Tip>
|
||||
|
||||
## What Does the Cloud Agent Do?
|
||||
|
||||
A [Snyk remediation cloud agent](https://hub.continue.dev/integrations/snyk) owns the *handling* of security issues, but not the final decision.
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Inputs">
|
||||
- High & critical Snyk vulnerability events
|
||||
- Repository context
|
||||
- Dependency graph and version constraints
|
||||
</Card>
|
||||
|
||||
<Card title="Outputs">
|
||||
- Draft or ready PR with remediation
|
||||
- Clear summary of risk and fix
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Tip>
|
||||
The agent doesn’t silently change production code. It produces **reviewable security PRs**.
|
||||
</Tip>
|
||||
|
||||
## How the Workflow Runs
|
||||
|
||||
<Steps>
|
||||
<Step title="Trigger">
|
||||
A new **high or critical** vulnerability is detected by Snyk
|
||||
(event-driven) or during a scheduled scan.
|
||||
</Step>
|
||||
|
||||
<Step title="Investigate">
|
||||
The agent investigates:
|
||||
- the vulnerable dependency
|
||||
- available remediation paths
|
||||
- breaking-change risk
|
||||
</Step>
|
||||
|
||||
<Step title="Propose a Fix">
|
||||
The agent:
|
||||
- applies the minimal safe update
|
||||
- avoids unnecessary refactors
|
||||
- preserves existing behavior
|
||||
</Step>
|
||||
|
||||
<Step title="Open a PR">
|
||||
A PR is created with:
|
||||
- a clear title
|
||||
- summary of the vulnerability
|
||||
- explanation of the fix
|
||||
</Step>
|
||||
|
||||
<Step title="Human Review">
|
||||
A developer reviews and merges (or adjusts) the fix.
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
## The Agent Configuration
|
||||
|
||||
Continue's Snyk Cloud Agent is built from these core components:
|
||||
|
||||
<CardGroup cols={3}>
|
||||
<Card title="Triggers" icon="bolt">
|
||||
**Webhook:** Snyk new vulnerability event
|
||||
</Card>
|
||||
<Card title="Tools (MCPs)" icon="toolbox">
|
||||
**Snyk MCP:** Fetch vulnerability details
|
||||
</Card>
|
||||
<Card title="Rules" icon="list">
|
||||
**GitHub CLI:** Tells the agent how to create PRs
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
|
||||
```markdown Remediation Prompt expandable
|
||||
A new Snyk vulnerability has been detected. Please investigate and resolve the issue. This should include the following steps:
|
||||
|
||||
**Step 1: Investigate the Issue**
|
||||
Make sure you understand the vulnerability, the options for resolution, and what their consequences are.
|
||||
|
||||
**Step 2: Implement Fix**
|
||||
- Focus on fixing the immediate issue identified
|
||||
- Avoid overdoing it with error handling, cleaning up other problems, etc.
|
||||
- Avoid making breaking changes
|
||||
- Ensure the solution is robust and follows best practices.
|
||||
|
||||
**Step 3: Create Draft Pull Request**
|
||||
Create a draft pull request with the following structure:
|
||||
|
||||
--
|
||||
**PR Title:** [Snyk] <brief description of issue solved>
|
||||
|
||||
## Issue
|
||||
|
||||
**Snyk Link:** [<shortId>](<permalink>)
|
||||
**Issue Type:** `<issue type>`
|
||||
**Priority:** <priority>
|
||||
**Summary:** <Two sentence summary of what caused the issue and how it was fixed>
|
||||
|
||||
```
|
||||
|
||||
## Governance: How This Stays Safe
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Default Mode (Recommended)">
|
||||
**Assisted automation**
|
||||
|
||||
- Agent runs automatically
|
||||
- PRs require human approval
|
||||
- CI must pass before merge
|
||||
|
||||
*This is where most teams should live.*
|
||||
</Tab>
|
||||
|
||||
<Tab title="Early Adoption">
|
||||
**Manual / On-Demand**
|
||||
|
||||
- Agent is triggered manually
|
||||
- Used to validate behavior and build trust
|
||||
</Tab>
|
||||
|
||||
<Tab title="Advanced">
|
||||
**Selective Automation**
|
||||
|
||||
- Narrow classes of fixes only
|
||||
- Patch-level updates
|
||||
- Strict constraints and rollback paths
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## What This Replaces (and What It Doesn’t)
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="This replaces…">
|
||||
- manual dependency bump PRs
|
||||
- repetitive vulnerability triage
|
||||
- security work that constantly interrupts feature delivery
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="This does NOT replace…">
|
||||
- security design reviews
|
||||
- architectural threat modeling
|
||||
- decisions about major upgrades or breaking changes
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
|
||||
## Why Cloud Agents (Not Just CI or Scripts) for Automatic Security Remediation
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Why Not Just CI?">
|
||||
CI can *detect* vulnerabilities,
|
||||
but it can’t reason about fixes or propose patches.
|
||||
</Card>
|
||||
|
||||
<Card title="Why Cloud Agents Work">
|
||||
Cloud agents:
|
||||
- interpret Snyk findings
|
||||
- choose appropriate fixes
|
||||
- produce PRs developers can review
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Tip>
|
||||
CI enforces. Cloud agents **respond**.
|
||||
</Tip>
|
||||
|
||||
## Security Benefits Teams See
|
||||
|
||||
<CardGroup cols={3}>
|
||||
<Card title="Faster Remediation">
|
||||
High-severity issues are fixed days or weeks sooner.
|
||||
</Card>
|
||||
<Card title="Less Interruptions">
|
||||
Developers review PRs instead of context-switching to triage.
|
||||
</Card>
|
||||
<Card title="Security as Hygiene">
|
||||
Vulnerabilities stop piling up and become routine maintenance.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
|
||||
## A Good First Setup
|
||||
|
||||
<Info title="Recommended starting constraints">
|
||||
- Only **high & critical** vulnerabilities
|
||||
- One repo or service
|
||||
- PRs only (no direct merges)
|
||||
- CI required before merge
|
||||
- Named owner for review
|
||||
</Info>
|
||||
|
||||
## Where This Fits in the Bigger Picture
|
||||
|
||||
This workflow is often a team’s **first successful cloud agent** because:
|
||||
|
||||
- the ROI is immediate
|
||||
- the risk is bounded
|
||||
- the output is reviewable
|
||||
- leadership already cares about the problem
|
||||
|
||||
Once this is working, teams often expand into:
|
||||
- error remediation
|
||||
- dependency hygiene
|
||||
- operational cleanup
|
||||
|
||||
## Where to Go Next
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Snyk Integration Docs" href="/guides/cloud-agents/operating-cloud-agents-safely">
|
||||
More information on the Continue Snyk Integration and how you can get started today.
|
||||
</Card>
|
||||
|
||||
<Card title="Add the Snyk Integration" href="https://hub.continue.dev/integrations/snyk">
|
||||
Get started by adding the Snyk integration to your projects
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
|
||||
## One Sentence to Remember
|
||||
|
||||
<Tip>
|
||||
Cloud agents turn security remediation from an interruption into routine maintenance.
|
||||
</Tip>
|
||||
238
docs/guides/cloud-agents/cloud-agents-taxonomy.mdx
Normal file
238
docs/guides/cloud-agents/cloud-agents-taxonomy.mdx
Normal file
|
|
@ -0,0 +1,238 @@
|
|||
---
|
||||
title: "The Cloud Agents Taxonomy"
|
||||
description: "A practical taxonomy of cloud agents for software teams, including definitions, categories, triggers, and when to use them safely in production."
|
||||
sidebarTitle: "Cloud Agents Taxonomy"
|
||||
---
|
||||
|
||||
## Why This Taxonomy Exists
|
||||
|
||||
“Cloud agents” is a term that gets used to describe everything from cron jobs to IDE copilots.
|
||||
|
||||
That ambiguity causes teams to:
|
||||
- choose the wrong abstraction
|
||||
- automate too early
|
||||
- or avoid cloud agents entirely because they feel risky
|
||||
|
||||
This guide exists to:
|
||||
|
||||
> **Define what cloud agents actually are, how they differ from other agents, and when they make sense for software teams.**
|
||||
|
||||
## A Clear Definition of Cloud Agents
|
||||
|
||||
<Info>
|
||||
A **cloud agent** is an AI-driven process that runs on remote infrastructure, is triggered by tasks, schedules, or external events, and uses reasoning over changing inputs to produce reviewable outcomes across shared engineering systems.
|
||||
</Info>
|
||||
|
||||
Key characteristics:
|
||||
- runs outside a developer’s local environment
|
||||
- operates on shared team context (repos, alerts, analytics, infra)
|
||||
- produces reviewable outcomes (PRs, reports, actions)
|
||||
- can run asynchronously and repeatedly
|
||||
|
||||
Cloud agents exist to **handle work that benefits from reasoning, shared context, and reviewability.**
|
||||
|
||||
## What Cloud Agents Are Often Confused With
|
||||
|
||||
Cloud agents are often confused with other tools.
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Not IDE Agents">
|
||||
IDE agents focus on individual productivity and local context. Cloud agents operate on shared systems and team-owned work.
|
||||
</Card>
|
||||
|
||||
<Card title="Not Just Cron Jobs">
|
||||
Cron is a trigger. Cloud agents reason over changing inputs and produce reviewable outcomes.
|
||||
</Card>
|
||||
|
||||
<Card title="Not One-Off Scripts">
|
||||
Scripts execute fixed logic. Cloud agents apply reasoning and shared context even for a single run.
|
||||
</Card>
|
||||
|
||||
<Card title="Not Magic Automation">
|
||||
Cloud agents still require review, ownership, and guardrails.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
## The Two Axes That Matter
|
||||
|
||||
Cloud agents are best understood along **two dimensions**:
|
||||
1. **What triggers them**
|
||||
2. **How they’re governed**
|
||||
|
||||
Everything else is implementation detail.
|
||||
|
||||
```mermaid
|
||||
quadrantChart
|
||||
title Cloud Agents Taxonomy
|
||||
x-axis One-Off --> Event-Driven
|
||||
y-axis Manual --> Automated
|
||||
|
||||
quadrant-1 Automated & Event-Driven
|
||||
quadrant-2 Manual & Event-Driven
|
||||
quadrant-3 Manual & One-Off
|
||||
quadrant-4 Automated & Scheduled
|
||||
|
||||
"Weekly dependency updates" : [0.65, 0.85]
|
||||
"Security scan with PR review" : [0.75, 0.60]
|
||||
"One-off repo audit" : [0.25, 0.25]
|
||||
"Nightly analytics summary" : [0.45, 0.75]
|
||||
"Incident response triage" : [0.85, 0.40]
|
||||
```
|
||||
|
||||
*Most teams start bottom-left and move diagonally as trust increases to create their [Continuous AI Workflow](../continuous-ai).*
|
||||
|
||||
## Axis 1: Cloud Agent Trigger Type
|
||||
|
||||
### 1. One-Off Cloud Agents
|
||||
*Manually triggered when a human explicitly dispatches work to an agent. One-off cloud agents are first-class agents that differ by trigger, not by capability.*
|
||||
|
||||
<Columns cols={2}>
|
||||
<Card title="Examples">
|
||||
- Analyze the top recurring Sentry errors
|
||||
- Audit a repo for security issues
|
||||
- Summarize system behavior
|
||||
</Card>
|
||||
<Card title="Best for">
|
||||
- Unknown scope
|
||||
- Exploratory work
|
||||
- Building confidence before automation
|
||||
</Card>
|
||||
</Columns>
|
||||
|
||||
### 2. Scheduled Cloud Agents
|
||||
*Time-based triggers that run on a fixed cadence (daily, weekly, hourly).*
|
||||
|
||||
<Columns cols={2}>
|
||||
<Card title="Examples">
|
||||
- Weekly vulnerability scans
|
||||
- Nightly analytics summaries
|
||||
- Regular dependency updates
|
||||
</Card>
|
||||
<Card title="Best for">
|
||||
- Predictable recurring work
|
||||
- Backlog prevention
|
||||
- Drift detection
|
||||
</Card>
|
||||
</Columns>
|
||||
|
||||
### 3. Event-Driven Cloud Agents
|
||||
*Signal-based triggers that react to real-time events from external systems.*
|
||||
|
||||
<Columns cols={2}>
|
||||
<Card title="Examples">
|
||||
- New high-severity alert
|
||||
- Failed deployment
|
||||
- Critical security finding
|
||||
</Card>
|
||||
<Card title="Best for">
|
||||
- Operational workflows
|
||||
- Incident response
|
||||
- Time-sensitive fixes
|
||||
</Card>
|
||||
</Columns>
|
||||
|
||||
## Axis 2: Cloud Agent Governance Level
|
||||
|
||||
This is where most teams get into trouble.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Manual">
|
||||
- Human decides when the agent runs
|
||||
- Human reviews everything
|
||||
|
||||
*Safest starting point.*
|
||||
</Tab>
|
||||
|
||||
<Tab title="Assisted">
|
||||
- Agent runs automatically
|
||||
- Human approves outcomes
|
||||
|
||||
*Where most teams should live first.*
|
||||
</Tab>
|
||||
|
||||
<Tab title="Automated">
|
||||
- Agent runs unattended
|
||||
- Outcomes merge or act directly
|
||||
|
||||
*Earned over time — not assumed.*
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
<Warning>
|
||||
Cloud agents don’t fail because they’re autonomous. They fail because teams skip the control phase.
|
||||
</Warning>
|
||||
|
||||
## Cloud Agents vs Local / IDE Agents
|
||||
|
||||
| Local / IDE Agents | Cloud Agents |
|
||||
|------------------|-------------|
|
||||
| Individual context | Team context |
|
||||
| Short-lived | Long-running |
|
||||
| Developer-initiated | System-initiated |
|
||||
| Productivity focus | Reliability & ownership focus |
|
||||
|
||||
Both are useful. They solve different problems.
|
||||
|
||||
## Why Cloud Agents Exist at All
|
||||
|
||||
Most engineering pain is recurrence.
|
||||
|
||||
- alerts repeat
|
||||
- security issues resurface
|
||||
- operational work interrupts feature work
|
||||
|
||||
Cloud agent workflows exist to:
|
||||
- notice repetition
|
||||
- respond consistently
|
||||
- reduce future interruptions
|
||||
|
||||
The goal is not more automation. The goal is less work over time.
|
||||
|
||||
## When Cloud Agents Make Sense
|
||||
|
||||
Use cloud agents when:
|
||||
- the same class of issue keeps returning
|
||||
- the cost is in handling, not solving
|
||||
- work spans multiple systems
|
||||
- review and traceability matter
|
||||
|
||||
Avoid them when:
|
||||
- the problem is novel
|
||||
- ownership is unclear
|
||||
- blast radius isn’t understood yet
|
||||
|
||||
## The Architectural Reality
|
||||
|
||||
As teams adopt cloud agents, they discover:
|
||||
|
||||
> **Agents alone don’t scale without control and visibility.**
|
||||
|
||||
Production cloud agents eventually require:
|
||||
- a shared place to review runs
|
||||
- a record of decisions
|
||||
- adjustable prompts and rules
|
||||
- gradual automation
|
||||
|
||||
Without this, cloud agents become brittle fast.
|
||||
|
||||
---
|
||||
|
||||
## Where to Go Next
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Developer’s Guide to Cloud Agents" href="/guides/cloud-agents/guide-to-cloud-agents">
|
||||
Learn how cloud agents are implemented and used in practice.
|
||||
</Card>
|
||||
|
||||
<Card title="Mission Control" href="https://mission.continue.dev">
|
||||
Explore how teams manage cloud agents safely at scale.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
---
|
||||
|
||||
## One Sentence to Remember
|
||||
|
||||
<Callout type="success">
|
||||
Cloud agents are how teams take ownership of work that happens after code ships.
|
||||
</Callout>
|
||||
127
docs/guides/cloud-agents/cloud-agents-vs-ci.mdx
Normal file
127
docs/guides/cloud-agents/cloud-agents-vs-ci.mdx
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
---
|
||||
title: "Cloud Agents vs CI/CD"
|
||||
description: "Understand when cloud agents complement CI/CD jobs and when CI is the better tool."
|
||||
sidebarTitle: "Vs CI/CD"
|
||||
---
|
||||
|
||||
<Card title="Why Cloud Agents vs CI/CD?">
|
||||
Many teams see cloud agents and think: “Isn’t this just CI?” Sometimes the answer is yes and that’s good. CI is excellent. This guide explains the boundary so you choose the right tool.
|
||||
</Card>
|
||||
|
||||
|
||||
## What CI/CD Is Great At
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="CI/CD Excels When">
|
||||
- **Deterministic** — the same inputs produce the same results
|
||||
- **Repeatable** — runs consistently on every commit
|
||||
- **Policy-enforced** — clear pass/fail rules
|
||||
- **Strongly testable** — success can be verified automatically
|
||||
</Card>
|
||||
|
||||
<Card title="Common CI/CD Tasks">
|
||||
- Run tests
|
||||
- Build artifacts
|
||||
- Enforce lint rules
|
||||
- Run static analysis
|
||||
- Execute fixed scripts
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
## Where CI/CD Breaks Down
|
||||
|
||||
CI/CD is weaker when the work requires:
|
||||
- interpretation of changing signals
|
||||
- multi-system context (errors + analytics + issues)
|
||||
- generating patches with reasoning
|
||||
- summarizing incidents across tools
|
||||
- deciding next steps based on incomplete information
|
||||
|
||||
|
||||
## What Cloud Agents Add
|
||||
|
||||
Cloud agents are useful when the job is:
|
||||
- triage + propose
|
||||
- interpret + summarize
|
||||
- patch + open a PR
|
||||
- coordinate across systems
|
||||
|
||||
<Info>
|
||||
CI is the best executor of deterministic checks. Cloud agents are best at interpreting signals and producing reviewable outcomes.
|
||||
</Info>
|
||||
|
||||
|
||||
## Practical Pairings for CI + Cloud Agents
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
participant Dev as Developer
|
||||
participant Repo as Code Repository
|
||||
participant CI as CI Pipeline (GitHub Actions)
|
||||
participant MC as Mission Control
|
||||
participant Agent as Cloud Agent (Continue)
|
||||
|
||||
Dev->>Repo: git push (feature-branch)
|
||||
Repo->>CI: Trigger Build & Test
|
||||
|
||||
rect rgb(255, 240, 240)
|
||||
Note over CI: ❌ Build Fails (Lint/Test Error)
|
||||
CI->>MC: Emit failure + logs
|
||||
MC->>Agent: Dispatch "Fix Build" task (attach logs + repo context)
|
||||
end
|
||||
|
||||
Note over Agent: 1. Analyzes error logs<br/>2. Proposes minimal fix
|
||||
Agent->>Repo: Push fix to agent branch
|
||||
Agent->>Repo: Open **draft PR** ("[Fix Build] <summary>")
|
||||
|
||||
Repo->>CI: Trigger Build & Test (PR checks)
|
||||
|
||||
rect rgb(240, 255, 240)
|
||||
Note over CI: ✅ Build Passes (PR checks)
|
||||
end
|
||||
|
||||
CI->>MC: Report status on PR
|
||||
MC->>Dev: Notify "Draft PR ready for review"
|
||||
```
|
||||
### Pattern 1: CI detects, Agent responds
|
||||
|
||||
- CI detects failure or policy issue
|
||||
- Cloud agent proposes fix and opens PR
|
||||
- Human reviews
|
||||
|
||||
### Pattern 2: Agent prepares, CI verifies
|
||||
- Cloud agent proposes changes
|
||||
- CI runs tests and checks
|
||||
- PR is only mergeable if CI passes
|
||||
|
||||
### Pattern 3: Agent maintains, CI enforces
|
||||
- Agent keeps dependencies tidy weekly
|
||||
- CI ensures nothing breaks on merge
|
||||
|
||||
|
||||
## A Simple Decision Table
|
||||
|
||||
| If your work is... | Prefer... |
|
||||
|---|---|
|
||||
| deterministic & testable | CI/CD |
|
||||
| interpretive & contextual | Cloud agent |
|
||||
| needs a patch proposal | Cloud agent + CI validation |
|
||||
| needs strict policy enforcement | CI/CD |
|
||||
|
||||
---
|
||||
|
||||
## Where to Go Next
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Explore Cloud Agent Integrations" icon="rocket" href="https://hub.continue.dev/integrations">
|
||||
|
||||
Browse ready-to-use AI agents in Continue Mission Control.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Mission Control Setup" icon="terminal" href="https://hub.continue.dev">
|
||||
|
||||
Get started with Continue Mission Control.
|
||||
|
||||
</Card>
|
||||
</CardGroup>
|
||||
118
docs/guides/cloud-agents/from-task-to-automation.mdx
Normal file
118
docs/guides/cloud-agents/from-task-to-automation.mdx
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
---
|
||||
title: "From Task to Automation: How Cloud Agents Earn Trust"
|
||||
description: "A practical path from one-off tasks to safe automation, including governance levels, review, and failure modes."
|
||||
sidebarTitle: "Task → Automation"
|
||||
---
|
||||
|
||||
## The Core Idea
|
||||
|
||||
Cloud agents are powerful, but the real skill is **governance**: knowing what should be manual, assisted, or automated.
|
||||
|
||||
<Info>
|
||||
If you want the taxonomy first, including more information on trigger types + governance levels, check out the [Cloud Agents Taxonomy guide](/guides/cloud-agents/cloud-agents-taxonomy).
|
||||
</Info>
|
||||
|
||||
## The Cloud Agent Trust Ladder
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A[Manual / One-Off Task] --> B[Assisted Runs]
|
||||
B --> C[Scheduled Automation]
|
||||
C --> D[Event-Driven Automation]
|
||||
B --> E[Stop / Re-scope]
|
||||
C --> E
|
||||
D --> E
|
||||
%% Styling
|
||||
classDef stage fill:#F4F1FF,stroke:#7B61FF,stroke-width:2px,rx:12,ry:12,color:#1F2937;
|
||||
classDef exit fill:#FFFFFF,stroke:#7B61FF,stroke-width:2px,rx:12,ry:12,color:#1F2937;
|
||||
|
||||
class A,B,C,D stage
|
||||
class E exit
|
||||
|
||||
%% Layout hints
|
||||
linkStyle 0,1,2 stroke:#7B61FF,stroke-width:2px;
|
||||
linkStyle 3,4,5 stroke:#9CA3AF,stroke-width:2px,stroke-dasharray:4 4;
|
||||
```
|
||||
|
||||
|
||||
<Info>
|
||||
Most teams should spend the most time in **Assisted** mode. That’s where trust compounds.
|
||||
</Info>
|
||||
|
||||
## Stage 1: Manual Tasks (Human-Triggered)
|
||||
|
||||
*Goal: Learn the pattern and define review criteria.*
|
||||
|
||||
What you do
|
||||
- Dispatch a task
|
||||
- Review the output carefully
|
||||
- Capture what “good” looks like
|
||||
|
||||
Exit criteria
|
||||
- You can describe expected output in plain language
|
||||
- Failures are understandable (not mysterious)
|
||||
- The work is clearly recurring
|
||||
|
||||
⸻
|
||||
|
||||
## Stage 2: Assisted Runs (Auto-run, Human Approval)
|
||||
*Goal: Reduce handling cost without increasing risk.*
|
||||
|
||||
What changes
|
||||
- The agent runs based on a trigger (schedule/event)
|
||||
- A human reviews outcomes before merge/action
|
||||
|
||||
Best practices
|
||||
- Require PRs/diffs as outputs
|
||||
- Use checklists for review
|
||||
- Keep blast radius small (one repo, one class of issues)
|
||||
|
||||
⸻
|
||||
|
||||
## Stage 3: Scheduled Automation
|
||||
|
||||
*Goal: Prevent backlog by handling predictable work on a cadence.*
|
||||
|
||||
Best fits
|
||||
- dependency hygiene
|
||||
- weekly security remediation
|
||||
- routine cleanup
|
||||
|
||||
Guardrails
|
||||
- bounded scope
|
||||
- predictable triggers
|
||||
- clear rollback path
|
||||
|
||||
⸻
|
||||
|
||||
## Stage 4: Event-Driven Automation
|
||||
*Goal: Respond quickly to high-signal events.*
|
||||
|
||||
Best fits
|
||||
- high-severity security findings
|
||||
- production regressions with clear patterns
|
||||
- incident triage summaries
|
||||
|
||||
Guardrails
|
||||
- tight scope
|
||||
- rapid feedback loops
|
||||
- human review of outcomes
|
||||
|
||||
## Common Cloud Agent Failure Modes (and Fixes)
|
||||
<AccordionGroup>
|
||||
<Accordion title="Failure: Automating before review criteria exist">
|
||||
**Fix:** Start manual. Write explicit acceptance criteria. Move to assisted only after you can review quickly.
|
||||
</Accordion>
|
||||
<Accordion title="Failure: Too broad a scope" >
|
||||
**Fix:** Restrict to one repo, one class of issues, one trigger.
|
||||
</Accordion>
|
||||
<Accordion title="Failure: No clear owner" >
|
||||
**Fix:** Assign ownership before automation. Automation without ownership creates invisible work.
|
||||
</Accordion>
|
||||
<Accordion title="Failure: Outputs aren’t reviewable">
|
||||
**Fix:** Prefer PRs, diffs, and reports over “actions taken silently.”
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
|
||||
|
||||
188
docs/guides/cloud-agents/guide-to-cloud-agents.mdx
Normal file
188
docs/guides/cloud-agents/guide-to-cloud-agents.mdx
Normal file
|
|
@ -0,0 +1,188 @@
|
|||
---
|
||||
title: "The Developer’s Guide to Cloud Agents"
|
||||
description: "Learn how Cloud Agents are implemented and used in practice, from on-demand tasks to automated workflows in Mission Control."
|
||||
---
|
||||
|
||||
<Note>
|
||||
This guide assumes you already understand what Cloud Agents are and when to use them. If you’re looking for a clear definition, categories, and mental models, start with the **[Cloud Agents Taxonomy](../cloud-agents/cloud-agents-taxonomy)**.
|
||||
</Note>
|
||||
|
||||
## Introduction: Moving Beyond "Chat"
|
||||
|
||||
For the last few years, AI coding has been defined by the Local Copilot: a chat window in your IDE that helps you write a function or explain a snippet. It is a powerful tool, but it has a hard limit because it requires *you* to be the driver. If you close your laptop, it stops working. If you switch contexts, it loses focus.
|
||||
|
||||
<Card title="The Shift to Cloud Agents" icon="cloud">
|
||||
|
||||
Cloud Agents move AI execution from your local machine to remote infrastructure. Instead of just "chatting" with a model, you **dispatch work** to it. Whether you trigger it manually from a task list or set it to run automatically on a schedule, the heavy lifting happens in the cloud, unblocking your local environment and enabling true automation.
|
||||
|
||||
</Card>
|
||||
|
||||
## How Cloud Agents Are Implemented in Practice
|
||||
|
||||
Cloud Agents are AI-driven processes that run on remote infrastructure and are triggered by tasks, schedules, or events across a team’s engineering systems.
|
||||
|
||||
With Continue, Cloud Agents run in [Mission Control](../../mission-control), where teams configure execution, connect tools, review outcomes, and decide which workflows become automated over time.
|
||||
|
||||
<Info>
|
||||
|
||||
Because they run on persistent cloud infrastructure, these agents are not limited to the files currently open in your text editor. They maintain secure connections to your broader engineering ecosystem—GitHub, Linear, Sentry, Snyk, and more—allowing them to read code, open Pull Requests, and triage alerts without human supervision.
|
||||
|
||||
</Info>
|
||||
|
||||
### Common Components in a Production Cloud Agent
|
||||
|
||||
Most production Cloud Agents share a common structure that balances reasoning, action, and guardrails.
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Prompt" icon="message">
|
||||
|
||||
The core instruction defining the task.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Model" icon="brain">
|
||||
|
||||
The LLM powering the reasoning.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Tools (MCPs)" icon="wrench">
|
||||
|
||||
The capabilities to fetch data or take action.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Rules" icon="shield">
|
||||
|
||||
The guardrails ensuring the output matches your team's coding standards.
|
||||
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
## The Two Modes: Interactive vs. Automated
|
||||
|
||||
This section focuses on *how* Cloud Agents are executed day to day, not *whether* they should be used.
|
||||
|
||||
The defining feature of a Cloud Agent isn't just *automation*; it is **availability**. Because the compute is remote, you can interact with Cloud Agents in two distinct ways depending on the complexity of the task:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="On-Demand Tasks">
|
||||
|
||||
### Human-in-the-Loop Approach
|
||||
|
||||
You can trigger agents manually (with Continue, use the [Continue CLI](../../cli/overview) or [Mission Control](../../mission-control)) when you need a one-off task that you want to review.
|
||||
|
||||
<Card title="Example: Refactor Task" icon="code">
|
||||
|
||||
You send a "Refactor" task to a Cloud Agent. It clones the repo, runs the refactor in the cloud, and creates a PR for you to approve. **You can close your laptop while it works.**
|
||||
|
||||
</Card>
|
||||
|
||||
**Best for:**
|
||||
- Exploring agent capabilities
|
||||
- Fixes you don't want to break your focus for
|
||||
- Tasks requiring human review before deployment
|
||||
|
||||
</Tab>
|
||||
|
||||
<Tab title="Automated Workflows">
|
||||
|
||||
### Headless Approach
|
||||
|
||||
You configure these agents to run in the background based on triggers, with no human intervention required until the final PR review.
|
||||
|
||||
<Card title="Example: Security Agent" icon="lock">
|
||||
|
||||
A "[Security Agent](https://hub.continue.dev/integrations/snyk)" automatically opens PRs for Snyk issues with high and critical security vulnerabilities and implements the fixes.
|
||||
|
||||
</Card>
|
||||
|
||||
**Best for:**
|
||||
- Continuous security monitoring
|
||||
- Automated dependency updates without breaking things
|
||||
- Event-driven workflows
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
|
||||
## Why "Cloud" Matters
|
||||
|
||||
The distinction between running an agent locally (TUI/IDE) and in the cloud (Mission Control) comes down to **scope** and **reliability**.
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="Compute Location" icon="server">
|
||||
|
||||
- **Local Agents:** Run on your local machine
|
||||
- **Cloud Agents:** Run on remote cloud infrastructure
|
||||
|
||||
Cloud Agents free up your local resources for development work while heavy AI tasks run in the background.
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Primary Use Case" icon="bullseye">
|
||||
|
||||
- **Local Agents:** Fast, private iteration and "single-player" coding
|
||||
- **Cloud Agents:** Collaborative tasks, heavy processing, and reliable automation
|
||||
|
||||
Choose local for quick iterations, cloud for team-wide workflows.
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Context Access" icon="folder-open">
|
||||
|
||||
- **Local Agents:** Limited to open files and local git state
|
||||
- **Cloud Agents:** Full repository access + [integrated tools](https://hub.continue.dev/integrations) (Sentry, Snyk, Linear, etc.)
|
||||
|
||||
Cloud Agents can access your entire engineering ecosystem, not just what's visible in your IDE.
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Triggers" icon="bolt">
|
||||
|
||||
- **Local Agents:** Manual Chat / CLI
|
||||
- **Cloud Agents:** Hybrid approach—Manual Chat, Cron Schedules, or Event Webhooks
|
||||
|
||||
Cloud Agents support both manual execution and automated scheduling.
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Availability" icon="clock">
|
||||
|
||||
- **Local Agents:** Stop when you close your laptop
|
||||
- **Cloud Agents:** **Always On**—Runs asynchronously in the background
|
||||
|
||||
This is the key differentiator: Cloud Agents work 24/7, even when you're offline.
|
||||
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
## Getting Started
|
||||
|
||||
Ready to build your first Cloud Agent? Check out these resources:
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Explore Cloud Agent Integrations" icon="rocket" href="https://hub.continue.dev/integrations">
|
||||
|
||||
Browse ready-to-use AI agents in Continue Mission Control.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Create Your Own Agent" icon="hammer" href="/agents/create-and-edit">
|
||||
|
||||
Learn how to build custom Cloud Agents.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="MCP Tools Guide" icon="plug" href="/customize/mcp-tools">
|
||||
|
||||
Connect your agents to external services.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Mission Control Setup" icon="terminal" href="https://hub.continue.dev">
|
||||
|
||||
Get started with Continue Mission Control.
|
||||
|
||||
</Card>
|
||||
</CardGroup>
|
||||
233
docs/guides/cloud-agents/operating-cloud-agents-safely.mdx
Normal file
233
docs/guides/cloud-agents/operating-cloud-agents-safely.mdx
Normal file
|
|
@ -0,0 +1,233 @@
|
|||
---
|
||||
title: "Operating Cloud Agents Safely"
|
||||
description: "Guardrails for running cloud agents in production: ownership, permissions, review, auditability, and blast radius."
|
||||
sidebarTitle: "Operate Safely"
|
||||
---
|
||||
|
||||
<Card title="The Goal">
|
||||
|
||||
Cloud agents should reduce risk and interruptions not introduce new ones. This guide covers practical guardrails that make cloud agents safe for real teams.
|
||||
</Card>
|
||||
|
||||
## The Safety Baseline for Cloud Agents
|
||||
|
||||
<CardGroup cols={3}>
|
||||
<Card title="Ownership">
|
||||
Every workflow has a named owner and an escalation path.
|
||||
</Card>
|
||||
<Card title="Reviewability">
|
||||
Outputs are diffable, explainable, and revertible.
|
||||
</Card>
|
||||
<Card title="Bounded Scope">
|
||||
One repo →
|
||||
one workflow →
|
||||
one trigger.
|
||||
*Expand only after success.*
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
|
||||
## A Safe Adoption Path
|
||||
|
||||
<Steps>
|
||||
<Step title="Start Manual">
|
||||
Run as a one-off task. Validate cloud agent outputs and define acceptance criteria.
|
||||
</Step>
|
||||
|
||||
<Step title="Move to Assisted">
|
||||
Allow automated triggering, but keep human approval before merge/action.
|
||||
</Step>
|
||||
|
||||
<Step title="Automate Selectively">
|
||||
Only automate workflows with predictable blast radius, clear rollback, and stable output quality.
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
<Warning title="The most common failure">
|
||||
Cloud agents don’t fail because they’re autonomous.
|
||||
They fail because teams automate before they’ve defined review criteria and ownership.
|
||||
</Warning>
|
||||
|
||||
## 1) Ownership Comes First
|
||||
|
||||
Before you automate anything, make these true:
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Name an Owner">
|
||||
One person is responsible for:
|
||||
- reviewing outcomes
|
||||
- tuning prompts/rules
|
||||
- responding to failures
|
||||
</Card>
|
||||
|
||||
<Card title="Define Escalation">
|
||||
Decide what happens when:
|
||||
- the cloud agent can’t complete work
|
||||
- output confidence is low
|
||||
- a run fails repeatedly
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="What good ownership looks like">
|
||||
- The workflow has a dedicated Slack channel or notification route
|
||||
- There is a “stop the line” decision owner
|
||||
- Ownership does not rotate implicitly (it’s explicit)
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Red flags">
|
||||
- “Whoever sees it first” is the owner
|
||||
- Alerts route to a general channel with no responder
|
||||
- No one feels safe turning it off
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
## 2) Constrain Blast Radius
|
||||
|
||||
The fastest path to trust is a smaller blast radius.
|
||||
|
||||
<CardGroup cols={3}>
|
||||
<Card title="Start with One Repo">
|
||||
Pick a low-risk repo or a single service to prove value.
|
||||
</Card>
|
||||
|
||||
<Card title="One Class of Issues">
|
||||
Narrow the scope: one recurring error type, one vuln class, one cleanup task.
|
||||
</Card>
|
||||
|
||||
<Card title="Cap Output Size">
|
||||
Set expectations like “no more than N files” or “single dependency PRs.”
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Callout type="info" title="A good first constraint">
|
||||
Prefer PRs and reports over direct writes or production actions.
|
||||
</Callout>
|
||||
|
||||
## 3) Review Is the Safety Rail
|
||||
|
||||
Treat every cloud agent run like you’d treat a teammate’s PR.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Review checklist">
|
||||
Use a lightweight checklist:
|
||||
|
||||
- [ ] Does the change match the prompt intent?
|
||||
- [ ] Is the blast radius clear?
|
||||
- [ ] Are tests updated or unaffected?
|
||||
- [ ] Are failure cases acceptable?
|
||||
- [ ] Is rollback straightforward?
|
||||
</Tab>
|
||||
|
||||
<Tab title="What “reviewable” means">
|
||||
Reviewable outputs are:
|
||||
|
||||
- **Diffable** (PRs, patches, file changes)
|
||||
- **Explainable** (short rationale, linked inputs)
|
||||
- **Revertible** (easy rollback path)
|
||||
</Tab>
|
||||
|
||||
<Tab title="When to block merge">
|
||||
Block merge when:
|
||||
|
||||
- scope is unexpectedly broad
|
||||
- behavior changes are unclear
|
||||
- it introduces new dependencies without justification
|
||||
- it “fixes” by deleting or disabling core functionality
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## 4) Permissions: Least Privilege by Default
|
||||
|
||||
Give agents the smallest set of permissions required for the job.
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="Permission guidelines">
|
||||
- Prefer **read-only** until the workflow proves reliable
|
||||
- Prefer **PR creation** over direct push
|
||||
- Scope external tools (Sentry/Snyk/etc.) to the minimum endpoints
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Practical permission levels">
|
||||
- Level 1: Read repo + create report
|
||||
- Level 2: Create PRs (drafts first)
|
||||
- Level 3: Update PRs based on review comments
|
||||
- Level 4: Automate merges only for narrow, proven workflows
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
<Callout type="warning" title="Avoid early">
|
||||
Do not start with permissions that allow silent writes to main or production mutations.
|
||||
</Callout>
|
||||
|
||||
## 5) Observability & Auditability
|
||||
|
||||
If you can’t answer these questions, you don’t have a safe system yet:
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Run provenance">
|
||||
- What ran?
|
||||
- Why did it run?
|
||||
- What inputs did it use?
|
||||
</Card>
|
||||
|
||||
<Card title="Outcome tracking">
|
||||
- What did it change?
|
||||
- Who reviewed/approved it?
|
||||
- Did it succeed or require intervention?
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Callout type="info" title="Why this matters">
|
||||
Auditability turns “AI did something” into “we can explain what happened.”
|
||||
That’s the difference between experimentation and production.
|
||||
</Callout>
|
||||
|
||||
## 6) Failure Handling & Safe Defaults
|
||||
|
||||
Set defaults that fail safely.
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="Recommended default behaviors">
|
||||
- **Fail closed** (no silent actions)
|
||||
- If uncertain, produce a **report** instead of a change
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Common failure modes">
|
||||
- External tool API is unavailable
|
||||
- Repo state changed mid-run
|
||||
- Cloud agent proposes a fix that doesn’t pass CI
|
||||
- Output becomes noisy (too many PRs/reports)
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Recovery playbook">
|
||||
- Pause the workflow
|
||||
- Reduce scope / increase constraints
|
||||
- Move back a governance level (Automated → Assisted → Manual)
|
||||
- Update acceptance criteria and rerun
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
## Pre-Flight Checklist
|
||||
|
||||
<Card icon="cloud-check" title="Ready to run safely?">
|
||||
- [ ] Workflow owner is named
|
||||
- [ ] Trigger is defined and bounded
|
||||
- [ ] Outputs are reviewable (PR/report)
|
||||
- [ ] Permissions follow least-privilege
|
||||
- [ ] Blast radius is constrained
|
||||
- [ ] Failure handling is defined
|
||||
- [ ] There is a way to pause/disable quickly
|
||||
</Card>
|
||||
|
||||
## Where to Go Next
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="From Task → Automation" href="/guides/cloud-agents/from-task-to-automation">
|
||||
The trust ladder for moving from manual to automated safely.
|
||||
</Card>
|
||||
|
||||
<Card title="Automated Security Remediation" href="/guides/cloud-agents/automated-security-remediation-with-snyk">
|
||||
Proven starter workflow with clear triggers and review points.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
89
docs/guides/cloud-agents/when-to-use-cloud-agents.mdx
Normal file
89
docs/guides/cloud-agents/when-to-use-cloud-agents.mdx
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
---
|
||||
title: "When to Use Cloud Agents (and When Not To)"
|
||||
description: "A decision guide for choosing cloud agents vs scripts, CI jobs, or local agents—plus a checklist for safe adoption."
|
||||
sidebarTitle: "When to Use"
|
||||
---
|
||||
|
||||
## When Cloud Agents Make Sense
|
||||
This guide helps you decide whether **cloud agents** are the right abstraction for your problem.
|
||||
|
||||
<Tip>
|
||||
Use cloud agents when the work is **recurring**, spans **multiple systems**, and needs **team-owned outcomes**. If you want the canonical definition and taxonomy first, read: [Cloud Agents Taxonomy](/guides/cloud-agents/cloud-agents-taxonomy).
|
||||
</Tip>
|
||||
|
||||
Use cloud agents when:
|
||||
|
||||
- The same class of issue returns weekly (or daily)
|
||||
- The work is mostly handling (triage, patching, cleanup), not discovery
|
||||
- Inputs come from tools like GitHub, error monitoring, security scanners, analytics
|
||||
- You need a reviewable outcome (PR, report, ticket update)
|
||||
- You want to reduce interruptions, not just respond faster
|
||||
|
||||
<Columns cols={2}>
|
||||
<Card title="Great fits">
|
||||
|
||||
- security remediation
|
||||
- recurring error triage
|
||||
- dependency hygiene
|
||||
- analytics-driven fixes
|
||||
|
||||
</Card>
|
||||
<Card title="Common triggers">
|
||||
- task dispatch
|
||||
- schedules
|
||||
- event webhooks
|
||||
</Card>
|
||||
</Columns>
|
||||
|
||||
## When Cloud Agents Are a Bad Idea
|
||||
|
||||
Avoid cloud agents when:
|
||||
|
||||
- The problem is novel and poorly understood
|
||||
- The blast radius is unclear
|
||||
- Ownership is ambiguous (“someone should handle this”)
|
||||
- You can’t define review criteria
|
||||
- The work is better solved by eliminating the root cause directly
|
||||
|
||||
<Warning>
|
||||
Cloud agents amplify whatever system you already have. If ownership is unclear, automation will make it worse.
|
||||
</Warning>
|
||||
|
||||
|
||||
## Cloud Agents vs Alternatives
|
||||
|
||||
## Comparison Matrix
|
||||
|
||||
| Feature | Scripts / CI Jobs | Local Agents (TUI) | Cloud Agents (Headless) |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **Logic** | Deterministic (If/Then) | AI / Probabilistic | AI / Probabilistic |
|
||||
| **Context** | Inputs only | Full Repo + User Chat | Repo + Integrations (Snyk/GitHub/etc.) |
|
||||
| **Interaction** | None (Logs only) | Interactive (Conversations) | Autonomous (Fire & Forget) |
|
||||
| **Tool Access** | Unlimited | All (Ask permission supported) | Safe (No "Ask" tools) |
|
||||
| **Best For** | Testing, Building, Linting | Debugging, Refactoring, Exploration | Triage, Remediation, Reporting |
|
||||
|
||||
## The Decision Checklist
|
||||
|
||||
Use cloud agents if you can say “yes” to most of these:
|
||||
|
||||
- [ ] We’ve seen this problem at least twice
|
||||
- [ ] Inputs come from shared systems (alerts, issues, analytics)
|
||||
- [ ] We can define what “good output” looks like
|
||||
- [ ] A PR/report is an acceptable artifact
|
||||
- [ ] Someone owns reviewing the result
|
||||
- [ ] We can start in a manual or assisted mode
|
||||
|
||||
<Info>
|
||||
If you’re unsure, start with a one-off [task](../../mission-control/tasks) and treat it like an experiment.
|
||||
</Info>
|
||||
|
||||
## Where to Go Next
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Build Your Own Agent" href="https://hub.continue.dev/agents/new">
|
||||
Customize an agent for your team in minutes.
|
||||
</Card>
|
||||
<Card title="Cloud Agent Integrations" href="https://hub.continue.dev/agents/integrations">
|
||||
Explore pre-built integrations for common tools and workflows.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
|
@ -9,6 +9,17 @@ description: "Comprehensive collection of practical guides for Continue includin
|
|||
- [How to Self-Host a Model](/guides/how-to-self-host-a-model) - Self-hosting AI models
|
||||
- [Running Continue Without Internet](/guides/running-continue-without-internet) - Offline development setup
|
||||
|
||||
## Cloud Agents
|
||||
|
||||
- [Cloud Agents Taxonomy](/guides/cloud-agents/cloud-agents-taxonomy) - Different types of cloud agents and their use cases
|
||||
- [Developers Guide to Cloud Agents](/guides/cloud-agents/guide-to-cloud-agents) - Overview of cloud agents and their benefits
|
||||
- [When to Use Cloud Agents](/guides/cloud-agents/when-to-use-cloud-agents) - Deciding when cloud agents are the right tool
|
||||
- [From Manual to Automated Cloud Agents](/guides/cloud-agents/from-task-to-automation) - Transitioning from manual to automated workflows
|
||||
- [Cloud Agents vs CI/CD](/guides/cloud-agents/cloud-agents-vs-ci) - When to use cloud agents vs CI/CD pipelines
|
||||
- [Operating Cloud Agents Safely](/guides/cloud-agents/operating-cloud-agents-safely) - Best practices for secure cloud agent operation
|
||||
- [Automated Security Remediation with Snyk](/guides/cloud-agents/automated-security-remediation-with-snyk) - Using cloud agents for security fixes
|
||||
|
||||
|
||||
## Continuous AI
|
||||
|
||||
- [Continuous AI: A Developer's Guide](/guides/continuous-ai) - Integrating AI into development workflows
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ Mission Control currently supports these first-class Cloud Agent integrations:
|
|||
</Card>
|
||||
|
||||
<Card title="Sentry" icon="bug" href="/mission-control/integrations/sentry">
|
||||
Trigger Agents automatically when new Sentry issues appear.
|
||||
Trigger Cloud Agents automatically when new Sentry issues appear.
|
||||
</Card>
|
||||
|
||||
<Card title="Snyk" icon="shield-check" href="/mission-control/integrations/snyk">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue