./.agents/skills/rig/engines/anthropic.ts |
Implements the Anthropic engine adapter using the @anthropic-ai/sdk, wiring Claude models into the rig harness via beta tool-use APIs. |
./.agents/skills/rig/engines/codex.ts |
Implements the Codex engine adapter using @openai/codex-sdk, enabling OpenAI Codex models as a rig engine backend. |
./.agents/skills/rig/engines/gemini.ts |
Implements the Gemini engine adapter by spawning a child process and communicating via stdio, wrapping Google Gemini models for rig. |
./.agents/skills/rig/engines/pi.ts |
Implements the Pi engine adapter using @earendil-works/pi-agent-core, integrating Pi AI models into the rig harness. |
./.agents/skills/rig/engines/utils.ts |
Shared utility for converting rig Tool definitions to the JSON Schema object format expected by engine adapters. |
./.agents/skills/rig/globals.ts |
Provides ambient workflow context helpers (call, pipeline, parallel) importable from rig/globals for module-level agent orchestration. |
./.agents/skills/rig/rig.ts |
The core rig runtime: defines typed agent construction, prompt intents, schema helpers, sub-agent delegation, and the Copilot SDK launcher. |
./scripts/haiku.integration.test.ts |
Integration test that spawns a subprocess to run rig programs end-to-end against a real Claude Haiku model. |
./scripts/run-sample.test.ts |
Vitest test runner that executes rig sample programs with a stub Copilot SDK client producing shape-conforming synthetic output. |
./skills/rig/engines/anthropic.ts |
Mirror of the Anthropic engine adapter in the skills/rig directory, the canonical source for the published skill. |
./skills/rig/engines/codex.ts |
Mirror of the Codex engine adapter in the skills/rig directory for the published skill. |
./skills/rig/engines/gemini.ts |
Mirror of the Gemini engine adapter in the skills/rig directory for the published skill. |
./skills/rig/engines/pi.ts |
Mirror of the Pi engine adapter in the skills/rig directory for the published skill. |
./skills/rig/engines/utils.ts |
Mirror of the engine utilities in the skills/rig directory for the published skill. |
./skills/rig/globals.ts |
Mirror of the ambient globals module in the skills/rig directory for the published skill. |
./skills/rig/rig.ts |
The canonical published version of the rig core runtime used by the skill and all sample programs. |
./src/engines/anthropic.test.ts |
Vitest unit tests for the Anthropic engine adapter, mocking the SDK and verifying tool call and response handling. |
./src/engines/codex.test.ts |
Vitest unit tests for the Codex engine adapter, mocking thread creation and run execution. |
./src/engines/copilot.test.ts |
Vitest unit tests for the Copilot engine adapter, mocking session creation and verifying prompt/response flow. |
Global Summary
Rig is a minimal TypeScript multi-agent harness providing typed input/output schemas, prompt intents, sub-agent delegation, workflow orchestration, and a Copilot SDK runtime. It includes engine adapters for Anthropic, Codex, Gemini, and Pi, along with a rich sample library and vitest-based test suite.
Individual File Summaries
./.agents/skills/rig/engines/anthropic.ts@anthropic-ai/sdk, wiring Claude models into the rig harness via beta tool-use APIs../.agents/skills/rig/engines/codex.ts@openai/codex-sdk, enabling OpenAI Codex models as a rig engine backend../.agents/skills/rig/engines/gemini.ts./.agents/skills/rig/engines/pi.ts@earendil-works/pi-agent-core, integrating Pi AI models into the rig harness../.agents/skills/rig/engines/utils.tsTooldefinitions to the JSON Schema object format expected by engine adapters../.agents/skills/rig/globals.tscall,pipeline,parallel) importable fromrig/globalsfor module-level agent orchestration../.agents/skills/rig/rig.ts./scripts/haiku.integration.test.ts./scripts/run-sample.test.ts./skills/rig/engines/anthropic.tsskills/rigdirectory, the canonical source for the published skill../skills/rig/engines/codex.tsskills/rigdirectory for the published skill../skills/rig/engines/gemini.tsskills/rigdirectory for the published skill../skills/rig/engines/pi.tsskills/rigdirectory for the published skill../skills/rig/engines/utils.tsskills/rigdirectory for the published skill../skills/rig/globals.tsskills/rigdirectory for the published skill../skills/rig/rig.ts./src/engines/anthropic.test.ts./src/engines/codex.test.ts./src/engines/copilot.test.ts