Skip to content

Add Codex SDK engine integration - #7

Merged
pelikhan merged 2 commits into
mainfrom
copilot/add-codex-sdk-integration
Jul 22, 2026
Merged

Add Codex SDK engine integration#7
pelikhan merged 2 commits into
mainfrom
copilot/add-codex-sdk-integration

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Adds a Codex-backed Rig engine with persistent conversations, system instructions, cancellation, and lifecycle management.

  • Engine

    • Export codexEngine() from rig/engines/codex
    • Preserve Codex threads across repair turns
    • Map Rig system messages to Codex developer instructions
    • Forward cancellation and abort active turns on close
    • Reject unsupported Rig custom tools explicitly
  • Configuration

    • Accept Codex client options and nested thread options
    • Add @openai/codex-sdk as a dependency
  • Usage

import { configureAgent } from "rig";
import { codexEngine } from "rig/engines/codex";

configureAgent(codexEngine({
  thread: { approvalPolicy: "never" },
}));
  • Documentation
    • Document configuration, conversation behavior, and tool limitations

Copilot AI and others added 2 commits July 22, 2026 23:25
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan July 22, 2026 23:32
@pelikhan
pelikhan marked this pull request as ready for review July 22, 2026 23:33
@pelikhan
pelikhan merged commit 7d35be1 into main Jul 22, 2026
4 checks passed
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.

2 participants