@@ -71,23 +71,52 @@ Requirements for GitHub mode:
7171
7272## Configuration
7373
74- MyCoder stores configuration in ` ~/.mycoder/config.json ` . You can manage configuration using the ` config ` command :
74+ MyCoder uses a configuration file in your project directory. To create a default configuration file, run :
7575
7676``` bash
77- # List all configuration
78- mycoder config list
77+ # Create a default configuration file
78+ mycoder init
7979
80- # Get a specific configuration value
81- mycoder config get githubMode
82-
83- # Set a configuration value
84- mycoder config set githubMode true
85-
86- # Reset a configuration value to its default
87- mycoder config clear customPrompt
80+ # Force overwrite an existing configuration file
81+ mycoder init --force
82+ ```
8883
84+ This will create a ` mycoder.config.js ` file in your current directory with default settings that you can customize.
85+
86+ Example configuration file:
87+
88+ ``` javascript
89+ // mycoder.config.js
90+ export default {
91+ // GitHub integration
92+ githubMode: true ,
93+
94+ // Browser settings
95+ headless: true ,
96+ userSession: false ,
97+ pageFilter: ' none' , // 'simple', 'none', or 'readability'
98+
99+ // Model settings
100+ provider: ' anthropic' ,
101+ model: ' claude-3-7-sonnet-20250219' ,
102+ maxTokens: 4096 ,
103+ temperature: 0.7 ,
104+
105+ // Custom settings
106+ customPrompt: ' ' ,
107+ profile: false ,
108+ tokenCache: true ,
109+
110+ // API keys (better to use environment variables for these)
111+ // ANTHROPIC_API_KEY: 'your-api-key',
112+ };
89113```
90114
115+ MyCoder will search for configuration in the following places (in order of precedence):
116+ 1 . CLI options (e.g., ` --githubMode true ` )
117+ 2 . Configuration file (` mycoder.config.js ` , ` .mycoderrc ` , etc.)
118+ 3 . Default values
119+
91120### Model Selection
92121
93122NOTE: Anthropic Claude 3.7 works the best by far in our testing.
0 commit comments