Skip to content

madeyoga/code-agent

Repository files navigation

Simple Coding Agent built using Microsoft Agent Framework

.NET 10 License: MIT


Core Components

Directory Purpose
Agents/ Factory methods for planner, builder, and question agents
Executors/ Router, CodePlanner, CodeBuilder, DirectAnswer executors
Events/ Workflow event types and progress data classes
skills/ Domain-specific SKILL.md files and plugin directories
AgentTools.cs Shared agent utility helpers

Prerequisites

  • .NET 10 SDKdownload
  • A local or remote Ollama instance (default: http://localhost:11434/v1/) running a supported model
  • Any OpenAI-compatible model API endpoint is also supported

Setup

1. Clone the repository

2. Configure your environment

Edit .env to point at your desired model endpoint:

# Model ID — any Hugging Face or Ollama model name
MODEL_ID=qwen3.6:35b-a3b

# API key -- "ollama" for local; your actual key for cloud endpoints
API_KEY=ollama

# OpenAI-compatible API endpoint
OPENAI_ENDPOINT=http://localhost:11434/v1/

Tip: Any vendor that implements the OpenAI chat completions API (Groq, Azure OpenAI, Together AI, etc.) works out of the box.

3. Restore packages and build

dotnet restore
dotnet build

4. Run the agent

dotnet run

You'll see an interactive prompt:

dotnuxt - .NET Coding Agent (Microsoft Agent Framework)
Model: qwen3.6:35b-a3b
Skills directory: /path/to/dotnuxt/skills
Type 'exit' to quit, 'skills' to list, 'plugins' to list plugins.

> hello, world!

Required Environment Variables

Variable Description Default
MODEL_ID Model identifier (e.g. qwen3.6:35b-a3b) qwen3.6:35b-a3b
API_KEY API key or "ollama" for local ollama
OPENAI_ENDPOINT OpenAI-compatible chat completions URL http://localhost:11434/v1/

About

A simple coding agent built with the Microsoft Agent Framework to explore Agentic AI workflows.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages