converse-mcp-server 2.29.2 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/.env.example +6 -3
  2. package/README.md +96 -94
  3. package/docs/API.md +703 -1562
  4. package/docs/ARCHITECTURE.md +13 -11
  5. package/docs/EXAMPLES.md +241 -667
  6. package/docs/PROVIDERS.md +104 -79
  7. package/package.json +1 -1
  8. package/src/async/asyncJobStore.js +2 -2
  9. package/src/async/jobRunner.js +6 -1
  10. package/src/async/providerStreamNormalizer.js +59 -1
  11. package/src/config.js +4 -3
  12. package/src/prompts/helpPrompt.js +43 -61
  13. package/src/providers/anthropic.js +0 -31
  14. package/src/providers/claude.js +0 -14
  15. package/src/providers/codex.js +15 -21
  16. package/src/providers/copilot.js +36 -202
  17. package/src/providers/deepseek.js +73 -53
  18. package/src/providers/gemini-cli.js +0 -3
  19. package/src/providers/google.js +10 -27
  20. package/src/providers/interface.js +0 -3
  21. package/src/providers/mistral.js +169 -63
  22. package/src/providers/openai-compatible.js +113 -28
  23. package/src/providers/openai.js +14 -66
  24. package/src/providers/openrouter-discovery.js +308 -0
  25. package/src/providers/openrouter.js +452 -282
  26. package/src/providers/xai.js +298 -280
  27. package/src/services/summarizationService.js +4 -14
  28. package/src/systemPrompts.js +19 -2
  29. package/src/tools/cancelJob.js +7 -1
  30. package/src/tools/chat.js +957 -995
  31. package/src/tools/checkStatus.js +1 -0
  32. package/src/tools/index.js +2 -6
  33. package/src/tools/modes/parallel.js +488 -0
  34. package/src/tools/modes/roundtable.js +495 -0
  35. package/src/tools/modes/streamShared.js +31 -0
  36. package/src/utils/contextProcessor.js +1 -38
  37. package/src/utils/conversationExporter.js +6 -26
  38. package/src/utils/formatStatus.js +46 -19
  39. package/src/utils/modelRouting.js +207 -4
  40. package/src/providers/openrouter-endpoints-client.js +0 -220
  41. package/src/tools/consensus.js +0 -1813
  42. package/src/tools/conversation.js +0 -1233
package/docs/EXAMPLES.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Converse MCP Server - Usage Examples
2
2
 
3
- ## 🚀 Getting Started Examples
3
+ All examples call the unified `chat` tool. The `mode` parameter (`chat`, `consensus`, or `roundtable`) selects how the models are orchestrated; `models` is always an array of plain name strings.
4
+
5
+ ## 🚀 Getting Started
4
6
 
5
7
  ### Basic Chat Interaction
6
8
 
@@ -13,28 +15,23 @@
13
15
  }
14
16
  ```
15
17
 
16
- **Response:**
18
+ **Response** (status line, continuation_id, then the answer):
19
+ ```
20
+ ✅ COMPLETED | CHAT | conv_abc123 | 1.2s elapsed | openai/gpt-5.6-sol
21
+ continuation_id: conv_abc123
22
+
23
+ I'd be happy to help you understand JavaScript promises! Promises are objects that represent the eventual completion or failure of an asynchronous operation…
24
+ ```
25
+
17
26
  ```json
18
27
  {
19
- "content": "I'd be happy to help you understand JavaScript promises! Promises are objects that represent the eventual completion or failure of an asynchronous operation...",
28
+ "content": "…status line + continuation_id + answer…",
20
29
  "continuation": {
21
30
  "id": "conv_abc123",
22
31
  "provider": "openai",
23
- "model": "o4-mini",
32
+ "model": "gpt-5.6-sol",
24
33
  "messageCount": 2
25
- },
26
- "metadata": {
27
- "model": "o4-mini",
28
- "usage": {
29
- "input_tokens": 15,
30
- "output_tokens": 145,
31
- "total_tokens": 160
32
- },
33
- "response_time_ms": 1200,
34
- "provider": "openai"
35
- },
36
- "title": "Understanding JavaScript Promises", // When summarization enabled
37
- "final_summary": "Explained JavaScript promises as objects for handling asynchronous operations with practical examples." // When summarization enabled
34
+ }
38
35
  }
39
36
  ```
40
37
 
@@ -50,247 +47,58 @@
50
47
  }
51
48
  ```
52
49
 
