Files
awesome-copilot/cookbook/copilot-sdk/go
Anthony Shaw d8fc473383 Add RALPH-loop recipe to Copilot SDK cookbook
Add iterative RALPH-loop (Read, Act, Log, Persist, Halt) pattern
implementations for all four supported languages:

- C#/.NET: ralph-loop.cs with documentation
- Node.js/TypeScript: ralph-loop.ts with documentation
- Python: ralph_loop.py with documentation (async API)
- Go: ralph-loop.go with documentation

Each recipe demonstrates:
- Self-referential iteration where AI reviews its own output
- Completion promise detection to halt the loop
- Max iteration safety limits
- File persistence between iterations

Verified against real Copilot SDK APIs:
- Python: fully verified end-to-end with github-copilot-sdk
- Node.js: fully verified end-to-end with @github/copilot-sdk
- C#: compiles and runs successfully with GitHub.Copilot.SDK
- Go: compiles against github.com/github/copilot-sdk/go v0.1.23
2026-02-11 04:59:20 -08:00
..
2026-02-02 14:01:22 +11:00
2026-02-02 14:01:22 +11:00

GitHub Copilot SDK Cookbook — Go

This folder hosts short, practical recipes for using the GitHub Copilot SDK with Go. Each recipe is concise, copypasteable, and points to fuller examples and tests.

Recipes

Contributing

Add a new recipe by creating a markdown file in this folder and linking it above. Follow repository guidance in CONTRIBUTING.md.

Status

These recipes are complete, practical examples and can be used directly or adapted for your own projects.