An open-source mono-repository containing the MyCoder agent and cli.
!NOTE: To get started with the mycoder agent, please see the CLI package
- 🤖 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
- Node.js >= 20.0.0
- pnpm >= 10.2.1
- ANTHROPIC_API_KEY (for AI features)
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run locally built cli in interactive mode
pnpm cli -i
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 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
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
This monorepo uses Changesets to manage versions and publish packages. The following packages are published to npm:
mycoder
- CLI packagemycoder-agent
- Core agent functionality
To publish changes:
-
Make your code changes
-
Create a changeset (documents your changes):
pnpm changeset
-
Select the packages that have changes
-
Write a clear description of the changes
-
Commit the generated changeset file
When ready to publish:
-
Update versions based on changesets:
pnpm changeset version
-
Review the changes
-
Publish packages:
pnpm publish -r
Note: Both packages are versioned together to ensure compatibility.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request