53
- ## ⏱️ Asynchronous Execution Examples
54
-
55
- ### Basic Async Chat
56
-
57
- For long-running tasks, use async mode to get immediate response and monitor progress:
58
-
59
- ```json
60
- {
61
- "tool": "chat",
62
- "arguments": {
63
- "prompt": "Analyze this large codebase and provide comprehensive optimization recommendations",
64
- "model": "gpt-5",
65
- "files": ["/path/to/large-project"],
66
- "async": true,
67
- "continuation_id": "analysis-task-001"
68
- }
69
- }
70
- ```
71
-
72
- **Immediate Response:**
73
- ```json
74
- {
75
- "content": "⏳ PROCESSING | CHAT | analysis-task-001 | 1/1 | Started: 2023-12-01 10:30:00 | openai/gpt-5",
76
- "continuation": {
77
- "id": "analysis-task-001",
78
- "status": "processing"
79
- },
80
- "async_execution": true
81
- }
82
- ```
83
-
84
- ### Monitoring Async Progress
85
-
86
- ```json
87
- {
88
- "tool": "check_status",
89
- "arguments": {
90
- "continuation_id": "analysis-task-001"
91
- }
92
- }
93
- ```
94
-
95
- **While Processing (with summarization enabled):**
96
- ```json
97
- {
98
- "content": {
99
- "id": "analysis-task-001",
100
- "status": "processing",
101
- "tool": "chat",
102
- "title": "Codebase Optimization Analysis", // AI-generated title
103
- "streaming_summary": "Analyzing codebase structure and dependencies. Currently examining performance bottlenecks in the API layer.", // Summary based on partially streamed response
104
- "progress": {
105
- "completed": 1,
106
- "total": 1,
107
- "percentage": 100
108
- },
109
- "elapsed_seconds": 12.5
110
- }
111
- }
112
- ```
113
-
114
- **When Complete (with summarization enabled):**
115
- ```json
116
- {
117
- "content": {
118
- "id": "analysis-task-001",
119
- "status": "completed",
120
- "tool": "chat",
121
- "title": "Codebase Optimization Analysis", // AI-generated title
122
- "final_summary": "Identified 5 critical performance bottlenecks and provided refactoring recommendations for improved scalability.", // Final summary
123
- "result": {
124
- "content": "# Codebase Analysis Results\n\nAfter analyzing your codebase, here are the key optimization opportunities...",
125
- "metadata": {
126
- "provider": "openai",
127
- "model": "gpt-5",
128
- "usage": {
129
- "input_tokens": 15420,
130
- "output_tokens": 2340
131
- }
132
- }
133
- },
134
- "elapsed_seconds": 45.2,
135
- "completed_at": "2023-12-01T10:30:45.200Z"
136
- }
137
- }
138
- ```
139
-
140
- ### Async Consensus Example
141
-
142
- ```json
143
- {
144
- "tool": "consensus",
145
- "arguments": {
146
- "prompt": "Design a scalable microservices architecture for our e-commerce platform",
147
- "models": ["gpt-5", "gemini-2.5-pro", "claude-sonnet-4-6"],
148
- "files": ["/docs/requirements.md", "/docs/current-architecture.md"],
149
- "async": true,
150
- "enable_cross_feedback": true
151
- }
152
- }
153
- ```
154
-
155
- **Immediate Response:**
156
- ```json
157
- {
158
- "content": "⏳ PROCESSING | CONSENSUS | consensus_xyz789 | 0/3 | Started: 2023-12-01 10:30:00 | gpt-5,gemini-2.5-pro,claude-sonnet-4-6",
159
- "continuation": {
160
- "id": "consensus_xyz789",
161
- "status": "processing"
162
- },
163
- "async_execution": true,
164
- "metadata": {
165
- "total_models": 3,
166
- "successful_models": 0,
167
- "models_list": "gpt-5,gemini-2.5-pro,claude-sonnet-4-6"
168
- }
169
- }
170
- ```
171
-
172
- ### Cancelling Long-Running Jobs
173
-
174
- ```json
175
- {
176
- "tool": "cancel_job",
177
- "arguments": {
178
- "continuation_id": "analysis-task-001"
179
- }
180
- }
181
- ```
182
-
183
- **Response:**
184
- ```json
185
- {
186
- "content": {
187
- "status": "cancelled",
188
- "message": "Job analysis-task-001 cancelled successfully",
189
- "job_id": "analysis-task-001",
190
- "elapsed_seconds": 15.3,
191
- "cancelled_at": "2023-12-01T10:30:15.300Z"
192
- }
193
- }
194
- ```
195
-
196
- ### Listing Recent Jobs
50
+ ## 🎯 Choosing a Model
197
51
 
198
- ```json
199
- {
200
- "tool": "check_status",
201
- "arguments": {}
202
- }
203
- ```
204
-
205
- **Response (with summarization enabled):**
206
- ```json
207
- {
208
- "content": {
209
- "jobs": [
210
- {
211
- "id": "analysis-task-001",
212
- "status": "completed",
213
- "tool": "chat",
214
- "title": "Codebase Optimization Analysis", // AI-generated title
215
- "final_summary": "Identified 5 critical performance bottlenecks and provided refactoring recommendations.", // Summary shown in listing
216
- "elapsed_seconds": 45.2,
217
- "completed_at": "2023-12-01T10:30:45.200Z"
218
- },
219
- {
220
- "id": "consensus_xyz789",
221
- "status": "processing",
222
- "tool": "consensus",
223
- "title": "E-commerce Architecture Design", // AI-generated title
224
- "progress": {
225
- "completed": 2,
226
- "total": 3,
227
- "percentage": 67
228
- },
229
- "elapsed_seconds": 28.7
230
- }
231
- ]
232
- }
233
- }
234
- ```
235
-
236
- ## 🚀 GPT-5 Advanced Features
237
-
238
- ### Using Minimal Reasoning for Fast Responses
52
+ ### Auto-selection (recommended)
239
53
 
240
54
  ```json
241
55
  {
242
56
  "tool": "chat",
243
57
  "arguments": {
244
- "prompt": "Write a simple SQL query to get all users created today",
245
- "model": "gpt-5",
246
- "reasoning_effort": "minimal",
247
- "verbosity": "low"
58
+ "prompt": "What's the syntax for async/await in JavaScript?",
59
+ "models": ["auto"]
248
60
  }
249
61
  }
250
62
  ```
251
63
 
252
- ### High Verbosity for Detailed Explanations
64
+ ### A specific model
253
65
 
254
66
  ```json
255
67
  {
256
68
  "tool": "chat",
257
69
  "arguments": {
258
- "prompt": "Explain the architecture of this authentication system and suggest improvements",
259
- "model": "gpt-5",
260
- "files": ["/c/Users/username/project/src/auth.js"],
261
- "reasoning_effort": "high",
262
- "verbosity": "high"
70
+ "prompt": "Design a distributed caching strategy for a platform with 10M+ users",
71
+ "models": ["gpt-5.6"],
72
+ "reasoning_effort": "max"
263
73
  }
264
74
  }
265
75
  ```
266
76
 
267
- ### Cost-Efficient with GPT-5-nano
77
+ ### Fast responses with a lightweight model
268
78
 
269
79
  ```json
270
80
  {
271
81
  "tool": "chat",
272
82
  "arguments": {
273
83
  "prompt": "Summarize the main points from this document",
274
- "model": "gpt-5-nano",
275
- "files": ["/c/Users/username/docs/report.md"],
276
- "verbosity": "low"
84
+ "models": ["gemini-2.5-flash"],
85
+ "files": ["/c/Users/username/docs/report.md"]
277
86
  }
278
87
  }
279
88
  ```
280
89
 
281
- ## 🔧 Code Analysis Examples
90
+ ## 🔧 Code Analysis
282
91
 
283
- ### Single File Analysis
92
+ ### Single File Review
284
93
 
285
94
  ```json
286
95
  {
287
96
  "tool": "chat",
288
97
  "arguments": {
289
98
  "prompt": "Review this function for potential bugs and improvements",
290
- "model": "gpt-5",
291
- "files": ["/c/Users/username/project/src/auth.js"],
292
- "reasoning_effort": "high",
293
- "temperature": 0.1
99
+ "models": ["gpt-5.6"],
100
+ "files": ["/c/Users/username/project/src/auth.js{1:120}"],
101
+ "reasoning_effort": "high"
294
102
  }
295
103
  }
296
104
  ```
@@ -302,155 +110,45 @@ For long-running tasks, use async mode to get immediate response and monitor pro
302
110
  "tool": "chat",
