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
Core AI agent system that powers the MyCoder CLI tool. This package provides a modular tool-based architecture that allows AI agents to interact with files, execute commands, make network requests, and spawn sub-agents for parallel task execution.
3
+
Core AI agent system that powers the MyCoder CLI tool. This package provides a modular tool-based architecture that allows AI agents to interact with files, execute commands, make network requests, spawn sub-agents for parallel task execution, and automate browser interactions.
4
4
5
5
## Overview
6
6
7
-
The MyCoder Agent system is built around a few key concepts:
7
+
The MyCoder Agent system is built around these key concepts:
8
8
9
9
- 🛠️ **Extensible Tool System**: Modular architecture with various tool categories
10
10
- 🔄 **Parallel Execution**: Ability to spawn sub-agents for concurrent task processing
11
-
- 🤖 **AI-Powered**: Leverages Anthropic's Claude API for intelligent decision making
11
+
- 🔌 **Multi-LLM Support**: Works with Anthropic Claude, OpenAI GPT models, and Ollama
12
+
- 🌐 **Web Automation**: Built-in browser automation for web interactions
12
13
- 🔍 **Smart Logging**: Hierarchical, color-coded logging system for clear output
14
+
- 📝 **Advanced Text Editing**: Powerful file manipulation capabilities
15
+
- 🔄 **MCP Integration**: Support for the Model Context Protocol
13
16
14
17
Please join the MyCoder.ai discord for support: https://discord.gg/5K6TYrHGHt
15
18
@@ -21,65 +24,149 @@ npm install mycoder-agent
21
24
22
25
## API Key Required
23
26
24
-
Before using MyCoder Agent, you must have an ANTHROPIC_API_KEY specified either:
27
+
Before using MyCoder Agent, you must have one of the following API keys:
25
28
26
-
- As an environment variable, "export ANTHROPIC_API_KEY=[your-api-key]" or
27
-
- In a .env file in your project root
28
-
29
-
Get an API key from https://www.anthropic.com/api
29
+
-**Anthropic**: Set `ANTHROPIC_API_KEY` as an environment variable or in a .env file (Get from https://www.anthropic.com/api)
30
+
-**OpenAI**: Set `OPENAI_API_KEY` as an environment variable or in a .env file
31
+
-**Ollama**: Use locally running Ollama instance
30
32
31
33
## Core Components
32
34
33
35
### Tool System
34
36
35
-
- Modular tools for specific functionalities
36
-
- Categories: Interaction, I/O, System, Data Management
37
-
- Parallel execution capability
38
-
- Type-safe definitions
39
-
- Input token caching to reduce API costs
37
+
The tool system is the foundation of the MyCoder agent's capabilities:
38
+
39
+
-**Modular Design**: Each tool is a standalone module with clear inputs and outputs
40
+
-**Type Safety**: Tools use Zod for schema validation and TypeScript for type safety
41
+
-**Token Tracking**: Built-in token usage tracking to optimize API costs
42
+
-**Parallel Execution**: Tools can run concurrently for efficiency
40
43
41
44
### Agent System
42
45
43
-
- Main agent for orchestration
44
-
- Sub-agents for parallel task execution
45
-
- Anthropic Claude API integration
46
-
- Hierarchical logging
46
+
The agent system orchestrates the execution flow:
47
47
48
-
### Logger System
48
+
-**Main Agent**: Primary agent that handles the overall task
49
+
-**Sub-Agents**: Specialized agents for parallel task execution
50
+
-**Agent State Management**: Tracking agent status and communication
This package contains the official documentation for MyCoder, an AI-powered coding assistant. The documentation is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
3
+
This package contains the official documentation for MyCoder, an AI-powered coding assistant. The documentation is built using [Docusaurus v3](https://docusaurus.io/), a modern static website generator maintained by Meta.
4
4
5
5
## What's Inside
6
6
7
-
-**Product Documentation**: Comprehensive guides on how to use MyCoder
8
-
-**Getting Started**: Platform-specific setup instructions for Windows, macOS, and Linux
9
-
-**Usage Guides**: Detailed information on features and capabilities
10
-
-**Blog**: Updates, tutorials, and insights about MyCoder
7
+
### Documentation Structure
8
+
9
+
-**Core Documentation**
10
+
-**Introduction**: Overview of MyCoder and its capabilities
11
+
-**Getting Started**: Platform-specific setup instructions for Windows, macOS, and Linux
12
+
-**Usage Guides**: Detailed information on features, configuration, and capabilities
13
+
-**Examples**: Practical examples of using MyCoder for different scenarios
14
+
-**Providers**: Information about supported AI providers (OpenAI, Anthropic, Ollama, XAI)
15
+
16
+
-**Blog**: Updates, tutorials, and insights about MyCoder and AI-assisted development
17
+
18
+
### Technical Structure
19
+
20
+
-**docs/**: Contains all markdown documentation files organized by topic
21
+
-**blog/**: Contains blog posts with release notes and usage tips
22
+
-**src/**: Custom React components and CSS for the documentation site
23
+
-**components/**: Custom React components for the site
24
+
-**css/**: Custom styling
25
+
-**pages/**: Custom pages including the home page
26
+
-**static/**: Static assets like images and icons
27
+
-**.docusaurus/**: Build cache (gitignored)
28
+
-**build/**: Output directory for the built documentation site
29
+
30
+
## Features
31
+
32
+
-**Responsive Design**: Works on desktop and mobile devices
33
+
-**Search Functionality**: Built-in search for documentation
34
+
-**Versioning Support**: Ability to maintain documentation for different versions
35
+
-**Blog with RSS Feed**: Integrated blog with RSS support
36
+
-**Analytics Integration**: Google Analytics for tracking site usage
37
+
-**Error Tracking**: Sentry integration for monitoring errors
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
@@ -37,24 +70,93 @@ pnpm build
37
70
38
71
This command generates static content into the `build` directory and can be served using any static contents hosting service.
39
72
40
-
### Deployment
73
+
### Serve Built Site Locally
74
+
75
+
```bash
76
+
# Serve the built website locally
77
+
pnpm serve
78
+
```
79
+
80
+
### Other Commands
81
+
82
+
```bash
83
+
# Clean the build cache
84
+
pnpm clean
85
+
86
+
# Clean everything including node_modules
87
+
pnpm clean:all
88
+
89
+
# Type checking
90
+
pnpm typecheck
91
+
92
+
# Generate translations
93
+
pnpm write-translations
94
+
95
+
# Generate heading IDs
96
+
pnpm write-heading-ids
97
+
```
98
+
99
+
## Docker Deployment
100
+
101
+
The documentation site can be deployed using Docker:
41
102
42
-
The documentation site is automatically deployed when changes are pushed to the `docs-release` branch.
103
+
```bash
104
+
# Build the Docker image
105
+
docker build -t mycoder-docs .
106
+
107
+
# Run the container
108
+
docker run -p 8080:8080 mycoder-docs
109
+
```
110
+
111
+
## Continuous Deployment
112
+
113
+
The documentation site is automatically deployed when changes are pushed to the `docs-release` branch. The deployment process uses semantic-release for versioning and release management.
43
114
44
115
## Contributing
45
116
46
117
We welcome contributions to improve the documentation:
47
118
48
119
1. Create a feature branch (`git checkout -b feature/amazing-improvement`)
49
120
2. Make your changes
50
-
3. Commit your changes (`git commit -m 'Add some amazing improvement'`)
121
+
3. Commit your changes following [Conventional Commits](https://www.conventionalcommits.org/) format
51
122
4. Push to the branch (`git push origin feature/amazing-improvement`)
52
123
5. Open a Pull Request
53
124
125
+
### Adding New Documentation
126
+
127
+
1. Create markdown files in the appropriate directory under `docs/`
128
+
2. The sidebar is automatically generated based on the file structure
129
+
3. Use front matter to customize the page title, description, and other metadata
130
+
131
+
### Adding Blog Posts
132
+
133
+
Create new markdown files in the `blog/` directory with the following front matter:
134
+
135
+
```markdown
136
+
---
137
+
slug: your-post-slug
138
+
title: Your Post Title
139
+
authors: [yourname]
140
+
tags: [tag1, tag2]
141
+
---
142
+
143
+
Your content here...
144
+
145
+
<!-- truncate -->
146
+
147
+
More content here (this part won't appear in the blog list preview)
148
+
```
149
+
54
150
## License
55
151
56
152
This project is licensed under the MIT License - see the LICENSE file for details.
57
153
58
154
## Contact
59
155
60
-
If you have questions or feedback, please join our [Discord community](https://discord.gg/5K6TYrHGHt).
156
+
If you have questions or feedback, please join our [Discord community](https://discord.gg/5K6TYrHGHt) or follow us on [X (Twitter)](https://twitter.com/mycoderAI).
0 commit comments