jig Deterministic file generation for coding agents
Works inside Claude Code, Codex, and OpenCode

No more wasted tokens. jig is a template engine|

Your agent wastes tokens re-creating the same files every run. jig takes a recipe + variables and produces deterministic file operations - create, inject, patch, replace - in any language.

Install jig

Curl installer
View install docs
curl -fsSL https://raw.githubusercontent.com/Tetra-Research/jig/main/install.sh | sh
Works with
Claude Code
Codex
OpenCode
Recipes live next to the skill that calls them

One call in, correct files out.

Create new files, patch existing ones, or chain both into a multi-step workflow. These examples are TypeScript. jig works with any language.

New file

Add a model in one call

Variables in, complete file out. The agent never re-derives the schema shape.

.claude/skills/create-model/
Recipe file SKILL.md
Active file

src/models/project.ts

Same recipe + same variables = same file, every time.

1 step across 1 file
src/models/project.ts