303
111
  "arguments": {
304
112
  "prompt": "Analyze the overall architecture and suggest improvements for scalability",
305
- "model": "gemini-2.5-pro",
113
+ "models": ["gemini-2.5-pro"],
306
114
  "files": [
307
115
  "/c/Users/username/project/src/server.js",
308
116
  "/c/Users/username/project/src/routes/index.js",
309
117
  "/c/Users/username/project/src/middleware/auth.js",
310
- "/c/Users/username/project/config/database.js"
311
- ],
312
- "temperature": 0.2
313
- }
314
- }
315
- ```
316
-
317
- ## 🎯 Model-Specific Examples
318
-
319
- ### Using GPT-5 for Complex Reasoning
320
-
321
- ```json
322
- {
323
- "tool": "chat",
324
- "arguments": {
325
- "prompt": "Design a distributed caching strategy for a social media platform with 10M+ users",
326
- "model": "gpt-5",
327
- "reasoning_effort": "max",
328
- "temperature": 0.1
329
- }
330
- }
331
- ```
332
-
333
- ### Using Flash for Quick Responses
334
-
335
- ```json
336
- {
337
- "tool": "chat",
338
- "arguments": {
339
- "prompt": "What's the syntax for async/await in JavaScript?",
340
- "model": "gemini-2.5-flash",
341
- "temperature": 0.3
342
- }
343
- }
344
- ```
345
-
346
- ### Using Grok for Creative Solutions
347
-
348
- ```json
349
- {
350
- "tool": "chat",
351
- "arguments": {
352
- "prompt": "Brainstorm creative ways to gamify a productivity app",
353
- "model": "grok-4",
354
- "temperature": 0.7
355
- }
356
- }
357
- ```
358
-
359
- ## 🤖 Codex Examples
360
-
361
- Codex is an agentic coding assistant that runs locally with direct filesystem access.
362
-
363
- ### Basic Code Analysis
364
-
365
- ```json
366
- {
367
- "tool": "chat",
368
- "arguments": {
369
- "prompt": "Explain what this function does",
370
- "model": "codex",
371
- "files": ["/path/to/src/utils.js"]
372
- }
373
- }
374
- ```
375
-
376
- ### Thread Continuation
377
-
378
- Codex maintains conversation history through threads:
379
-
380
- ```json
381
- // First request
382
- {
383
- "tool": "chat",
384
- "arguments": {
385
- "prompt": "Review this authentication module",
386
- "model": "codex",
387
- "files": ["/path/to/auth.js"]
388
- }
389
- }
390
- // Response includes: "continuation": { "id": "conv_abc123" }
391
-
392
- // Follow-up request (maintains context)
393
- {
394
- "tool": "chat",
395
- "arguments": {
396
- "prompt": "Now add rate limiting to the login endpoint",
397
- "model": "codex",
398
- "continuation_id": "conv_abc123"
118
+ "/c/Users/username/config/database.js"
119
+ ]
399
120
  }
400
121
  }
401
122
  ```
402
123
 
403
- ### Async Mode for Long Tasks
124
+ ## 🧠 Independent Parallel Answers (chat mode, multiple models)
404
125
 
405
- Codex responses can take several minutes for complex tasks:
126
+ In `chat` mode, listing more than one model runs them in parallel; each answers independently and the response has one labeled section per model.
406
127
 
407
128
  ```json
408
129
  {
409
130
  "tool": "chat",
410
131
  "arguments": {
411
- "prompt": "Analyze this entire codebase and suggest refactoring opportunities",
412
- "model": "codex",
413
- "files": ["/path/to/project"],
414
- "async": true
415
- }
416
- }
417
- // Response: { "job_id": "conv_xyz789", "status": "SUBMITTED" }
418
-
419
- // Check progress
420
- {
421
- "tool": "check_status",
422
- "arguments": {
423
- "continuation_id": "conv_xyz789"
132
+ "prompt": "What could be causing our API response times to degrade?",
133
+ "models": ["gemini-2.5-flash", "o4-mini", "gpt-4.1"],
134
+ "files": ["/c/Users/username/monitoring/performance_report.json"]
424
135
  }
425
136
  }
426
137
  ```
427
138
 
428
- ### Sandbox Modes
429
-
430
- Control filesystem access through `CODEX_SANDBOX_MODE`:
431
-
432
- ```bash
433
- # Read-only mode (default) - safe for exploration
434
- CODEX_SANDBOX_MODE=read-only
139
+ ## 🤝 Consensus (parallel + cross-feedback)
435
140
 
436
- # Workspace-write - allow modifications in project directory
437
- CODEX_SANDBOX_MODE=workspace-write
438
-
439
- # Full access - use only in containers with proper isolation
440
- CODEX_SANDBOX_MODE=danger-full-access
441
- ```
442
-
443
- ## 🤝 Consensus Examples
141
+ `consensus` mode runs all models on the same prompt in parallel, then always runs a refinement phase where each model sees the others' answers and refines its own. It requires at least 2 available models.
444
142
 
445
143
  ### Simple Technical Decision
446
144
 
447
145
  ```json
448
146
  {
449
- "tool": "consensus",
147
+ "tool": "chat",
450
148
  "arguments": {
451
149
  "prompt": "Should we use PostgreSQL or MongoDB for our e-commerce inventory system?",
452
- "models": ["gpt-5", "gemini-2.5-pro", "grok-4"],
453
- "temperature": 0.2
150
+ "models": ["gpt-5.6", "gemini-2.5-pro", "grok-4.5"],
151
+ "mode": "consensus"
454
152
  }
455
153
  }
456
154
  ```
@@ -465,20 +163,20 @@ CODEX_SANDBOX_MODE=danger-full-access
465
163
  "phases": {
466
164
  "initial": [
467
165
  {
468
- "model": "gpt-5",
166
+ "model": "gpt-5.6",
469
167
  "status": "success",
470
- "response": "For an e-commerce inventory system, I recommend PostgreSQL because...",
471
- "metadata": {"input_tokens": 50, "output_tokens": 180}
168
+ "response": "For an e-commerce inventory system, I recommend PostgreSQL because"
472
169
  }
473
170
  ],
474
171
  "refined": [
475
172
  {
476
- "model": "gpt-5",
173
+ "model": "gpt-5.6",
477
174
  "status": "success",
478
- "initial_response": "For an e-commerce inventory system, I recommend PostgreSQL...",
479
- "refined_response": "After considering the other perspectives on MongoDB's flexibility, I still lean towards PostgreSQL but acknowledge that MongoDB could work well if..."
175
+ "initial_response": "For an e-commerce inventory system, I recommend PostgreSQL",
176
+ "refined_response": "After considering the other perspectives on MongoDB's flexibility, I still lean towards PostgreSQL but acknowledge that"
480
177
  }
481
- ]
178
+ ],
179
+ "failed": []
482
180
  }
483
181
  }
484
182
  ```
