2025-02-25 15:41:00
github.com
MyCoder is a simple to install, powerful command-line based AI agent system that can perform arbitrary tasks with a particular focus on coding tasks. It uses a modular tool-based architecture that allows it to interact with files, execute commands, make network requests, and spawn sub-agents for parallel task execution.
Please join the MyCoder.ai discord for support: https://discord.gg/5K6TYrHGHt
This tool can do anything on your command line that you ask it to. It can delete files, install software, and even send data to remote servers. It is a powerful tool that should be used with caution. By using this tool, you agree that the authors and contributors are not responsible for any damage that may occur as a result of using this tool.
Before using MyCoder, you must have an ANTHROPIC_API_KEY specified either:
- As an environment variable, “export ANTHROPIC_API_KEY=[your-api-key]” or
- In a .env file in the folder you run
mycoder
from
Get an API key from https://www.anthropic.com/api
# Install globally
npm install -g mycoder
# Start MyCoder with a prompt
mycoder "fix all build errors and ensure the tests pass"
# Start in interactive mode
mycoder -i
# Read prompt from a file
mycoder --promptFile=your-prompt.txt
- 🤖 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 testing 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
[prompt]
: Main prompt text (positional argument)-i, --interactive
: Run in interactive mode, asking for prompts-f, --file
: Read prompt from a specified file--log
: Set log level (info, verbose, warn, error)-h, --help
: Show help-V, --version
: Show version
To list the current tools that the agent makes use of run:
MyCoder excels at various software development tasks. Here are some example prompts and use cases:
# Converting test framework
mycoder "Convert all Jest tests in the src/ directory to Vitest, updating any necessary configuration files and dependencies"
# Dependency updates
mycoder "Update all dependencies to their latest versions, handle any breaking changes, and ensure all tests pass"
# Class refactoring
mycoder "Refactor the UserService class in src/services/UserService.ts to use the repository pattern, update all files that use this class, and ensure tests pass"
# API modernization
mycoder "Convert all callback-based functions in the project to use async/await, update tests accordingly"
# CLI enhancement
mycoder "Add a new global --debug command line option that enables verbose logging throughout the application"
# New functionality
mycoder "Create a new caching system for API responses using Redis, including configuration options and unit tests"
# Build fixes
mycoder "Fix all TypeScript build errors and ensure all tests pass"
# Test coverage
mycoder "Add unit tests for all untested functions in the src/utils directory, aiming for 80% coverage"
# Documentation generation
mycoder "Generate comprehensive JSDoc documentation for all exported functions and update the API documentation in the docs/ directory"
# Architecture documentation
mycoder "Analyze the current codebase and create detailed architecture documentation including component diagrams and data flow"
These examples showcase MyCoder’s ability to handle complex software development tasks. The tool uses its understanding of software development best practices, project structure, and coding standards to execute these tasks while maintaining code quality and test coverage.
- Node.js >=18.0.0
- npm or pnpm
We welcome contributions! Please see CONTRIBUTING.md for our development workflow, coding guidelines, and testing procedures.
This project uses Conventional Commits for commit messages. See COMMIT_CONVENTION.md for detailed guidelines.
The project uses GitHub Actions for continuous integration:
- A single CI pipeline automatically builds and tests the code on all branches and pull requests to main
The release process is managed manually using changesets which:
- Determines version bumps based on commit messages
- Generates changelogs
Releases to GitHub and publishing to npm are performed manually after review.
MIT License
Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.
Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!
Help Power Techcratic’s Future – Scan To Support
If Techcratic’s content and insights have helped you, consider giving back by supporting the platform with crypto. Every contribution makes a difference, whether it’s for high-quality content, server maintenance, or future updates. Techcratic is constantly evolving, and your support helps drive that progress.
As a solo operator who wears all the hats, creating content, managing the tech, and running the site, your support allows me to stay focused on delivering valuable resources. Your support keeps everything running smoothly and enables me to continue creating the content you love. I’m deeply grateful for your support, it truly means the world to me! Thank you!
BITCOIN bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge Scan the QR code with your crypto wallet app |
DOGECOIN D64GwvvYQxFXYyan3oQCrmWfidf6T3JpBA Scan the QR code with your crypto wallet app |
ETHEREUM 0xe9BC980DF3d985730dA827996B43E4A62CCBAA7a Scan the QR code with your crypto wallet app |
Please read the Privacy and Security Disclaimer on how Techcratic handles your support.
Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.