mycoder

mycoder

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

Stars: 175

Visit
 screenshot

An open-source mono-repository containing the MyCoder agent and CLI. It leverages Anthropic's Claude API for intelligent decision making, has a modular architecture with various tool categories, supports parallel execution with sub-agents, can modify code by writing itself, features a smart logging system for clear output, and is human-compatible using README.md, project files, and shell commands to build its own context.

README:

MyCoder Mono-repository

An open-source mono-repository containing the MyCoder agent and cli.

!NOTE: To get started with the mycoder agent, please see the CLI package

Features

  • 🤖 AI-Powered: Leverages Anthropic's Claude API for intelligent decision making
  • 🛠️ 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

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

🚀 Quick Start

Prerequisites

  • Node.js >= 20.0.0
  • pnpm >= 10.2.1
  • ANTHROPIC_API_KEY (for AI features)

Installation

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run locally built cli in interactive mode
pnpm -f mycoder -i

📦 Packages

Command-line interface for AI-powered coding tasks:

  • Interactive mode
  • File-based prompt support
  • Code migration and refactoring capabilities

Core AI agent system powering MyCoder's intelligent features:

  • Extensible Tool System
  • Parallel Execution with sub-agents
  • AI-Powered using Anthropic's Claude API

🛠 Development

Common Commands

# Development mode
pnpm dev

# Build all packages
pnpm build

# Run tests
pnpm test

# Type checking
pnpm typecheck

# Linting
pnpm lint

# Formatting
pnpm format

# Clean build artifacts
pnpm clean

# Clean everything including node_modules
pnpm clean:all

📚 Documentation

Each package contains detailed documentation in its respective README.md file. See individual package directories for:

  • Detailed setup instructions
  • API documentation
  • Development guidelines
  • Package-specific commands

📦 Publishing

This monorepo uses Changesets to manage versions and publish packages. The following packages are published to npm:

  • mycoder - CLI package
  • mycoder-agent - Core agent functionality

To publish changes:

  1. Make your code changes

  2. Create a changeset (documents your changes):

    pnpm changeset
  3. Select the packages that have changes

  4. Write a clear description of the changes

  5. Commit the generated changeset file

When ready to publish:

  1. Update versions based on changesets:

    pnpm changeset version
  2. Review the changes

  3. Publish packages:

    pnpm publish -r

Note: Both packages are versioned together to ensure compatibility.

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for mycoder

Similar Open Source Tools

For similar tasks

For similar jobs