| .agents/skills/rig/engines/anthropic.ts |
Anthropic engine adapter implementing the AgentFactory interface using the Anthropic SDK with tool-use support. |
| .agents/skills/rig/engines/codex.ts |
Codex engine adapter wrapping the OpenAI Codex SDK to provide an AgentFactory for the rig harness. |
| .agents/skills/rig/engines/gemini.ts |
Gemini engine adapter spawning a child process to integrate Google Gemini models as an AgentFactory. |
| .agents/skills/rig/engines/pi.ts |
Pi engine adapter integrating the Earendil Pi Agent SDK as an AgentFactory for rig. |
| .agents/skills/rig/engines/utils.ts |
Utility helpers for converting rig Tool definitions to object-typed JSON schemas used by engine adapters. |
| .agents/skills/rig/globals.ts |
Ambient module-level helpers (call, pipeline, parallel) that delegate to the active workflow context. |
| .agents/skills/rig/rig.ts |
Core rig runtime: defines agent, schema helpers (s.), prompt intents (p.), workflow orchestration, and the Copilot SDK engine. |
| scripts/run-sample.test.ts |
Vitest-based sample runner that stubs the Copilot SDK client to produce shape-conforming output for dry-run testing of rig samples. |
| scripts/haiku.integration.test.ts |
Integration test exercising the haiku sample workflow end-to-end. |
| skills/rig/engines/anthropic.ts |
Anthropic engine adapter (source copy) providing AgentFactory via the Anthropic SDK with beta tool calling. |
| skills/rig/engines/codex.ts |
Codex engine adapter (source copy) wrapping the OpenAI Codex SDK for rig AgentFactory use. |
| skills/rig/engines/gemini.ts |
Gemini engine adapter (source copy) using child-process stdio to connect Google Gemini to rig. |
| skills/rig/engines/pi.ts |
Pi engine adapter (source copy) bridging Earendil Pi Agent SDK into rig's AgentFactory interface. |
| skills/rig/engines/utils.ts |
Shared utility converting rig Tool parameter schemas into object-typed descriptors for engine adapters. |
| skills/rig/globals.ts |
Ambient globals exposing workflow-scoped call, pipeline, and parallel helpers at module level. |
| skills/rig/rig.ts |
Primary source of the rig harness: agent definitions, schema/prompt primitives, sub-agent delegation, repair addon, and the launcher CLI. |
| src/engines/anthropic.test.ts |
Unit tests for the Anthropic engine adapter, mocking the SDK and verifying tool-call and message handling. |
| src/engines/copilot.test.ts |
Unit tests for the Copilot engine, stubbing CopilotClient sessions to verify agent invocation and error paths. |
| src/rig.test.ts |
Core unit tests covering agent definition, invocation, schema validation, prompt intents, and addon behavior. |
| src/workflow.test.ts |
Tests for workflow orchestration primitives including call, pipeline, parallel, and currentWorkflow helpers. |
| vitest.config.ts |
Vitest configuration setting up the "rig" path alias and test environment for the project. |
Global Summary
Rig is a minimal TypeScript multi-agent harness that provides declarative agent construction with typed input/output schemas, prompt intents, and multiple engine backends (Copilot, Anthropic, Codex, Gemini, Pi). It supports sub-agent delegation, workflow orchestration, and a stub-based sample runner for dry-run testing.
Individual File Summaries