Skip to content

Repository files navigation

rig

rig is a minimal TypeScript agent harness skill for sandboxed agentic workflows.

Install

gh skill install githubnext/rig

Quick start

Save as program.md:

# Review Git Diff

```rig
// Agent role: review the current diff and return prioritized findings.
const reviewDiff = agent({
  model: "small",
  instructions: p`Review ${p.bash("git diff -- .")} and return only the declared output.`,
  output: s.object({
    summary: s.string,
    risk: s.enum("low", "medium", "high"),
  }),
});

export default reviewDiff;
```

Full API reference

See skills/rig/SKILL.md for construction rules, schema helpers, prompt intents, addons, tools, dynamic workflows, engines, and the launcher CLI.

Local development

npm test
npm run typecheck

Releases

Used by

Contributors

Languages