.agents/skills/rig/engines/anthropic.ts |
Implements the Anthropic engine adapter using the Anthropic SDK, translating rig tool/agent calls into Anthropic beta-tool API requests and responses. |
.agents/skills/rig/engines/codex.ts |
Implements an engine adapter for the OpenAI Codex SDK, wiring rig agent/tool invocations to Codex thread sessions. |
.agents/skills/rig/engines/gemini.ts |
Implements a Gemini engine adapter by spawning a child process and communicating over stdio with the Gemini CLI. |
.agents/skills/rig/engines/pi.ts |
Implements a Pi AI engine adapter using the Pi agent SDK and provider models. |
.agents/skills/rig/engines/utils.ts |
Shared utility for converting rig tool schemas into the JSON Schema object format expected by third-party engine SDKs. |
.agents/skills/rig/globals.ts |
Exports ambient workflow context helpers (call, pipeline, parallel) that delegate to the currently active workflow without explicit wiring. |
.agents/skills/rig/rig.ts |
Mirror/copy of the core rig runtime for the .agents workspace, providing all agent, schema, prompt, and engine primitives. |
scripts/haiku.integration.test.ts |
Integration test that spawns the rig launcher with a real Copilot auth token and verifies a single haiku agent produces a valid output. |
scripts/run-sample.test.ts |
Sample test runner that loads each sample with a stub Copilot SDK client synthesizing shape-conforming output from the prompt output schema. |
skills/rig/engines/anthropic.ts |
Canonical Anthropic engine adapter source (same as the .agents copy) for the skills workspace. |
skills/rig/engines/codex.ts |
Canonical Codex engine adapter source for the skills workspace. |
skills/rig/engines/gemini.ts |
Canonical Gemini engine adapter source for the skills workspace. |
skills/rig/engines/pi.ts |
Canonical Pi AI engine adapter source for the skills workspace. |
skills/rig/engines/utils.ts |
Canonical tool-schema utility source for the skills workspace. |
skills/rig/globals.ts |
Canonical ambient workflow globals source for the skills workspace. |
skills/rig/rig.ts |
Core rig runtime: defines agent, s.* schema helpers, p.* prompt intents, copilotEngine, and the full multi-agent harness execution loop. |
src/engines/copilot.test.ts |
Unit tests for the Copilot engine, mocking the @github/copilot-sdk to verify session creation, prompt dispatch, and tool approval flows. |
src/engines/codex.test.ts |
Unit tests for the Codex engine adapter, covering thread creation and tool call round-trips. |
src/engines/anthropic.test.ts |
Unit tests for the Anthropic engine adapter, covering message formatting and beta-tool invocation. |
src/rig.test.ts |
Main unit test suite covering agent definition, schema validation, prompt intent resolution, output parsing, and repair logic. |
src/workflow.test.ts |
Unit tests for workflow primitives (call, pipeline, parallel, currentWorkflow) and ambient context delegation. |
vitest.config.ts |
Vitest configuration defining the rig path alias (pointing to skills/rig/rig.ts) for all test files. |
Global Summary
Rig is a minimal TypeScript multi-agent harness providing typed schemas, prompt intents, and sub-agent delegation. The core runtime (
skills/rig/rig.ts) is complemented by pluggable engine adapters (Copilot, Anthropic, Codex, Gemini, Pi), ambient workflow globals, and an extensive library of sample agents demonstrating patterns from simple haiku generation to end-to-end release orchestration.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) that delegate to the currently active workflow without explicit wiring..agents/skills/rig/rig.ts.agentsworkspace, providing all agent, schema, prompt, and engine primitives.scripts/haiku.integration.test.tsscripts/run-sample.test.tsskills/rig/engines/anthropic.ts.agentscopy) for the skills workspace.skills/rig/engines/codex.tsskills/rig/engines/gemini.tsskills/rig/engines/pi.tsskills/rig/engines/utils.tsskills/rig/globals.tsskills/rig/rig.tsagent,s.*schema helpers,p.*prompt intents,copilotEngine, and the full multi-agent harness execution loop.src/engines/copilot.test.ts@github/copilot-sdkto verify session creation, prompt dispatch, and tool approval flows.src/engines/codex.test.tssrc/engines/anthropic.test.tssrc/rig.test.tssrc/workflow.test.tscall,pipeline,parallel,currentWorkflow) and ambient context delegation.vitest.config.tsrigpath alias (pointing toskills/rig/rig.ts) for all test files.