1.4.2 • Published 3 months ago

mycoder-agent v1.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

MyCoder Agent

Core AI agent system that powers the MyCoder CLI tool. This package provides a modular tool-based architecture that allows AI agents to interact with files, execute commands, make network requests, and spawn sub-agents for parallel task execution.

Overview

The MyCoder Agent system is built around a few key concepts:

  • šŸ› ļø Extensible Tool System: Modular architecture with various tool categories
  • šŸ”„ Parallel Execution: Ability to spawn sub-agents for concurrent task processing
  • šŸ¤– AI-Powered: Leverages Anthropic's Claude API for intelligent decision making
  • šŸ” Smart Logging: Hierarchical, color-coded logging system for clear output

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

Installation

npm install mycoder-agent

API Key Required

Before using MyCoder Agent, 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 your project root

Get an API key from https://www.anthropic.com/api

Core Components

Tool System

  • Modular tools for specific functionalities
  • Categories: Interaction, I/O, System, Data Management
  • Parallel execution capability
  • Type-safe definitions
  • Input token caching to reduce API costs

Agent System

  • Main agent for orchestration
  • Sub-agents for parallel task execution
  • Anthropic Claude API integration
  • Hierarchical logging

Logger System

  • Color-coded component output
  • Hierarchical indentation
  • Multiple log levels (info, verbose, warn, error)
  • Structured data logging

Project Structure

src/
ā”œā”€ā”€ core/           # Core agent and executor logic
ā”œā”€ā”€ interfaces/     # Type definitions and interfaces
ā”œā”€ā”€ tools/          # Tool implementations
│   ā”œā”€ā”€ interaction/
│   ā”œā”€ā”€ io/
│   ā”œā”€ā”€ system/
│   └── record/
└── utils/         # Utilities including logger

Available Tools

The agent system provides various tools in different categories:

  • Interaction Tools: User prompts, sub-agent creation
  • I/O Tools: File reading/writing, HTTP requests
  • System Tools: Shell command execution, process management
  • Browser Tools: Web automation and scraping capabilities

Technical Requirements

  • Node.js >= 20.0.0
  • pnpm >= 10.2.1

Contributing

We welcome contributions! Please see CONTRIBUTING.md for development workflow and guidelines.

1.4.2

3 months ago

1.4.1

3 months ago

1.4.0

3 months ago

1.3.1

3 months ago

1.3.0

3 months ago

1.2.0

3 months ago

1.1.0

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago

0.11.0

3 months ago

0.10.0

3 months ago

0.9.0

3 months ago

0.8.0

3 months ago

0.7.0

3 months ago

0.6.1

3 months ago

0.6.0

3 months ago

0.5.0

3 months ago

0.4.0

4 months ago

0.3.0

4 months ago

0.2.1

4 months ago

0.2.0

4 months ago

0.1.4

4 months ago

0.1.3

4 months ago