./.agents/skills/rig/engines/anthropic.ts |
Implements the Anthropic engine adapter, translating Rig agent calls into Anthropic SDK requests with tool-use support. |
./.agents/skills/rig/engines/codex.ts |
Implements the Codex engine adapter using the OpenAI Codex SDK for threaded agent execution. |
./.agents/skills/rig/engines/gemini.ts |
Implements the Gemini engine adapter by spawning a subprocess and communicating over stdio. |
./.agents/skills/rig/engines/pi.ts |
Implements the Pi engine adapter integrating the earendil-works Pi agent core and AI provider. |
./.agents/skills/rig/engines/utils.ts |
Provides shared utility helpers for engine adapters, such as normalizing tool parameter schemas to the required object shape. |
./.agents/skills/rig/globals.ts |
Exposes ambient workflow context helpers (call, pipeline, parallel) as module-level functions that delegate to the active workflow context. |
./.agents/skills/rig/rig.ts |
Mirror of the canonical core runtime; serves as the agent-local copy used by the .agents workspace. |
./scripts/haiku.integration.test.ts |
Integration test that spawns the rig launcher as a child process and validates end-to-end agent execution against a real or stubbed backend. |
./scripts/run-sample.test.ts |
Stub-based sample runner that imports each sample file under a mocked Copilot SDK, synthesizes shape-conforming output from the output schema, and asserts timing and correctness. |
./skills/rig/engines/anthropic.ts |
Canonical Anthropic engine adapter; same role as the .agents copy but is the source-of-truth file for the skills workspace. |
./skills/rig/engines/codex.ts |
Canonical Codex engine adapter for the skills workspace, wrapping the OpenAI Codex SDK. |
./skills/rig/engines/gemini.ts |
Canonical Gemini engine adapter for the skills workspace, launching Gemini via subprocess stdio. |
./skills/rig/engines/pi.ts |
Canonical Pi engine adapter for the skills workspace, integrating the Pi AI provider. |
./skills/rig/engines/utils.ts |
Canonical shared utilities for engine adapters in the skills workspace. |
./skills/rig/globals.ts |
Canonical ambient context helpers for the skills workspace. |
./skills/rig/rig.ts |
The primary Rig core runtime: defines agent, schema helpers (s.), prompt intents (p.), workflow orchestration, repair, and the Copilot SDK engine. |
./src/engines/anthropic.test.ts |
Unit tests for the Anthropic engine adapter, mocking the SDK and asserting correct tool-call translation. |
./src/engines/codex.test.ts |
Unit tests for the Codex engine adapter, verifying thread lifecycle and tool execution. |
./src/engines/copilot.test.ts |
Unit tests for the Copilot engine adapter, covering session creation, send/wait, and disconnect flows. |
./src/engines/gemini.test.ts |
Unit tests for the Gemini engine adapter, mocking subprocess streams and verifying message parsing. |
Global Summary
Rig is a minimal TypeScript multi-agent harness that provides declarative agent construction with typed input/output schemas, prompt intents, and pluggable engine backends (Copilot, Anthropic, Gemini, Codex, Pi). The repository contains the core runtime, multiple engine adapters, a rich sample library, and a stub-based test runner for validating agent programs without real LLM credentials.
Individual File Summaries
./.agents/skills/rig/engines/anthropic.ts./.agents/skills/rig/engines/codex.ts./.agents/skills/rig/engines/gemini.ts./.agents/skills/rig/engines/pi.ts./.agents/skills/rig/engines/utils.ts./.agents/skills/rig/globals.tscall,pipeline,parallel) as module-level functions that delegate to the active workflow context../.agents/skills/rig/rig.ts.agentsworkspace../scripts/haiku.integration.test.ts./scripts/run-sample.test.ts./skills/rig/engines/anthropic.ts.agentscopy but is the source-of-truth file for the skills workspace../skills/rig/engines/codex.ts./skills/rig/engines/gemini.ts./skills/rig/engines/pi.ts./skills/rig/engines/utils.ts./skills/rig/globals.ts./skills/rig/rig.ts./src/engines/anthropic.test.ts./src/engines/codex.test.ts./src/engines/copilot.test.ts./src/engines/gemini.test.ts