You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: address review feedback on run-agents-locally guide
- Add clarifying note distinguishing local vs cloud agents
- Remove redundant CardGroup section
- Fix API key naming to ANTHROPIC_API_KEY
- Clarify GitHub CLI pre-installed on runners
- Remove unnecessary tools: built_in from examples
- Rename "Rules" to "Guidelines" to avoid frontmatter confusion
- Flip headless/TUI order (headless is typical)
- Simplify frontmatter table, link to reference
- Move GitHub Actions section before Security
- Remove --ask from CI guidance (requires user intervention)
- Fix mac-only log path
- Add ANTHROPIC_API_KEY to local env vars section
- Clarify name field vs filename in best practices
Co-Authored-By: Claude Opus 4.5 <[email protected]>
description: "Set up version-controlled agents in your repository and run them with Continue CLI or GitHub Actions"
5
5
---
6
6
7
+
<Note>
8
+
Looking for the easiest way to create and manage agents? [Cloud Agents in Mission Control](/agents/overview#pre-configured-agents) are recommended for most teams. This guide covers **local agents**—agent files stored in your repository—for open source users or teams needing version-controlled definitions.
9
+
</Note>
10
+
7
11
<Cardtitle="What You'll Build"icon="folder-open">
8
12
A local agent system that:
9
13
- Keeps agent definitions version-controlled alongside your code
@@ -12,29 +16,13 @@ description: "Set up version-controlled agents in your repository and run them w
12
16
- Applies consistent workflows across your team
13
17
</Card>
14
18
15
-
## Why Local Agents?
16
-
17
-
<CardGroupcols={3}>
18
-
<Cardtitle="Version Control"icon="code-branch">
19
-
Agent definitions evolve with your codebase. Track changes, review in PRs, and roll back when needed.
20
-
</Card>
21
-
22
-
<Cardtitle="Team Consistency"icon="users">
23
-
Everyone runs the same agents with the same rules. No configuration drift across machines.
24
-
</Card>
25
-
26
-
<Cardtitle="CI/CD Ready"icon="rotate">
27
-
Trigger agents automatically on pull requests, commits, or any GitHub event.
28
-
</Card>
29
-
</CardGroup>
30
-
31
19
## Prerequisites
32
20
33
21
Before starting, ensure you have:
34
22
35
23
-[Continue CLI installed](/cli/install) (`npm i -g @continuedev/cli`)
36
-
-An LLM API key (e.g., `ANTHROPIC_API_KEY`)
37
-
-[GitHub CLI](https://cli.github.com/) if your agents interact with GitHub
24
+
-`ANTHROPIC_API_KEY` environment variable set
25
+
-[GitHub CLI](https://cli.github.com/)installed locally if your agents interact with GitHub (pre-installed on GitHub-hosted runners)
38
26
39
27
## Quick Setup
40
28
@@ -58,7 +46,6 @@ Before starting, ensure you have:
58
46
---
59
47
name: My First Agent
60
48
description: Describes what this agent does
61
-
tools: built_in
62
49
---
63
50
64
51
You are an agent that helps with [specific task].
@@ -69,22 +56,22 @@ Before starting, ensure you have:
69
56
2. Then, do that
70
57
3. Finally, complete this
71
58
72
-
## Rules
59
+
## Guidelines
73
60
74
-
- Follow this guideline
75
-
- Avoid this pattern
61
+
- Follow this pattern
62
+
- Avoid this anti-pattern
76
63
```
77
64
</Step>
78
65
79
66
<Steptitle="Run the agent">
80
67
```bash
81
-
cn --agent .continue/agents/my-agent.md
68
+
cn -p --agent .continue/agents/my-agent.md
82
69
```
83
70
84
-
For headless execution (useful for automation):
71
+
For interactive development (TUI mode):
85
72
86
73
```bash
87
-
cn -p --agent .continue/agents/my-agent.md
74
+
cn --agent .continue/agents/my-agent.md
88
75
```
89
76
</Step>
90
77
</Steps>
@@ -99,12 +86,13 @@ Agent files are markdown documents with YAML frontmatter. The frontmatter config
99
86
|-------|----------|-------------|
100
87
|`name`| Yes | Display name for the agent |
101
88
|`description`| Yes | Brief description of what the agent does |
102
-
|`tools`| No | Tool configuration (`built_in` for standard tools) |
103
89
104
90
<Info>
105
91
The markdown body is the agent's system prompt. Write clear, specific instructions with examples for best results.
106
92
</Info>
107
93
94
+
For additional options like `rules`, `model`, and MCP tool configuration, see the [Agent Configuration Reference](/agents/agent-file-reference).
95
+
108
96
## Example: Conventional PR Title Agent
109
97
110
98
This agent updates pull request titles to follow conventional commit format:
@@ -113,7 +101,6 @@ This agent updates pull request titles to follow conventional commit format:
113
101
---
114
102
name: Conventional Title
115
103
description: Updates PR title to follow conventional commit format
116
-
tools: built_in
117
104
---
118
105
119
106
You are reviewing a pull request to format its title according to conventional commit standards.
@@ -149,6 +136,61 @@ You are reviewing a pull request to format its title according to conventional c
149
136
- Use lowercase, no period at end
150
137
````
151
138
139
+
## GitHub Actions Integration
140
+
141
+
Continue provides a [reusable workflow](https://github.com/continuedev/continue/blob/main/.github/workflows/continue-agents.yml) that handles agent discovery, parallel execution, and GitHub Check reporting.
Learn more in the [CLI documentation](/cli/overview#how-to-set-tool-permissions).
@@ -210,76 +249,24 @@ When running agents in CI/CD, follow the principle of least privilege:
210
249
Before enabling fully automated agents:
211
250
212
251
1. **Test locally first** - Run agents with `cn` to verify behavior
213
-
2. **Use `--ask` mode** - Require approval for sensitive operations during testing
214
-
3. **Review CI logs** - Check what commands agents execute in your workflows
215
-
4. **Start with read-only agents** - Begin with agents that analyze rather than modify
252
+
2. **Review CI logs** - Check what commands agents execute in your workflows
253
+
3. **Start with read-only agents** - Begin with agents that analyze rather than modify
216
254
217
255
<Tip>
218
256
For high-risk operations (like pushing commits or modifying infrastructure), consider requiring manual approval steps in your workflow.
219
257
</Tip>
220
258
221
-
## GitHub Actions Integration
222
-
223
-
Continue provides a [reusable workflow](https://github.com/continuedev/continue/blob/main/.github/workflows/continue-agents.yml) that handles agent discovery, parallel execution, and GitHub Check reporting.
0 commit comments