HagiCode.Libs.Providers
0.1.0-dev.11.1
This is a prerelease version of HagiCode.Libs.Providers.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package HagiCode.Libs.Providers --version 0.1.0-dev.11.1
NuGet\Install-Package HagiCode.Libs.Providers -Version 0.1.0-dev.11.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HagiCode.Libs.Providers" Version="0.1.0-dev.11.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HagiCode.Libs.Providers" Version="0.1.0-dev.11.1" />
<PackageReference Include="HagiCode.Libs.Providers" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HagiCode.Libs.Providers --version 0.1.0-dev.11.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HagiCode.Libs.Providers, 0.1.0-dev.11.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package HagiCode.Libs.Providers@0.1.0-dev.11.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HagiCode.Libs.Providers&version=0.1.0-dev.11.1&prerelease
#tool nuget:?package=HagiCode.Libs.Providers&version=0.1.0-dev.11.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HagiCode.Libs.Providers
HagiCode.Libs.Providers builds on HagiCode.Libs.Core and adds reusable provider abstractions plus built-in integrations for Claude Code, Copilot, Codex, CodeBuddy, Hermes, Kimi, Kiro, and QoderCLI.
What is included
- The
ICliProviderandICliProvider<TOptions>contracts for provider-oriented integrations - Built-in provider implementations for the supported HagiCode CLI backends
AddHagiCodeLibs()for dependency injection registration- A provider registry for resolving providers by name or alias
- Registration of the shared
ICliExecutionFacadefor provider-side probes or adapters
Install
dotnet add package HagiCode.Libs.Providers
If your application uses dependency injection, also reference Microsoft.Extensions.DependencyInjection.
Dependency injection entry point
using HagiCode.Libs.Core.Execution;
using HagiCode.Libs.Providers;
using HagiCode.Libs.Providers.Copilot;
using HagiCode.Libs.Providers.Codex;
using HagiCode.Libs.Providers.Kimi;
using HagiCode.Libs.Providers.Kiro;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
services.AddHagiCodeLibs();
await using var serviceProvider = services.BuildServiceProvider();
var executionFacade = serviceProvider.GetRequiredService<ICliExecutionFacade>();
var copilot = serviceProvider.GetRequiredService<ICliProvider<CopilotOptions>>();
var codex = serviceProvider.GetRequiredService<ICliProvider<CodexOptions>>();
var kimi = serviceProvider.GetRequiredService<ICliProvider<KimiOptions>>();
var kiro = serviceProvider.GetRequiredService<ICliProvider<KiroOptions>>();
Provider usage
using HagiCode.Libs.Providers.Copilot;
using HagiCode.Libs.Providers.Codex;
using HagiCode.Libs.Providers.Kimi;
using HagiCode.Libs.Providers.Kiro;
var copilotOptions = new CopilotOptions
{
WorkingDirectory = "/path/to/repo",
Model = "claude-sonnet-4.5",
Permissions = new CopilotPermissionOptions
{
AllowAllTools = true,
AllowedPaths = ["/path/to/repo"]
},
AdditionalArgs = ["--config-dir", "/path/to/.copilot"]
};
await foreach (var message in copilot.ExecuteAsync(copilotOptions, "Reply with exactly the word 'pong'"))
{
Console.WriteLine($"{message.Type}: {message.Content}");
}
var options = new CodexOptions
{
WorkingDirectory = "/path/to/repo",
Model = "gpt-5-codex",
SandboxMode = "workspace-write",
ApprovalPolicy = "never",
AddDirectories = ["/path/to/repo"],
SkipGitRepositoryCheck = true,
};
await foreach (var message in codex.ExecuteAsync(options, "Reply with exactly the word 'pong'"))
{
Console.WriteLine($"{message.Type}: {message.Content}");
}
var kimiOptions = new KimiOptions
{
WorkingDirectory = "/path/to/repo",
Model = "kimi-k2.5",
AuthenticationMethod = "token",
AuthenticationToken = "<token>",
ExtraArguments = ["--profile", "smoke"]
};
await foreach (var message in kimi.ExecuteAsync(kimiOptions, "Reply with exactly the word 'pong'"))
{
Console.WriteLine($"{message.Type}: {message.Content}");
}
var kiroOptions = new KiroOptions
{
WorkingDirectory = "/path/to/repo",
Model = "kiro-default",
AuthenticationMethod = "token",
AuthenticationToken = "<token>",
ExtraArguments = ["--profile", "smoke"]
};
await foreach (var message in kiro.ExecuteAsync(kiroOptions, "Reply with exactly the word 'pong'"))
{
Console.WriteLine($"{message.Type}: {message.Content}");
}
Adoption boundaries
- Interactive provider transports still use
CliProcessManagerdirectly because they need open stdio sessions. - The new execution facade is intended for provider-facing adapters, diagnostics, and one-shot probes such as version checks.
- Provider callers should continue passing structured option models; the new facade is additive and does not replace provider-specific option records.
kimiis the canonical built-in provider name;ProviderRegistryand the dedicated console also acceptkimi-clias an alias.kirois the canonical built-in provider name;ProviderRegistryand the dedicated console also acceptkiro-clias an alias.CliInstallRegistrycurrently marks both Kimi and Kiro as local-only validation metadata (IsPubliclyInstallable = false), so default public CI does not assume their credentials or installation are available.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- GitHub.Copilot.SDK (>= 0.1.32)
- HagiCode.Libs.Core (>= 0.1.0-dev.11.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.1-dev.34.1 | 0 | 4/6/2026 |
| 0.2.1-dev.33.1 | 30 | 4/5/2026 |
| 0.2.0 | 38 | 4/2/2026 |
| 0.1.1-dev.31.1 | 28 | 4/2/2026 |
| 0.1.1-dev.30.1 | 28 | 4/1/2026 |
| 0.1.0 | 86 | 3/29/2026 |
| 0.1.0-dev.28.1 | 39 | 3/29/2026 |
| 0.1.0-dev.27.1 | 39 | 3/29/2026 |
| 0.1.0-dev.26.1 | 38 | 3/29/2026 |
| 0.1.0-dev.25.1 | 39 | 3/29/2026 |
| 0.1.0-dev.24.1 | 49 | 3/28/2026 |
| 0.1.0-dev.23.1 | 48 | 3/27/2026 |
| 0.1.0-dev.22.1 | 44 | 3/27/2026 |
| 0.1.0-dev.21.1 | 46 | 3/27/2026 |
| 0.1.0-dev.20.1 | 36 | 3/26/2026 |
| 0.1.0-dev.19.1 | 36 | 3/25/2026 |
| 0.1.0-dev.18.1 | 33 | 3/25/2026 |
| 0.1.0-dev.17.1 | 38 | 3/23/2026 |
| 0.1.0-dev.16.1 | 43 | 3/22/2026 |
| 0.1.0-dev.11.1 | 33 | 3/22/2026 |
Loading failed