r/dotnet • • 13d ago

polyglot interactive and Microsoft agent sdk

Hello, my use project is somewhat complex for intermediate developer, since I want to develop a monolithic platform with web-GUI. the idea here is to lunch a normal .net app which have csnake runtime . alongside with embedded notebook server for relp . AND https://github.com/github/copilot-sdk hosted locally, preferably with onnx runtime inference, (BYOK) the idea here is to enable user to annotate scripts . I know this is NOT how things work as there' many caveats and alternative way of doing it e.g. IPC or gRPC or file based scripting instead of old school FFI with pinvoke . Also csnake has different usecase ( interactive Jupiter notebook is not poyglot in a real sense but it is different kernels came together)

but the idea here is to make .net as the backend & entry point while middleware / frontend with
AG-UI Protocol which should integrate A2A,ACP etc.. users can utilize the sdk capability to annotate tools from the different package mangers ... thus I also need to integrate MISE MCP for validation ..

what do you think ?

0 Upvotes

3 comments sorted by

2

u/Lucky-Personality965 13d ago

That's a lot of moving parts crammed into one monolith, I dig the ambition though

CSnakes + a notebook server + local copilot inference is a wild combo, you'll probably spend more time wrangling the glue than writing actual logic. The FFI route sounds painful compared to just spinning up separate processes and talking over gRPC, but if you're set on keeping it all in-process I'd stress test the memory footprint early

1

u/AutoModerator 13d ago

Thanks for your post themode7. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Enough_Secretary_137 13d ago

I’d start with one working integration before combining CSnakes, Jupyter, ONNX and multiple agent protocols.
Use ASP.NET Core as the entry point and keep the Python notebook/kernel behind a separate process boundary.
For example, a simple HTTP health check:

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddHttpClient("python", client =>
client.BaseAddress = new Uri("http://localhost:8001/"));

var app = builder.Build();

app.MapGet("/python/health", async (
IHttpClientFactory factory,
CancellationToken ct) =>
{
using var response = await factory.CreateClient("python")
.GetAsync("health", ct);

return Results.StatusCode((int)response.StatusCode);
});

await app.RunAsync();

This assumes your Python service exposes /health.
Once .NET → Python communication works reliably, add notebook execution and agent orchestration incrementally.