.github/skills/rig/addons.ts |
Provides optional agent add-ons such as repair and steering, composable on top of the core runtime. |
.github/skills/rig/engines/anthropic.ts |
Implements an AgentFactory backed by the Anthropic SDK, bridging Rig tool calls to the betaTool helper. |
.github/skills/rig/engines/codex.ts |
Implements an AgentFactory using the OpenAI Codex SDK for thread-based invocations. |
.github/skills/rig/engines/gemini.ts |
Implements an AgentFactory for Gemini by spawning a child process over stdio. |
.github/skills/rig/engines/pi.ts |
Implements an AgentFactory using the Pi agent SDK with tool registration and model configuration. |
.github/skills/rig/rig.ts |
Mirror/older snapshot of the core Rig runtime. |
scripts/haiku.integration.test.ts |
Integration test spawning a real Rig process to verify end-to-end behaviour against the live Copilot API. |
scripts/run-sample.test.ts |
Vitest suite running all skill markdown samples with a stub Copilot SDK client. |
skills/rig/engines/anthropic.ts |
Current Anthropic engine adapter. |
skills/rig/engines/codex.ts |
Current Codex engine adapter. |
skills/rig/engines/gemini.ts |
Current Gemini engine adapter. |
skills/rig/engines/pi.ts |
Current Pi engine adapter. |
skills/rig/rig.ts |
Core Rig runtime (~2700 lines): exports agent, p, s, copilotEngine, configureAgent, runLauncherCli, covering schemas, prompt rendering, sub-agent delegation, and the CLI launcher. |
src/engines/anthropic.test.ts |
Unit tests for the Anthropic engine adapter using vitest mocks. |
src/engines/codex.test.ts |
Unit tests for the Codex engine adapter. |
src/engines/copilot.test.ts |
Unit tests for the Copilot SDK engine covering session creation, tool calls, and error handling. |
src/engines/gemini.test.ts |
Unit tests for the Gemini engine mocking child-process stdio streams. |
src/engines/pi.test.ts |
Unit tests for the Pi engine adapter. |
Global Summary
Rig is a minimal TypeScript multi-agent harness providing declarative agent construction with typed input/output schemas, prompt intents, and sub-agent delegation. The repository includes a core runtime (
skills/rig/rig.ts), alternative engine adapters (Anthropic, Codex, Gemini, Pi), a large suite of skill markdown samples, and vitest-based unit and integration tests.Individual File Summaries
.github/skills/rig/addons.ts.github/skills/rig/engines/anthropic.ts.github/skills/rig/engines/codex.ts.github/skills/rig/engines/gemini.ts.github/skills/rig/engines/pi.ts.github/skills/rig/rig.tsscripts/haiku.integration.test.tsscripts/run-sample.test.tsskills/rig/engines/anthropic.tsskills/rig/engines/codex.tsskills/rig/engines/gemini.tsskills/rig/engines/pi.tsskills/rig/rig.tssrc/engines/anthropic.test.tssrc/engines/codex.test.tssrc/engines/copilot.test.tssrc/engines/gemini.test.tssrc/engines/pi.test.ts