./.agents/skills/rig/engines/anthropic.ts |
Implements the anthropicEngine adapter wrapping the Anthropic SDK to run rig agents via Claude models, handling tool calls and streaming responses. |
./.agents/skills/rig/engines/codex.ts |
Implements the codexEngine adapter using the OpenAI Codex SDK, translating rig agent calls into Codex thread-based interactions. |
./.agents/skills/rig/engines/gemini.ts |
Implements the geminiEngine adapter that spawns the Gemini CLI process and communicates via JSON-RPC for rig agent sessions. |
./.agents/skills/rig/engines/pi.ts |
Implements the piEngine adapter integrating the Pi agent SDK to run rig agents with Pi AI models and tools. |
./.agents/skills/rig/engines/utils.ts |
Provides a shared utility (objectToolSchema) that normalises rig Tool definitions into JSON Schema objects required by LLM providers. |
./.agents/skills/rig/globals.ts |
Exports ambient workflow context helpers (call, pipeline, parallel) as module-level functions that delegate to the active rig workflow context. |
./.agents/skills/rig/rig.ts |
Core rig runtime (agent copy under .agents/): declarative agent/workflow construction, typed schemas, prompt intents, sub-agent delegation, and Copilot SDK integration. |
./scripts/haiku.integration.test.ts |
Integration test that spawns a real rig process (haiku sample) and asserts it produces expected output end-to-end. |
./scripts/run-sample.test.ts |
Vitest test runner for all sample agents using a stub Copilot SDK client that generates shape-conforming output from <output_schema> blocks without real API calls. |
./skills/rig/engines/anthropic.ts |
Source copy of the Anthropic engine adapter (mirrors .agents/skills/rig/engines/anthropic.ts). |
./skills/rig/engines/codex.ts |
Source copy of the Codex engine adapter (mirrors .agents/skills/rig/engines/codex.ts). |
./skills/rig/engines/gemini.ts |
Source copy of the Gemini engine adapter (mirrors .agents/skills/rig/engines/gemini.ts). |
./skills/rig/engines/pi.ts |
Source copy of the Pi engine adapter (mirrors .agents/skills/rig/engines/pi.ts). |
./skills/rig/engines/utils.ts |
Source copy of the engine utility helpers (mirrors .agents/skills/rig/engines/utils.ts). |
./skills/rig/globals.ts |
Source copy of the ambient workflow helpers (mirrors .agents/skills/rig/globals.ts). |
./skills/rig/rig.ts |
Primary source of the rig runtime: all agent/workflow/schema/prompt-intent APIs, the copilot engine, and the runLauncherCli entry point. |
./src/engines/anthropic.test.ts |
Unit tests for the Anthropic engine adapter, verifying model selection, tool call handling, and error propagation using mocked Anthropic SDK. |
./src/engines/copilot.test.ts |
Unit tests for the Copilot engine adapter, covering URI/stdio transport selection, session creation, and model forwarding with mocked Copilot SDK. |
./src/rig.test.ts |
Core unit tests for the rig harness: agent definition, schema validation, prompt intent rendering, sub-agent delegation, and repair loop behaviour. |
./vitest.config.ts |
Vitest configuration that sets up the "rig" path alias resolving to skills/rig/rig.ts and points the test environment at the source files. |
Global Summary
Rig is a minimal TypeScript multi-agent harness centered on
skills/rig/rig.ts, which provides the coreagent,workflow,p.*prompt intents,s.*schema helpers, and runtime adapters for GitHub Copilot, Anthropic, Codex, Gemini, and Pi engines. The repository also contains a comprehensive test suite (vitest), a stub-based sample runner, and a growing library of sample agents demonstrating patterns from simple file analysis to multi-agent orchestration and end-to-end release workflows.Individual File Summaries
./.agents/skills/rig/engines/anthropic.tsanthropicEngineadapter wrapping the Anthropic SDK to run rig agents via Claude models, handling tool calls and streaming responses../.agents/skills/rig/engines/codex.tscodexEngineadapter using the OpenAI Codex SDK, translating rig agent calls into Codex thread-based interactions../.agents/skills/rig/engines/gemini.tsgeminiEngineadapter that spawns the Gemini CLI process and communicates via JSON-RPC for rig agent sessions../.agents/skills/rig/engines/pi.tspiEngineadapter integrating the Pi agent SDK to run rig agents with Pi AI models and tools../.agents/skills/rig/engines/utils.tsobjectToolSchema) that normalises rigTooldefinitions into JSON Schema objects required by LLM providers../.agents/skills/rig/globals.tscall,pipeline,parallel) as module-level functions that delegate to the active rig workflow context../.agents/skills/rig/rig.ts.agents/): declarative agent/workflow construction, typed schemas, prompt intents, sub-agent delegation, and Copilot SDK integration../scripts/haiku.integration.test.ts./scripts/run-sample.test.ts<output_schema>blocks without real API calls../skills/rig/engines/anthropic.ts.agents/skills/rig/engines/anthropic.ts)../skills/rig/engines/codex.ts.agents/skills/rig/engines/codex.ts)../skills/rig/engines/gemini.ts.agents/skills/rig/engines/gemini.ts)../skills/rig/engines/pi.ts.agents/skills/rig/engines/pi.ts)../skills/rig/engines/utils.ts.agents/skills/rig/engines/utils.ts)../skills/rig/globals.ts.agents/skills/rig/globals.ts)../skills/rig/rig.tsrunLauncherClientry point../src/engines/anthropic.test.ts./src/engines/copilot.test.ts./src/rig.test.ts./vitest.config.ts"rig"path alias resolving toskills/rig/rig.tsand points the test environment at the source files.