Skip to content

Simple to install, powerful command-line based AI agent system for coding.

License

Notifications You must be signed in to change notification settings

drivecore/mycoder

 
 

Repository files navigation

MyCoder

Command-line interface for AI-powered coding tasks. Full details available on the main MyCoder.ai website and the Official MyCoder.Ai Docs website.

Features

  • πŸ€– AI-Powered: Leverages Anthropic's Claude, OpenAI models, xAI/Grok, Mistral AI, and Ollama for intelligent coding assistance
  • πŸ› οΈ Extensible Tool System: Modular architecture with various tool categories
  • πŸ”„ Parallel Execution: Ability to spawn sub-agents for concurrent task processing
  • πŸ“ Self-Modification: Can modify code, it was built and tested by writing itself
  • πŸ” Smart Logging: Hierarchical, color-coded logging system for clear output
  • πŸ‘€ Human Compatible: Uses README.md, project files and shell commands to build its own context
  • 🌐 GitHub Integration: GitHub mode for working with issues and PRs as part of workflow

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

Installation

npm install -g mycoder

For detailed installation instructions for macOS and Linux, including how to set up Node.js using NVM, see our Getting Started guide.

Usage

# Interactive mode
mycoder -i

# Run with a prompt
mycoder "Implement a React component that displays a list of items"

# Run with a prompt from a file
mycoder -f prompt.txt

# Disable user prompts for fully automated sessions
mycoder --enableUserPrompt false "Generate a basic Express.js server"
# or using the alias
mycoder --userPrompt false "Generate a basic Express.js server"

# Disable user consent warning and version upgrade check for automated environments
mycoder --userWarning false --upgradeCheck false "Generate a basic Express.js server"

# Enable GitHub mode via CLI option (overrides config)
mycoder --githubMode "Work with GitHub issues and PRs"

# Enable GitHub mode via config
mycoder config set githubMode true

GitHub Comment Commands

MyCoder can be triggered directly from GitHub issue comments using the flexible /mycoder command:

/mycoder [your instructions here]

Examples:

  • /mycoder implement a PR for this issue
  • /mycoder create an implementation plan
  • /mycoder suggest test cases for this feature

Learn more about GitHub comment commands

Packages

Development

# Clone the repository
git clone https://github.com/drivecore/mycoder.git
cd mycoder

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run tests
pnpm test

# Create a commit with interactive prompt
pnpm commit

Release Process

MyCoder follows the Conventional Commits specification for commit messages. Our release process is fully automated:

  1. Commit your changes following the conventional commits format
  2. Create a PR and get it reviewed and approved
  3. When merged to main, our CI/CD pipeline will:
    • Determine the next version based on commit messages
    • Generate a changelog
    • Create a GitHub Release
    • Tag the release
    • Publish to NPM

For more details, see the Contributing Guide.

Contributing

Please see CONTRIBUTING.md for details on how to contribute to this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.