.agents/skills/rig/engines/anthropic.ts |
Anthropic engine adapter integrating the @anthropic-ai/sdk to drive rig agents via Claude models with tool-use support. |
.agents/skills/rig/engines/codex.ts |
Codex engine adapter integrating @openai/codex-sdk to run rig agents through OpenAI Codex threads. |
.agents/skills/rig/engines/gemini.ts |
Gemini engine adapter that spawns a child process and uses node:crypto UUIDs to interface with Google Gemini models. |
.agents/skills/rig/engines/pi.ts |
Pi engine adapter bridging @earendil-works/pi-agent-core and @earendil-works/pi-ai providers to the rig agent interface. |
.agents/skills/rig/engines/utils.ts |
Shared utility converting a rig Tool definition into an object-typed JSON Schema for use across engine adapters. |
.agents/skills/rig/globals.ts |
Ambient workflow context helpers exporting call, pipeline, and parallel as module-level functions that delegate to the active workflow context. |
.agents/skills/rig/rig.ts |
Mirror/snapshot of the core rig runtime under .agents/, identical in purpose to skills/rig/rig.ts. |
scripts/haiku.integration.test.ts |
Integration test that spawns rig as a child process to verify end-to-end behavior with the Anthropic Haiku model. |
scripts/run-sample.test.ts |
Vitest-based stub runner that imports rig sample programs and validates them against shape-conforming synthesized output from a mocked Copilot SDK. |
skills/rig/engines/anthropic.ts |
Anthropic engine adapter (source copy) integrating @anthropic-ai/sdk with beta tool-use for running rig agents on Claude. |
skills/rig/engines/codex.ts |
Codex engine adapter (source copy) connecting rig agents to OpenAI Codex threads via @openai/codex-sdk. |
skills/rig/engines/gemini.ts |
Gemini engine adapter (source copy) spawning a subprocess to communicate with Google Gemini models. |
skills/rig/engines/pi.ts |
Pi engine adapter (source copy) wrapping @earendil-works/pi-agent-core and @earendil-works/pi-ai for rig integration. |
skills/rig/engines/utils.ts |
Shared utility (source copy) that converts rig Tool types to JSON Schema objects for engine adapters. |
skills/rig/globals.ts |
Ambient workflow helpers (source copy) providing call, pipeline, and parallel as importable module-level functions. |
skills/rig/rig.ts |
Core rig runtime: typed agent construction, schema helpers (s.*), prompt intents (p.*), Copilot SDK engine, sub-agent delegation, repair, and CLI launcher. |
src/engines/anthropic.test.ts |
Vitest unit tests for the Anthropic engine adapter, mocking the SDK client and verifying tool-runner invocations. |
src/engines/codex.test.ts |
Vitest unit tests for the Codex engine adapter, mocking thread/run lifecycle and asserting correct agent behavior. |
src/engines/copilot.test.ts |
Vitest unit tests for the Copilot engine adapter, mocking the @github/copilot-sdk client and session interactions. |
src/rig.test.ts |
Core unit tests covering agent definition, schema validation, prompt intent resolution, and invocation via mocked Copilot SDK. |
Global Summary
Rig is a minimal TypeScript multi-agent harness providing declarative agent construction with typed schemas, prompt intents, sub-agent delegation, and multi-engine runtime support (Copilot, Anthropic, Codex, Gemini, Pi). The codebase is organized into a core runtime (
skills/rig/rig.ts), pluggable engine adapters, a globals module for ambient workflow helpers, sample programs, and a comprehensive vitest test suite.Individual File Summaries
.agents/skills/rig/engines/anthropic.ts@anthropic-ai/sdkto drive rig agents via Claude models with tool-use support..agents/skills/rig/engines/codex.ts@openai/codex-sdkto run rig agents through OpenAI Codex threads..agents/skills/rig/engines/gemini.tsnode:cryptoUUIDs to interface with Google Gemini models..agents/skills/rig/engines/pi.ts@earendil-works/pi-agent-coreand@earendil-works/pi-aiproviders to the rig agent interface..agents/skills/rig/engines/utils.tsTooldefinition into an object-typed JSON Schema for use across engine adapters..agents/skills/rig/globals.tscall,pipeline, andparallelas module-level functions that delegate to the active workflow context..agents/skills/rig/rig.ts.agents/, identical in purpose toskills/rig/rig.ts.scripts/haiku.integration.test.tsscripts/run-sample.test.tsskills/rig/engines/anthropic.ts@anthropic-ai/sdkwith beta tool-use for running rig agents on Claude.skills/rig/engines/codex.ts@openai/codex-sdk.skills/rig/engines/gemini.tsskills/rig/engines/pi.ts@earendil-works/pi-agent-coreand@earendil-works/pi-aifor rig integration.skills/rig/engines/utils.tsTooltypes to JSON Schema objects for engine adapters.skills/rig/globals.tscall,pipeline, andparallelas importable module-level functions.skills/rig/rig.tss.*), prompt intents (p.*), Copilot SDK engine, sub-agent delegation, repair, and CLI launcher.src/engines/anthropic.test.tssrc/engines/codex.test.tssrc/engines/copilot.test.ts@github/copilot-sdkclient and session interactions.src/rig.test.ts