Skip to content

Commit a98720e

Browse files
committed
better readmes.
1 parent a018feb commit a98720e

File tree

6 files changed

+55
-24
lines changed

6 files changed

+55
-24
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@ This project and everyone participating in it is governed by our Code of Conduct
166166
3. Update changelog entries
167167
4. Tag releases appropriately
168168

169-
Thank you for contributing to MyCoder! 👍
169+
Thank you for contributing to MyCoder! 👍

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# MyCoder
22

3-
An open-source mono-repository containing the MyCoder agent and cli.
4-
5-
!NOTE: To get started with the mycoder agent, [please see the CLI package](packages/cli)
3+
Command-line interface for AI-powered coding tasks. Full details available on the main [MyCoder.ai website](https://mycoder.ai) and the [Official MyCoder.Ai Docs website](https://docs.mycoder.ai).
64

75
## Features
86

9-
- 🤖 **AI-Powered**: Leverages Anthropic's Claude and OpenAI models for intelligent decision making
7+
- 🤖 **AI-Powered**: Leverages Anthropic's Claude, OpenAI models, xAI/Grok, Mistral AI, and Ollama for intelligent coding assistance
108
- 🛠️ **Extensible Tool System**: Modular architecture with various tool categories
119
- 🔄 **Parallel Execution**: Ability to spawn sub-agents for concurrent task processing
1210
- 📝 **Self-Modification**: Can modify code, it was built and tested by writing itself
@@ -16,6 +14,30 @@ An open-source mono-repository containing the MyCoder agent and cli.
1614

1715
Please join the MyCoder.ai discord for support: https://discord.gg/5K6TYrHGHt
1816

17+
## Installation
18+
19+
```bash
20+
npm install -g mycoder
21+
```
22+
23+
For detailed installation instructions for macOS and Linux, including how to set up Node.js using NVM, [see our Getting Started guide](https://docs.mycoder.ai/docs/getting-started/).
24+
25+
## Usage
26+
27+
```bash
28+
# Interactive mode
29+
mycoder -i
30+
31+
# Run with a prompt
32+
mycoder "Implement a React component that displays a list of items"
33+
34+
# Run with a prompt from a file
35+
mycoder -f prompt.txt
36+
37+
# Enable GitHub mode
38+
mycoder config set githubMode true
39+
```
40+
1941
## Packages
2042

2143
- [mycoder](packages/cli) - Command-line interface for MyCoder

packages/cli/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MyCoder CLI
22

3-
Command-line interface for AI-powered coding tasks.
3+
Command-line interface for AI-powered coding tasks. Full details available on the main [MyCoder.ai website](https://mycoder.ai) and the [Official MyCoder.Ai Docs website](https://docs.mycoder.ai).
44

55
## Features
66

@@ -18,6 +18,8 @@ Command-line interface for AI-powered coding tasks.
1818
npm install -g mycoder
1919
```
2020

21+
For detailed installation instructions for macOS and Linux, including how to set up Node.js using NVM, [see our Getting Started guide](https://docs.mycoder.ai/docs/getting-started/).
22+
2123
## Usage
2224

2325
```bash

packages/cli/src/commands/$default.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ export const command: CommandModule<SharedOptions, DefaultArgs> = {
107107

108108
if (providerSettings) {
109109
const { keyName } = providerSettings;
110-
110+
111111
// First check if the API key is in the config
112-
const configApiKey = userConfig[keyName as keyof typeof userConfig] as string;
112+
const configApiKey = userConfig[
113+
keyName as keyof typeof userConfig
114+
] as string;
113115
// Then fall back to environment variable
114116
const envApiKey = process.env[keyName];
115117
// Use config key if available, otherwise use env key
@@ -119,7 +121,7 @@ export const command: CommandModule<SharedOptions, DefaultArgs> = {
119121
logger.error(getProviderApiKeyError(userModelProvider));
120122
throw new Error(`${userModelProvider} API key not found`);
121123
}
122-
124+
123125
// If we're using a key from config, set it as an environment variable
124126
// This ensures it's available to the provider libraries
125127
if (configApiKey && !envApiKey) {

packages/cli/src/commands/config.ts

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import chalk from 'chalk';
21
import { createInterface } from 'readline/promises';
2+
3+
import chalk from 'chalk';
34
import { Logger } from 'mycoder-agent';
45

56
import { SharedOptions } from '../options.js';
@@ -159,20 +160,20 @@ export const command: CommandModule<SharedOptions, ConfigOptions> = {
159160
if (argv.key.includes('API_KEY')) {
160161
logger.warn(
161162
chalk.yellow(
162-
'Warning: Storing API keys in configuration is less secure than using environment variables.'
163-
)
163+
'Warning: Storing API keys in configuration is less secure than using environment variables.',
164+
),
164165
);
165166
logger.warn(
166167
chalk.yellow(
167-
'Your API key will be stored in plaintext in the configuration file.'
168-
)
168+
'Your API key will be stored in plaintext in the configuration file.',
169+
),
169170
);
170-
171+
171172
// Ask for confirmation
172173
const isConfirmed = await confirm(
173-
'Do you want to continue storing your API key in the configuration?'
174+
'Do you want to continue storing your API key in the configuration?',
174175
);
175-
176+
176177
if (!isConfirmed) {
177178
logger.info('Operation cancelled.');
178179
return;
@@ -216,22 +217,26 @@ export const command: CommandModule<SharedOptions, ConfigOptions> = {
216217
if (argv.all) {
217218
// Confirm with the user before clearing all settings
218219
const isConfirmed = await confirm(
219-
'Are you sure you want to clear all configuration settings? This action cannot be undone.'
220+
'Are you sure you want to clear all configuration settings? This action cannot be undone.',
220221
);
221-
222+
222223
if (!isConfirmed) {
223224
logger.info('Operation cancelled.');
224225
return;
225226
}
226-
227+
227228
// Clear all settings
228229
clearAllConfig();
229-
logger.info('All configuration settings have been cleared. Default values will be used.');
230+
logger.info(
231+
'All configuration settings have been cleared. Default values will be used.',
232+
);
230233
return;
231234
}
232-
235+
233236
if (!argv.key) {
234-
logger.error('Key is required for clear command (or use --all to clear all settings)');
237+
logger.error(
238+
'Key is required for clear command (or use --all to clear all settings)',
239+
);
235240
return;
236241
}
237242

packages/cli/tests/settings/config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ describe('Config', () => {
127127
expect(result).toEqual({ githubMode: true, existingSetting: 'value' });
128128
});
129129
});
130-
});
130+
});

0 commit comments

Comments
 (0)