@@ -487,56 +185,53 @@ CODEX_SANDBOX_MODE=danger-full-access
487
185
 
488
186
  ```json
489
187
  {
490
- "tool": "consensus",
188
+ "tool": "chat",
491
189
  "arguments": {
492
- "prompt": "Given our current system architecture, what's the best approach for implementing real-time notifications?",
493
- "models": [
494
- "gpt-5", // Most intelligent: Superior reasoning
495
- "grok-4", // Most intelligent: Advanced analysis
496
- "gemini-2.5-pro" // Most intelligent: Deep thinking
497
- ],
190
+ "prompt": "Given our current architecture, what's the best approach for real-time notifications?",
191
+ "models": ["gpt-5.6", "grok-4.5", "gemini-2.5-pro"],
192
+ "mode": "consensus",
498
193
  "files": [
499
194
  "/c/Users/username/docs/current_architecture.md",
500
195
  "/c/Users/username/src/server.js",
501
196
  "/c/Users/username/package.json"
502
- ],
503
- "enable_cross_feedback": true,
504
- "temperature": 0.15
197
+ ]
505
198
  }
506
199
  }
507
200
  ```
508
201
 
509
- ### Fast Consensus (No Cross-Feedback)
202
+ ### Auto Consensus
203
+
204
+ `["auto"]` in consensus mode expands to the first 3 available providers:
510
205
 
511
206
  ```json
512
207
  {
513
- "tool": "consensus",
208
+ "tool": "chat",
514
209
  "arguments": {
515
- "prompt": "What's the best CSS framework for rapid prototyping in 2024?",
516
- "models": ["gemini-2.5-flash", "o4-mini", "grok-4"],
517
- "enable_cross_feedback": false,
518
- "temperature": 0.3
210
+ "prompt": "Which CSS framework fits rapid prototyping best?",
211
+ "models": ["auto"],
212
+ "mode": "consensus"
519
213
  }
520
214
  }
521
215
  ```
522
216
 
523
- ## 🔄 Conversation (Round-Table) Examples
217
+ ## 🔄 Roundtable (sequential turn-based dialogue)
524
218
 
525
- The `conversation` tool runs a turn-based round-table: models respond **in the order given**, and each model sees the full running transcript of every turn before it. One call = one lap. Pass the returned `continuation_id` to run another lap; every lap appends to one shared transcript. This differs from `consensus`, where all models answer the same prompt in parallel.
219
+ `roundtable` mode has models respond **in the order given**, each seeing the full running transcript of every turn before it. One call = one lap. Pass the returned `continuation_id` to run another lap; every lap appends to one shared transcript.
526
220
 
527
221
  ### Basic Two-Model Round-Table
528
222
 
529
223
  ```json
530
224
  {
531
- "tool": "conversation",
225
+ "tool": "chat",
532
226
  "arguments": {
533
227
  "prompt": "Should we adopt event sourcing for the order service?",
534
- "models": ["codex", "gemini"]
228
+ "models": ["codex", "gemini"],
229
+ "mode": "roundtable"
535
230
  }
536
231
  }
537
232
  ```
538
233
 
539
- On this lap, `codex` opens, then `gemini` responds having seen codex's turn. The response contains both labeled turns in order plus a `continuation_id`.
234
+ On this lap, `codex` opens, then `gemini` responds having seen codex's turn. The result contains both labeled turns in order plus a `continuation_id`.
540
235
 
541
236
  ### Continuing the Round-Table (More Laps)
542
237
 
@@ -545,51 +240,59 @@ On this lap, `codex` opens, then `gemini` responds having seen codex's turn. The
545
240
 
546
241
  // Lap 2 — every model again sees the full accumulated transcript
547
242
  {
548
- "tool": "conversation",
243
+ "tool": "chat",
549
244
  "arguments": {
550
245
  "prompt": "Now focus specifically on the migration path from the current design.",
551
246
  "models": ["codex", "gemini"],
247
+ "mode": "roundtable",
552
248
  "continuation_id": "conv_abc123"
553
249
  }
554
250
  }
555
251
  ```
556
252
 
557
- You may also change the model list on a resuming lap (e.g. drop a participant or add one); the shared transcript persists regardless of who ran in earlier laps:
253
+ You may also change the model list on a resuming lap; the shared transcript persists regardless of who ran in earlier laps:
558
254
 
559
255
  ```json
560
256
  {
561
- "tool": "conversation",
257
+ "tool": "chat",
562
258
  "arguments": {
563
259
  "prompt": "Bring in a third perspective on testability.",
564
260
  "models": ["codex", "gemini", "claude"],
261
+ "mode": "roundtable",
565
262
  "continuation_id": "conv_abc123"
566
263
  }
567
264
  }
568
265
  ```
569
266
 
570
- ### Round-Table with Files and a Custom Per-Turn Instruction
267
+ ### Round-Table with Files
571
268
 
572
269
  ```json
573
270
  {
574
- "tool": "conversation",
271
+ "tool": "chat",
575
272
  "arguments": {
576
- "prompt": "Review this module design and push back on weak assumptions.",
273
+ "prompt": "Review this module design and push back on weak assumptions. Call out concrete failure modes you would test for.",
577
274
  "models": ["codex", "gemini", "claude"],
578
- "files": ["/c/Users/username/project/src/orders/design.md"],
579
- "turn_prompt": "Call out concrete failure modes you would test for."
275
+ "mode": "roundtable",
276
+ "files": ["/c/Users/username/project/src/orders/design.md"]
580
277
  }
581
278
  }
582
279
  ```
583
280
 
584
- ### Async Round-Table with Progress Monitoring
281
+ ## ⏱️ Asynchronous Execution
282
+
283
+ For long-running work, set `async: true` to get an immediate `continuation_id` and monitor progress with `check_status`.
284
+
285
+ ### Async Chat
585
286
 
586
287
  ```json
587
288
  {
588
- "tool": "conversation",
289
+ "tool": "chat",
589
290
  "arguments": {
590
- "prompt": "Design a rollout plan for the new pricing engine.",
591
- "models": ["codex", "gemini", "claude"],
592
- "async": true
291
+ "prompt": "Analyze this large codebase and provide comprehensive optimization recommendations",
292
+ "models": ["gpt-5.6"],
293
+ "files": ["/path/to/large-project"],
294
+ "async": true,
295
+ "continuation_id": "analysis-task-001"
593
296
  }
594
297
  }
