Merge pull request #9225 from continuedev/docs/integrations-updates
This commit is contained in:
commit
9f5f1fc152
10 changed files with 476 additions and 2059 deletions
|
|
@ -40,7 +40,8 @@
|
|||
"mission-control/integrations/slack-agent",
|
||||
"mission-control/integrations/posthog",
|
||||
"mission-control/integrations/atlassian",
|
||||
"mission-control/integrations/netlify"
|
||||
"mission-control/integrations/netlify",
|
||||
"mission-control/integrations/supabase"
|
||||
]
|
||||
},
|
||||
"mission-control/metrics",
|
||||
|
|
|
|||
|
|
@ -2,301 +2,76 @@
|
|||
title: "Atlassian Integration"
|
||||
description: "Connect Jira, Confluence, and Compass to automate project management with Continue Agents"
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Connect Jira, Confluence, and Compass to Continue Mission Control to enable agents to manage issues, search tickets, summarize pages, and bulk-process tasks using natural language. When Atlassian is enabled, Continue can automatically translate technical code changes into business-friendly updates, keeping stakeholders informed.
|
||||
|
||||
<Card title="What You Can Do with Atlassian Integration" icon="diagram-project">
|
||||
|
||||
- Automatically update Jira tickets with business-friendly summaries on PR merge
|
||||
<Card
|
||||
title="Connect Atlassian to enable agents to:"
|
||||
icon="diagram-project"
|
||||
href="https://hub.continue.dev/integrations/atlassian"
|
||||
>
|
||||
- Update Jira tickets automatically on PR merge
|
||||
- Translate code changes into business-friendly summaries
|
||||
- Search issues and create tickets using natural language
|
||||
- Summarize Confluence pages and documentation
|
||||
- Bulk-process tasks across multiple tickets
|
||||
- Triage incoming issues automatically
|
||||
- Generate documentation from code changes
|
||||
- Track development progress with stakeholder-friendly language
|
||||
|
||||
- Reduce manual project-management overhead for developers
|
||||
</Card>
|
||||
|
||||
## Setup
|
||||
---
|
||||
|
||||
<Steps>
|
||||
## Official Workflow Templates
|
||||
|
||||
<Step title="Navigate to Integrations">
|
||||
|
||||
Go to your [Atlassian Integration Settings](https://hub.continue.dev/integrations/atlassian).
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Connect Atlassian">
|
||||
|
||||
Click "Connect" to Atlassian.
|
||||
|
||||
</Step>
|
||||
<Step title="Authorize Continue">
|
||||
|
||||
In the Atlassian authorization screen:
|
||||
1. Log into your Atlassian account
|
||||
2. Review the requested permissions
|
||||
3. Click "Authorize" to complete the connection
|
||||
</Step>
|
||||
|
||||
</Steps>
|
||||
|
||||
|
||||
## Workflows
|
||||
|
||||
### Update Jira Tickets
|
||||
|
||||
**Trigger**: On PR merge
|
||||
**Description**: Connect Jira, Confluence, and Compass to your agents. Search issues, create tickets, summarize pages, and bulk-process tasks with natural language.
|
||||
|
||||
When a pull request is merged, this workflow automatically:
|
||||
|
||||
1. **Extracts Jira Ticket ID** - Finds the ticket reference from:
|
||||
- PR title (e.g., `[PROJ-123] Add feature`)
|
||||
- Branch name (e.g., `feature/PROJ-123-description`)
|
||||
- PR description or comments
|
||||
|
||||
2. **Analyzes Code Changes** - Reviews the merged PR to identify:
|
||||
- What changed (files, features, components)
|
||||
- Why it matters (business value, problem solved)
|
||||
- Impact (user-facing changes, performance improvements)
|
||||
- Risk level (Low/Medium/High based on scope)
|
||||
|
||||
3. **Creates Business Summary** - Translates technical changes into clear, non-technical language:
|
||||
- Focuses on **outcomes over implementation**
|
||||
- Highlights **business value** and user benefits
|
||||
- Uses **plain language** avoiding technical jargon
|
||||
- Explains who benefits and how
|
||||
|
||||
4. **Updates Jira Ticket** - Posts a formatted comment with:
|
||||
- Business-friendly summary of what was accomplished
|
||||
- Key changes in business terms
|
||||
- Impact on users or stakeholders
|
||||
- Technical metadata (files changed, merge details, PR link)
|
||||
|
||||
5. **Comments on PR** - Adds a link back to the updated Jira ticket
|
||||
|
||||
<Card title="Why This Matters" icon="users">
|
||||
|
||||
Technical code changes are often difficult for stakeholders to understand. This workflow bridges the gap between development and business by:
|
||||
- Keeping product managers informed without technical details
|
||||
- Providing business stakeholders with clear progress updates
|
||||
- Reducing manual ticket updates for developers
|
||||
- Creating a clear audit trail of work completed
|
||||
|
||||
</Card>
|
||||
|
||||
<Info>
|
||||
|
||||
**Smart Translation**: The agent automatically converts technical terms into business language. For example, "Refactored authentication module" becomes "Users can now stay logged in longer without interruptions."
|
||||
|
||||
</Info>
|
||||
|
||||
## Use Cases
|
||||
|
||||
You can also create your own Atlassian-connected agents in Mission Control. Here are some examples for these use cases:
|
||||
|
||||
<Columns cols={2}>
|
||||
<Card title="Issue Creator Agent" icon="ticket">
|
||||
|
||||
**Task Example**: "Create Jira tickets for all TODO comments in the codebase with priority based on code location"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Scans codebase for TODO and FIXME comments
|
||||
- Creates Jira issues with relevant context
|
||||
- Links issues to code files and line numbers
|
||||
- Assigns priority based on file criticality
|
||||
|
||||
**Run in Mission Control**: Schedule weekly or after major releases
|
||||
|
||||
</Card>
|
||||
|
||||
|
||||
Streamline sprint planning with intelligent automation:
|
||||
|
||||
<Card title="Sprint Planner Agent" icon="calendar-days">
|
||||
|
||||
**Task Example**: "Analyze backlog items and create a proposed sprint plan based on team velocity and priorities"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Reviews open Jira issues and their estimates
|
||||
- Considers team capacity and historical velocity
|
||||
- Groups related tickets together
|
||||
- Creates a proposed sprint with balanced workload
|
||||
|
||||
**Run in Mission Control**: Run before sprint planning meetings
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Docs Sync Agent" icon="book-open">
|
||||
|
||||
**Task Example**: "Update Confluence API documentation to match current OpenAPI spec"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Parses API specifications from codebase
|
||||
- Compares with existing Confluence documentation
|
||||
- Updates or creates Confluence pages with changes
|
||||
- Notifies team of significant API changes
|
||||
|
||||
**Run in Mission Control**: Trigger on API spec changes or schedule weekly
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Release Notes Agent" icon="megaphone">
|
||||
|
||||
**Task Example**: "Generate release notes from closed Jira tickets since last release and publish to Confluence"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Queries Jira for tickets closed since last release
|
||||
- Categorizes changes (features, fixes, improvements)
|
||||
- Generates formatted release notes
|
||||
- Creates or updates Confluence release page
|
||||
|
||||
**Run in Mission Control**: Trigger manually before releases
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Project Health Agent" icon="chart-line">
|
||||
|
||||
**Task Example**: "Analyze current sprint progress and identify blocked or at-risk items"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Reviews sprint board status
|
||||
- Identifies tickets without recent updates
|
||||
- Flags dependencies and blockers
|
||||
- Generates summary report in Confluence
|
||||
|
||||
**Run in Mission Control**: Schedule daily during active sprints
|
||||
|
||||
</Card>
|
||||
</Columns>
|
||||
|
||||
## Running Atlassian Agents in Mission Control
|
||||
You can run Supabase-connected agents in two ways as [one-off tasks](../tasks) or automated [workflows](../workflows):
|
||||
The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Atlassian-based updates.
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Update Jira Tickets" icon="ticket">
|
||||
Automatically translate merged pull requests into clear, business-friendly Jira updates that explain what changed, why it matters, and who benefits.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Tip>
|
||||
|
||||
Start with manual tasks to refine your content queries, then automate repetitive content management and validation tasks.
|
||||
|
||||
Official workflow templates may expand over time as new patterns are validated. You can view, enable, and configure this workflow in **[Mission Control → Integrations → Atlassian](https://hub.continue.dev/integrations/atlassian)**.
|
||||
</Tip>
|
||||
|
||||
|
||||
## Optional Workflow Enhancements
|
||||
## Advanced Use Cases
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="Smart Tagging">
|
||||
|
||||
Automatically add Jira labels based on code changes:
|
||||
|
||||
- `frontend-update` - UI/UX changes detected
|
||||
- `backend-update` - API or database changes
|
||||
- `bugfix` - Resolves bugs or issues
|
||||
- `feature` - New functionality added
|
||||
- `security` - Security improvements
|
||||
- `performance` - Performance optimizations
|
||||
</Accordion>
|
||||
<Accordion title="Stakeholder Mentions">
|
||||
|
||||
Tag relevant people in Jira based on components modified:
|
||||
|
||||
- Payment processing changes → `@finance-team`
|
||||
- User interface changes → `@product-manager`
|
||||
- Security updates → `@security-lead`
|
||||
- API modifications → `@api-architect`
|
||||
</Accordion>
|
||||
<Accordion title="Release Notes Generation">
|
||||
|
||||
Accumulate business-friendly summaries for release documentation:
|
||||
|
||||
- Store formatted summaries in `.release-notes/{version}/`
|
||||
- Automatically compile summaries into Confluence release pages
|
||||
- Generate customer-facing changelog from Jira updates
|
||||
- Include impact metrics and user benefits
|
||||
</Accordion>
|
||||
<Accordion title="Metrics Tracking">
|
||||
|
||||
Log metadata for reporting and analytics:
|
||||
|
||||
- Time from ticket creation to PR merge
|
||||
- Number of files changed per ticket
|
||||
- Business impact category (high/medium/low)
|
||||
- Stakeholder engagement (comments, mentions)
|
||||
- Risk level distribution across releases
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
<Accordion title="Authentication failures">
|
||||
|
||||
**Problem**: Agent can't connect to Atlassian services
|
||||
|
||||
**Solutions**:
|
||||
- Verify API token hasn't expired
|
||||
- Check that email matches the token's account
|
||||
- Ensure domain includes `.atlassian.net`
|
||||
- Regenerate token if necessary
|
||||
<Accordion title="Advanced: Custom Atlassian Workflow Ideas">
|
||||
These examples are not officially maintained by the Continue team, but illustrate what’s possible with custom workflows.
|
||||
|
||||
- Generate stakeholder-ready release notes from Jira activity
|
||||
- Summarize sprint progress and risks in Confluence
|
||||
- Automatically triage incoming Jira issues
|
||||
- Create tickets from TODOs or code comments
|
||||
- Maintain audit trails linking code changes to business outcomes
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Permission denied errors">
|
||||
---
|
||||
## Access & Permissions
|
||||
|
||||
**Problem**: Agent can't create or update items
|
||||
When connecting Atlassian, you’ll authorize Continue to access Jira, Confluence, and Compass data based on your account permissions.
|
||||
|
||||
**Solutions**:
|
||||
- Verify your Atlassian account has appropriate permissions
|
||||
- Check project-level permissions in Jira
|
||||
- Ensure space permissions are correct in Confluence
|
||||
- Contact your Atlassian admin if needed
|
||||
- **Project and space access**
|
||||
Agents can only access Jira projects and Confluence spaces you are permitted to view or edit.
|
||||
|
||||
</Accordion>
|
||||
- **Permissions**
|
||||
Approved permissions allow Continue to read and update Jira tickets, summarize Confluence pages, and create links back to related pull requests.
|
||||
|
||||
---
|
||||
|
||||
<Accordion title="Issues not found or accessible">
|
||||
|
||||
**Problem**: Agent reports Jira issues don't exist
|
||||
|
||||
**Solutions**:
|
||||
- Verify issue keys are correct (e.g., PROJECT-123)
|
||||
- Check that you have access to the project
|
||||
- Ensure issues aren't in a restricted project
|
||||
- Verify your API token has read access
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Confluence pages not updating">
|
||||
|
||||
**Problem**: Documentation changes aren't reflected in Confluence
|
||||
|
||||
**Solutions**:
|
||||
- Check that you have edit permissions for the space
|
||||
- Verify page IDs are correct
|
||||
- Ensure Confluence Cloud API is accessible
|
||||
- Review agent logs for specific error messages
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Rate limiting errors">
|
||||
|
||||
**Problem**: Agent hits Atlassian API rate limits
|
||||
|
||||
**Solutions**:
|
||||
- Reduce frequency of automated workflows
|
||||
- Batch operations where possible
|
||||
- Implement exponential backoff in agent logic
|
||||
- Consider upgrading Atlassian plan for higher limits
|
||||
|
||||
</Accordion>
|
||||
|
||||
## Resources
|
||||
|
||||
|
||||
<Card title="Atlassian MCP Cookbook" icon="book-open" href="/guides/atlassian-mcp-continue-cookbook">
|
||||
|
||||
Comprehensive guide to project management automation with Atlassian and Continue
|
||||
## Support & Resources
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card
|
||||
title="Atlassian MCP Cookbook"
|
||||
icon="book-open"
|
||||
href="/guides/atlassian-mcp-continue-cookbook"
|
||||
>
|
||||
Practical examples for automating Jira and Confluence with Continue agents.
|
||||
</Card>
|
||||
|
||||
<Card
|
||||
title="GitHub Integration"
|
||||
icon="github"
|
||||
href="https://hub.continue.dev/settings/integrations/github"
|
||||
>
|
||||
Combine Atlassian and GitHub to keep code and tickets in sync.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,11 @@
|
|||
---
|
||||
title: "GitHub Integration"
|
||||
description: "Connect to GitHub to allow Continue Agents to read and create PRs on your repositories"
|
||||
description: "Connect your GitHub account to Continue Mission Control to enable agents to interact with your repositories. Once connected, agents can read code, create pull requests, manage issues, and automate your development workflow."
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Connect your GitHub account to Continue Mission Control to enable agents to interact with your repositories. Once connected, agents can read code, create pull requests, manage issues, and automate your development workflow.
|
||||
|
||||
<Card title="What You Can Do with GitHub Integration" icon="github">
|
||||
<Card title="Connect the GitHub Integration to:" icon="github" href="https://hub.continue.dev/integrations/github"
|
||||
>
|
||||
|
||||
- Automatically create pull requests from agent tasks
|
||||
- Read and analyze repository code and issues
|
||||
|
|
@ -18,173 +16,56 @@ Connect your GitHub account to Continue Mission Control to enable agents to inte
|
|||
</Card>
|
||||
|
||||
|
||||
## Setup
|
||||
## Official Workflow Templates
|
||||
|
||||
<Steps>
|
||||
The following **official workflow templates** are maintained by the Continue team and are available directly in the Mission Control Hub. These workflows are designed to work out of the box and represent the recommended ways to automate GitHub-based tasks.
|
||||
|
||||
<Step title="Navigate to Integrations">
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Update AGENTS.md" icon="robot">
|
||||
Keeps your <code>AGENTS.md</code> file in sync with the agents and capabilities used in your repository.
|
||||
</Card>
|
||||
|
||||
Go to your [Integrations Settings](https://hub.continue.dev/integrations).
|
||||
<Card title="Draft Changelog Updates" icon="list">
|
||||
Creates draft changelog entries based on recent merged pull requests.
|
||||
</Card>
|
||||
|
||||
</Step>
|
||||
<Card title="Explain Codebase" icon="code">
|
||||
Generates a high-level explanation of your repository’s structure and architecture.
|
||||
</Card>
|
||||
|
||||
<Step title="Connect GitHub">
|
||||
<Card title="Refactor React Components" icon="toolbox">
|
||||
Periodically identifies and refactors large or complex React components.
|
||||
</Card>
|
||||
|
||||
Click "Connect" next to GitHub and authorize the Continue app in your GitHub account.
|
||||
<Card title="Improve Test Coverage" icon="shield-check">
|
||||
Makes incremental improvements to test coverage on a recurring schedule.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
</Step>
|
||||
<Tip>Official workflow templates may expand over time as new patterns are validated. You can view, enable, and configure these workflows in **Mission Control → Integrations → GitHub**.</Tip>
|
||||
|
||||
<Step title="Select Repository Access">
|
||||
## Advanced Use Cases
|
||||
<Accordion title="Advanced: Custom GitHub Workflow Ideas">
|
||||
You can create custom workflows using Continue agents to automate a variety of GitHub-related tasks. Here are some ideas to get you started:
|
||||
- Automatically triage new issues with labels and suggested assignees
|
||||
- Review pull requests for security or performance concerns
|
||||
- Draft documentation updates based on code changes
|
||||
- Detect deprecated APIs and open migration issues
|
||||
- Summarize repository activity for weekly team updates
|
||||
</Accordion>
|
||||
---
|
||||
## Access & Permissions
|
||||
|
||||
Choose whether to grant access to all repositories or select specific ones. You can always modify this later in your GitHub settings.
|
||||
When connecting GitHub, you’ll be asked to configure repository access and approve permissions.
|
||||
|
||||
</Step>
|
||||
- **Repository access**
|
||||
Choose whether to grant access to all repositories or select specific ones. You can change this at any time in your GitHub settings.
|
||||
|
||||
<Step title="Confirm Permissions">
|
||||
|
||||
Review and approve the requested permissions. Continue needs these to perform automated tasks on your behalf.
|
||||
|
||||
</Step>
|
||||
|
||||
</Steps>
|
||||
|
||||
## Use Cases
|
||||
|
||||
### Automated Issue Resolution
|
||||
|
||||
Create agents that automatically fix bugs and open PRs:
|
||||
|
||||
<Card title="Bug Fixer Agent" icon="bug">
|
||||
|
||||
**Task Example**: "Review issues labeled 'bug' and create PRs to fix any that are straightforward"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Scans your repository for issues with the "bug" label
|
||||
- Analyzes the bug description and reproduces the issue
|
||||
- Generates a fix and creates a pull request
|
||||
- Adds a link back to the original issue
|
||||
|
||||
**Run in Mission Control**: Create as a scheduled automation or trigger manually
|
||||
|
||||
</Card>
|
||||
|
||||
### Pull Request Management
|
||||
|
||||
Automate code reviews and PR maintenance:
|
||||
|
||||
<Card title="PR Review Agent" icon="code-pull-request">
|
||||
|
||||
**Task Example**: "Review open PRs for code quality, security issues, and best practices"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Analyzes code changes in open pull requests
|
||||
- Identifies potential bugs, security vulnerabilities, or style issues
|
||||
- Adds review comments with suggestions
|
||||
- Approves PRs that meet quality standards
|
||||
|
||||
**Run in Mission Control**: Set up as an automation triggered on new PRs
|
||||
|
||||
</Card>
|
||||
|
||||
### Documentation Generation
|
||||
|
||||
Keep your docs up-to-date automatically:
|
||||
|
||||
<Card title="Docs Updater Agent" icon="book">
|
||||
|
||||
**Task Example**: "Update README and API documentation based on recent code changes"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Detects changes to public APIs or features
|
||||
- Generates updated documentation
|
||||
- Creates a PR with doc updates
|
||||
- Links documentation to related code changes
|
||||
|
||||
**Run in Mission Control**: Schedule to run after releases or major merges
|
||||
|
||||
</Card>
|
||||
|
||||
### Project Management
|
||||
|
||||
Automate issue triage and project organization:
|
||||
|
||||
<Card title="Issue Triage Agent" icon="list-check">
|
||||
|
||||
**Task Example**: "Triage new issues by adding labels, assigning to appropriate team members, and linking related issues"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Analyzes new issue descriptions
|
||||
- Applies relevant labels (bug, feature, documentation, etc.)
|
||||
- Suggests team members to assign based on expertise
|
||||
- Identifies and links related issues or PRs
|
||||
|
||||
**Run in Mission Control**: Create as an automation triggered on new issues
|
||||
|
||||
</Card>
|
||||
|
||||
### Release Management
|
||||
|
||||
Automate your release process:
|
||||
|
||||
<Card title="Release Notes Generator" icon="rocket">
|
||||
|
||||
**Task Example**: "Generate release notes from merged PRs since last release and create a draft release"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Collects all merged PRs since the last tag
|
||||
- Categorizes changes (features, fixes, breaking changes)
|
||||
- Generates formatted release notes
|
||||
- Creates a draft GitHub release for review
|
||||
|
||||
**Run in Mission Control**: Trigger manually or on a schedule before releases
|
||||
|
||||
</Card>
|
||||
|
||||
### Code Quality Monitoring
|
||||
|
||||
Maintain code standards across your codebase:
|
||||
|
||||
<Card title="Code Quality Agent" icon="shield-check">
|
||||
|
||||
**Task Example**: "Scan the codebase for deprecated API usage and create issues with migration guides"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Identifies usage of deprecated functions or libraries
|
||||
- Generates migration recommendations
|
||||
- Creates individual issues for each deprecated usage
|
||||
- Provides code examples for the upgrade path
|
||||
|
||||
**Run in Mission Control**: Schedule monthly or after dependency updates
|
||||
|
||||
</Card>
|
||||
|
||||
## Running GitHub Agents in Mission Control
|
||||
|
||||
You can run GitHub-connected agents in two ways:
|
||||
|
||||
### 1. Manual Tasks
|
||||
|
||||
Trigger agents on-demand for specific tasks:
|
||||
|
||||
1. Go to [Mission Control Agents](https://hub.continue.dev/hub?type=agents)
|
||||
2. Select or create a GitHub-enabled agent
|
||||
3. Click "Run Agent" and provide your task description
|
||||
4. Monitor progress and review results in real-time
|
||||
|
||||
### 2. Automated Workflows
|
||||
|
||||
Set up agents to run automatically:
|
||||
|
||||
- **Scheduled**: Run daily, weekly, or on a custom schedule
|
||||
- **Triggered**: Execute when specific events occur (new issues, PR opened, etc.)
|
||||
- **Webhook**: Integrate with external services to trigger agents
|
||||
|
||||
<Tip>
|
||||
|
||||
Start with manual tasks to test your agent's behavior, then convert successful workflows to automations once you're confident in the results.
|
||||
|
||||
</Tip>
|
||||
- **Permissions**
|
||||
Review and approve the requested permissions. These allow Continue to read repository data and perform automated actions like opening pull requests on your behalf.
|
||||
|
||||
You can revisit or revoke access at any time from GitHub or the Mission Control Hub.
|
||||
---
|
||||
|
||||
## Support & Resources
|
||||
|
||||
|
|
|
|||
|
|
@ -1,395 +1,113 @@
|
|||
---
|
||||
title: "Netlify Integration"
|
||||
description: "Give your agents access to Netlify's API and CLI to manage deployments and optimize website performance"
|
||||
description: "Connect **Netlify** to Mission Control so agents can automatically catch performance regressions by comparing preview and production deploys when code ships."
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Connect Netlify to Continue Mission Control to give your agents access to Netlify's API and CLI. Create projects, deploy applications, configure domains, and manage infrastructure with natural language. When Netlify is enabled, Continue can analyze bundle sizes, audit performance, and prevent performance regressions.
|
||||
|
||||
<Card title="What You Can Do with Netlify Integration" icon="bolt">
|
||||
|
||||
- Run Lighthouse audits on PR previews and production
|
||||
- Compare bundle sizes and analyze performance regressions
|
||||
- Automatically detect configuration issues (minification, caching, tree-shaking)
|
||||
- Block PRs that introduce critical performance problems
|
||||
- Generate detailed performance reports with actionable fixes
|
||||
- Create projects and manage domains with natural language
|
||||
- Configure build settings and environment variables
|
||||
|
||||
<Card
|
||||
title="Connect Netlify to enable agents to:"
|
||||
icon="bolt"
|
||||
href="https://hub.continue.dev/integrations/netlify"
|
||||
>
|
||||
- Run Lighthouse audits on preview and production deploys
|
||||
- Compare bundle sizes and detect performance regressions
|
||||
- Surface configuration issues like disabled minification or caching
|
||||
- Post clear performance summaries directly to pull requests
|
||||
</Card>
|
||||
|
||||
## Setup
|
||||
## Official Workflow Templates
|
||||
|
||||
<Steps>
|
||||
The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Netlify performance checks.
|
||||
|
||||
<Step title="Navigate to Integrations">
|
||||
|
||||
Go to your [Integrations Settings](https://hub.continue.dev/integrations).
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Connect Netlify">
|
||||
|
||||
Click "Connect" next to Netlify. You'll need:
|
||||
|
||||
- **Personal Access Token**: Generate from Netlify account settings
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Generate Netlify Access Token">
|
||||
|
||||
To create a personal access token:
|
||||
1. Log into your [Netlify account](https://app.netlify.com)
|
||||
2. Go to **User Settings** → **Applications** → **Personal access tokens**
|
||||
3. Click "New access token"
|
||||
4. Give it a descriptive name (e.g., "Continue Mission Control")
|
||||
5. Copy the token immediately
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Add Token to Mission Control">
|
||||
|
||||
Paste your access token into the integration form and click "Create Connection"
|
||||
|
||||
</Step>
|
||||
|
||||
</Steps>
|
||||
|
||||
<Tip>
|
||||
|
||||
**Token Scope**: Personal access tokens have full access to your Netlify account. Create a token specifically for Continue to maintain security and easy revocation if needed.
|
||||
|
||||
</Tip>
|
||||
|
||||
## Workflows
|
||||
|
||||
### Optimize Website Performance
|
||||
|
||||
**Trigger**: On PR merge
|
||||
**Description**: Run Lighthouse audits on PR preview and production to compare performance
|
||||
|
||||
When a pull request is merged, this performance-focused workflow automatically:
|
||||
|
||||
1. **Retrieves Deployment Information** - Uses Netlify MCP to get:
|
||||
- Production deploy URL and metadata
|
||||
- Deploy preview URL for the PR branch
|
||||
- Build artifacts and configuration
|
||||
|
||||
2. **Analyzes Bundle Sizes** - Compares JavaScript and CSS bundles:
|
||||
- Downloads and measures all asset files
|
||||
- Calculates total bundle size for both deploys
|
||||
- Identifies largest individual files
|
||||
- Detects unminified or bloated assets
|
||||
|
||||
3. **Reviews Build Configuration** - Examines:
|
||||
- `vite.config.ts` or `webpack.config.js` for minification settings
|
||||
- `netlify.toml` for cache headers and build commands
|
||||
- `package.json` for redundant or oversized dependencies
|
||||
|
||||
4. **Identifies Performance Issues** - Classifies problems by severity:
|
||||
- 🔴 **Critical**: Minification disabled, bundle size >50% increase, no caching
|
||||
- ⚠️ **Warning**: No code splitting, large chunks >500KB, 20-50% bundle increase
|
||||
- ℹ️ **Info**: Suboptimal configurations, bundle size less than 20% increase
|
||||
|
||||
5. **Generates Actionable Report** - Posts to PR with:
|
||||
- Bundle size comparison table
|
||||
- Root cause analysis with file references and line numbers
|
||||
- Code fixes that can be copy-pasted
|
||||
- Merge recommendation (Approved/Review Needed/Blocked)
|
||||
- Expected improvements from each fix
|
||||
|
||||
<Card title="Why This Matters" icon="gauge-high">
|
||||
|
||||
Performance regressions often slip through code review because:
|
||||
- Bundle size increases aren't visible in diffs
|
||||
- Configuration errors (disabled minification) go unnoticed
|
||||
- Redundant dependencies accumulate over time
|
||||
|
||||
This workflow catches these issues automatically before they reach production.
|
||||
|
||||
</Card>
|
||||
|
||||
<Info>
|
||||
|
||||
**Smart Analysis**: The agent doesn't just report bundle sizes—it analyzes build configurations, identifies root causes, and provides specific code fixes with line numbers.
|
||||
|
||||
</Info>
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Optimize Website Performance" icon="gauge-high">
|
||||
When a pull request is merged, runs Lighthouse audits comparing preview and production deploys to catch performance regressions before they reach users.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
### Performance Issue Classification
|
||||
|
||||
The agent categorizes issues by severity:
|
||||
The Netlify performance workflow classifies issues so you can quickly understand impact and urgency.
|
||||
<AccordionGroup>
|
||||
<Accordion title="🔴 Critical — Block merge">
|
||||
Issues that indicate severe regressions or broken production configuration.
|
||||
|
||||
<Accordion title="🔴 Critical - Block Merge">
|
||||
|
||||
**Issues that must be fixed before merging:**
|
||||
- Minification disabled (`minify: false`)
|
||||
- Tree-shaking disabled (`treeshake: false`)
|
||||
- No caching headers (`Cache-Control: no-cache`)
|
||||
- Production source maps enabled
|
||||
- Bundle size increase >50%
|
||||
- Redundant dependencies (lodash + underscore, moment + date-fns + dayjs)
|
||||
|
||||
**Action**: Agent recommends blocking the merge
|
||||
- Minification disabled
|
||||
- Tree-shaking disabled
|
||||
- Missing or unsafe cache headers
|
||||
- Production source maps enabled
|
||||
- Bundle size increase greater than 50%
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="⚠️ Warning - Review Required">
|
||||
<Accordion title="⚠️ Warning — Review required">
|
||||
Issues that may negatively impact performance and should be reviewed before release.
|
||||
|
||||
**Issues that need attention:**
|
||||
- No code splitting (single large bundle)
|
||||
- Suboptimal cache headers (max-age too low)
|
||||
- Large individual chunks (>500KB)
|
||||
- Unoptimized images
|
||||
- Bundle size increase 20-50%
|
||||
|
||||
**Action**: Agent recommends careful review before merging
|
||||
- No code splitting (single large bundle)
|
||||
- Large individual chunks (>500KB)
|
||||
- Bundle size increase between 20–50%
|
||||
- Suboptimal cache headers
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="ℹ️ Info - Optimization Opportunities">
|
||||
<Accordion title="ℹ️ Info — Optimization opportunity">
|
||||
Non-blocking improvements and suggestions.
|
||||
|
||||
**Non-blocking improvements:**
|
||||
- Could use better code splitting
|
||||
- Modern browser features could replace polyfills
|
||||
- CSS not extracted/split
|
||||
- Bundle size increase less than 20%
|
||||
|
||||
**Action**: Agent approves merge but suggests optimizations
|
||||
- Better code splitting opportunities
|
||||
- Redundant dependencies
|
||||
- Unoptimized images
|
||||
- Bundle size increase under 20%
|
||||
|
||||
</Accordion>
|
||||
|
||||
## Use Cases
|
||||
|
||||
### Infrastructure as Code
|
||||
|
||||
Manage Netlify infrastructure with natural language:
|
||||
|
||||
<Card title="Infrastructure Manager" icon="server">
|
||||
|
||||
**Task Example**: "Create a new Netlify site for the marketing-site repo with custom domain marketing.company.com"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Creates new Netlify project via API
|
||||
- Connects to specified Git repository
|
||||
- Configures build settings and commands
|
||||
- Sets up custom domain and SSL
|
||||
- Configures environment variables
|
||||
|
||||
**Run in Mission Control**: Run manually when creating new projects
|
||||
|
||||
</Card>
|
||||
|
||||
### Build Configuration Optimization
|
||||
|
||||
Automatically optimize build settings:
|
||||
|
||||
<Card title="Build Optimizer" icon="wrench">
|
||||
|
||||
**Task Example**: "Audit all Netlify sites for missing cache headers and suboptimal build configs"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Reviews `netlify.toml` and build settings
|
||||
- Checks cache header configurations
|
||||
- Identifies missing optimizations
|
||||
- Generates recommended configuration changes
|
||||
- Can apply fixes automatically
|
||||
|
||||
**Run in Mission Control**: Run monthly or after adding new sites
|
||||
|
||||
</Card>
|
||||
|
||||
### Performance Auditing
|
||||
|
||||
Prevent performance regressions before deployment:
|
||||
|
||||
<Card title="Performance Auditor" icon="gauge-high">
|
||||
|
||||
**Task Example**: "Analyze bundle sizes and configurations, block PRs with critical performance issues"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Compares preview and production bundle sizes
|
||||
- Detects disabled minification or tree-shaking
|
||||
- Identifies redundant dependencies (lodash + underscore, multiple date libraries)
|
||||
- Checks cache configuration
|
||||
- Posts detailed report with fixes to PR
|
||||
- Recommends approval, review, or blocking merge
|
||||
|
||||
**Run in Mission Control**: Triggered automatically on PR merge
|
||||
|
||||
</Card>
|
||||
|
||||
### Dependency Analysis
|
||||
|
||||
Identify and fix problematic dependencies:
|
||||
|
||||
<Card title="Dependency Auditor" icon="magnifying-glass">
|
||||
|
||||
**Task Example**: "Find redundant or oversized dependencies across all projects"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Scans `package.json` files in all Netlify sites
|
||||
- Identifies duplicate functionality (multiple date/utility libraries)
|
||||
- Finds oversized packages (>100KB)
|
||||
- Suggests lightweight alternatives
|
||||
- Calculates potential bundle size savings
|
||||
|
||||
**Run in Mission Control**: Run quarterly for dependency cleanup
|
||||
|
||||
</Card>
|
||||
|
||||
### Continuous Performance Monitoring
|
||||
|
||||
Track performance trends over time:
|
||||
|
||||
<Card title="Performance Tracker" icon="chart-line">
|
||||
|
||||
**Task Example**: "Generate a performance trend report for the last 30 deploys"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Queries deploy history via Netlify MCP
|
||||
- Tracks bundle size over time
|
||||
- Identifies gradual performance degradation
|
||||
- Highlights deploysthat introduced regressions
|
||||
- Generates visualization of trends
|
||||
|
||||
**Run in Mission Control**: Schedule weekly for ongoing monitoring
|
||||
|
||||
</Card>
|
||||
|
||||
### Domain and SSL Management
|
||||
|
||||
Manage domains using natural language:
|
||||
|
||||
<Card title="Domain Manager" icon="globe">
|
||||
|
||||
**Task Example**: "Add www.example.com to my site and configure SSL"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Configures custom domains via Netlify API
|
||||
- Sets up SSL certificates automatically
|
||||
- Configures DNS records and redirects
|
||||
- Verifies domain setup and SSL status
|
||||
|
||||
**Run in Mission Control**: Run manually when adding domains
|
||||
|
||||
</Card>
|
||||
|
||||
## Running Netlify Agents in Mission Control
|
||||
|
||||
You can run Netlify-connected agents in two ways as [one-off tasks](../tasks) or automated [workflows](../workflows):
|
||||
|
||||
</AccordionGroup>
|
||||
|
||||
<Tip>
|
||||
|
||||
Start with manual tasks to refine your content queries, then automate repetitive content management and validation tasks.
|
||||
|
||||
Official workflow templates may expand over time as new patterns are validated. You can view, enable, and configure this workflow in **[Mission Control → Integrations → Netlify](https://hub.continue.dev/integrations/netlify)**.
|
||||
</Tip>
|
||||
|
||||
## Advanced Use Cases
|
||||
|
||||
### 2. Automated Workflows
|
||||
|
||||
Set up agents to run automatically:
|
||||
|
||||
- **PR-triggered**: Audit performance when pull requests are merged
|
||||
- **Scheduled**: Run weekly bundle size audits across all sites
|
||||
- **Manual**: Analyze specific deploys or troubleshoot performance issues
|
||||
|
||||
<Tip>
|
||||
|
||||
Start with manual performance audits on specific PRs to refine your thresholds, then enable automated workflows to catch all performance regressions.
|
||||
|
||||
</Tip>
|
||||
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
<Accordion title="Authentication failures">
|
||||
|
||||
**Problem**: Agent can't connect to Netlify API
|
||||
|
||||
**Solutions**:
|
||||
- Verify personal access token is correct
|
||||
- Check that token hasn't been revoked
|
||||
- Ensure token has necessary permissions
|
||||
- Try regenerating the token
|
||||
<Accordion title="Advanced: Custom Netlify Workflow Ideas">
|
||||
These examples are not officially maintained by the Continue team, but illustrate what’s possible with custom workflows.
|
||||
|
||||
- Generate weekly performance trend reports across deploys
|
||||
- Audit build configuration consistency across multiple sites
|
||||
- Track bundle size growth over time
|
||||
- Identify redundant or oversized dependencies
|
||||
- Run performance checks on demand for specific deploys
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Deploy not ready">
|
||||
---
|
||||
|
||||
**Problem**: Deploy preview is still building when agent tries to analyze
|
||||
## Access & Permissions
|
||||
|
||||
**Solutions**:
|
||||
- Verify you have deploy permissions for the site
|
||||
- Check that the site exists and is accessible
|
||||
- Ensure build hooks are configured if using webhooks
|
||||
- Review Netlify API rate limits
|
||||
When connecting Netlify, you’ll provide a **personal access token** so Continue can query deploys and site configuration.
|
||||
|
||||
</Accordion>
|
||||
- **Access token**
|
||||
Generate a personal access token from your Netlify user settings. Tokens grant account-level access, so we recommend creating one specifically for Continue.
|
||||
|
||||
<Accordion title="No deploys found">
|
||||
- **Permissions**
|
||||
Approved access allows Continue to read deploy metadata, fetch build artifacts, and run performance analyses tied to workflows.
|
||||
|
||||
**Problem**: Agent can't find deploy preview for the branch
|
||||
You can revoke or rotate the token at any time from your Netlify account settings.
|
||||
|
||||
**Solutions**:
|
||||
- Verify branch name is correct
|
||||
- Check that PR has triggered a Netlify build
|
||||
- Ensure deploy previews are enabled in Netlify settings
|
||||
- Confirm the repository is connected to Netlify
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Bundle analysis failures">
|
||||
|
||||
**Problem**: Agent can't download or analyze bundles
|
||||
|
||||
**Solutions**:
|
||||
- Verify deploy URLs are accessible
|
||||
- Check for authentication requirements on preview
|
||||
- Ensure assets are being generated correctly
|
||||
- Review build logs for errors
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Deploy previews not found">
|
||||
|
||||
**Problem**: Agent can't locate deploy previews
|
||||
|
||||
**Solutions**:
|
||||
- Verify branch name is correct
|
||||
- Check that deploy previews are enabled for the site
|
||||
- Ensure the commit has triggered a build
|
||||
- Wait for build to complete before querying
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Performance monitoring issues">
|
||||
|
||||
**Problem**: Can't retrieve site performance metrics
|
||||
|
||||
**Solutions**:
|
||||
- Verify Netlify Analytics is enabled for the site
|
||||
- Check that your plan includes analytics access
|
||||
- Ensure time range for queries is valid
|
||||
- Review API documentation for metrics endpoints
|
||||
|
||||
</Accordion>
|
||||
---
|
||||
|
||||
## Support & Resources
|
||||
|
||||
<CardGroup cols={2}>
|
||||
|
||||
<Card title="Netlify MCP Cookbook" icon="book-open" href="/guides/netlify-mcp-continuous-deployment">
|
||||
|
||||
Complete guide to continuous deployment automation with Netlify and Continue
|
||||
|
||||
<Card
|
||||
title="GitHub Integration"
|
||||
icon="github"
|
||||
href="/mission-control/integrations/github"
|
||||
>
|
||||
Combine Netlify and GitHub to run performance checks on PR merges.
|
||||
</Card>
|
||||
|
||||
<Card title="GitHub Integration" icon="github" href="/mission-control/integrations/github">
|
||||
|
||||
Combine Netlify with GitHub for end-to-end CI/CD automation
|
||||
|
||||
<Card
|
||||
title="Netlify MCP Cookbook"
|
||||
icon="book-open"
|
||||
href="/guides/netlify-mcp-continuous-deployment"
|
||||
>
|
||||
Advanced examples for working with Netlify deployments using Continue agents.
|
||||
</Card>
|
||||
|
||||
</CardGroup>
|
||||
|
|
|
|||
|
|
@ -1,238 +1,84 @@
|
|||
---
|
||||
title: "PostHog Integration"
|
||||
description: "Leverage product analytics and feature flags with Continue Agents connected to PostHog"
|
||||
description: "Connect PostHog to Mission Control so agents can keep analytics and tracking in sync with code changes, ensuring dashboards reflect what actually shipped."
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Connect PostHog to Continue Mission Control to enable agents to analyze user behavior, manage feature flags, and optimize product experiences. When PostHog is enabled, Continue can analyze product metrics, automate feature rollouts, and create data-driven development tasks.
|
||||
|
||||
<Card title="What You Can Do with PostHog Integration" icon="chart-line">
|
||||
|
||||
- Analyze user behavior patterns and create optimization tasks
|
||||
- Manage feature flags and gradual rollouts
|
||||
- Generate insights from product analytics
|
||||
- Automate A/B test analysis and reporting
|
||||
- Monitor conversion funnels and user journeys
|
||||
- Create PRs based on analytics insights
|
||||
|
||||
<Card
|
||||
title="Connect PostHog to enable agents to:"
|
||||
icon="chart-line"
|
||||
href="https://hub.continue.dev/integrations/posthog"
|
||||
>
|
||||
- Update analytics dashboards automatically after PRs merge
|
||||
- Keep tracking and feature usage aligned with shipped code
|
||||
- Analyze user behavior and product adoption trends
|
||||
- Reduce manual analytics maintenance for engineering teams
|
||||
</Card>
|
||||
|
||||
## Setup
|
||||
---
|
||||
|
||||
<Steps>
|
||||
## Official Workflow Templates
|
||||
|
||||
<Step title="Navigate to Integrations">
|
||||
The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate PostHog updates.
|
||||
|
||||
Go to your [Integrations Settings](https://hub.continue.dev/integrations).
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Connect PostHog">
|
||||
|
||||
Click "Connect" next to PostHog. You'll need the following credentials:
|
||||
|
||||
- **Project API Key**: Your PostHog project API key
|
||||
- **Host URL**: Your PostHog instance URL (e.g., `https://app.posthog.com` or your self-hosted URL)
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Get PostHog Credentials">
|
||||
|
||||
In your PostHog account:
|
||||
1. Navigate to Project Settings
|
||||
2. Find your Project API Key
|
||||
3. Copy your PostHog instance URL
|
||||
4. Paste both values into Mission Control
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Verify Connection">
|
||||
|
||||
Click "Create Connection" and verify that Continue can access your PostHog data
|
||||
|
||||
</Step>
|
||||
|
||||
</Steps>
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Update PostHog Dashboards" icon="chart-bar">
|
||||
When a pull request is merged, this workflow updates PostHog dashboards and tracking to reflect newly shipped features or changes.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Tip>
|
||||
|
||||
**How to get these credentials:**
|
||||
1. Log into your PostHog account
|
||||
2. Go to **Settings** → **Project API Key**
|
||||
3. Copy your API key
|
||||
4. Note your instance URL (shown in the browser address bar)
|
||||
|
||||
Official workflow templates may expand over time as new analytics patterns are validated. You can view, enable, and configure this workflow in **[Mission Control → Integrations → PostHog](https://hub.continue.dev/integrations/posthog)**.
|
||||
</Tip>
|
||||
|
||||
## Use Cases
|
||||
## Advanced Use Cases
|
||||
|
||||
### Analytics-Driven Development
|
||||
|
||||
Create agents that analyze user behavior and generate development tasks:
|
||||
|
||||
<Card title="Feature Optimization Agent" icon="chart-mixed">
|
||||
|
||||
**Task Example**: "Analyze the checkout flow conversion rate and identify areas for improvement"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Retrieves funnel data from PostHog
|
||||
- Identifies drop-off points in the user journey
|
||||
- Analyzes user session recordings at problem areas
|
||||
- Creates issues or PRs with optimization recommendations
|
||||
|
||||
**Run in Mission Control**: Schedule weekly or trigger after significant traffic changes
|
||||
|
||||
</Card>
|
||||
|
||||
### Feature Flag Management
|
||||
|
||||
Automate feature rollout based on metrics:
|
||||
|
||||
<Card title="Gradual Rollout Agent" icon="flag">
|
||||
|
||||
**Task Example**: "Monitor new checkout feature performance and increase rollout percentage if metrics are positive"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Tracks key metrics for the feature flag
|
||||
- Compares performance against baseline
|
||||
- Automatically adjusts rollout percentage
|
||||
- Alerts team if anomalies are detected
|
||||
|
||||
**Run in Mission Control**: Set up as continuous monitoring workflow
|
||||
|
||||
</Card>
|
||||
|
||||
### Performance Monitoring
|
||||
|
||||
Track and respond to performance issues:
|
||||
|
||||
<Card title="Performance Analysis Agent" icon="gauge-high">
|
||||
|
||||
**Task Example**: "Analyze page load times and create issues for pages slower than 3 seconds"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Queries PostHog for performance metrics
|
||||
- Identifies slow-loading pages
|
||||
- Analyzes common characteristics of slow pages
|
||||
- Creates prioritized issues with performance data
|
||||
|
||||
**Run in Mission Control**: Schedule daily performance audits
|
||||
|
||||
</Card>
|
||||
|
||||
### A/B Test Analysis
|
||||
|
||||
Automate experiment analysis and reporting:
|
||||
|
||||
<Card title="Experiment Analyzer Agent" icon="flask">
|
||||
|
||||
**Task Example**: "Analyze the results of the new homepage A/B test and determine statistical significance"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Retrieves experiment data from PostHog
|
||||
- Performs statistical analysis
|
||||
- Generates comprehensive report with visualizations
|
||||
- Creates recommendations for next steps
|
||||
|
||||
**Run in Mission Control**: Trigger when experiment reaches sample size
|
||||
|
||||
</Card>
|
||||
|
||||
### User Feedback Loop
|
||||
|
||||
Connect analytics insights to code improvements:
|
||||
|
||||
<Card title="UX Enhancement Agent" icon="users">
|
||||
|
||||
**Task Example**: "Identify the top 5 most frustrating user experiences based on rage clicks and session replays"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Analyzes user session data for frustration signals
|
||||
- Reviews session replays of problematic interactions
|
||||
- Identifies common UX issues
|
||||
- Creates detailed bug reports with user context
|
||||
|
||||
**Run in Mission Control**: Run weekly to catch emerging patterns
|
||||
|
||||
</Card>
|
||||
|
||||
## Running PostHog Agents in Mission Control
|
||||
|
||||
You can run PostHog-connected agents in two ways as [one-off tasks](../tasks) or automated [workflows](../workflows):
|
||||
|
||||
|
||||
<Tip>
|
||||
|
||||
Start with manual tasks to refine your content queries, then automate repetitive content management and validation tasks.
|
||||
|
||||
</Tip>
|
||||
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
<Accordion title="Agent can't access PostHog data">
|
||||
|
||||
**Problem**: Agent returns errors when trying to fetch analytics
|
||||
|
||||
**Solutions**:
|
||||
- Verify API key is correct and hasn't expired
|
||||
- Check that the project API key has read permissions
|
||||
- Ensure host URL includes protocol (https://)
|
||||
- Confirm your PostHog plan includes API access
|
||||
<Accordion title="Advanced: Custom PostHog Workflow Ideas">
|
||||
These examples are not officially maintained by the Continue team, but illustrate what’s possible with custom workflows.
|
||||
|
||||
- Generate product insights from usage data and open follow-up issues
|
||||
- Detect tracking gaps when new features ship
|
||||
- Summarize weekly product metrics for stakeholders
|
||||
- Correlate feature flags with user adoption and retention
|
||||
- Trigger investigations when key metrics regress
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Metrics seem incorrect or outdated">
|
||||
---
|
||||
|
||||
**Problem**: Data retrieved doesn't match PostHog dashboard
|
||||
## Access & Permissions
|
||||
|
||||
**Solutions**:
|
||||
- Check that you're querying the correct time range
|
||||
- Verify PostHog data is fully processed (may have slight delay)
|
||||
- Ensure filters and breakdowns match your dashboard
|
||||
- Review agent logs for query parameters
|
||||
When connecting PostHog, you’ll provide an API key that allows Continue to query analytics data and update dashboards.
|
||||
|
||||
</Accordion>
|
||||
- **API key access**
|
||||
You’ll need a PostHog API key with permission to read analytics data and modify dashboards.
|
||||
|
||||
<Accordion title="Feature flag updates not working">
|
||||
- **Project access**
|
||||
Agents can only access the PostHog project associated with the API key you provide.
|
||||
|
||||
**Problem**: Agent can't modify feature flags
|
||||
You can rotate or revoke the API key at any time from your PostHog settings.
|
||||
|
||||
**Solutions**:
|
||||
- Verify API key has write permissions
|
||||
- Check that you're using a Personal API Key (not Project API Key) for modifications
|
||||
- Ensure feature flag exists before attempting updates
|
||||
- Review PostHog API documentation for flag management
|
||||
<Info>
|
||||
PostHog supports both cloud-hosted and self-hosted instances.
|
||||
You’ll need your project’s API key and PostHog host URL available when connecting.
|
||||
</Info>
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Self-hosted PostHog connection issues">
|
||||
|
||||
**Problem**: Can't connect to self-hosted PostHog instance
|
||||
|
||||
**Solutions**:
|
||||
- Verify host URL is accessible from Mission Control
|
||||
- Check firewall rules allow Continue's IP addresses
|
||||
- Ensure SSL certificate is valid if using HTTPS
|
||||
- Test API access with curl or Postman first
|
||||
|
||||
</Accordion>
|
||||
---
|
||||
|
||||
## Support & Resources
|
||||
|
||||
<CardGroup cols={2}>
|
||||
|
||||
<Card title="PostHog GitHub Continuous AI" icon="book-open" href="/guides/posthog-github-continuous-ai">
|
||||
|
||||
Complete guide to building product-led development workflows with PostHog and Continue
|
||||
|
||||
<Card
|
||||
title="PostHog GitHub Continuous AI"
|
||||
icon="book-open"
|
||||
href="/guides/posthog-github-continuous-ai"
|
||||
>
|
||||
Build product-led development workflows using PostHog and Continue.
|
||||
</Card>
|
||||
|
||||
<Card title="GitHub Integration" icon="github" href="/mission-control/integrations/github">
|
||||
|
||||
Combine PostHog with GitHub for data-driven development automation
|
||||
|
||||
<Card
|
||||
title="GitHub Integration"
|
||||
icon="github"
|
||||
href="https://hub.continue.dev/settings/integrations/github"
|
||||
>
|
||||
Combine PostHog and GitHub to keep analytics aligned with code.
|
||||
</Card>
|
||||
|
||||
</CardGroup>
|
||||
|
|
|
|||
|
|
@ -1,349 +1,80 @@
|
|||
---
|
||||
title: "Sanity Integration"
|
||||
description: "Automate content management and schema validation with Continue Agents connected to Sanity"
|
||||
description: "Connect **Sanity** to Mission Control so agents can keep your content documentation in sync with schema and code changes — automatically generating updates when pull requests are opened."
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Connect Sanity to Continue Mission Control to enable agents to manage content, validate schemas, execute GROQ queries, and automate your content workflows. When Sanity is enabled, Continue can explore document types, update content, handle migrations, and maintain content quality across your projects.
|
||||
|
||||
<Card title="What You Can Do with Sanity Integration" icon="pen-to-square">
|
||||
|
||||
- Automatically validate content and schemas on every PR
|
||||
- Execute GROQ queries to analyze and update content
|
||||
- Generate documentation from your content model
|
||||
- Manage content migrations between environments
|
||||
- Monitor content quality and consistency
|
||||
- Automate content creation and updates
|
||||
|
||||
<Card
|
||||
title="Connect Sanity to enable agents to:"
|
||||
icon="file-text"
|
||||
href="https://hub.continue.dev/integrations/sanity"
|
||||
>
|
||||
- Generate and update Sanity schema documentation from PR changes
|
||||
- Explore schemas and content models with natural-language queries
|
||||
- Run GROQ queries to validate content and discover issues
|
||||
- Create and update documents with consistent structure
|
||||
</Card>
|
||||
|
||||
## Setup
|
||||
---
|
||||
|
||||
<Steps>
|
||||
## Official Workflow Templates
|
||||
|
||||
<Step title="Navigate to Integrations">
|
||||
|
||||
Go to [the Sanity Integrations](https://hub.continue.dev/integrations/sanity).
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Connect Sanity">
|
||||
|
||||
"Connect" to Sanity. The integration uses OAuth authentication through the Sanity MCP.
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Authorize Sanity Access">
|
||||
|
||||
Select the Sanity organization and project to connect
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Configure Workflows">
|
||||
|
||||
After connecting, set up your first workflow. The integration supports:
|
||||
- **On PR open**: Validate schemas and content when PRs are created
|
||||
- **Manual tasks**: Run content operations on-demand
|
||||
- **Scheduled jobs**: Periodic content audits and maintenance
|
||||
|
||||
</Step>
|
||||
|
||||
</Steps>
|
||||
|
||||
|
||||
## Workflows
|
||||
|
||||
### Update Sanity schema docs
|
||||
|
||||
**Trigger**: On PR open
|
||||
**Description**: Skip the GROQ lookup. Agents manage your content through conversation.
|
||||
|
||||
When a pull request modifies schema files (`schemas/**/*.{ts,js,tsx,jsx}`, `schemaTypes/**/*`, or `sanity.config.{ts,js}`), this workflow automatically:
|
||||
|
||||
1. **Connects to Sanity** - Fetches the complete current schema using Sanity MCP
|
||||
2. **Analyzes Changes** - Identifies new, modified, or removed document types
|
||||
3. **Updates Documentation** - Generates comprehensive documentation including:
|
||||
- Complete field descriptions and validation rules
|
||||
- Relationship diagrams between document types
|
||||
- GROQ query examples for each type
|
||||
- Usage guidance for developers and content teams
|
||||
4. **Commits to PR Branch** - Adds documentation directly to the existing PR branch
|
||||
5. **Posts PR Comment** - Provides a detailed summary of documented changes
|
||||
|
||||
<Card title="What Gets Documented" icon="book">
|
||||
|
||||
For each document type, the agent generates:
|
||||
- **Field Reference**: Every field with type, validation, and description
|
||||
- **Relationships**: Visual diagram showing references between types
|
||||
- **Query Examples**: Practical GROQ queries for common operations
|
||||
- **Studio Behavior**: How fields appear and function in Sanity Studio
|
||||
- **Validation Rules**: All constraints and requirements
|
||||
- **Usage Notes**: Important gotchas and best practices
|
||||
|
||||
</Card>
|
||||
|
||||
<Info>
|
||||
|
||||
**Documentation Location**: By default, docs are created at `docs/content-model.md`. The agent searches for existing documentation in several standard locations and preserves your structure.
|
||||
|
||||
</Info>
|
||||
|
||||
#### Example PR Comment
|
||||
|
||||
After updating the documentation, the agent posts a comprehensive comment like this:
|
||||
|
||||
```markdown
|
||||
## 📝 Schema Documentation Updated
|
||||
|
||||
I've automatically updated the content model documentation based on the schema changes in this PR.
|
||||
|
||||
### 📋 Changes Documented
|
||||
|
||||
**New Document Types** (2)
|
||||
- ✨ `product` - E-commerce product listings
|
||||
- ✨ `review` - Customer product reviews
|
||||
|
||||
**Modified Document Types** (1)
|
||||
- 📝 `article` - Added `featured` boolean field, updated `title` validation
|
||||
|
||||
### 📄 Documentation Location
|
||||
|
||||
📖 [View Updated Documentation](./docs/content-model.md)
|
||||
|
||||
### 📊 Schema Overview
|
||||
|
||||
- **Total Document Types**: 12
|
||||
- **Total Fields**: 87
|
||||
- **Types Modified in this PR**: 3
|
||||
- **New Fields Added**: 5
|
||||
|
||||
### 🔗 Key Relationships Changed
|
||||
|
||||
- `product` now references `review` (one-to-many)
|
||||
- `article.featured` added for homepage curation
|
||||
```
|
||||
|
||||
## Use Cases
|
||||
|
||||
### Content Validation
|
||||
|
||||
Automatically validate content structure and quality:
|
||||
|
||||
<Card title="Content Validator Agent" icon="check-circle">
|
||||
|
||||
**Task Example**: "Check all blog posts for required fields and broken references"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Scans documents for missing required fields
|
||||
- Validates references between documents
|
||||
- Checks for orphaned content
|
||||
- Reports inconsistencies and suggests fixes
|
||||
|
||||
**Run in Mission Control**: Schedule daily or trigger on content updates
|
||||
|
||||
</Card>
|
||||
|
||||
### Schema Management
|
||||
|
||||
Manage and evolve your content schemas:
|
||||
|
||||
<Card title="Schema Analyzer Agent" icon="diagram-project">
|
||||
|
||||
**Task Example**: "Analyze the product schema and suggest optimizations for better performance"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Reviews document type definitions
|
||||
- Identifies unused or redundant fields
|
||||
- Suggests schema improvements
|
||||
- Validates relationships and data integrity
|
||||
|
||||
**Run in Mission Control**: Run before major schema changes
|
||||
|
||||
</Card>
|
||||
|
||||
### Content Migration
|
||||
|
||||
Automate content structure changes:
|
||||
|
||||
<Card title="Migration Manager Agent" icon="right-left">
|
||||
|
||||
**Task Example**: "Migrate all blog posts from the old schema to the new format"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Reads content from old schema structure
|
||||
- Transforms data to match new schema
|
||||
- Validates migrated content
|
||||
- Creates migration report with any issues
|
||||
|
||||
**Run in Mission Control**: Run manually for controlled migrations
|
||||
|
||||
</Card>
|
||||
|
||||
### GROQ Query Execution
|
||||
|
||||
Run complex queries to analyze content:
|
||||
|
||||
<Card title="Content Analyzer Agent" icon="magnifying-glass">
|
||||
|
||||
**Task Example**: "Find all articles published in Q4 2023 with over 10,000 views"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Executes GROQ queries against your dataset
|
||||
- Analyzes results and identifies patterns
|
||||
- Generates reports and visualizations
|
||||
- Exports data for further analysis
|
||||
|
||||
**Run in Mission Control**: Run on-demand for content insights
|
||||
|
||||
</Card>
|
||||
|
||||
### Schema Documentation
|
||||
|
||||
Automatically maintain comprehensive schema documentation:
|
||||
|
||||
<Card title="Schema Docs Agent" icon="book">
|
||||
|
||||
**Task Example**: "Generate comprehensive documentation for all document types and their relationships"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Fetches complete schema from Sanity
|
||||
- Documents every field with types, validation, and descriptions
|
||||
- Creates Mermaid diagrams showing document relationships
|
||||
- Includes practical GROQ query examples
|
||||
- Preserves manual documentation sections
|
||||
- Updates statistics (total types, field counts)
|
||||
|
||||
**Run in Mission Control**: Triggered automatically on PR open when schema files change
|
||||
|
||||
**Documentation Structure**:
|
||||
- Table of contents with all document types
|
||||
- Detailed field tables for each type
|
||||
- Relationship diagrams
|
||||
- Query examples for common operations
|
||||
- Validation rules and Studio configurations
|
||||
|
||||
</Card>
|
||||
|
||||
### Content Localization
|
||||
|
||||
Manage multi-language content:
|
||||
|
||||
<Card title="Localization Agent" icon="language">
|
||||
|
||||
**Task Example**: "Verify all product pages have complete Spanish and French translations"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Identifies missing translations
|
||||
- Validates localized field structure
|
||||
- Reports incomplete content
|
||||
- Suggests content for translation
|
||||
|
||||
**Run in Mission Control**: Schedule weekly translation audits
|
||||
|
||||
</Card>
|
||||
|
||||
## Running Sanity Agents in Mission Control
|
||||
|
||||
You can run Sanity-connected agents in two ways as [one-off tasks](../tasks) or automated [workflows](../workflows):
|
||||
The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Sanity documentation updates.
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Update Sanity schema docs" icon="book-open">
|
||||
When a pull request is opened, automatically update your Sanity content documentation to stay in sync with schema and code changes.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Tip>
|
||||
|
||||
Start with manual tasks to refine your content queries, then automate repetitive content management and validation tasks.
|
||||
|
||||
Official workflow templates may expand over time as new patterns are validated. You can view, enable, and configure this workflow in **[Mission Control → Integrations → Sanity](https://hub.continue.dev/integrations/sanity)**.
|
||||
</Tip>
|
||||
|
||||
---
|
||||
|
||||
## Troubleshooting
|
||||
## Advanced Use Cases
|
||||
|
||||
<Accordion title="Authentication expired">
|
||||
|
||||
**Problem**: Agent shows authentication errors
|
||||
|
||||
**Solutions**:
|
||||
- Re-authenticate through the integrations page (OAuth expires after 7 days)
|
||||
- For CI/CD workflows, use environment variables instead
|
||||
- Check that project permissions haven't changed
|
||||
- Verify the Sanity project still exists
|
||||
<Accordion title="Advanced: Custom Sanity Workflow Ideas">
|
||||
These examples are not officially maintained by the Continue team, but illustrate what’s possible with custom workflows.
|
||||
|
||||
- Validate schema changes against content standards before merging
|
||||
- Generate migration suggestions when schema changes are detected
|
||||
- Audit content for missing fields, broken references, or invalid values
|
||||
- Generate content-model summaries for designers and stakeholders
|
||||
- Create tickets or PR comments when content risks are detected
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Schema not found">
|
||||
---
|
||||
|
||||
**Problem**: Agent can't locate schema definitions
|
||||
## Access & Permissions
|
||||
|
||||
**Solutions**:
|
||||
- Verify schema files are in the correct location
|
||||
- Check that the project ID is correct
|
||||
- Ensure you're connected to the right dataset
|
||||
- Confirm schema files are properly exported
|
||||
When connecting Sanity, you’ll authorize Continue to access your workspace and interact with content based on your project permissions.
|
||||
|
||||
</Accordion>
|
||||
- **Workspace access**
|
||||
Agents can only access Sanity projects and datasets you are permitted to view.
|
||||
|
||||
<Accordion title="GROQ query errors">
|
||||
- **Permissions**
|
||||
Approved permissions allow Continue to read schemas, run GROQ queries, and create or update documents when workflows require it.
|
||||
|
||||
**Problem**: Queries fail or return unexpected results
|
||||
|
||||
**Solutions**:
|
||||
- Validate GROQ syntax in Sanity Vision
|
||||
- Check that referenced fields exist
|
||||
- Verify document types are spelled correctly
|
||||
- Review query complexity and optimize if needed
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Content validation failures">
|
||||
|
||||
**Problem**: Agent reports content doesn't match schema
|
||||
|
||||
**Solutions**:
|
||||
- Check for recent schema changes
|
||||
- Verify required fields are present
|
||||
- Review field type mismatches
|
||||
- Run migration to update content structure
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Migration issues">
|
||||
|
||||
**Problem**: Content migration fails or produces errors
|
||||
|
||||
**Solutions**:
|
||||
- Test migration on a small subset first
|
||||
- Validate both old and new schemas
|
||||
- Check for data type conflicts
|
||||
- Review migration logs for specific errors
|
||||
- Use transactions for atomic updates
|
||||
|
||||
</Accordion>
|
||||
---
|
||||
|
||||
## Support & Resources
|
||||
|
||||
<CardGroup cols={2}>
|
||||
|
||||
<Card title="Sanity MCP Cookbook" icon="book-open" href="/guides/sanity-mcp-continue-cookbook">
|
||||
|
||||
Complete guide to content management automation with Sanity and Continue
|
||||
|
||||
<Card
|
||||
title="Sanity Cookbook"
|
||||
icon="book-open"
|
||||
href="/guides/sanity-mcp-continue-cookbook"
|
||||
>
|
||||
Practical examples for working with Sanity schemas and content using Continue agents.
|
||||
</Card>
|
||||
|
||||
<Card title="GitHub Integration" icon="github" href="/mission-control/integrations/github">
|
||||
|
||||
Combine Sanity with GitHub for automated content workflows
|
||||
|
||||
<Card
|
||||
title="GitHub Integration"
|
||||
icon="github"
|
||||
href="https://hub.continue.dev/settings/integrations/github"
|
||||
>
|
||||
Combine Sanity and GitHub to keep schema docs aligned with code changes.
|
||||
</Card>
|
||||
|
||||
<Card title="Sanity Documentation" icon="book" href="https://www.sanity.io/docs">
|
||||
|
||||
Official Sanity documentation and guides
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="GROQ Reference" icon="code" href="https://www.sanity.io/docs/groq">
|
||||
|
||||
Learn GROQ query language for content queries
|
||||
|
||||
</Card>
|
||||
|
||||
</CardGroup>
|
||||
</CardGroup>
|
||||
|
|
|
|||
|
|
@ -1,138 +1,87 @@
|
|||
---
|
||||
title: "Sentry Integration"
|
||||
description: "Automatically triage and resolve errors with Continue Agents connected to Sentry"
|
||||
description: "Connect Sentry to Mission Control so agents can automatically respond to production errors, analyzing issues as they occur and proposing fixes before they escalate."
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Connect Sentry to Continue Mission Control to enable agents to automatically detect, analyze, and resolve production errors. When Sentry is enabled, Continue can generate PRs to fix issues, analyze error patterns, and maintain application health.
|
||||
|
||||
<Card title="What You Can Do with Sentry Integration" icon="shield-exclamation">
|
||||
|
||||
- Automatically generate PRs to resolve new errors
|
||||
- Analyze error patterns and identify root causes
|
||||
- Prioritize issues based on impact and frequency
|
||||
- Create detailed bug reports with stack traces
|
||||
<Card
|
||||
title="Connect Sentry to enable agents to:"
|
||||
icon="shield-exclamation"
|
||||
href="https://hub.continue.dev/integrations/sentry"
|
||||
>
|
||||
- Analyze production errors as they occur
|
||||
- Investigate stack traces and recent code changes
|
||||
- Generate pull requests to resolve issues
|
||||
- Create contextual GitHub issues
|
||||
- Monitor error trends across releases
|
||||
|
||||
</Card>
|
||||
|
||||
## Setup
|
||||
|
||||
<Steps>
|
||||
## Official Workflow Templates
|
||||
|
||||
<Step title="Navigate to the Sentry Integration">
|
||||
The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Sentry-based remediation.
|
||||
|
||||
Go to [Sentry Integration](https://hub.continue.dev/integrations/sentry).
|
||||
</Step>
|
||||
|
||||
<Step title="Connect Sentry">
|
||||
|
||||
Click "Connect". You'll need the following credentials:
|
||||
|
||||
- **Sentry Organization Slug**: Your organization name (e.g., "my-company")
|
||||
- **Auth Token**: Internal integration token from Sentry
|
||||
- **Client Secret**: For webhook signature verification
|
||||
- **API Key**: For MCP support
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Configure Sentry Internal Integration">
|
||||
|
||||
In your Sentry account:
|
||||
1. Create a new [internal integration](https://docs.sentry.io/product/integrations/integration-platform/)
|
||||
2. Set the webhook URL to `https://api.continue.dev/webhooks/sentry`
|
||||
3. Select "Read and Write" access for "Issue and Event"
|
||||
4. Select "issue" in the webhooks section and click Save Changes
|
||||
5. Copy the Auth Token and Client Secret
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Add Credentials to Mission Control">
|
||||
|
||||
Paste all three values into the integration form and click "Create Connection"
|
||||
|
||||
</Step>
|
||||
|
||||
</Steps>
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Auto-fix Sentry Issues" icon="shield-check">
|
||||
Automatically analyze and fix production errors when Sentry detects new issues.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Tip>
|
||||
|
||||
**How to get these credentials:**
|
||||
1. Create a new **internal integration** in Sentry
|
||||
2. Set the webhook URL to `https://api.continue.dev/webhooks/sentry`
|
||||
3. Select "Read and Write" access for "Issue and Event"
|
||||
4. Select "issue" in the webhooks section and click Save Changes
|
||||
5. Find your organization slug in the Sentry URL (your-slug.sentry.io)
|
||||
6. Copy the Auth Token and Client Secret from the integration
|
||||
|
||||
Official workflow templates may expand over time as new patterns are validated. You can view, enable, and configure this workflow in **Mission Control → Integrations → Sentry**.
|
||||
</Tip>
|
||||
|
||||
## Running Sentry Agents in Mission Control
|
||||
### Advanced Use Cases
|
||||
|
||||
You can run Sentry-connected agents in two ways as [one-off tasks](../tasks) or automated [workflows](../workflows).
|
||||
|
||||
<Tip>
|
||||
|
||||
Start with manual tasks to refine your content queries, then automate repetitive content management and validation tasks.
|
||||
|
||||
</Tip>
|
||||
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
<Accordion title="Webhooks not triggering">
|
||||
|
||||
**Problem**: Agent isn't running when new errors occur
|
||||
|
||||
**Solutions**:
|
||||
- Verify webhook URL is correct in Sentry
|
||||
- Check that "issue" is selected in webhook events
|
||||
- Ensure Client Secret matches in both Sentry and Mission Control
|
||||
- Review webhook delivery logs in Sentry
|
||||
<Accordion title="Advanced: Custom Sentry Workflow Ideas">
|
||||
These examples are not officially maintained by the Continue team, but illustrate what’s possible with custom workflows.
|
||||
|
||||
- Trigger investigations only for high-impact or high-frequency errors
|
||||
- Route specific error types to specialized agents
|
||||
- Correlate Sentry issues with recent deploys or feature flags
|
||||
- Generate weekly error trend summaries for engineering teams
|
||||
- Combine Sentry signals with GitHub or analytics data
|
||||
</Accordion>
|
||||
---
|
||||
## Access & Permissions
|
||||
|
||||
<Accordion title="Agent can't access Sentry data">
|
||||
When connecting Sentry, you’ll authorize Continue to receive error events and access issue data.
|
||||
|
||||
**Problem**: Agent returns errors when trying to fetch issue details
|
||||
- **Project and issue access**
|
||||
Agents can access Sentry projects and issues you have permission to view within your organization.
|
||||
|
||||
**Solutions**:
|
||||
- Verify Auth Token has "Read and Write" access for "Issue and Event"
|
||||
- Check that organization slug is correct
|
||||
- Ensure token hasn't expired
|
||||
- Confirm project permissions in Sentry
|
||||
- **Permissions**
|
||||
Approved permissions allow Continue to analyze error events, read issue details, and create pull requests or GitHub issues on your behalf.
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="PRs not linking to Sentry issues">
|
||||
You can update or revoke access at any time from Sentry or the Mission Control Hub.
|
||||
|
||||
**Problem**: Generated PRs don't reference the Sentry issue
|
||||
|
||||
**Solutions**:
|
||||
- Ensure both Sentry and GitHub integrations are connected
|
||||
- Verify agent has permission to access both services
|
||||
- Check that the agent prompt includes instructions to link issues
|
||||
- Review agent logs for errors
|
||||
|
||||
</Accordion>
|
||||
<Info>
|
||||
Connecting Sentry requires creating an **[internal integration](https://sentry.io/settings/developer-settings/new-internal/)** in your Sentry organization.
|
||||
|
||||
You’ll be asked for your organization slug and credentials that allow Continue to receive issue and event data via webhooks and API access.
|
||||
|
||||
Full credential setup is handled in the Mission Control Hub.
|
||||
</Info>
|
||||
---
|
||||
|
||||
## Support & Resources
|
||||
|
||||
<CardGroup cols={2}>
|
||||
|
||||
<Card title="Sentry MCP Cookbook" icon="book-open" href="/guides/sentry-mcp-error-monitoring">
|
||||
|
||||
Comprehensive guide to using Sentry with Continue agents
|
||||
|
||||
<Card
|
||||
title="Sentry MCP Cookbook"
|
||||
icon="book-open"
|
||||
href="/guides/sentry-mcp-error-monitoring"
|
||||
>
|
||||
Practical examples for working with Sentry data using Continue agents.
|
||||
</Card>
|
||||
|
||||
<Card title="GitHub Integration" icon="github" href="/mission-control/integrations/github">
|
||||
|
||||
Combine Sentry with GitHub for complete automation
|
||||
|
||||
<Card
|
||||
title="GitHub Integration"
|
||||
icon="github"
|
||||
href="/mission-control/integrations/github"
|
||||
>
|
||||
Combine Sentry and GitHub to automate error remediation.
|
||||
</Card>
|
||||
|
||||
</CardGroup>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,16 +9,7 @@ description: "Kick off background Agents from Slack by mentioning @Continue"
|
|||
|
||||
</Warning>
|
||||
|
||||
## Overview
|
||||
|
||||
Mention @Continue in any channel with a task description, and it will:
|
||||
|
||||
- Create a new development agent
|
||||
- Clone and work on your Repository
|
||||
- Generate code changes and create pull requests
|
||||
- Keep you updated on progress
|
||||
|
||||
<Card title="What It's Great For" icon="slack">
|
||||
<Card title="Connect the Slack Integration to Help You Complete:" icon="slack" href="https://hub.continue.dev/integrations/slack">
|
||||
|
||||
- Quick bug fixes and feature implementations
|
||||
- Code reviews and refactoring
|
||||
|
|
@ -27,36 +18,6 @@ Mention @Continue in any channel with a task description, and it will:
|
|||
|
||||
</Card>
|
||||
|
||||
## Setup
|
||||
|
||||
<Warning>
|
||||
|
||||
Continue's Slack app is in Beta development. During installation, you will see a warning that it is not yet approved/official.
|
||||
|
||||
</Warning>
|
||||
|
||||
<Steps>
|
||||
|
||||
<Step title="Connect GitHub">
|
||||
|
||||
Click "Connect" next to GitHub in the Integrations settings, and grant access to the repositories you want Continue to work with.
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Authorize Slack">
|
||||
|
||||
Click the "Connect" button next in [the Slack Integration ](https://hub.continue.dev/integrations/slack)and authorize the app in your workspace.
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Set Default Repository (Optional)">
|
||||
|
||||
Use the repository selector within the Slack tile to select a default repository for Continue Agents to work in.
|
||||
|
||||
</Step>
|
||||
|
||||
</Steps>
|
||||
|
||||
## Usage
|
||||
|
||||
To kick off an agent, mention `@Continue` with a short task description.
|
||||
|
|
@ -112,7 +73,7 @@ Continue will forward your message to the existing agent session instead of crea
|
|||
|
||||
## Monitoring Agent Progress
|
||||
|
||||
Click the agent link in Slack to view the agent's progress in [Mission Control](https://hub.continue.dev/hub?type=agents).
|
||||
Click the agent link in Slack to view the agent's progress in [Mission Control](https://hub.continue.dev).
|
||||
|
||||
You can also click the Slack icon in the agents page to return to the Slack message.
|
||||
|
||||
|
|
@ -140,11 +101,11 @@ To remove the Slack integration:
|
|||
|
||||
<Card title="Agents Introduction" icon="robot" href="../../agents/intro">
|
||||
|
||||
Learn about Continue agents
|
||||
Learn about Continue agents.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="GitHub Integration" icon="github" href="./github">
|
||||
<Card title="GitHub Integration" icon="github" href="https://hub.continue.dev/settings/integrations/github">
|
||||
|
||||
Add the GitHub Integration to create issues and PRs
|
||||
|
||||
|
|
|
|||
|
|
@ -1,130 +1,75 @@
|
|||
---
|
||||
title: "Snyk Integration"
|
||||
description: "Automatically detect and fix vulnerabilities with Continue Agents connected to Snyk"
|
||||
description: "Connect Snyk to Continue Mission Control to automatically detect and fix vulnerabilities with Continue Agents"
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Connect Snyk to Continue Mission Control to enable agents to automatically detect, analyze, and resolve security vulnerabilities. When Snyk is enabled, Continue can generate PRs to fix vulnerabilities, analyze security patterns, and maintain application security posture.
|
||||
|
||||
<Card title="What You Can Do with Snyk Integration" icon="shield-check">
|
||||
|
||||
- Automatically generate PRs to fix security vulnerabilities
|
||||
- Analyze dependency risks and suggest updates
|
||||
<Card
|
||||
title="Connect Snyk to enable agents to:"
|
||||
icon="shield-check"
|
||||
href="https://hub.continue.dev/integrations/snyk"
|
||||
>
|
||||
- Detect and analyze security vulnerabilities
|
||||
- Generate pull requests to remediate issues
|
||||
- Analyze dependency and supply chain risks
|
||||
- Monitor security posture across projects
|
||||
- Create detailed vulnerability reports with remediation steps
|
||||
- Track vulnerability trends and compliance status
|
||||
|
||||
- Create reports and summaries for security trends
|
||||
</Card>
|
||||
|
||||
## Setup
|
||||
## Official Workflow Templates
|
||||
|
||||
<Steps>
|
||||
The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Snyk-based remediation.
|
||||
|
||||
<Step title="Navigate to Integrations">
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Auto-fix Snyk Vulnerabilities" icon="shield-check">
|
||||
Automatically remediate high and critical security vulnerabilities detected by Snyk.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
Go to the [Snyk Integration](https://hub.continue.dev/integrations/snyk).
|
||||
<Tip>
|
||||
Official workflow templates may expand over time as new security patterns are validated. You can view, enable, and configure these workflows in **[Mission Control → Integrations → Snyk](https://hub.continue.dev/integrations/snyk)**.
|
||||
</Tip>
|
||||
|
||||
</Step>
|
||||
### Advanced Use Cases
|
||||
|
||||
<Step title="Connect Snyk">
|
||||
|
||||
Click "Connect" next to Snyk integration.
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Authorize with Snyk">
|
||||
|
||||
Click the "Connect with Snyk" button to authorize Continue Mission Control:
|
||||
|
||||
- You'll be redirected to Snyk's OAuth authorization page
|
||||
- Review and approve the requested permissions
|
||||
- You'll be automatically redirected back to the [Snyk inbox view](https://hub.continue.dev/inbox?view=snyk)
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Verify Connection">
|
||||
|
||||
Once redirected back, you'll see:
|
||||
- A confirmation that Snyk is connected
|
||||
- Your Snyk projects available for monitoring
|
||||
- Any active vulnerability alerts
|
||||
|
||||
</Step>
|
||||
|
||||
</Steps>
|
||||
|
||||
<Info>
|
||||
|
||||
**OAuth Authorization**: No manual token configuration needed! Simply click the authorization button and Continue will securely handle the authentication flow with Snyk.
|
||||
|
||||
</Info>
|
||||
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
<Accordion title="OAuth authorization fails">
|
||||
|
||||
**Problem**: Can't complete the Snyk authorization flow
|
||||
|
||||
**Solutions**:
|
||||
- Ensure you have appropriate permissions in your Snyk organization
|
||||
- Check if your organization allows OAuth integrations
|
||||
- Try logging out and back into Snyk before authorizing
|
||||
- Clear browser cookies and try again
|
||||
<Accordion title="Advanced: Custom Snyk Workflow Ideas">
|
||||
These examples are not officially maintained by the Continue team, but illustrate what’s possible with custom workflows.
|
||||
|
||||
- Prioritize vulnerabilities based on exploitability or business impact
|
||||
- Correlate Snyk findings with recent code changes
|
||||
- Generate security summaries for compliance or audit reviews
|
||||
- Trigger remediation only for production-critical projects
|
||||
- Combine Snyk findings with GitHub or CI signals
|
||||
</Accordion>
|
||||
---
|
||||
## Access & Permissions
|
||||
|
||||
<Accordion title="Projects not appearing">
|
||||
When connecting Snyk, you’ll authorize Continue to access vulnerability and project data via OAuth.
|
||||
|
||||
**Problem**: Snyk projects aren't visible after connection
|
||||
- **Project access**
|
||||
Agents can only access Snyk projects you are permitted to view within your organization.
|
||||
|
||||
**Solutions**:
|
||||
- Verify you have access to projects in Snyk
|
||||
- Check that projects are properly imported in Snyk
|
||||
- Refresh the integration connection
|
||||
- Ensure the OAuth scope includes project access
|
||||
- **Permissions**
|
||||
Approved permissions allow Continue to read vulnerability findings and create remediation pull requests on your behalf.
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Agent can't access vulnerability data">
|
||||
|
||||
**Problem**: Agent returns errors when trying to fetch Snyk data
|
||||
|
||||
**Solutions**:
|
||||
- Verify the OAuth connection is still valid
|
||||
- Re-authorize if the token has expired
|
||||
- Check that the agent has the necessary Snyk context provider
|
||||
- Review agent logs for specific error messages
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Webhooks not triggering">
|
||||
|
||||
**Problem**: Agent isn't running when new vulnerabilities are found
|
||||
|
||||
**Solutions**:
|
||||
- Verify webhook configuration in Snyk integration settings
|
||||
- Check that webhook URL points to Continue Mission Control
|
||||
- Ensure webhook events include vulnerability detection
|
||||
- Review webhook delivery logs in Snyk
|
||||
|
||||
</Accordion>
|
||||
You can revoke or reauthorize access at any time from Snyk or the Mission Control Hub.
|
||||
---
|
||||
|
||||
## Support & Resources
|
||||
|
||||
<CardGroup cols={2}>
|
||||
|
||||
<Card title="Snyk MCP Cookbook" icon="book-open" href="/guides/snyk-mcp-continue-cookbook">
|
||||
|
||||
Complete guide with security scanning recipes, CI/CD integration, and automated remediation workflows
|
||||
|
||||
<Card
|
||||
title="Snyk MCP Cookbook"
|
||||
icon="book-open"
|
||||
href="/guides/snyk-mcp-continue-cookbook"
|
||||
>
|
||||
Security automation recipes using Snyk and Continue agents.
|
||||
</Card>
|
||||
|
||||
<Card title="GitHub Integration" icon="github" href="/mission-control/integrations/github">
|
||||
|
||||
Combine Snyk with GitHub for complete security automation
|
||||
|
||||
<Card
|
||||
title="GitHub Integration"
|
||||
icon="github"
|
||||
href="/mission-control/integrations/github"
|
||||
>
|
||||
Combine Snyk and GitHub to automate vulnerability remediation.
|
||||
</Card>
|
||||
|
||||
</CardGroup>
|
||||
|
|
|
|||
|
|
@ -1,526 +1,136 @@
|
|||
---
|
||||
title: "Supabase Integration"
|
||||
description: "Monitor database security, generate migrations, and optimize queries with Continue Agents connected to Supabase"
|
||||
description: "Connect **Supabase** to Mission Control so agents can automatically review **Row Level Security (RLS)** when pull requests touch database-related code."
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Connect Supabase to Continue Mission Control to enable AI-powered database workflows. When Supabase is enabled, Continue can audit Row Level Security (RLS) policies, generate secure migrations, optimize queries, and maintain database security automatically.
|
||||
|
||||
<Card title="What You Can Do with Supabase Integration" icon="database">
|
||||
|
||||
- Automatically audit RLS policies on every PR
|
||||
- Generate secure migrations for missing security policies
|
||||
- Identify and fix critical security gaps
|
||||
- Optimize database queries and schemas
|
||||
- Monitor database performance and security
|
||||
- Validate schema changes before deployment
|
||||
|
||||
<Card
|
||||
title="Connect Supabase to enable agents to:"
|
||||
icon="database"
|
||||
href="https://hub.continue.dev/integrations/supabase"
|
||||
>
|
||||
- Audit RLS policies for tables referenced in PR changes
|
||||
- Generate SQL migrations to remediate missing or unsafe policies
|
||||
- Commit fixes for **Critical / High / Medium** issues to the PR branch
|
||||
- Post (or update) a single PR comment with scope, findings, and changes
|
||||
</Card>
|
||||
|
||||
## Setup
|
||||
|
||||
<Steps>
|
||||
|
||||
<Step title="Navigate to Integrations">
|
||||
|
||||
Go to the [Supabase Integration](https://hub.continue.dev/integrations/supabase).
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Connect Supabase">
|
||||
|
||||
Click "Connect" to Supabase.
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Authorize Supabase Access">
|
||||
|
||||
You'll be redirected to Supabase to authorize Continue:
|
||||
1. Select the Supabase organization and project to connect
|
||||
2. Review the requested permissions
|
||||
3. Click "Authorize" to complete the connection
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Configure Workflows">
|
||||
|
||||
After connecting, set up your first workflow. The integration supports:
|
||||
- **On PR open**: Audit RLS policies when PRs are created
|
||||
- **Manual tasks**: Run database operations on-demand
|
||||
- **Scheduled jobs**: Periodic security audits and performance checks
|
||||
|
||||
</Step>
|
||||
|
||||
</Steps>
|
||||
|
||||
## Workflows
|
||||
|
||||
### Supabase security review
|
||||
|
||||
**Trigger**: On PR open
|
||||
**Description**: Connect your Supabase workspace to agents that can explore schemas, run queries, create and update documents, and handle migrations using natural language
|
||||
|
||||
When a pull request is opened, this security-focused workflow automatically:
|
||||
|
||||
1. **Analyzes PR Changes** - Identifies affected tables from:
|
||||
- Migration files (`supabase/migrations/*.sql`)
|
||||
- SDK/library usage (`.from('table_name')` calls)
|
||||
- Schema references in type definitions
|
||||
|
||||
2. **Audits RLS Policies** - Uses Supabase MCP to inspect:
|
||||
- Whether RLS is enabled on affected tables
|
||||
- Existing policy configurations
|
||||
- Potential security gaps
|
||||
|
||||
3. **Classifies Security Risks** - Prioritizes findings by severity:
|
||||
- 🔴 **Critical**: No RLS on tables with sensitive data
|
||||
- 🟠 **High**: Overly permissive policies (e.g., `USING (true)`)
|
||||
- 🟡 **Medium**: Missing standard access patterns
|
||||
- 🟢 **Low**: Policy optimization opportunities
|
||||
|
||||
4. **Generates SQL Migrations** - Creates fixes for Critical/High/Medium issues:
|
||||
- Enables RLS on unprotected tables
|
||||
- Adds missing user-scoped policies
|
||||
- Implements proper access controls
|
||||
- Includes rollback commands
|
||||
|
||||
5. **Commits Fixes to PR Branch** - Automatically pushes security fixes
|
||||
6. **Posts Comprehensive Comment** - Explains all findings and changes
|
||||
|
||||
<Card title="Why This Matters" icon="shield-check">
|
||||
|
||||
Row Level Security (RLS) is Supabase's primary security mechanism. Without proper RLS policies:
|
||||
- Users can access other users' private data
|
||||
- Unauthorized modifications can occur
|
||||
- Sensitive information may be exposed
|
||||
|
||||
This workflow automatically catches these issues before they reach production.
|
||||
|
||||
</Card>
|
||||
|
||||
<Info>
|
||||
|
||||
**Smart Scoping**: The agent only audits tables directly referenced in your PR changes, not your entire database. This keeps audits focused and efficient.
|
||||
|
||||
</Info>
|
||||
|
||||
#### Example PR Comment
|
||||
|
||||
After auditing RLS policies, the agent posts a comprehensive comment like this:
|
||||
|
||||
```markdown
|
||||
## 🔒 Supabase RLS Policy Audit
|
||||
|
||||
### Scope
|
||||
This audit covers **3 tables** referenced in this PR:
|
||||
- user_profiles (detected in: migration file)
|
||||
- comments (detected in: SDK usage in src/api/comments.ts)
|
||||
- posts (detected in: migration file)
|
||||
|
||||
### Summary
|
||||
- ✅ 1 table with proper RLS
|
||||
- ⚠️ 2 tables requiring attention
|
||||
- 🔴 1 critical security gap found
|
||||
|
||||
### Findings
|
||||
|
||||
| Table | Risk Level | Issue | Status |
|
||||
|-------|------------|-------|--------|
|
||||
| `user_profiles` | 🔴 Critical | No RLS enabled | ✅ Fixed in commit abc123 |
|
||||
| `comments` | 🟡 Medium | Missing delete policy | ✅ Fixed in commit abc123 |
|
||||
| `posts` | 🟢 Low | Policy optimization possible | 💡 Recommendation |
|
||||
|
||||
### Changes Made
|
||||
|
||||
- Enabled RLS on `user_profiles`
|
||||
- Added policies: `user_profiles_select_own`, `user_profiles_update_own`, `comments_delete_own`
|
||||
- See full migration: `supabase/migrations/20241118120000_rls_security_fixes.sql`
|
||||
|
||||
### Recommendations (Low Priority)
|
||||
|
||||
- **posts table**: Consider renaming policy `posts_policy_1` to `posts_select_owner` for clarity
|
||||
|
||||
### Policy Patterns Used
|
||||
|
||||
**User-scoped access** (users access only their own data):
|
||||
\```sql
|
||||
USING (auth.uid() = user_id)
|
||||
WITH CHECK (auth.uid() = user_id)
|
||||
\```
|
||||
|
||||
### Next Steps
|
||||
|
||||
- ✅ Review the migration file and committed changes
|
||||
- ✅ Test the policies in your development environment
|
||||
- ✅ Merge this PR once you've verified the security improvements
|
||||
```
|
||||
|
||||
### Security Risk Levels Explained
|
||||
|
||||
<Accordion title="🔴 Critical - Immediate Fix Required">
|
||||
|
||||
**What it means**: Tables with no RLS that contain sensitive data
|
||||
|
||||
**Examples**:
|
||||
- User profiles, emails, or authentication data
|
||||
- Financial information or payment details
|
||||
- Private messages or personal content
|
||||
- New tables created without RLS
|
||||
|
||||
**What the agent does**: Automatically enables RLS and adds basic policies
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="🟠 High - Important Security Gap">
|
||||
|
||||
**What it means**: Overly permissive policies that could allow unauthorized access
|
||||
|
||||
**Examples**:
|
||||
- Policies using `USING (true)` without justification
|
||||
- Write access without proper validation
|
||||
- Admin policies that don't verify admin status
|
||||
- Missing `WITH CHECK` clauses
|
||||
|
||||
**What the agent does**: Generates restrictive policies with proper checks
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="🟡 Medium - Missing Best Practices">
|
||||
|
||||
**What it means**: Partial RLS coverage or missing standard patterns
|
||||
|
||||
**Examples**:
|
||||
- SELECT policy exists but no UPDATE/DELETE
|
||||
- No user-scoped policies for personal data
|
||||
- Missing public read policies where appropriate
|
||||
- Incomplete CRUD policy coverage
|
||||
|
||||
**What the agent does**: Adds missing policies following standard patterns
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="🟢 Low - Optimization Opportunity">
|
||||
|
||||
**What it means**: Policies work but could be improved
|
||||
|
||||
**Examples**:
|
||||
- Poor policy naming conventions
|
||||
- Inefficient policy logic
|
||||
- Missing documentation
|
||||
- Duplicate or redundant policies
|
||||
|
||||
**What the agent does**: Suggests improvements in PR comment (no auto-fix)
|
||||
|
||||
</Accordion>
|
||||
|
||||
## Use Cases
|
||||
|
||||
### Automated Security Audits
|
||||
|
||||
Catch security issues before they reach production:
|
||||
|
||||
<Card title="RLS Policy Auditor" icon="shield-exclamation">
|
||||
|
||||
**Task Example**: Automatically audit RLS on every PR that touches database schema or queries
|
||||
|
||||
**What the Agent Does**:
|
||||
- Scans PR for database-related changes
|
||||
- Identifies all affected tables
|
||||
- Checks RLS status and policies
|
||||
- Generates fixes for security gaps
|
||||
- Commits migrations to the PR branch
|
||||
|
||||
**Run in Mission Control**: Triggered automatically on PR open
|
||||
|
||||
</Card>
|
||||
|
||||
### Database Migration Generation
|
||||
|
||||
Create secure migrations automatically:
|
||||
|
||||
<Card title="Migration Generator" icon="file-code">
|
||||
|
||||
**Task Example**: "Generate a migration to add RLS policies for the new messages table"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Analyzes table structure and purpose
|
||||
- Determines appropriate access patterns
|
||||
- Generates SQL with RLS policies
|
||||
- Includes proper naming and comments
|
||||
- Adds rollback commands
|
||||
|
||||
**Run in Mission Control**: Run manually or on schema changes
|
||||
|
||||
</Card>
|
||||
|
||||
### Query Optimization
|
||||
|
||||
Improve database performance:
|
||||
|
||||
<Card title="Query Optimizer" icon="gauge-high">
|
||||
|
||||
**Task Example**: "Analyze slow queries and suggest optimizations"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Identifies queries in your codebase
|
||||
- Checks for missing indexes
|
||||
- Suggests query rewrites
|
||||
- Recommends schema changes
|
||||
- Estimates performance impact
|
||||
|
||||
**Run in Mission Control**: Schedule weekly performance reviews
|
||||
|
||||
</Card>
|
||||
|
||||
### Schema Validation
|
||||
|
||||
Ensure schema changes follow best practices:
|
||||
|
||||
<Card title="Schema Validator" icon="table">
|
||||
|
||||
**Task Example**: "Validate that all new tables follow our schema standards"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Checks naming conventions
|
||||
- Validates data types and constraints
|
||||
- Ensures proper indexes exist
|
||||
- Verifies RLS is enabled
|
||||
- Reviews foreign key relationships
|
||||
|
||||
**Run in Mission Control**: Triggered on migration file changes
|
||||
|
||||
</Card>
|
||||
|
||||
### Access Pattern Analysis
|
||||
|
||||
Understand how your database is used:
|
||||
|
||||
<Card title="Access Analyzer" icon="chart-line">
|
||||
|
||||
**Task Example**: "Analyze SDK usage patterns and suggest RLS policies"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Scans codebase for Supabase client calls
|
||||
- Identifies data access patterns
|
||||
- Detects security anti-patterns
|
||||
- Recommends appropriate RLS policies
|
||||
- Generates migration files
|
||||
|
||||
**Run in Mission Control**: Run before major releases
|
||||
|
||||
</Card>
|
||||
|
||||
### Development Environment Sync
|
||||
|
||||
Keep dev and production schemas aligned:
|
||||
|
||||
<Card title="Schema Sync Agent" icon="arrows-rotate">
|
||||
|
||||
**Task Example**: "Compare dev and production schemas and generate sync migrations"
|
||||
|
||||
**What the Agent Does**:
|
||||
- Connects to multiple Supabase projects
|
||||
- Compares schema definitions
|
||||
- Identifies differences
|
||||
- Generates sync migrations
|
||||
- Validates compatibility
|
||||
|
||||
**Run in Mission Control**: Schedule or run manually
|
||||
|
||||
</Card>
|
||||
|
||||
## Running Supabase Agents in Mission Control
|
||||
|
||||
You can run Supabase-connected agents in two ways as [one-off tasks](../tasks) or automated [workflows](../workflows):
|
||||
## Official Workflow Templates
|
||||
|
||||
The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Supabase security reviews.
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Supabase security review" icon="shield-check">
|
||||
When a pull request is opened, automatically audits RLS for tables referenced in that PR, commits fixes for Critical/High/Medium issues, and posts (or updates) a single PR comment with results.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
### Risk Levels Explained
|
||||
<AccordionGroup>
|
||||
<Accordion title="🔴 Critical — Immediate fix required">
|
||||
Tables with sensitive data that have **no RLS enabled**.
|
||||
|
||||
**Examples**
|
||||
- User profiles or authentication-related tables
|
||||
- Financial or billing data
|
||||
- Private messages or personal content
|
||||
|
||||
**What happens**
|
||||
- RLS is enabled automatically
|
||||
- Baseline access policies are generated
|
||||
- Fixes are committed directly to the PR branch
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="🟠 High — Serious security gap">
|
||||
Policies exist but are **overly permissive** or unsafe.
|
||||
|
||||
**Examples**
|
||||
- Policies using `USING (true)`
|
||||
- Write access without proper ownership checks
|
||||
- Admin policies without role validation
|
||||
|
||||
**What happens**
|
||||
- Restrictive policies are generated
|
||||
- Unsafe rules are replaced
|
||||
- Fixes are committed to the PR branch
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="🟡 Medium — Missing best practices">
|
||||
Partial or incomplete RLS coverage.
|
||||
|
||||
**Examples**
|
||||
- SELECT policy exists but UPDATE or DELETE is missing
|
||||
- Missing user-scoped access patterns
|
||||
- Incomplete CRUD coverage
|
||||
|
||||
**What happens**
|
||||
- Missing policies are added
|
||||
- Fixes are committed to the PR branch
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="🟢 Low — Optimization opportunity">
|
||||
Policies work, but could be improved.
|
||||
|
||||
**Examples**
|
||||
- Poor policy naming
|
||||
- Redundant or inefficient rules
|
||||
- Missing documentation
|
||||
|
||||
**What happens**
|
||||
- No automatic fixes
|
||||
- Suggestions are included in the PR comment only
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
|
||||
<Tip>
|
||||
|
||||
Start with manual tasks to refine your content queries, then automate repetitive content management and validation tasks.
|
||||
|
||||
Official workflow templates may expand over time as new patterns are validated. You can view, enable, and configure this workflow in **[Mission Control → Integrations → Supabase](https://hub.continue.dev/integrations/supabase)**.
|
||||
</Tip>
|
||||
|
||||
## Common RLS Policy Patterns
|
||||
### Advanced Use Cases
|
||||
|
||||
The agent recognizes and implements these standard security patterns:
|
||||
|
||||
### User-Scoped Access
|
||||
|
||||
Users can only access their own data:
|
||||
|
||||
```sql
|
||||
-- SELECT: Users can read their own records
|
||||
CREATE POLICY "users_select_own" ON user_profiles
|
||||
FOR SELECT USING (auth.uid() = user_id);
|
||||
|
||||
-- UPDATE: Users can update their own records
|
||||
CREATE POLICY "users_update_own" ON user_profiles
|
||||
FOR UPDATE USING (auth.uid() = user_id)
|
||||
WITH CHECK (auth.uid() = user_id);
|
||||
|
||||
-- DELETE: Users can delete their own records
|
||||
CREATE POLICY "users_delete_own" ON user_profiles
|
||||
FOR DELETE USING (auth.uid() = user_id);
|
||||
```
|
||||
|
||||
### Admin Override
|
||||
|
||||
Admins can access all data while users access only their own:
|
||||
|
||||
```sql
|
||||
CREATE POLICY "posts_select_owner_or_admin" ON posts
|
||||
FOR SELECT USING (
|
||||
auth.uid() = user_id OR
|
||||
auth.jwt() ->> 'role' = 'admin'
|
||||
);
|
||||
```
|
||||
|
||||
### Public Read, Authenticated Write
|
||||
|
||||
Anyone can read, only authenticated users can write:
|
||||
|
||||
```sql
|
||||
-- Public read access
|
||||
CREATE POLICY "public_posts_select" ON public_posts
|
||||
FOR SELECT USING (true);
|
||||
|
||||
-- Authenticated insert only
|
||||
CREATE POLICY "public_posts_insert_auth" ON public_posts
|
||||
FOR INSERT WITH CHECK (auth.role() = 'authenticated');
|
||||
```
|
||||
|
||||
### Soft Delete Handling
|
||||
|
||||
Exclude soft-deleted records from queries:
|
||||
|
||||
```sql
|
||||
CREATE POLICY "posts_select_not_deleted" ON posts
|
||||
FOR SELECT USING (
|
||||
deleted_at IS NULL AND
|
||||
(auth.uid() = user_id OR is_published = true)
|
||||
);
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
<Accordion title="Authentication issues">
|
||||
|
||||
**Problem**: Agent can't connect to Supabase
|
||||
|
||||
**Solutions**:
|
||||
- Re-authenticate through the integrations page
|
||||
- Verify OAuth token hasn't expired (expires after 7 days)
|
||||
- Check project permissions
|
||||
- Ensure Supabase project is accessible
|
||||
- For CI/CD, verify environment variables are set
|
||||
<Accordion title="Advanced: Custom Supabase Workflow Ideas">
|
||||
These examples are not officially maintained by the Continue team, but illustrate what’s possible with custom workflows.
|
||||
|
||||
- Run scheduled audits across high-risk tables (beyond PR scope)
|
||||
- Generate migration suggestions for schema changes even when no issues are Critical/High/Medium
|
||||
- Review SQL performance risks (missing indexes, expensive queries) before merge
|
||||
- Enforce schema conventions (naming, constraints, standard columns)
|
||||
- Generate “security notes” summaries for release PRs or weekly reports
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="No tables detected in PR">
|
||||
---
|
||||
|
||||
**Problem**: Agent reports no tables found to audit
|
||||
## Access & Permissions
|
||||
|
||||
**Solutions**:
|
||||
- Verify PR contains database-related changes
|
||||
- Check that migration files use standard naming
|
||||
- Ensure SDK calls use `.from('table_name')` pattern
|
||||
- Review PR for schema/type definition changes
|
||||
When connecting Supabase, you’ll authorize Continue to access your Supabase project(s) through the integration.
|
||||
|
||||
</Accordion>
|
||||
- **Project selection**
|
||||
Choose the Supabase organization and project you want Mission Control to connect to.
|
||||
|
||||
<Accordion title="RLS policies not generated">
|
||||
- **Permissions**
|
||||
Approved permissions allow Continue to inspect RLS and policies, generate recommended migrations, and support workflows that comment on PRs and commit fixes.
|
||||
|
||||
**Problem**: Agent identifies issues but doesn't create fixes
|
||||
You can update or revoke access at any time from Supabase or the Mission Control Hub.
|
||||
|
||||
**Solutions**:
|
||||
- Check if issues are Low priority (agent suggests only)
|
||||
- Verify agent has write access to repository
|
||||
- Review error messages in agent logs
|
||||
- Ensure Supabase MCP connection is working
|
||||
- Check if migration directory exists
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Generated policies too restrictive">
|
||||
|
||||
**Problem**: Auto-generated RLS policies block legitimate access
|
||||
|
||||
**Solutions**:
|
||||
- Review and adjust policies in the generated migration
|
||||
- Add custom logic for your specific access patterns
|
||||
- Mark tables for manual policy creation if needed
|
||||
- Provide feedback to improve future policy generation
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Migration conflicts">
|
||||
|
||||
**Problem**: Generated migration conflicts with existing changes
|
||||
|
||||
**Solutions**:
|
||||
- Review both migrations and merge manually
|
||||
- Ensure migration timestamps are unique
|
||||
- Check for duplicate policy names
|
||||
- Adjust generated migration as needed
|
||||
|
||||
</Accordion>
|
||||
|
||||
## Security Best Practices
|
||||
|
||||
<Warning>
|
||||
|
||||
**Development vs. Production**:
|
||||
- Always test RLS policies in development first
|
||||
- Use separate Supabase projects for dev/staging/prod
|
||||
- Never disable RLS on production tables
|
||||
- Review all generated policies before deploying
|
||||
- Test policies with different user roles
|
||||
|
||||
</Warning>
|
||||
|
||||
<Card title="RLS Policy Checklist" icon="list-check">
|
||||
|
||||
Before deploying RLS changes, verify:
|
||||
- [ ] RLS is enabled on all sensitive tables
|
||||
- [ ] Policies cover all CRUD operations (SELECT, INSERT, UPDATE, DELETE)
|
||||
- [ ] User-scoped data includes `auth.uid()` checks
|
||||
- [ ] Admin overrides verify admin role properly
|
||||
- [ ] Public access is intentional and documented
|
||||
- [ ] Policies include `WITH CHECK` clauses for writes
|
||||
- [ ] Soft deletes filter out `deleted_at IS NOT NULL`
|
||||
- [ ] Policy names follow naming conventions
|
||||
- [ ] Rollback commands are included
|
||||
- [ ] Policies are tested with different user scenarios
|
||||
|
||||
</Card>
|
||||
---
|
||||
|
||||
## Support & Resources
|
||||
|
||||
<CardGroup cols={2}>
|
||||
|
||||
<Card title="Supabase MCP Cookbook" icon="book-open" href="/guides/supabase-mcp-database-workflow">
|
||||
|
||||
Complete guide to database security automation with Supabase and Continue
|
||||
|
||||
<Card
|
||||
title="GitHub Integration"
|
||||
icon="github"
|
||||
href="/mission-control/integrations/github"
|
||||
>
|
||||
Combine Supabase with GitHub for PR-triggered security workflows.
|
||||
</Card>
|
||||
|
||||
<Card title="GitHub Integration" icon="github" href="/mission-control/integrations/github">
|
||||
|
||||
Combine Supabase with GitHub for automated security workflows
|
||||
|
||||
<Card
|
||||
title="Supabase RLS Documentation"
|
||||
icon="book"
|
||||
href="https://supabase.com/docs/guides/auth/row-level-security"
|
||||
>
|
||||
Learn more about Row Level Security and recommended policy patterns.
|
||||
</Card>
|
||||
|
||||
<Card title="Supabase RLS Documentation" icon="book" href="https://supabase.com/docs/guides/auth/row-level-security">
|
||||
|
||||
Official Supabase Row Level Security documentation
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Supabase MCP Docs" icon="code" href="https://supabase.com/docs/guides/getting-started/mcp">
|
||||
|
||||
Learn about the Supabase MCP Server.
|
||||
|
||||
</Card>
|
||||
|
||||
</CardGroup>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue