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

canstralian/mycoder

 
 

Repository files navigation

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 cli -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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.4%
  • JavaScript 1.6%