| ./.agents/skills/rig/engines/anthropic.ts |
Implements an Anthropic Claude engine adapter for Rig, wrapping the Anthropic SDK's beta messages/tools API with Rig's AgentFactory and Tool interfaces, including debug logging and tool-result formatting. |
| ./.agents/skills/rig/engines/codex.ts |
Provides a Codex engine adapter using @openai/codex-sdk, exposing thread-based ask/close lifecycle methods conforming to Rig's AgentFactory interface. |
| ./.agents/skills/rig/engines/deepseek.ts |
Implements a DeepSeek engine adapter built on @deepseek-ai/dsh-sdk-client, wiring its harness into Rig's AgentFactory lifecycle. |
| ./.agents/skills/rig/engines/gemini.ts |
Implements a Gemini engine adapter that spawns and communicates with a Gemini CLI subprocess, integrating it as a Rig AgentFactory. |
| ./.agents/skills/rig/engines/pi.ts |
Implements a Pi engine adapter using @earendil-works/pi-agent-core and pi-ai, bridging Pi's model/tool types into Rig's agent and tool abstractions. |
| ./.agents/skills/rig/engines/utils.ts |
Shared utility module providing agentLifecycle for managing concurrent-turn guarding/aborting and helpers for object tool schemas and tool result text used across engine adapters. |
| ./.agents/skills/rig/globals.ts |
Exposes ambient workflow helpers (call, pipeline, parallel) as module-level functions that delegate to the currently active Rig workflow context, easing porting from other dynamic workflow systems. |
| ./.agents/skills/rig/launch-tool.ts |
Defines createRigLaunchTool, a Copilot SDK Tool that spawns a Rig launcher subprocess connected via URI/token to run agent programs as a sub-tool. |
| ./.agents/skills/rig/rig.ts |
The core Rig runtime (3500+ lines): defines Json/Schema types, agent specs, prompt intents, schema helpers, sub-agent delegation, workflow orchestration primitives, and the Copilot SDK-based runtime/launcher CLI. |
| ./.agents/skills/rig/run.ts |
Small entrypoint script that re-exports/invokes the Rig launcher CLI (runLauncherCli) when run directly as the main module. |
| ./.github/drivers/codex-fixture-mcp.ts |
Defines a fixture launcher for Codex-based integration tests that spawns an MCP server, validates skill files exist, and asserts three-judge evaluation results. |
| ./.github/drivers/copilot-sdk-driver.ts |
CI driver script that loads action-provided modules, parses multi-provider JSON, and runs/drives a Copilot SDK session using the Rig launch tool. |
| ./.github/drivers/pi-rig-extension.ts |
Defines a Pi agent tool extension that executes Rig programs via child process, writes output files, and validates results against the three-judges fixture. |
| ./.github/fixtures/assert-three-judges.ts |
Test helper asserting the shape and engine/model-specific expectations of a 'three judges' evaluation result object. |
| ./.github/fixtures/pi-gateway.ts |
Utility that validates and extracts a harness-provisioned Pi 'aw-gateway' provider configuration from a generic value, used to wire Pi engine tests. |
| ./.github/fixtures/provider-fixture.ts |
Builds a provider test fixture selecting among codex, deepseek, gemini, and pi engines based on required environment variables, for running the three-judges evaluation. |
| ./.github/fixtures/provider-three-judges.ts |
Thin entrypoint that creates and default-exports the provider fixture for the three-judges test. |
| ./.github/fixtures/three-judges.ts |
Defines the shared 'three judges' evaluation agent (clarity/safety/feasibility criteria) and a dummy request used across engine integration test fixtures. |
| ./.tmp/project-summarizer.ts |
A sample Rig program configured with the Copilot engine that defines a 'file-summarizer' agent to read and summarize individual TypeScript files. |
| ./scripts/haiku.integration.test.ts |
Vitest integration test (conditionally skipped without credentials) that spawns sample Rig programs (haiku, sonnet, complex-integration) through the launcher and validates their real Copilot SDK output. |
Global Summary
This listing covers Rig's core harness file, its multi-provider engine adapters (Anthropic, Codex, DeepSeek, Gemini, Pi), supporting utilities and globals, plus CI/test infrastructure under .github/ (drivers and fixtures for multi-provider 'three judges' integration testing) and a sample project-summarizer agent/test. Together these files implement Rig's pluggable agent-engine architecture and its integration-test tooling for validating each engine against a consistent judged workflow.
Individual File Summaries
@openai/codex-sdk, exposing thread-based ask/close lifecycle methods conforming to Rig's AgentFactory interface.@deepseek-ai/dsh-sdk-client, wiring its harness into Rig's AgentFactory lifecycle.@earendil-works/pi-agent-coreand pi-ai, bridging Pi's model/tool types into Rig's agent and tool abstractions.agentLifecyclefor managing concurrent-turn guarding/aborting and helpers for object tool schemas and tool result text used across engine adapters.call,pipeline,parallel) as module-level functions that delegate to the currently active Rig workflow context, easing porting from other dynamic workflow systems.createRigLaunchTool, a Copilot SDK Tool that spawns a Rig launcher subprocess connected via URI/token to run agent programs as a sub-tool.runLauncherCli) when run directly as the main module.