Build a rig

Add files

rig add — opt files or globs into the package beyond the defaults.

rig add <file-or-glob>

Edits [package].include in rig.toml to include the given file or pattern.

Examples

A single file:

rig add data/reference/companies.json

A glob:

rig add strategies/**
rig add scripts/*.sh

Multiple at once:

rig add data/reference/** examples/**/*.md

When to use it

Use rig add when the defaults don't cover something you want to ship. Common cases:

  • Reference data under data/reference/ that the agent reads from.
  • Curated example scenarios under examples/.
  • A templates/ folder of starting points.
  • Schema files (*.schema.json) that live outside .claude/.

When not to use it

  • For secrets — never. rig pack runs safety checks and will warn, but the file path matters: if it's in [package].include, it'll ship even if it looks safe.
  • For outputs — those go in [local].dirs, not in the package.
  • For machine-local config — same.

Removing

There's no rig remove. Edit [package].include in rig.toml directly, or add a more specific entry to [package].exclude. After editing, re-pack and inspect to confirm.

See also