Skip to content

Commit 75bb1ac

Browse files
authored
Merge pull request #742 from dgageot/fix-typos
Fix typos
2 parents 58d0823 + 3689401 commit 75bb1ac

File tree

9 files changed

+33
-12
lines changed

9 files changed

+33
-12
lines changed

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ agents:
282282

283283
- `/new` - Clear session history
284284
- `/compact` - Generate summary and compact session history
285-
- `/copy` - Show token usage statistics
285+
- `/copy` - Copy the current conversation to the clipboard
286286
- `/eval` - Save evaluation data
287287

288288
## File Locations and Patterns

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Toolkit](https://docs.docker.com/ai/mcp-catalog-and-toolkit/toolkit/) and
5555
[catalog](https://docs.docker.com/ai/mcp-catalog-and-toolkit/catalog/)
5656

5757
Here, we're giving the same basic agent from the example above access to a
58-
**containerized** `duckduckgo` mcp server and it's tools by using Docker's MCP
58+
**containerized** `duckduckgo` mcp server and its tools by using Docker's MCP
5959
Gateway:
6060

6161
```yaml
@@ -78,7 +78,7 @@ any required settings/secrets/authentication using the [Docker MCP
7878
Toolkit](https://docs.docker.com/ai/mcp-catalog-and-toolkit/toolkit/#example-use-the-github-official-mcp-server)
7979
in Docker Desktop.
8080

81-
Aside from the containerized MCP severs the Docker MCP Gateway provides, any
81+
Aside from the containerized MCP servers the Docker MCP Gateway provides, any
8282
standard MCP server can be used with cagent!
8383

8484
Here's an example similar to the above but adding `read_file` and `write_file`
@@ -184,7 +184,7 @@ to find it (configuration varies by platform).
184184
### **Set your API keys**
185185

186186
Based on the models you configure your agents to use, you will need to set the
187-
corresponding provider API key accordingly, all theses keys are optional, you
187+
corresponding provider API key accordingly, all these keys are optional, you
188188
will likely need at least one of these, though:
189189

190190
```bash

docs/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you're hacking on `cagent`, or just want to be on the bleeding edge, then bui
1313
- Go 1.25 or higher
1414
- API key(s) for your chosen AI provider (OpenAI, Anthropic, Gemini, etc.)
1515
- [Task 3.44 or higher](https://taskfile.dev/installation/)
16-
- [`golangci-lint`](https://golangci-lint.run/docs/welcome/install/#binaries`)
16+
- [`golangci-lint`](https://golangci-lint.run/docs/welcome/install/#binaries)
1717

1818
##### Build commands
1919

@@ -25,7 +25,7 @@ task build
2525

2626
# Set keys for remote inference services
2727
export OPENAI_API_KEY=your_api_key_here # For OpenAI models
28-
export ANTHROPIC_API_KEY=your_api_key_here # For Anthopic models
28+
export ANTHROPIC_API_KEY=your_api_key_here # For Anthropic models
2929
export GOOGLE_API_KEY=your_api_key_here # For Gemini models
3030
export MISTRAL_API_KEY=your_api_key_here # For Mistral models
3131

docs/USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Determine how much the model should think by setting the `thinking_budget`
175175

176176
- **OpenAI**: use effort levels — `minimal`, `low`, `medium`, `high`
177177
- **Anthropic**: set an integer token budget. Range is 1024–32768; must be strictly less than `max_tokens`.
178-
- **Google (Gemini)**: set an integer token budget. `0` -> disable thinking, `-1` -> dynamic thinking (model decides). Most models: 0–24576 tokens. Gemini 2.5 Pro: 128–32768 tokens (and cannot disabled thinking).
178+
- **Google (Gemini)**: set an integer token budget. `0` -> disable thinking, `-1` -> dynamic thinking (model decides). Most models: 0–24576 tokens. Gemini 2.5 Pro: 128–32768 tokens (and cannot disable thinking).
179179

180180
Examples (OpenAI):
181181

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ These are more advanced examples, most of them involve some sort of MCP server t
3636
| [github.yaml](github.yaml) | GitHub assistance using MCP tools | | | | | | [github-official](https://hub.docker.com/mcp/server/github-official/overview) | |
3737
| [review.yaml](review.yaml) | Dockerfile review specialist || | | | | | |
3838
| [code.yaml](code.yaml) | Code analysis and development assistant |||| | | | |
39-
| [go_packages.yml](go_packages.yml) | Golang packages expert | | | | | | | |
39+
| [go_packages.yaml](go_packages.yaml) | Golang packages expert | | | | | | | |
4040
| [moby.yaml](moby.yaml) | Moby Project Expert | | | | | | `gitmcp.io/moby/moby` | |
4141
| [image_text_extractor.yaml](image_text_extractor.yaml) | Image text extraction || | | | | | |
4242
| [doc_generator.yaml](doc_generator.yaml) | Documentation generation from codebases | || || | | |

examples/typo.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env cagent run
2+
version: "2"
3+
4+
agents:
5+
root:
6+
model: model
7+
description: Fix typos.
8+
instruction: |
9+
Your goal is to fix typos in a project.
10+
Read as many files as you can at once and fix typos in them.
11+
Fix typos and don't print any summary.
12+
toolsets:
13+
- type: filesystem
14+
tools: ["list_directory", "edit_file", "read_multiple_files", "write_file"]
15+
commands:
16+
- fix: Fix every typo, in every file, in the current directory.
17+
18+
models:
19+
model:
20+
provider: anthropic
21+
model: claude-sonnet-4-5

golang_developer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ agents:
3939
* Be proactive in identifying potential issues
4040
* Only ask for clarification if necessary, try your best to use all the tools to get the info you need
4141
* Don't show the code that you generated
42-
* Nerver write summary docuemnts, only code changes
42+
* Never write summary documents, only code changes
4343
4444
## Core Responsibilities
4545
- Develop, maintain, and enhance Go applications following best practices

pkg/mcp/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ func CreateToolHandler(t *team.Team, agentName, agentFilename string) func(conte
136136
}
137137

138138
func isReadOnlyAgent(ctx context.Context, ag *agent.Agent) (bool, error) {
139-
allTolls, err := ag.Tools(ctx)
139+
allTools, err := ag.Tools(ctx)
140140
if err != nil {
141141
return false, err
142142
}
143143

144-
for _, tool := range allTolls {
144+
for _, tool := range allTools {
145145
if !tool.Annotations.ReadOnlyHint {
146146
return false, nil
147147
}

pkg/tui/commands/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func builtInFeedbackCommands() []Item {
100100
},
101101
},
102102
{
103-
ID: "feedback.feeedback",
103+
ID: "feedback.feedback",
104104
Label: "Give Feedback",
105105
Description: "Provide feedback about cagent",
106106
Category: "Feedback",

0 commit comments

Comments
 (0)