jinfanzheng/kode-sdk-csharp

Kode Agent SDK for .NET - Event-driven AI Agent runtime supporting Anthropic Claude and OpenAI GPT models with tool calling, state management, and event streaming

46 stars15 forksUpdated Jan 26, 2026
npx skills add jinfanzheng/kode-sdk-csharp

README

Kode Agent SDK for .NET

中文版: 查看中文 README

.NET License NuGet NuGet Downloads Build

A powerful AI Agent runtime SDK built on .NET 10, supporting Anthropic Claude and OpenAI GPT models, with comprehensive capabilities for tool calling, state management, event streaming, and more. Designed for building production-grade AI applications.

Project Background

Kode Agent SDK for .NET is the C# implementation of Kode SDK, providing feature parity with the TypeScript version:

  • Event-Driven Architecture - Three-channel event system (Progress, Control, Monitor) for separation of concerns
  • Complete State Management - Support for persistence, crash recovery, and resumable execution
  • Flexible Tool System - 20+ built-in tools with support for custom tools and MCP protocol
  • Multi-Model Support - Anthropic Claude, OpenAI GPT, and compatible APIs
  • Enterprise Features - Permission control, sandbox execution, dependency injection, logging integration

Table of Contents

Features

FeatureDescriptionDocumentation
Multi-Model SupportSupport for Anthropic Claude (Claude 4, 3.5) and OpenAI GPT (GPT-4o, o1) series models, plus compatible APIsModel Providers
Rich Tool System20+ built-in tools (file system, shell, todo management, etc.), support for custom tools and MCP protocolTool Development Guide
Three-Channel Event StreamProgress (real-time output), Control (approval flow), Monitor (logging) separated architectureEvent System Details
State PersistenceJSON file storage and Redis distributed storage, support for session recovery and resumable executionState Storage
Permission ControlFine-grained tool permission management, support for auto-approval, manual approval, and deny policiesPermission Control System
Sandbox ExecutionSecure command execution environment, support for local and Docker sandboxesSandbox Environments
Source GeneratorCompile-time tool schema generation, zero reflection overhead, type-safeTool Development Guide
MCP IntegrationNative Model Context Protocol support, easy integration with external tool ecosystemMCP Protocol Integration
Dependency InjectionComplete Microsoft.Extensions.DependencyInjection supportDependency Injection
Template SystemPredefined agent templates for quick creation of scenario-specific agents[Sub-Agent Delegation]

...

Read full README

Publisher

jinfanzhengjinfanzheng

Statistics

Stars46
Forks15
Open Issues0
LicenseMIT License
CreatedJan 17, 2026