From b110039a48c42656e5aca2ccbbe06f864c4bfae0 Mon Sep 17 00:00:00 2001 From: BekahHW Date: Wed, 29 Oct 2025 15:17:14 -0400 Subject: [PATCH] Remove unnecessary and add specificity --- docs/hub/agents/create-and-edit.mdx | 273 ++++------------------------ docs/hub/agents/intro.mdx | 2 +- docs/hub/agents/overview.mdx | 42 ++--- 3 files changed, 57 insertions(+), 260 deletions(-) diff --git a/docs/hub/agents/create-and-edit.mdx b/docs/hub/agents/create-and-edit.mdx index c93924a40..271258753 100644 --- a/docs/hub/agents/create-and-edit.mdx +++ b/docs/hub/agents/create-and-edit.mdx @@ -4,20 +4,22 @@ description: "Build custom AI workflows with prompts, rules, and tools through t sidebarTitle: "Create & Edit" --- - + You can only create and edit Agents through Mission Control in the Continue Hub web interface. This ensures proper validation, versioning, and team collaboration features. ## Creating an Agent + ![Create an agent gif](/docs/images/hub/create-an-agent.gif) + + From the Continue Hub top navigation bar, select **"+"** → **"New Agent"**. This opens the **Create an Agent (beta)** form with all required fields. - ![Create an agent screenshot](/docs/images/hub/create-an-agent.gif) @@ -25,7 +27,7 @@ sidebarTitle: "Create & Edit" | Field | What to Enter | Example | |-------|---------------|---------| - | **Name** | Display name shown in the Hub | `Open PR with Fix` | + | **Name** | Display name shown in the Hub | `GitHub PR Agent` | | **Prompt** | First instruction the agent receives | `Open a GitHub PR to fix the specified issue.` | | **Description** | What the agent does | `Creates a pull request and includes AI-generated summaries.` | | **Tools (MCPs)** | Select built-in or custom MCPs | `GitHub, PostHog, Supabase` | @@ -45,7 +47,7 @@ sidebarTitle: "Create & Edit" ```yaml name: Open PR with Fix description: Open a GitHub PR to fix the specified issue - tools: built_in + tools: built_in, anthropic/github-mcp rules: - continuedev/gh-pr-commit-workflow - continuedev/summarization @@ -62,7 +64,7 @@ sidebarTitle: "Create & Edit" Your agent is immediately available to run in: - Mission Control web interface - TUI mode: `cn --agent your-org/your-agent-name` - - Headless mode: `cn --agent your-org/your-agent-name "prompt" --auto` + - Headless mode: `cn --agent -p your-org/your-agent-name "prompt" --auto` @@ -132,230 +134,49 @@ You can edit any agent you own or that belongs to your organization. -## Agent Components Deep Dive - -### Writing Effective Prompts - -Your prompt is the agent's primary instruction. Follow these patterns for best results: - - - - **Good**: Clear, actionable instructions - ``` - Analyze the Sentry errors from the past 24 hours and create GitHub issues - for any critical bugs with suggested fixes and reproduction steps. - ``` - - **Avoid**: Vague or open-ended requests - ``` - Look at errors and do something about them. - ``` - - - - **Good**: Include relevant context and constraints - ``` - Review the React components in src/components/ for accessibility issues. - Focus on ARIA labels, keyboard navigation, and color contrast. - Create a summary report with specific file locations and fix suggestions. - ``` - - **Avoid**: Assumptions about available context - ``` - Fix the accessibility problems. - ``` - - - - **Good**: Break complex tasks into clear steps - ``` - For the user authentication refactor: - 1. Audit current auth implementation for security issues - 2. Design improved architecture with proper session management - 3. Create migration plan with backwards compatibility - 4. Open PR with implementation and comprehensive tests - ``` - - **Avoid**: Complex tasks without structure - ``` - Refactor the authentication system to be better. - ``` - - - -### Choosing Rules - -Rules enforce consistent behavior across all agent runs. Popular rule categories: - -| Rule Type | Purpose | Example | -|-----------|---------|---------| -| **Code Quality** | Maintain standards | `continuedev/test-coverage`, `continuedev/code-review-checklist` | -| **Security** | Apply security practices | `continuedev/security-first`, `continuedev/vulnerability-scanning` | -| **Team Workflow** | Follow processes | `continuedev/pr-template`, `continuedev/commit-conventions` | -| **Custom** | Organization-specific | `my-org/deployment-rules`, `my-org/documentation-standards` | - -### Selecting Tools (MCPs) - -MCPs provide agents with external system access: - - - - - **GitHub MCP**: Repository operations, PRs, issues - - **GitLab MCP**: Similar to GitHub for GitLab users - - **Linear MCP**: Issue tracking and project management - - - - - **PostHog MCP**: User analytics and feature flags - - **Sentry MCP**: Error tracking and performance monitoring - - **DataDog MCP**: Infrastructure and application monitoring - - - - - **Snyk MCP**: Vulnerability scanning and dependency analysis - - **SonarQube MCP**: Code quality and security analysis - - **Aqua MCP**: Container security scanning - - - - - **Supabase MCP**: Database operations and schema management - - **dlt MCP**: Data pipeline development and monitoring - - **Terraform MCP**: Infrastructure as code management - - - -## Testing Your Agent - -Before deploying agents for team use, test thoroughly: - - - - Use TUI mode to interact with your agent: - - ```bash - cn --agent your-org/new-agent - # Chat interactively to test behavior - # Verify tool integrations work correctly - # Check that rules are applied properly - ``` - - - - Test with various scenarios: - - ```bash - # Test with minimal input - cn --agent your-org/new-agent "Fix authentication" - - # Test with detailed context - cn --agent your-org/new-agent "Fix the authentication timeout issue in src/auth/session.js affecting mobile users" - - # Test error handling - cn --agent your-org/new-agent "Invalid request that should fail gracefully" - ``` - - - - Verify production requirements: - - - [ ] Agent completes tasks without manual intervention - - [ ] Error handling is robust and informative - - [ ] Output format meets team expectations - - [ ] Security and permissions are properly configured - - [ ] Performance is acceptable for intended use cases - - + + Test your agent thoroughly to ensure they interact as expected. + ## Example Agent Configurations Here are proven agent patterns you can adapt: - - - ```yaml - name: Weekly Security Scan - description: Runs comprehensive security analysis and creates remediation PRs - prompt: | - Run a complete security scan including: - 1. Snyk dependency analysis - 2. Code vulnerability scanning - 3. Container image security check - 4. Create GitHub issues for critical findings with fix suggestions - tools: - - snyk-mcp - - github-mcp - rules: - - continuedev/security-first - - my-org/vulnerability-reporting - model: Claude Sonnet 4.5 - visibility: organization - ``` - - - - ```yaml - name: API Documentation Update - description: Generates and updates API documentation from code changes - prompt: | - Analyze recent API changes and update documentation: - 1. Scan for new or modified endpoints - 2. Generate OpenAPI specifications - 3. Update README and integration guides - 4. Create PR with comprehensive docs - tools: - - github-mcp - - openapi-mcp - rules: - - continuedev/documentation-standards - - my-org/api-guidelines - model: GPT-4 - visibility: organization - ``` - - - - ```yaml - name: Performance Regression Detector - description: Monitors performance metrics and alerts on regressions - prompt: | - Analyze recent performance data: - 1. Check Core Web Vitals trends - 2. Identify performance regressions - 3. Correlate with recent deployments - 4. Create detailed performance report with recommendations - tools: - - netlify-mcp - - datadog-mcp - - github-mcp - rules: - - continuedev/performance-monitoring - - my-org/sla-requirements - model: Claude Sonnet 4.5 - visibility: private - ``` - - - -## Best Practices +Here are proven agent configurations you can create or use as inspiration: - - Begin with basic prompts and single tools. Add complexity gradually as you learn what works for your use cases. + + **Snyk Continuous AI Agent** - Comprehensive security scanning with Snyk MCP integration. + + Automates dependency analysis, vulnerability scanning, and creates remediation PRs with AI-powered fix suggestions. - - - Choose clear, specific names that indicate the agent's purpose: `security-scanner-weekly` vs `scanner`. + + + **Netlify Continuous AI Agent** - Performance optimization with A/B testing and monitoring. + + Tracks Core Web Vitals, identifies regressions, and provides optimization recommendations. - - - Make incremental changes and test thoroughly. Agent versioning helps track what works. + + + **Sentry Continuous AI Agent** - Automated error analysis and issue creation. + + Monitors production errors, provides root cause analysis, and creates actionable GitHub issues. - - - Involve your team in agent design. The best agents solve real workflow pain points. + + + **GitHub Manager AI Agent** - Comprehensive GitHub workflow automation. + + Handles issue triage, PR reviews, and release note generation with natural language prompts. + + + + **Supabase Continuous AI Agent** - Database security and management workflows. + + Audits Row Level Security, identifies vulnerabilities, and generates fixes automatically. + ## Troubleshooting Common issues and solutions: @@ -366,23 +187,3 @@ Common issues and solutions: | **Tools aren't working** | Check MCP configuration, verify API keys and permissions in Hub settings | | **Inconsistent behavior** | Add rules to enforce consistent patterns, test with various input scenarios | | **Performance issues** | Consider model choice, simplify complex multi-step workflows, optimize tool usage | - -## Next Steps - - - - Learn to run your agent in TUI, headless, or Mission Control modes - - - - Set up automated triggers for CI/CD and monitoring systems - - - - Explore cookbook agents for inspiration and best practices - - - - Configure team access and collaboration workflows - - \ No newline at end of file diff --git a/docs/hub/agents/intro.mdx b/docs/hub/agents/intro.mdx index 0689bf600..7e73717ae 100644 --- a/docs/hub/agents/intro.mdx +++ b/docs/hub/agents/intro.mdx @@ -54,7 +54,7 @@ Use Mission Control to kick off agents for: - **New to agents?** Check out our [overview guide](/hub/agents/overview) to understand how agents combine prompts, rules, and tools into powerful workflows. + **New to agents?** Check out our [pre-configured agents](http://localhost:3000/hub/agents/overview#pre-configured-agents) to test out a workflow immediately. ## Example Workflow Tasks diff --git a/docs/hub/agents/overview.mdx b/docs/hub/agents/overview.mdx index 0322e1d23..e4dc90a02 100644 --- a/docs/hub/agents/overview.mdx +++ b/docs/hub/agents/overview.mdx @@ -5,21 +5,23 @@ sidebarTitle: "Overview" --- - Agents are custom AI workflows that combine a prompt, rules, and tools (MCPs) to complete specific, repeatable tasks. + Agents are custom AI workflows that combine a prompt, rules, and tools (MCPs and more) to complete specific, repeatable tasks. They live in the Continue Hub and can be executed from Mission Control (web interface), TUI mode, or headless automation. ## What Are Agents? -Agents let your team standardize common workflows — like opening GitHub PRs, summarizing analytics, or auditing security. Each agent includes: +Agents let your team standardize common workflows like opening GitHub PRs, summarizing analytics, or auditing security. Each agent includes: -| Component | Description | Example | -|-----------|-------------|---------| -| **Prompt** | The agent's primary instruction | "Open a GitHub PR to fix the specified issue." | -| **Rules** | Standardized system behaviors | "Always summarize user context before opening PR." | -| **Tools / MCPs** | Connected integrations | GitHub, PostHog, Supabase | -| **Model** | The LLM used | Claude Sonnet 3.5 | -| **Visibility** | Access scope | Public / Organization / Private | +### Agent Components + +| **Component** | **Description** | **Example** | +|----------------|-----------------|--------------| +| **Prompt** | The agent’s main instruction that defines what it does and how it should behave. Additional user input is appended when invoked. | Example prompt: “Summarize ongoing work with status, blockers, and next steps. Use markdown formatting and a concise, professional tone.” | +| **Rules** | Define consistent standards or behaviors that guide how the agent responds. Rules help ensure reliability across team usage. | “Always include related issue or PR links when summarizing work.” | +| **Tools / MCPs** | External systems or integrations the agent can call to complete tasks. MCPs (Model Context Protocols) extend functionality through APIs. | GitHub, PostHog, Supabase | +| **Model** | The large language model that powers the agent’s reasoning and output generation. | Claude Sonnet 4.5 | +| **Visibility** | Determines who can view or use the agent. Controls access at creation time. | Public, Organization, or Private | Mission Control is in beta. Please share any feedback with us in [GitHub discussions](https://github.com/continuedev/continue/discussions/8051). @@ -65,7 +67,7 @@ You can run Agents in three main ways: Run one-off or scheduled tasks automatically without interaction. ```bash - cn --agent my-org/snyk-agent "Run weekly security scan" --auto + cn -p --agent my-org/snyk-agent "Run weekly security scan" --auto ``` Perfect for: CI/CD pipelines, scheduled tasks, webhook integrations @@ -112,7 +114,7 @@ Skip the setup and use battle-tested agents from our cookbook collection: **Explore More Agents**: Browse the complete collection of pre-configured agents and MCP integration cookbooks in our [Guides Overview](/guides/overview#mcp-integration-cookbooks). -## Webhook Integrations +{/* ## Webhook Integrations Trigger Agents automatically through secure webhooks for CI/CD integration: @@ -127,19 +129,17 @@ Perfect for connecting with: - GitHub Actions workflows - Monitoring alerts (Sentry, DataDog) - Deployment pipelines -- Scheduled maintenance tasks +- Scheduled maintenance tasks */} -## Team Collaboration +## Collaboration Agents are organizational assets — once created, everyone in your org can use them: | Role | Permissions | |------|-------------| -| **Admin** | Create, edit, and delete Agents | -| **Member** | Run Agents and view results | -| **Viewer** | View and monitor Agent sessions | - -Each update is versioned, so your team can track changes to prompts, rules, and configurations. +| **Public** | Use, create, remix, and delete Agents | +| **Organization** | Share agents with your team | +| **Private** | Create, edit, and delete Agents for your personal use | ## Getting Started @@ -157,7 +157,7 @@ Each update is versioned, so your team can track changes to prompts, rules, and ```bash cn --agent continuedev/snyk-continuous-ai-agent - # Interactive mode - perfect for learning + # Interactive mode - perfect for learning how to use the agent for your use case ``` @@ -180,10 +180,6 @@ The practice of using background agents, which we call Continuous AI, requires f - **Team Alignment**: Discuss agent usage and adjust code review habits for higher PR volume - **Iterate and Improve**: Be willing to refine prompts based on results - - Explore our [Continuous AI Blog](https://blog.continue.dev) for advanced patterns, case studies, and best practices from teams using agents in production. - - ## Next Steps