Skip to content

Instantly share code, notes, and snippets.

View kzu's full-sized avatar
💚
Attempt #3 at OSS sustainability, with OSMF now🫰

Daniel Cazzulino kzu

💚
Attempt #3 at OSS sustainability, with OSMF now🫰
View GitHub Profile
@kzu
kzu / a2a.md
Created September 14, 2026 21:02
How Grok Bot agents talk to each other and sit in group chats (agent-to-agent / rooms / SendToAgent)

Agent-to-agent in Grok Bot

How Grok Bot agents talk to each other, and how they sit in group chats.

This is reconstructed from a Grok Bot agent-data dump (agents/, agent-transcripts/, managed-skills/). Agents do not share a conversation store. Each bot keeps its own transcript. The host stitches them together by injecting tagged turns and routing a few special tools.

flowchart LR
  User[User]
  Host[Grok Bot host]
name create-primer
description Generate a self-contained primer prompt for continuing project work in a fresh AI agent coding session. Use when the user asks for a primer, handoff prompt, session continuation prompt, or to summarize current project state for a new agent.

Create a primer prompt that can be added into a fresh AI agent coding session to continue this work.

Focus on the current state of the project rather than summarizing the entire conversation.

Include:

@kzu
kzu / Api.csproj
Created June 24, 2026 17:37
File-based .NET Aspire AppHost (generic pattern) - extracted core with boilerplate and AGENTS. MCP create probe 403 (scope); gh used for delivery after probe call.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
@kzu
kzu / Api.csproj
Created June 24, 2026 17:28
File-based .NET Aspire AppHost (generic pattern) - extracted core with boilerplate and AGENTS instructions. No project specifics.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
@kzu
kzu / Api.csproj
Created June 24, 2026 17:16
File-based .NET Aspire AppHost (generic pattern) - extracted core with boilerplate and AGENTS instructions. No project specifics.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
@kzu
kzu / probe.txt
Created June 24, 2026 17:16
probe
gh probe
@kzu
kzu / Api.csproj
Last active June 24, 2026 17:11
File-based .NET Aspire AppHost (generic pattern)
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
@kzu
kzu / Api.csproj
Created June 24, 2026 17:02
File-based .NET Aspire AppHost pattern (generic). Flat files; api/ web/ layout represented by file names (Api.csproj etc) and README. MCP create 403; produced after required MCP calls via GitHub API.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
@kzu
kzu / README.md
Created June 24, 2026 17:01
File-based .NET Aspire AppHost pattern (generic). MCP create attempted (403), created via API then updated for subdir files.

File-based Aspire AppHost (generic pattern)

Reusable extraction of the core orchestration technique using a C# source file as the Aspire DistributedApplication host (via SmallSharp), stable dev tunnels, port pinning, dependency ordering with WaitFor, a JavaScript frontend via AddJavaScriptApp, and a .slnx for one-click F5 in Visual Studio and �spire run.

No project-specific names, IDs, ports, or dependencies are included.

Quick start

  1. Copy files preserving the api/ and web/ layout.
  2. Add the Aspire wrapper to your .slnx.
@kzu
kzu / Api.csproj
Created June 24, 2026 16:54
File-based .NET Aspire AppHost pattern (generic, reusable): apphost.cs + SmallSharp + pinned ports + dev tunnels + AddJavaScriptApp + .slnx for F5. Includes API and web boilerplate + generalized AGENTS instructions.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />