Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Validate commit message with commitlint
# pnpm exec commitlint --edit $1
pnpm exec commitlint --edit $1
4 changes: 4 additions & 0 deletions packages/cli/.mycoder/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"provider": "anthropic",
"model": "claude-3-7-sonnet-20250219"
}
51 changes: 40 additions & 11 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,52 @@ Requirements for GitHub mode:

## Configuration

MyCoder stores configuration in `~/.mycoder/config.json`. You can manage configuration using the `config` command:
MyCoder uses a configuration file in your project directory. To create a default configuration file, run:

```bash
# List all configuration
mycoder config list
# Create a default configuration file
mycoder init

# Get a specific configuration value
mycoder config get githubMode

# Set a configuration value
mycoder config set githubMode true

# Reset a configuration value to its default
mycoder config clear customPrompt
# Force overwrite an existing configuration file
mycoder init --force
```

This will create a `mycoder.config.js` file in your current directory with default settings that you can customize.

Example configuration file:

```javascript
// mycoder.config.js
export default {
// GitHub integration
githubMode: true,

// Browser settings
headless: true,
userSession: false,
pageFilter: 'none', // 'simple', 'none', or 'readability'

// Model settings
provider: 'anthropic',
model: 'claude-3-7-sonnet-20250219',
maxTokens: 4096,
temperature: 0.7,

// Custom settings
customPrompt: '',
profile: false,
tokenCache: true,

// API keys (better to use environment variables for these)
// ANTHROPIC_API_KEY: 'your-api-key',
};
```

MyCoder will search for configuration in the following places (in order of precedence):
1. CLI options (e.g., `--githubMode true`)
2. Configuration file (`mycoder.config.js`, `.mycoderrc`, etc.)
3. Default values

### Model Selection

NOTE: Anthropic Claude 3.7 works the best by far in our testing.
Expand Down
1 change: 1 addition & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"dependencies": {
"@sentry/node": "^9.3.0",
"chalk": "^5",
"cosmiconfig": "^9.0.0",
"deepmerge": "^4.3.1",
"dotenv": "^16",
"mycoder-agent": "workspace:*",
Expand Down
Loading
Loading