595
298
  ```
@@ -597,477 +300,347 @@ You may also change the model list on a resuming lap (e.g. drop a participant or
597
300
  **Immediate Response:**
598
301
  ```json
599
302
  {
600
- "content": "⏳ SUBMITTED | CONVERSATION | conv_xyz789 | 1/1 | Started: 01/12/2023 10:30:00 | \"Pricing Engine Rollout\" | codex, gemini, claude",
601
- "continuation": {
602
- "id": "conv_xyz789",
603
- "status": "processing"
604
- },
303
+ "content": "⏳ SUBMITTED | CHAT | analysis-task-001 | 1/1 | Started: 01/12/2026 10:30:00 | \"Codebase Optimization Analysis\" | gpt-5.6\ncontinuation_id: analysis-task-001",
304
+ "continuation": { "id": "analysis-task-001", "status": "processing" },
605
305
  "async_execution": true
606
306
  }
607
307
  ```
608
308
 
609
- **Monitor per-turn progress, then read the full transcript on completion:**
309
+ ### Monitoring Progress
310
+
610
311
  ```json
611
312
  {
612
313
  "tool": "check_status",
613
- "arguments": {
614
- "continuation_id": "conv_xyz789"
615
- }
314
+ "arguments": { "continuation_id": "analysis-task-001" }
616
315
  }
617
316
  ```
618
317
 
619
- While running, the status line shows turn progress (e.g. `2/3 turns`) and the accumulating transcript. When complete, `check_status` renders the full lap transcript along with the AI-generated title and final summary.
318
+ While processing (with summarization enabled), the status shows an AI-generated title and a streaming summary based on the partial response. When complete, it renders the full result plus the final summary.
620
319
 
621
- ## 🖼️ Image Analysis Examples
622
-
623
- ### Screenshot Analysis
320
+ ### Async Consensus
624
321
 
625
322
  ```json
626
323
  {
627
324
  "tool": "chat",
628
325
  "arguments": {
629
- "prompt": "Analyze this UI design and suggest improvements for user experience",
630
- "model": "gpt-4.1",
631
- "images": ["/c/Users/username/designs/dashboard_mockup.png"],
632
- "temperature": 0.3
633
- }
634
- }
635
- ```
636
-
637
- ### Multi-Image Comparison
638
-
639
- ```json
640
- {
641
- "tool": "consensus",
642
- "arguments": {
643
- "prompt": "Compare these three design options and recommend the best one for our mobile app",
644
- "models": ["gpt-4.1", "gemini-2.5-pro", "grok-4"],
645
- "images": [
646
- "/c/Users/username/designs/option_a.png",
647
- "/c/Users/username/designs/option_b.png",
648
- "/c/Users/username/designs/option_c.png"
649
- ],
650
- "temperature": 0.2
326
+ "prompt": "Design a scalable microservices architecture for our e-commerce platform",
327
+ "models": ["gpt-5.6", "gemini-2.5-pro", "claude"],
328
+ "mode": "consensus",
329
+ "files": ["/docs/requirements.md", "/docs/current-architecture.md"],
330
+ "async": true
651
331
  }
652
332
  }
653
333
  ```
654
334
 
655
- ### Code + Diagram Analysis
335
+ ### Async Round-Table
656
336
 
657
337
  ```json
658
338
  {
659
339
  "tool": "chat",
660
340
  "arguments": {
661
- "prompt": "Review the implementation against the architecture diagram. Are we following the design correctly?",
662
- "model": "gpt-5",
663
- "files": ["/c/Users/username/src/services/payment.js", "/c/Users/username/src/models/transaction.js"],
664
- "images": ["/c/Users/username/docs/payment_flow_diagram.png"],
665
- "reasoning_effort": "high"
341
+ "prompt": "Design a rollout plan for the new pricing engine.",
342
+ "models": ["codex", "gemini", "claude"],
343
+ "mode": "roundtable",
344
+ "async": true
666
345
  }
667
346
  }
668
347
  ```
669
348
 
670
- ## 🔍 Debugging & Problem Solving
349
+ While running, `check_status` shows turn progress (e.g. `2/3 turns`) and the accumulating transcript; on completion it renders the full lap transcript, title, and final summary.
671
350
 
672
- ### Error Investigation
351
+ ### Cancelling a Job
673
352
 
674
353
  ```json
675
354
  {
676
- "tool": "chat",
677
- "arguments": {
678
- "prompt": "Help me debug this error. The application crashes intermittently with this stack trace.",
679
- "model": "gpt-5",
680
- "files": [
681
- "/c/Users/username/src/server.js",
682
- "/c/Users/username/logs/error.log",
683
- "/c/Users/username/src/middleware/error-handler.js"
684
- ],
685
- "reasoning_effort": "high",
686
- "temperature": 0.1
687
- }
355
+ "tool": "cancel_job",
356
+ "arguments": { "continuation_id": "analysis-task-001" }
688
357
  }
689
358
  ```
690
359
 
691
- ### Performance Analysis
360
+ ### Listing Recent Jobs
692
361
 
693
362
  ```json
694
363
  {
695
- "tool": "consensus",
696
- "arguments": {
697
- "prompt": "Our API response times are degrading. What could be the root causes?",
698
- "models": [
699
- "gemini-2.5-flash", // Fast: Quick analysis
700
- "o4-mini", // Fast: Rapid responses
701
- "gpt-4.1" // Fast: Efficient processing
702
- ],
703
- "files": [
704
- "/c/Users/username/monitoring/performance_report.json",
705
- "/c/Users/username/src/database/queries.js",
706
- "/c/Users/username/src/api/routes.js"
707
- ],
708
- "cross_feedback_prompt": "Focus on the most likely performance bottlenecks based on the data"
709
- }
364
+ "tool": "check_status",
365
+ "arguments": {}
710
366
  }
711
367
  ```
712
368
 
713
- ## 📚 Learning & Documentation
369
+ Returns the 10 most recent jobs with status, timing, and (when summarization is enabled) titles and summaries.
714
370
 
715
- ### Concept Explanation
371
+ ## 🤖 Codex Examples
716
372
 
717
- ```json
718
- {
719
- "tool": "chat",
720
- "arguments": {
721
- "prompt": "Explain microservices architecture with pros, cons, and when to use it",
722
- "model": "gemini-2.5-pro",
723
- "temperature": 0.4
724
- }
725
- }
726
- ```
373
+ Codex is an agentic coding assistant that runs locally with direct filesystem access.
727
374
 
728
- ### Code Review & Learning
375
+ ### Basic Code Analysis
729
376
 
730
377
  ```json
