Skip to content

feat: Add GPT-6.2 models and fan-out - #170

Merged
moshloop merged 3 commits into
mainfrom
feat/codex-gpt-6-2-fanout-dmym9copauhc
Nov 18, 2026
Merged

moshloop merged 3 commits into
mainfrom
feat/codex-gpt-6-2-fanout-dmym9copauhc

Conversation

@moshloop

@moshloop moshloop commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

What

  • Update Codex model registry to GPT-6.2 Sol and Astra across docs, registry data, and tests
  • Add command fan-out prompt mode: a prompt's fanout.exec script runs once on the Captain host and starts one fresh session per JSON array element
  • Add workbench Fan-out tab; CLI, HTTP API, and docs describe the new behavior
  • Add examples/security-updates prompt for auditing, applying, and publishing Dependabot fixes across repositories sharing a topic
  • Ignore generated anthropic.json in adapters resources

Notes

  • Results keep array order; concurrency is bounded by fanout.concurrency
  • Failed or invalid script output starts no sessions
  • Rendering and previews never execute the script

Summary by CodeRabbit

  • New Features
    • Added command fan-out for prompts, allowing one command’s results to launch and track multiple child sessions, with configurable concurrency.
    • Added a workbench editor and run controls for fan-out prompts, including clearer batch and item labels.
    • Added an example for auditing and managing dependency security updates across repositories.
  • Updates
    • Added GPT-6.2 Sol and Astra to the model catalog and updated model examples and aliases.
  • Documentation
    • Expanded prompt guides with fan-out behavior, preview, and run details.

Add a command fan-out prompt mode. A prompt declaring fanout.exec runs its script once on the Captain host, parses the JSON array it prints, and starts one fresh session per element with item and itemJSON template variables. Results keep array order and concurrency is bounded by fanout.concurrency. Failed or invalid script output starts no sessions. Rendering and previews never execute the script. The workbench gains a Fan-out tab and the CLI, HTTP API and docs describe the new behavior. Also adds an examples/security-updates prompt that audits, applies and publishes Dependabot fixes across repositories sharing a topic.
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The PR adds command fan-out for prompts, including CLI execution and workbench editing and reporting. It updates the preferred OpenAI model entries and examples, adds a security-updates prompt, and ignores an Anthropic adapter resource file.

Changes

Command fan-out

