
koding agent
Coding agent demo with Koog framework
Repository Info
About This Server
Coding agent demo with Koog framework
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Kagent - Kotlin Coding Agent with Koog Framework
Kagent is an AI-powered coding assistant that helps users generate, compile, and test Kotlin code based on natural language requests. Built on the Koog Agents framework, it provides an interactive interface for code generation and testing.
Features
- Code Generation: Create Kotlin classes, data classes, and utility functions based on requirements
- Test Creation: Generate comprehensive unit tests for the created code
- Code Compilation: Compile Kotlin code and handle errors
- Test Execution: Run tests and report results
- Project Setup: Create proper project structures
Setup
-
Clone the repository:
git clone https://github.com/yourusername/kagent.git cd kagent -
Set your OpenAI API key as an environment variable:
export OPENAI_API_KEY=your_api_key_here -
Build the project:
./gradlew build -
Run the application:
./gradlew run
Usage
Once the application is running, you'll be presented with an interactive prompt where you can enter your coding requests. For example:
Enter your coding request (or 'quit' to exit): Create a simple calculator class with add, subtract, multiply, and divide operations, including comprehensive tests
The agent will:
- Create a proper project structure
- Generate the requested Kotlin code
- Create comprehensive tests
- Compile the code and tests
- Run the tests and report results
Project Structure
src/main/kotlin/org/example/kagent/- Main source codeAgent.kt- Agent configuration and strategyMain.kt- Application entry pointtools/- Tools used by the agentFileOperationsTool.kt- File manipulation operationsKotlinCompilerTool.kt- Kotlin code compilationTestRunnerTool.kt- Test executionProjectStructureTool.kt- Project structure creation
Branches
- main: The primary branch with the core functionality using custom tools for code generation, compilation, and testing.
- mcp: Integrates JetBrains MCP (Model Code Processing) server support with fallback to custom tools. This branch enhances the agent's capabilities by leveraging JetBrains' code processing services when available.
Dependencies
- Kotlin 2.2.0-RC
- Koog Agents Framework 0.1.0
License
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.
Contributing
[Add contribution guidelines here]
Quick Start
Clone the repository
git clone https://github.com/antonarhipov/koding-agentInstall dependencies
cd koding-agent
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.