731
378
  {
732
379
  "tool": "chat",
733
380
  "arguments": {
734
- "prompt": "Review this code and explain what it does, then suggest best practices improvements",
735
- "model": "gpt-5",
736
- "files": ["/c/Users/username/src/utils/encryption.js"],
737
- "reasoning_effort": "medium",
738
- "temperature": 0.2
739
- }
740
- }
741
- ```
742
-
743
- ### Technology Comparison
744
-
745
- ```json
746
- {
747
- "tool": "consensus",
748
- "arguments": {
749
- "prompt": "Compare Next.js, Nuxt.js, and SvelteKit for our new web application project",
750
- "models": ["gpt-5", "gemini-2.5-flash", "grok-4"],
751
- "files": ["/c/Users/username/docs/project_requirements.md"],
752
- "temperature": 0.25
381
+ "prompt": "Explain what this function does",
382
+ "models": ["codex"],
383
+ "files": ["/path/to/src/utils.js"]
753
384
  }
754
385
  }
755
386
  ```
756
387
 
757
- ## 🛠️ Development Workflows
388
+ ### Thread Continuation
758
389
 
759
- ### Feature Planning
390
+ Codex maintains conversation history through threads in `chat` mode:
760
391
 
761
392
  ```json
393
+ // First request
762
394
  {
763
- "tool": "consensus",
395
+ "tool": "chat",
764
396
  "arguments": {
765
- "prompt": "Plan the implementation of user authentication with social login support",
766
- "models": ["gpt-5", "gemini-2.5-pro", "grok-4"],
767
- "files": [
768
- "/c/Users/username/docs/user_requirements.md",
769
- "/c/Users/username/src/models/user.js"
770
- ],
771
- "cross_feedback_prompt": "Consider security, scalability, and user experience in your refinement"
397
+ "prompt": "Review this authentication module",
398
+ "models": ["codex"],
399
+ "files": ["/path/to/auth.js"]
772
400
  }
773
401
  }
774
- ```
775
-
776
- ### Code Generation
402
+ // Response includes: "continuation": { "id": "conv_abc123" }
777
403
 
778
- ```json
404
+ // Follow-up request (maintains context)
779
405
  {
780
406
  "tool": "chat",
781
407
  "arguments": {
782
- "prompt": "Generate a React component for a responsive image gallery with lazy loading",
783
- "model": "gemini-2.5-flash",
784
- "files": ["/c/Users/username/src/styles/globals.css"],
785
- "temperature": 0.3
408
+ "prompt": "Now add rate limiting to the login endpoint",
409
+ "models": ["codex"],
410
+ "continuation_id": "conv_abc123"
786
411
  }
787
412
  }
788
413
  ```
789
414
 
790
- ### Refactoring Guidance
415
+ ### Async Mode for Long Tasks
791
416
 
792
417
  ```json
793
418
  {
794
419
  "tool": "chat",
795
420
  "arguments": {
796
- "prompt": "Help me refactor this legacy code to use modern ES6+ features and improve readability",
797
- "model": "gpt-5",
798
- "files": ["/c/Users/username/src/legacy/data-processor.js"],
799
- "reasoning_effort": "medium",
800
- "temperature": 0.2
421
+ "prompt": "Analyze this entire codebase and suggest refactoring opportunities",
422
+ "models": ["codex"],
423
+ "files": ["/path/to/project"],
424
+ "async": true
801
425
  }
802
426
  }
803
427
  ```
804
428
 
805
- ## 🚀 Advanced Use Cases
429
+ ### Sandbox Modes
806
430
 
807
- ### Multi-Step Problem Solving
431
+ Control filesystem access through `CODEX_SANDBOX_MODE`:
808
432
 
809
- ```json
810
- {
811
- "tool": "chat",
812
- "arguments": {
813
- "prompt": "I need to migrate our monolith to microservices. What's the step-by-step approach?",
814
- "model": "gpt-5",
815
- "files": ["/c/Users/username/src/app.js", "/c/Users/username/docs/current_architecture.md"],
816
- "reasoning_effort": "max",
817
- "temperature": 0.1
818
- }
819
- }
820
- ```
433
+ ```bash
434
+ # Read-only mode (default) - safe for exploration
435
+ CODEX_SANDBOX_MODE=read-only
821
436
 
822
- ### Cross-Technology Analysis
437
+ # Workspace-write - allow modifications in the project directory
438
+ CODEX_SANDBOX_MODE=workspace-write
823
439
 
824
- ```json
825
- {
826
- "tool": "consensus",
827
- "arguments": {
828
- "prompt": "Should we migrate from Python Django to Node.js Express for better performance?",
829
- "models": ["gpt-5", "gemini-2.5-pro", "grok-4"],
830
- "files": [
831
- "/c/Users/username/backend/requirements.txt",
832
- "/c/Users/username/monitoring/performance_metrics.json",
833
- "/c/Users/username/docs/team_skills.md"
834
- ],
835
- "cross_feedback_prompt": "Consider team expertise, migration costs, and long-term maintainability"
836
- }
837
- }
440
+ # Full access - use only in containers with proper isolation
441
+ CODEX_SANDBOX_MODE=danger-full-access
838
442
  ```
839
443
 
840
- ### Research & Investigation
444
+ ## 🖼️ Image Analysis
445
+
446
+ ### Screenshot Analysis
841
447
 
842
448
  ```json
843
449
  {
844
450
  "tool": "chat",
845
451
  "arguments": {
846
- "prompt": "Research the latest trends in web development for 2024 and how they apply to our project",
847
- "model": "grok-4",
848
- "use_websearch": true,
849
- "temperature": 0.5
452
+ "prompt": "Analyze this UI design and suggest improvements for user experience",
453
+ "models": ["gpt-5.6"],
454
+ "images": ["/c/Users/username/designs/dashboard_mockup.png"]
850
455
  }
851
456
  }
852
457
  ```
853
458
 
854
- ## 🎛️ Configuration Examples
855
-
856
- ### Custom Temperature Settings
459
+ ### Multi-Image Comparison (consensus)
857
460
 
858
461
  ```json
859
462
  {
860
463
  "tool": "chat",
861
464
  "arguments": {
862
- "prompt": "Generate creative marketing copy for our new product launch",
863
- "model": "grok-4",
864
- "temperature": 0.8
465
+ "prompt": "Compare these three design options and recommend the best one for our mobile app",
466
+ "models": ["gpt-5.6", "gemini-2.5-pro", "grok-4.5"],
467
+ "mode": "consensus",
468
+ "images": [
469
+ "/c/Users/username/designs/option_a.png",
470
+ "/c/Users/username/designs/option_b.png",
471
+ "/c/Users/username/designs/option_c.png"
472
+ ]
865
473
  }
866
474
  }
867
475
  ```
