Elffuss BraidHub

kikocis/continue public

First pass at updating purpose
Changeset9c7524424566577ddc2362ffb0b00463ac962e83fd45e562df46004eaec74bab
AuthorBekahHW <rhawrot@gmail.com> · 2025-09-18 08:17 -04:00
CommitterBekahHW <rhawrot@gmail.com> · 2025-09-18 08:17 -04:00
Parentsb06f5503dce8

Browse the files at this changeset

1 file changed

modified docs/cli/quick-start.mdx +124 −20
@@ -4,40 +4,123 @@
44 sidebarTitle: "Quick Start"
55 ---
66
7-Get hands-on experience with Continue CLI through common development scenarios.
7+Get hands-on experience with Continue CLI through practical development workflows.
88
99 <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.
1415 </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.
1920 </Tab>
2021 </Tabs>
2122
22-## Get Started
23+## REPL Mode: Large Development Tasks
2324
2425 Make sure you have [Continue CLI installed](/cli/install) and are in a project directory.
2526
27+### Example: Implementing a New Feature
28+
2629 ```bash
2730 # Navigate to your project directory
2831 cd your-awesome-project
2932
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
3184 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"
3294 ```
3395
34-This will launch an interactive chat session. You can also run commands directly in headless mode:
96+### Common Continuous AI Workflows
3597
3698 ```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"
39114 ```
40115
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+
41124 ### Available Slash Commands
42125
43126 Common slash commands available in CLI:
@@ -59,18 +142,39 @@
59142
60143 <Info>Use `/help` to see all available commands.</Info>
61144
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
63167
64168 <CardGroup cols={3}>
65169 <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
67171 </Card>
68172
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
71175 </Card>
72176
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
75179 </Card>
76180 </CardGroup>