Skip to content

Commit 3eb7efc

Browse files
committed
Use gpt-5.1-codex-mini as default model in Ralph loop recipes
1 parent 0e61670 commit 3eb7efc

File tree

9 files changed

+641
-12
lines changed

9 files changed

+641
-12
lines changed

cookbook/copilot-sdk/dotnet/ralph-loop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ try
5858
5959
// Fresh session each iteration — context isolation is the point
6060
var session = await client.CreateSessionAsync(
61-
new SessionConfig { Model = "claude-sonnet-4.5" });
61+
new SessionConfig { Model = "gpt-5.1-codex-mini" });
6262
try
6363
{
6464
var done = new TaskCompletionSource<string>();
@@ -121,7 +121,7 @@ try
121121
var session = await client.CreateSessionAsync(
122122
new SessionConfig
123123
{
124-
Model = "claude-sonnet-4.5",
124+
Model = "gpt-5.1-codex-mini",
125125
// Pin the agent to the project directory
126126
WorkingDirectory = Environment.CurrentDirectory,
127127
// Auto-approve tool calls for unattended operation

cookbook/copilot-sdk/dotnet/recipe/ralph-loop.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
var session = await client.CreateSessionAsync(
4646
new SessionConfig
4747
{
48-
Model = "claude-sonnet-4.5",
48+
Model = "gpt-5.1-codex-mini",
4949
// Pin the agent to the project directory
5050
WorkingDirectory = Environment.CurrentDirectory,
5151
// Auto-approve tool calls for unattended operation

cookbook/copilot-sdk/go/ralph-loop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func ralphLoop(ctx context.Context, promptFile string, maxIterations int) error
7070
7171
// Fresh session each iteration — context isolation is the point
7272
session, err := client.CreateSession(ctx, &copilot.SessionConfig{
73-
Model: "claude-sonnet-4.5",
73+
Model: "gpt-5.1-codex-mini",
7474
})
7575
if err != nil {
7676
return err
@@ -145,7 +145,7 @@ func ralphLoop(ctx context.Context, mode string, maxIterations int) error {
145145
fmt.Printf("\n=== Iteration %d/%d ===\n", i, maxIterations)
146146
147147
session, err := client.CreateSession(ctx, &copilot.SessionConfig{
148-
Model: "claude-sonnet-4.5",
148+
Model: "gpt-5.1-codex-mini",
149149
WorkingDirectory: cwd,
150150
OnPermissionRequest: func(_ copilot.PermissionRequest, _ map[string]string) copilot.PermissionRequestResult {
151151
return copilot.PermissionRequestResult{Kind: "approved"}

cookbook/copilot-sdk/go/recipe/ralph-loop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func ralphLoop(ctx context.Context, mode string, maxIterations int) error {
5656
fmt.Printf("\n=== Iteration %d/%d ===\n", i, maxIterations)
5757

5858
session, err := client.CreateSession(ctx, &copilot.SessionConfig{
59-
Model: "claude-sonnet-4.5",
59+
Model: "gpt-5.1-codex-mini",
6060
WorkingDirectory: cwd,
6161
OnPermissionRequest: func(_ copilot.PermissionRequest, _ map[string]string) copilot.PermissionRequestResult {
6262
return copilot.PermissionRequestResult{Kind: "approved"}

cookbook/copilot-sdk/nodejs/ralph-loop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async function ralphLoop(promptFile: string, maxIterations: number = 50) {
5656
console.log(`\n=== Iteration ${i}/${maxIterations} ===`);
5757
5858
// Fresh session each iteration — context isolation is the point
59-
const session = await client.createSession({ model: "claude-sonnet-4.5" });
59+
const session = await client.createSession({ model: "gpt-5.1-codex-mini" });
6060
try {
6161
await session.sendAndWait({ prompt }, 600_000);
6262
} finally {
@@ -100,7 +100,7 @@ async function ralphLoop(mode: Mode, maxIterations: number = 50) {
100100
console.log(`\n=== Iteration ${i}/${maxIterations} ===`);
101101
102102
const session = await client.createSession({
103-
model: "claude-sonnet-4.5",
103+
model: "gpt-5.1-codex-mini",
104104
// Pin the agent to the project directory
105105
workingDirectory: process.cwd(),
106106
// Auto-approve tool calls for unattended operation

0 commit comments

Comments
 (0)