868
476
 
477
+ ### Code + Diagram Analysis
478
+
869
479
  ```json
870
480
  {
871
- "tool": "chat",
481
+ "tool": "chat",
872
482
  "arguments": {
873
- "prompt": "Fix this bug in my authentication logic",
874
- "model": "gpt-5",
875
- "files": ["/c/Users/username/src/auth.js"],
876
- "temperature": 0.0,
483
+ "prompt": "Review the implementation against the architecture diagram. Are we following the design correctly?",
484
+ "models": ["gpt-5.6"],
485
+ "files": ["/c/Users/username/src/services/payment.js", "/c/Users/username/src/models/transaction.js"],
486
+ "images": ["/c/Users/username/docs/payment_flow_diagram.png"],
877
487
  "reasoning_effort": "high"
878
488
  }
879
489
  }
880
490
  ```
881
491
 
882
- ### Different Reasoning Levels
492
+ ## 🔍 Debugging & Problem Solving
883
493
 
884
- ```json
885
- {
886
- "tool": "chat",
887
- "arguments": {
888
- "prompt": "Quick syntax check - is this JavaScript valid?",
889
- "model": "gpt-5",
890
- "reasoning_effort": "minimal",
891
- "temperature": 0.1
892
- }
893
- }
894
- ```
494
+ ### Error Investigation
895
495
 
896
496
  ```json
897
497
  {
898
498
  "tool": "chat",
899
499
  "arguments": {
900
- "prompt": "Design a comprehensive testing strategy for this complex system",
901
- "model": "gpt-5",
902
- "files": ["/src/", "/tests/"],
903
- "reasoning_effort": "max",
904
- "temperature": 0.1
500
+ "prompt": "Help me debug this error. The application crashes intermittently with this stack trace.",
501
+ "models": ["gpt-5.6"],
502
+ "files": [
503
+ "/c/Users/username/src/server.js",
504
+ "/c/Users/username/logs/error.log",
505
+ "/c/Users/username/src/middleware/error-handler.js"
506
+ ],
507
+ "reasoning_effort": "high"
905
508
  }
906
509
  }
907
510
  ```
908
511
 
909
- ## 🔄 Continuation Examples
512
+ ### Web-Grounded Research
910
513
 
911
- ### Long Research Session
514
+ Grok 4.5 (and other web-search-capable models) attach web search automatically and decide per request whether to use it:
912
515
 
913
516
  ```json
914
- // First request
915
517
  {
916
518
  "tool": "chat",
917
519
  "arguments": {
918
- "prompt": "I'm building a real-time chat application. What architecture should I consider?",
919
- "model": "gpt-5"
520
+ "prompt": "Research the latest trends in web development and how they apply to our project",
521
+ "models": ["grok-4.5"]
920
522
  }
921
523
  }
524
+ ```
922
525
 
923
- // Response includes: "continuation": {"id": "conv_research_123"}
924
-
925
- // Follow-up questions
926
- {
927
- "tool": "chat",
928
- "arguments": {
929
- "prompt": "What about handling file uploads in real-time?",
930
- "continuation_id": "conv_research_123"
931
- }
932
- }
526
+ For OpenRouter models, opt into web search explicitly by appending `:online` to the slug (adds a real per-request cost):
933
527
 
528
+ ```json
934
529
  {
935
530
  "tool": "chat",
936
531
  "arguments": {
937
- "prompt": "How would you implement message encryption?",
938
- "continuation_id": "conv_research_123"
532
+ "prompt": "What changed in the latest React release?",
533
+ "models": ["z-ai/glm-5.2:online"]
939
534
  }
940
535
  }
941
536
  ```
942
537
 
943
- ### Iterative Development
538
+ ## 📚 Learning & Documentation
539
+
540
+ ### Concept Explanation
944
541
 
945
542
  ```json
946
- // Initial code review
947
543
  {
948
544
  "tool": "chat",
949
545
  "arguments": {
950
- "prompt": "Review this API endpoint implementation",
951
- "model": "gpt-5",
952
- "files": ["/c/Users/username/src/api/users.js"]
546
+ "prompt": "Explain microservices architecture with pros, cons, and when to use it",
547
+ "models": ["gemini-2.5-pro"]
953
548
  }
954
549
  }
550
+ ```
955
551
 
956
- // Implementation improvement
957
- {
958
- "tool": "chat",
959
- "arguments": {
960
- "prompt": "Now help me implement the error handling you suggested",
961
- "continuation_id": "conv_dev_456",
962
- "files": ["/c/Users/username/src/api/users.js"]
963
- }
964
- }
552
+ ### Technology Comparison (consensus)
965
553
 
966
- // Testing guidance
554
+ ```json
967
555
  {
968
556
  "tool": "chat",
969
557
  "arguments": {
970
- "prompt": "What unit tests should I write for this endpoint?",
971
- "continuation_id": "conv_dev_456"
558
+ "prompt": "Compare Next.js, Nuxt.js, and SvelteKit for our new web application project",
559
+ "models": ["gpt-5.6", "gemini-2.5-flash", "grok-4.5"],
560
+ "mode": "consensus",
561
+ "files": ["/c/Users/username/docs/project_requirements.md"]
972
562
  }
973
563
  }
974
564
  ```
975
565
 
976
- ## 🎨 Creative & Brainstorming
566
+ ## 🛠️ Development Workflows
977
567
 
978
- ### Feature Ideation
568
+ ### Feature Planning (consensus)
979
569
 
980
570
  ```json
981
571
  {
982
- "tool": "consensus",
572
+ "tool": "chat",
983
573
  "arguments": {
984
- "prompt": "Brainstorm innovative features for a fitness tracking app that would differentiate us from competitors",
985
- "models": ["grok-4", "gemini-2.5-pro", "gpt-4.1"],
986
- "temperature": 0.7,
987
- "cross_feedback_prompt": "Build on each other's ideas and suggest combinations"
574
+ "prompt": "Plan the implementation of user authentication with social login support. Consider security, scalability, and UX.",
575
+ "models": ["gpt-5.6", "gemini-2.5-pro", "grok-4.5"],
576
+ "mode": "consensus",
577
+ "files": [
578
+ "/c/Users/username/docs/user_requirements.md",
579
+ "/c/Users/username/src/models/user.js"
580
+ ]
988
581
  }
989
582
  }
990
583
  ```
