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
Copy file name to clipboardExpand all lines: README.md
+38-4Lines changed: 38 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,20 +35,54 @@ mycoder "Implement a React component that displays a list of items"
35
35
mycoder -f prompt.txt
36
36
37
37
# Disable user prompts for fully automated sessions
38
-
mycoder --enableUserPromptfalse"Generate a basic Express.js server"
38
+
mycoder --userPromptfalse"Generate a basic Express.js server"
39
39
# or using the alias
40
40
mycoder --userPrompt false"Generate a basic Express.js server"
41
41
42
42
# Disable user consent warning and version upgrade check for automated environments
43
43
mycoder --userWarning false --upgradeCheck false"Generate a basic Express.js server"
44
44
45
-
# Enable GitHub mode via CLI option (overrides config)
45
+
# Enable GitHub mode via CLI option (overrides config file)
46
46
mycoder --githubMode "Work with GitHub issues and PRs"
47
+
```
47
48
48
-
# Enable GitHub mode via config
49
-
mycoder config set githubMode true
49
+
## Configuration
50
+
51
+
MyCoder is configured using a `mycoder.config.js` file in your project root, similar to ESLint and other modern JavaScript tools. This file exports a configuration object with your preferred settings.
52
+
53
+
### Creating a Configuration File
54
+
55
+
Create a `mycoder.config.js` file in your project root:
56
+
57
+
```js
58
+
// mycoder.config.js
59
+
exportdefault {
60
+
// GitHub integration
61
+
githubMode:true,
62
+
63
+
// Browser settings
64
+
headless:true,
65
+
userSession:false,
66
+
pageFilter:'none', // 'simple', 'none', or 'readability'
67
+
68
+
// Model settings
69
+
provider:'anthropic',
70
+
model:'claude-3-7-sonnet-20250219',
71
+
maxTokens:4096,
72
+
temperature:0.7,
73
+
74
+
// Custom settings
75
+
customPrompt:'',
76
+
profile:false,
77
+
tokenCache:true,
78
+
79
+
// Ollama configuration (if using local models)
80
+
ollamaBaseUrl:'http://localhost:11434',
81
+
};
50
82
```
51
83
84
+
CLI arguments will override settings in your configuration file.
85
+
52
86
### GitHub Comment Commands
53
87
54
88
MyCoder can be triggered directly from GitHub issue comments using the flexible `/mycoder` command:
# Disable user consent warning and version upgrade check for automated environments
39
39
mycoder --userWarning false --upgradeCheck false"Generate a basic Express.js server"
40
40
41
-
# Enable GitHub mode
42
-
mycoder config setgithubMode true
41
+
# Enable GitHub mode via CLI option (overrides config file)
42
+
mycoder --githubMode true
43
43
```
44
44
45
45
## GitHub Mode
@@ -54,14 +54,34 @@ MyCoder includes a GitHub mode that enables the agent to work with GitHub issues
54
54
55
55
To enable GitHub mode:
56
56
57
+
1. Via CLI option (overrides config file):
57
58
```bash
58
-
mycoder config set githubMode true
59
+
mycoder --githubMode true
60
+
```
61
+
62
+
2. Via configuration file:
63
+
```js
64
+
// mycoder.config.js
65
+
exportdefault {
66
+
githubMode:true,
67
+
// other configuration options...
68
+
};
59
69
```
60
70
61
71
To disable GitHub mode:
62
72
73
+
1. Via CLI option:
63
74
```bash
64
-
mycoder config set githubMode false
75
+
mycoder --githubMode false
76
+
```
77
+
78
+
2. Via configuration file:
79
+
```js
80
+
// mycoder.config.js
81
+
exportdefault {
82
+
githubMode:false,
83
+
// other configuration options...
84
+
};
65
85
```
66
86
67
87
Requirements for GitHub mode:
@@ -71,7 +91,9 @@ Requirements for GitHub mode:
71
91
72
92
## Configuration
73
93
74
-
MyCoder uses a configuration file in your project directory. To create a default configuration file, run:
94
+
MyCoder is configured using a `mycoder.config.js` file in your project root, similar to ESLint and other modern JavaScript tools. This file exports a configuration object with your preferred settings.
95
+
96
+
To create a default configuration file, run:
75
97
76
98
```bash
77
99
# Create a default configuration file
@@ -122,13 +144,23 @@ MyCoder will search for configuration in the following places (in order of prece
122
144
123
145
NOTE: Anthropic Claude 3.7 works the best by far in our testing.
124
146
125
-
MyCoder supports Anthropic, OpenAI, xAI/Grok, Mistral AI, and Ollama models. You can configure which model provider and model name to use with the following commands:
147
+
MyCoder supports Anthropic, OpenAI, xAI/Grok, Mistral AI, and Ollama models. You can configure which model provider and model name to use either via CLI options or in your configuration file:
126
148
127
149
```bash
128
-
# Use Anthropic models [These work the best at this time]
129
-
mycoder config set provider anthropic
130
-
mycoder config set model claude-3-7-sonnet-20250219 # or any other Anthropic model
0 commit comments