irm https://www.dotcraft.net/install.ps1 | iexcurl -fsSL https://www.dotcraft.net/install.sh | bash
面向 .NET 的 Agent Harness
无需额外部署和维护 Agent 服务。
沿用 Generic Host 与依赖注入。
会话、工具、Skills、审批与模型 Provider 已组合就绪。
using DotCraft.Configuration;
using DotCraft.Harness;
using Microsoft.Extensions.Hosting;
AppConfig appConfig = LoadApplicationConfig();
var workspacePath = Directory.GetCurrentDirectory();
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddDotCraftHarness(appConfig, options =>
{
options.WorkspacePath = workspacePath;
});
using var host = builder.Build();
await host.StartAsync();
await host.StopAsync();irm https://www.dotcraft.net/install.ps1 | iexcurl -fsSL https://www.dotcraft.net/install.sh | bash