.agents/skills/rig/engines/anthropic.ts |
Implements the Anthropic engine adapter for Rig, translating Rig agent requests into Anthropic SDK API calls using beta tool-use features. |
.agents/skills/rig/engines/codex.ts |
Provides a Codex (OpenAI) engine adapter that bridges Rig agent calls to the @openai/codex-sdk thread API. |
.agents/skills/rig/engines/gemini.ts |
Implements a Gemini engine adapter that spawns a subprocess and communicates via stdio to support Google Gemini models. |
.agents/skills/rig/engines/pi.ts |
Wraps the Pi AI agent SDK to expose a Rig-compatible AgentFactory for the Pi provider. |
.agents/skills/rig/engines/utils.ts |
Shared utility for converting Rig tool definitions into JSON Schema object format expected by LLM APIs. |
.agents/skills/rig/globals.ts |
Exposes ambient workflow context helpers (call, pipeline, parallel) as module-level functions via rig/globals. |
.agents/skills/rig/rig.ts |
Mirror/snapshot of the core Rig runtime used by the .agents layer, identical in purpose to skills/rig/rig.ts. |
scripts/haiku.integration.test.ts |
Integration test that spawns the Rig launcher as a subprocess and validates real end-to-end agent execution against a live model. |
scripts/run-sample.test.ts |
Vitest-based sample runner that stubs the Copilot SDK client and synthesizes shape-conforming output to validate all sample programs. |
skills/rig/engines/anthropic.ts |
Canonical source for the Anthropic engine adapter (same implementation as the .agents mirror). |
skills/rig/engines/codex.ts |
Canonical source for the Codex engine adapter. |
skills/rig/engines/gemini.ts |
Canonical source for the Gemini engine adapter that spawns the Gemini CLI subprocess. |
skills/rig/engines/pi.ts |
Canonical source for the Pi AI engine adapter. |
skills/rig/engines/utils.ts |
Canonical source for shared tool-schema utility helpers. |
skills/rig/globals.ts |
Canonical source for ambient workflow context module exports. |
skills/rig/rig.ts |
The main Rig harness: defines agent, workflow, s.* schema helpers, p.* prompt intents, copilotEngine, and the launcher CLI entry-point. |
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 using vitest mocks. |
src/engines/copilot.test.ts |
Unit tests for the Copilot SDK engine, covering session creation, sendAndWait, and disconnect flows. |
Global Summary
This repository implements Rig, a minimal TypeScript multi-agent harness. The core runtime (
skills/rig/rig.ts) provides declarative agent construction with typed input/output schemas, prompt intents, and a Copilot SDK engine. Additional engine adapters (Anthropic, Codex, Gemini, Pi) extend support to multiple LLM providers, whilesrc/holds unit tests andscripts/contains integration test runners and sample scaffolding.Individual File Summaries
.agents/skills/rig/engines/anthropic.ts.agents/skills/rig/engines/codex.ts@openai/codex-sdkthread API..agents/skills/rig/engines/gemini.ts.agents/skills/rig/engines/pi.tsAgentFactoryfor the Pi provider..agents/skills/rig/engines/utils.tsobjectformat expected by LLM APIs..agents/skills/rig/globals.tscall,pipeline,parallel) as module-level functions viarig/globals..agents/skills/rig/rig.ts.agentslayer, identical in purpose toskills/rig/rig.ts.scripts/haiku.integration.test.tsscripts/run-sample.test.tsskills/rig/engines/anthropic.ts.agentsmirror).skills/rig/engines/codex.tsskills/rig/engines/gemini.tsskills/rig/engines/pi.tsskills/rig/engines/utils.tsskills/rig/globals.tsskills/rig/rig.tsagent,workflow,s.*schema helpers,p.*prompt intents,copilotEngine, and the launcher CLI entry-point.src/engines/anthropic.test.tssrc/engines/codex.test.tssrc/engines/copilot.test.tssendAndWait, and disconnect flows.