Layer / File(s) Summary
Fan-out metadata and rendering
pkg/ai/prompt/*, pkg/cli/prompt_render.go, pkg/cli/prompt_prepared.go, pkg/cli/prompt_records.go, pkg/cli/prompt_form.go, pkg/cli/prompt_invocation.go, pkg/cli/prompt_input_batches.go
Prompt frontmatter now supports fan-out execution metadata. Rendering and preparation carry that metadata into the CLI execution path.
Fan-out expansion and batch execution
pkg/cli/prompt_fanout.go, pkg/cli/prompt_batch_*.go, pkg/cli/prompt_run.go, pkg/cli/prompt_run_result.go, pkg/cli/prompt_runtime_variants.go, pkg/cli/prompt_fanout_ginkgo_test.go
The CLI runs the configured command, renders one child prompt per JSON array item, creates a batch and child sessions, and runs children with configured concurrency. Results include a fan-out index.
Workbench editing and fan-out reporting
pkg/cli/webapp/src/Prompt*.tsx, pkg/cli/webapp/src/prompt*.ts, pkg/cli/webapp/src/hooks/usePromptRunStream.ts, pkg/cli/webapp/src/sessionCollection.ts, docs/src/pages/prompts/*, examples/security-updates.*
The workbench adds fan-out editing, run controls, and batch display. The documentation and security-updates prompt describe fan-out usage and behavior.

OpenAI model registry updates

Layer / File(s) Summary
Model entries and resolution expectations
pkg/ai/internal/gen-model-registry/patches.json, pkg/api/registry/models.json, pkg/ai/*_test.go, pkg/ai/runtime_selector_test.go, pkg/api/registry/*_test.go, pkg/api/spec_runtime_ginkgo_test.go, pkg/cli/ai_models_test.go, pkg/cli/prompt_schema_test.go
The registry adds preferred GPT-6.2 Astra and Sol entries and removes preferred status and aliases from the prior Astra and Sol entries. Resolution and pricing test expectations are updated.
Model references in examples and documentation
README.md, docs/src/pages/configuration/index.mdx, docs/src/pages/fixtures/index.mdx, docs/src/pages/prompts/cli.mdx, docs/src/pages/prompts/format.mdx, docs/src/pages/prompts/runtime.mdx
Examples now use GPT-6.2 Sol.

Generated resource ignore rule

Layer / File(s) Summary
Ignore generated adapter resource
.gitignore
The ignore list adds pkg/adapters/resources/anthropic.json.

Sequence Diagram(s)

sequenceDiagram
  participant runPromptFanOut
  participant fanoutExec as fanout.exec
  participant promptRenderer
  participant createPromptSessionTree
  participant childRuns
  runPromptFanOut->>fanoutExec: Execute command with prompt variables
  fanoutExec-->>runPromptFanOut: Return JSON array
  runPromptFanOut->>promptRenderer: Render one prompt per array item
  runPromptFanOut->>createPromptSessionTree: Create batch and child sessions
  runPromptFanOut->>childRuns: Launch children with configured concurrency
Loading

Possibly related PRs

  • flanksource/captain#169: Adds the same command fan-out feature and overlaps in fan-out execution and prompt metadata code paths.

Suggested reviewers: adityathebe

Change: Feature

Merge Risk: Moderate · up to f6e03

The new command fan-out feature does not substitute caller variables into the fanout.exec command or its concurrency setting. It can also run more child sessions than the caller's concurrency limit allows. The security-updates example has some procedure gaps around failed fixes and rebase setup. Resolve the first two before merging.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown

Gavel summary

Source Pass Fail Skip Duration

Totals: 0 passed · 0 failed · 0 skipped · -

View full results

@moshloop
moshloop enabled auto-merge (rebase) November 18, 2026 20:27
@github-actions

Copy link
Copy Markdown

Gavel summary

Source Pass Fail Skip Duration
adapters 20 0 0 2.0s
agent 11 0 0 1ms
agentbrowser 38 0 0 16ms
agentcreds 11 0 0 849.044µs
agentsandbox 5 0 0 2ms
ai 130 0 0 48ms
aichat 147 0 2 37.5s
aiflags 38 0 0 10ms
anthropicmock 1 0 0 1ms
api 701 0 0 372ms
approval 85 0 0 10.2s
assistanttags 9 0 0 615.057µs
attachments 5 0 0 3ms
bash 9 0 0 256ms
cache 11 0 0 305ms
callertools 27 0 0 3.1s
captain 46 0 0 2.5s
captainconfig 4 0 0 642.188µs
claude 27 0 0 5ms
claudeagent 85 0 0 2.0s
claudeconfig 7 0 0 2ms
cli 746 0 0 1m23s
cmux 19 0 0 13ms
codexconfig 15 0 0 27ms
codexhome 10 0 0 15ms
collections 12 0 0 409.492µs
commit 7 0 0 672ms
compattest 1 0 0 1.7s
credentials 5 0 0 35ms
credsync 11 0 0 189ms
database 110 0 0 2m46s
deliver 15 0 0 2.0s
deploy 110 0 0 428ms
exectool 43 0 0 1.0s
genkit 60 0 0 829ms
gitagent 147 0 0 21.5s
github.com/flanksource/captain/migrations 11 0 0 4.7s
github.com/flanksource/captain/pkg/ai 255 0 0 910ms
github.com/flanksource/captain/pkg/ai/agent 27 0 0 450ms
github.com/flanksource/captain/pkg/ai/agent/commit 57 0 0 6.2s
github.com/flanksource/captain/pkg/ai/agent/setup 24 0 0 810ms
github.com/flanksource/captain/pkg/ai/agent/verify 36 0 0 430ms
github.com/flanksource/captain/pkg/ai/agent/worktree 6 0 0 -
github.com/flanksource/captain/pkg/ai/assistanttags 15 0 0 -
github.com/flanksource/captain/pkg/ai/fixture 43 0 0 360ms
github.com/flanksource/captain/pkg/ai/fixture/mcpproxy 6 0 0 -
github.com/flanksource/captain/pkg/ai/history 54 0 0 -
github.com/flanksource/captain/pkg/ai/internal/gen-model-registry 12 0 0 -
github.com/flanksource/captain/pkg/ai/middleware 34 0 0 60ms
github.com/flanksource/captain/pkg/ai/observation 3 0 0 -
github.com/flanksource/captain/pkg/ai/pricing 9 0 0 10ms
github.com/flanksource/captain/pkg/ai/prompt 29 0 0 20ms
github.com/flanksource/captain/pkg/ai/provider 183 0 1 30ms
github.com/flanksource/captain/pkg/ai/provider/claudeagent 61 0 0 1.2s
github.com/flanksource/captain/pkg/ai/provider/cmux 140 0 0 870ms
github.com/flanksource/captain/pkg/ai/provider/genkit 40 0 0 10ms
github.com/flanksource/captain/pkg/ai/provider/jsonrpc 6 0 0 50ms
github.com/flanksource/captain/pkg/ai/provider/openai 8 0 0 10ms
github.com/flanksource/captain/pkg/aichat 5 0 0 130ms
github.com/flanksource/captain/pkg/aiflags 9 0 0 -
github.com/flanksource/captain/pkg/aimock 50 0 7 200ms
github.com/flanksource/captain/pkg/aimock/anthropicmock 14 0 0 10ms
github.com/flanksource/captain/pkg/aimock/openaimock 18 0 0 70ms
github.com/flanksource/captain/pkg/api 152 0 0 5.3s
github.com/flanksource/captain/pkg/api/registry 134 0 0 -
github.com/flanksource/captain/pkg/bash 348 0 0 50ms
github.com/flanksource/captain/pkg/budgets 1 0 0 -
github.com/flanksource/captain/pkg/captainconfig 29 0 0 10ms
github.com/flanksource/captain/pkg/captaintoken 23 0 0 1.7s
github.com/flanksource/captain/pkg/claude 139 0 0 -
github.com/flanksource/captain/pkg/claude/tools 18 0 0 -
github.com/flanksource/captain/pkg/cli 857 0 1 1m24s
github.com/flanksource/captain/pkg/cmux 1 0 0 -
github.com/flanksource/captain/pkg/codexconfig 10 0 0 10ms
github.com/flanksource/captain/pkg/container 72 0 1 10ms
github.com/flanksource/captain/pkg/credproxy 23 0 0 20ms
github.com/flanksource/captain/pkg/credproxy/kubeproxy 3 0 0 20ms
github.com/flanksource/captain/pkg/database 154 0 0 46.9s
github.com/flanksource/captain/pkg/gitagent 31 0 0 510ms
github.com/flanksource/captain/pkg/monitor 73 0 0 9.4s
github.com/flanksource/captain/pkg/promptrun/remoterun 18 0 0 -
github.com/flanksource/captain/pkg/sandbox 13 0 0 -
github.com/flanksource/captain/pkg/sandbox/adapter 41 0 0 10ms
github.com/flanksource/captain/pkg/sandbox/presets 13 0 0 -
github.com/flanksource/captain/pkg/sandbox/substraterun 43 0 0 6.8s
github.com/flanksource/captain/pkg/session 70 0 0 20ms
github.com/flanksource/captain/pkg/substrate 31 0 4 720ms
history 91 0 0 355ms
hookaction 16 0 0 10ms
jev 12 0 0 26ms
jsonl 6 0 0 74ms
load 60 0 0 9ms
middleware 39 0 0 185ms
migrations 51 0 0 35.5s
monitor 42 0 0 11.1s
openai 3 0 0 12ms
openaimock 2 0 0 228.917µs
plans 35 0 0 17.5s
process 25 0 0 62ms
prompt 109 0 0 225ms
promptcontext 16 0 0 24ms
promptfile 14 0 0 240ms
promptrun 200 0 0 45.0s
provider 127 0 0 132ms
query 52 0 0 10.8s
registry 135 0 0 7ms
runtimeprofiles 80 0 0 4.3s
session 59 0 0 36ms
sessiontree 15 0 0 741ms
setup 10 0 0 1.1s
tokens 5 0 0 991.809µs
tools 73 0 0 6ms
transcript 6 0 0 14ms
verify 43 0 0 685ms

Totals: 7506 passed · 0 failed · 16 skipped · 10m35s

View full results

@moshloop
moshloop merged commit e12e1f5 into main Nov 18, 2026
11 of 12 checks passed
@moshloop
moshloop deleted the feat/codex-gpt-6-2-fanout-dmym9copauhc branch November 18, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant