Changesets · Branches · Tags · Compare
| Changeset | 9c7524424566577ddc2362ffb0b00463ac962e83fd45e562df46004eaec74bab |
|---|---|
| Author | BekahHW <rhawrot@gmail.com> · 2025-09-18 08:17 -04:00 |
| Committer | BekahHW <rhawrot@gmail.com> · 2025-09-18 08:17 -04:00 |
| Parents | b06f5503dce8 |
1 file changed
modified docs/cli/quick-start.mdx +124 −20
| @@ -4,40 +4,123 @@ | ||
| 4 | 4 | sidebarTitle: "Quick Start" |
| 5 | 5 | --- |
| 6 | 6 | |
| 7 | -Get hands-on experience with Continue CLI through common development scenarios. | |
| 7 | +Get hands-on experience with Continue CLI through practical development workflows. | |
| 8 | 8 | |
| 9 | 9 | <Tabs> |
| 10 | - <Tab title="Interactive Mode"> | |
| 11 | - Interactive mode (`cn` command) lets you have a back-and-forth conversation | |
| 12 | - with Continue about your codebase. You can ask questions, get explanations, | |
| 13 | - and request code changes. | |
| 10 | + <Tab title="REPL Mode"> | |
| 11 | + REPL mode (`cn` command) is for **large development tasks** that require | |
| 12 | + agentic workflows with human oversight. Perfect for complex refactors, | |
| 13 | + feature implementation, or one-off automation tasks that need monitoring and | |
| 14 | + iteration. | |
| 14 | 15 | </Tab> |
| 15 | - <Tab title="Headless Mode"> | |
| 16 | - Headless mode (`-p` flag) is designed for automation and scripting. It | |
| 17 | - allows you to run commands without user interaction, making it suitable for | |
| 18 | - CI/CD pipelines and other automated workflows. | |
| 16 | + <Tab title="Continuous AI Mode"> | |
| 17 | + Continuous AI mode (`-p` flag) is for **reliable, repeatable tasks** that no | |
| 18 | + longer need constant supervision. Perfect for CI/CD pipelines, git hooks, | |
| 19 | + and automated workflows you've already tested and refined. | |
| 19 | 20 | </Tab> |
| 20 | 21 | </Tabs> |
| 21 | 22 | |
| 22 | -## Get Started | |
| 23 | +## REPL Mode: Large Development Tasks | |
| 23 | 24 | |
| 24 | 25 | Make sure you have [Continue CLI installed](/cli/install) and are in a project directory. |
| 25 | 26 | |
| 27 | +### Example: Implementing a New Feature | |
| 28 | + | |
| 26 | 29 | ```bash |
| 27 | 30 | # Navigate to your project directory |
| 28 | 31 | cd your-awesome-project |
| 29 | 32 | |
| 30 | -# Start Continue CLI in interactive mode | |
| 33 | +# Start REPL mode for complex development work | |
| 34 | +cn | |
| 35 | +``` | |
| 36 | + | |
| 37 | +**Example workflow for adding authentication:** | |
| 38 | + | |
| 39 | +``` | |
| 40 | +> I need to add JWT authentication to this Express app. Let me start by showing you the current structure. | |
| 41 | + | |
| 42 | +> @src/app.js @package.json Here's my current setup. Can you implement JWT auth with middleware, login/register routes, and user model? | |
| 43 | + | |
| 44 | +> [Agent analyzes codebase and implements auth system] | |
| 45 | +> [You review changes, test, and provide feedback] | |
| 46 | +> [Agent iterates based on your input until the feature is complete] | |
| 47 | +``` | |
| 48 | + | |
| 49 | +### Example: Complex Refactoring | |
| 50 | + | |
| 51 | +```bash | |
| 52 | +cn | |
| 53 | +``` | |
| 54 | + | |
| 55 | +**Refactoring a monolithic component:** | |
| 56 | + | |
| 57 | +``` | |
| 58 | +> @src/components/Dashboard.jsx This component is 800 lines and does too much. Help me break it into smaller, reusable components. | |
| 59 | + | |
| 60 | +> [Agent analyzes component structure] | |
| 61 | +> [Proposes component breakdown strategy] | |
| 62 | +> [You approve approach] | |
| 63 | +> [Agent implements the refactor with proper props and state management] | |
| 64 | +> [You test and request adjustments] | |
| 65 | +``` | |
| 66 | + | |
| 67 | +### When to Use REPL Mode | |
| 68 | + | |
| 69 | +✅ **Large development tasks** that need oversight | |
| 70 | +✅ **Complex refactors** requiring multiple steps | |
| 71 | +✅ **New feature implementation** with unknowns | |
| 72 | +✅ **One-off automation tasks** you haven't done before | |
| 73 | +✅ **Debugging complex issues** that need exploration | |
| 74 | + | |
| 75 | +## Continuous AI Mode: Automated Workflows | |
| 76 | + | |
| 77 | +Once you've refined a workflow in REPL mode, convert it to Continuous AI for automation. | |
| 78 | + | |
| 79 | +### Example: From REPL → Continuous AI | |
| 80 | + | |
| 81 | +**Step 1: Develop in REPL mode** | |
| 82 | + | |
| 83 | +```bash | |
| 31 | 84 | cn |
| 85 | +> @package.json @CHANGELOG.md Generate release notes for version 2.1.0 | |
| 86 | +> [Test and refine the prompt until it works perfectly] | |
| 87 | +``` | |
| 88 | + | |
| 89 | +**Step 2: Convert to Continuous AI** | |
| 90 | + | |
| 91 | +```bash | |
| 92 | +# Now use the refined workflow in automation | |
| 93 | +cn -p "Generate release notes for the current version based on package.json and recent commits" | |
| 32 | 94 | ``` |
| 33 | 95 | |
| 34 | -This will launch an interactive chat session. You can also run commands directly in headless mode: | |
| 96 | +### Common Continuous AI Workflows | |
| 35 | 97 | |
| 36 | 98 | ```bash |
| 37 | -# Run a command in headless mode | |
| 38 | -cn -p "Fix lint issues in the src/ directory" | |
| 99 | +# Git automation | |
| 100 | +cn -p "Generate a conventional commit message for staged changes" | |
| 101 | +cn -p "Review the last 3 commits for potential issues" | |
| 102 | + | |
| 103 | +# Code quality | |
| 104 | +cn -p "Fix all TypeScript errors in the src/ directory" | |
| 105 | +cn -p "Update outdated dependencies and fix breaking changes" | |
| 106 | + | |
| 107 | +# Documentation | |
| 108 | +cn -p "@README.md Update documentation based on recent changes" | |
| 109 | +cn -p "Generate API documentation from JSDoc comments" | |
| 110 | + | |
| 111 | +# CI/CD integration | |
| 112 | +cn -p "Analyze test failures and create GitHub issue with findings" | |
| 113 | +cn -p "Update version numbers and create release branch" | |
| 39 | 114 | ``` |
| 40 | 115 | |
| 116 | +### When to Use Continuous AI Mode | |
| 117 | + | |
| 118 | +✅ **Proven workflows** you've tested in REPL mode | |
| 119 | +✅ **Repetitive tasks** that no longer need oversight | |
| 120 | +✅ **CI/CD automation** in pipelines | |
| 121 | +✅ **Git hooks** for automated checks | |
| 122 | +✅ **Scheduled tasks** that run unattended | |
| 123 | + | |
| 41 | 124 | ### Available Slash Commands |
| 42 | 125 | |
| 43 | 126 | Common slash commands available in CLI: |
| @@ -59,18 +142,39 @@ | ||
| 59 | 142 | |
| 60 | 143 | <Info>Use `/help` to see all available commands.</Info> |
| 61 | 144 | |
| 62 | -## Guides to Continuous AI with CLI | |
| 145 | +## The Development Workflow | |
| 146 | + | |
| 147 | +<Info> | |
| 148 | + **Recommended Approach**: Start complex tasks in REPL mode to iterate and | |
| 149 | + refine your approach. Once you have a reliable workflow, convert it to | |
| 150 | + Continuous AI mode for automation. | |
| 151 | +</Info> | |
| 152 | + | |
| 153 | +### Workflow Pattern | |
| 154 | + | |
| 155 | +1. **🔬 Experiment in REPL Mode** | |
| 156 | + | |
| 157 | + - Try complex development tasks with human oversight | |
| 158 | + - Iterate on prompts and approaches until they work reliably | |
| 159 | + - Test edge cases and refine the agent's behavior | |
| 160 | + | |
| 161 | +2. **⚡ Automate with Continuous AI** | |
| 162 | + - Convert proven REPL workflows to single commands | |
| 163 | + - Deploy in CI/CD, git hooks, or scheduled tasks | |
| 164 | + - Run with confidence knowing the approach is tested | |
| 165 | + | |
| 166 | +## Next Steps | |
| 63 | 167 | |
| 64 | 168 | <CardGroup cols={3}> |
| 65 | 169 | <Card title="Create Your First Workflow" href="/guides/posthog-github-continuous-ai"> |
| 66 | - Automate issue creation and labeling with PostHog data | |
| 170 | + Build an automated PostHog to GitHub issues workflow | |
| 67 | 171 | </Card> |
| 68 | 172 | |
| 69 | -<Card title="How to Use the CLI" href="/guides/cli"> | |
| 70 | - Learn more about Continue CLI features and capabilities | |
| 173 | +<Card title="CLI Configuration" href="/cli/configuration"> | |
| 174 | + Customize models, rules, and advanced settings | |
| 71 | 175 | </Card> |
| 72 | 176 | |
| 73 | - <Card title="Continous AI: a Developer's Guide" href="/guides/continuous-ai"> | |
| 74 | - Build custom tools and integrations using `cn` | |
| 177 | + <Card title="Continuous AI Guide" href="/guides/continuous-ai"> | |
| 178 | + Learn to build and deploy AI-powered development workflows | |
| 75 | 179 | </Card> |
| 76 | 180 | </CardGroup> |