991
584
 
992
- ### UI/UX Improvements
585
+ ### Refactoring Guidance
993
586
 
994
587
  ```json
995
588
  {
996
589
  "tool": "chat",
997
590
  "arguments": {
998
- "prompt": "Suggest creative ways to improve user onboarding for this interface",
999
- "model": "grok-4",
1000
- "images": ["/c/Users/username/designs/current_onboarding.png"],
1001
- "temperature": 0.6
591
+ "prompt": "Help me refactor this legacy code to use modern ES6+ features and improve readability",
592
+ "models": ["gpt-5.6"],
593
+ "files": ["/c/Users/username/src/legacy/data-processor.js"],
594
+ "reasoning_effort": "medium"
1002
595
  }
1003
596
  }
1004
597
  ```
1005
598
 
1006
- ## 🧪 Testing Examples
599
+ ## 🔄 Continuation & Mode Switching
1007
600
 
1008
- ### Test Strategy Planning
601
+ A single thread can span modes. Start with a quick chat answer, then continue in roundtable on the same `continuation_id` — the shared transcript is the context.
1009
602
 
1010
603
  ```json
604
+ // Chat: quick opening answer
1011
605
  {
1012
- "tool": "consensus",
606
+ "tool": "chat",
1013
607
  "arguments": {
1014
- "prompt": "What testing strategy should we implement for this e-commerce checkout flow?",
1015
- "models": ["gpt-5", "gemini-2.5-pro", "gemini-2.5-flash"],
1016
- "files": [
1017
- "/c/Users/username/src/checkout/payment.js",
1018
- "/c/Users/username/src/checkout/validation.js",
1019
- "/c/Users/username/docs/business_requirements.md"
1020
- ],
1021
- "temperature": 0.2
608
+ "prompt": "I'm building a real-time chat application. What architecture should I consider?",
609
+ "models": ["gpt-5.6"]
1022
610
  }
1023
611
  }
1024
- ```
1025
-
1026
- ### Test Generation
612
+ // Response includes: "continuation": { "id": "conv_research_123" }
1027
613
 
1028
- ```json
614
+ // Roundtable: bring several models into a discussion on the same thread
1029
615
  {
1030
616
  "tool": "chat",
1031
617
  "arguments": {
1032
- "prompt": "Generate comprehensive unit tests for this user authentication module",
1033
- "model": "gemini-2.5-flash",
1034
- "files": ["/c/Users/username/src/auth/index.js"],
1035
- "temperature": 0.3
618
+ "prompt": "Debate the trade-offs of WebSockets vs. server-sent events for this design.",
619
+ "models": ["codex", "gemini", "claude"],
620
+ "mode": "roundtable",
621
+ "continuation_id": "conv_research_123"
1036
622
  }
1037
623
  }
1038
624
  ```
1039
625
 
1040
- ## 📊 Error Handling Examples
626
+ ## 📊 Partial Failures
1041
627
 
1042
- ### Graceful Degradation
628
+ Individual model or turn failures do not abort a consensus or roundtable request — they are recorded in the result and listed in trailing failure details.
1043
629
 
630
+ **Consensus with one failed model:**
1044
631
  ```json
1045
632
  {
1046
- "tool": "consensus",
1047
- "arguments": {
1048
- "prompt": "One of our models is unavailable, but we still need consensus",
1049
- "models": ["available-model-1", "available-model-2"],
1050
- "temperature": 0.2
1051
- }
1052
- }
1053
- ```
1054
-
1055
- ### Partial Success Response
1056
-
1057
- ```json
1058
- {
1059
- "status": "consensus_partial",
1060
- "models_consulted": 2,
633
+ "status": "consensus_complete",
634
+ "models_consulted": 3,
1061
635
  "successful_initial_responses": 2,
1062
636
  "failed_responses": 1,
1063
- "failed_models": ["unavailable-model"],
1064
637
  "phases": {
1065
- "initial": [...],
1066
- "refined": [...],
638
+ "initial": [ /* … */ ],
639
+ "refined": [ /* … */ ],
1067
640
  "failed": [
1068
641
  {
1069
- "model": "unavailable-model",
1070
- "error": "Provider not available. Check API key configuration.",
642
+ "model": "some-model",
643
+ "error": "Provider is not available. Check API key configuration.",
1071
644
  "status": "failed"
1072
645
  }
1073
646
  ]
@@ -1075,9 +648,11 @@ While running, the status line shows turn progress (e.g. `2/3 turns`) and the ac
1075
648
  }
1076
649
  ```
1077
650
 
651
+ In multi-model `chat` mode, if every model fails the request returns an error listing each model and its failure; if at least one succeeds, failures are appended as trailing "Model failures" details.
652
+
1078
653
  ## 🔧 Integration Examples
1079
654
 
1080
- ### CI/CD Pipeline Integration
655
+ ### CI/CD Pipeline
1081
656
 
1082
657
  ```bash
1083
658
  # Use in GitHub Actions
@@ -1087,7 +662,7 @@ While running, the status line shows turn progress (e.g. `2/3 turns`) and the ac
1087
662
  "tool": "chat",
1088
663
  "arguments": {
1089
664
  "prompt": "Review this pull request for security issues and best practices",
1090
- "model": "gpt-5",
665
+ "models": ["gpt-5.6"],
1091
666
  "files": ["/c/Users/username/src/modified-file.js"],
1092
667
  "reasoning_effort": "high"
1093
668
  }
@@ -1097,12 +672,11 @@ While running, the status line shows turn progress (e.g. `2/3 turns`) and the ac
1097
672
  ### Automated Documentation
1098
673
 
1099
674
  ```bash
1100
- # Generate documentation
1101
675
  echo '{
1102
676
  "tool": "chat",
1103
677
  "arguments": {
1104
678
  "prompt": "Generate API documentation for these endpoints",
1105
- "model": "gemini-2.5-flash",
679
+ "models": ["gemini-2.5-flash"],
1106
680
  "files": ["/c/Users/username/src/api/routes.js"]
1107
681
  }
1108
682
  }' | npx converse-mcp-server > /c/Users/username/docs/api.md
@@ -1110,4 +684,4 @@ echo '{
1110
684
 
1111
685
  ---
1112
686
 
1113
- These examples demonstrate the flexibility and power of the Converse MCP Server across various development scenarios, from simple queries to complex multi-model consensus gathering.
687
+ These examples demonstrate the `chat` tool across common development scenarios from a single quick answer to multi-model consensus and sequential round-table discussions.