For AI agents: the complete documentation index is available at https://jig.md/llms.txt, the full documentation bundle is available at https://jig.md/llms-full.txt, and this page is available as Markdown at https://jig.md/examples/index.md.
DocumentationGuidePrerelease

#Examples

View Markdown

Follow a concrete task through its methods, checks, and result. Each walkthrough explains the required host, Agent configuration, source, and authority.

Start with Run → Call if this is your first Jig project. The examples add realistic tasks to that same review-and-run loop.

ExampleWhat it teachesResult
Preview unfamiliar CSV contactsSwap code, Agent, and mixed mappers behind one interface. Validate rows with code.A contact preview with invalid rows identified.
Handle a disputed chargeLet an Agent interpret a request, then apply supplied account records and policy.Eligibility evidence without issuing a credit.
Turn an issue into a tested patchReproduce a failure, propose a change, and check it independently.Patch evidence for a human merge decision.
Run a small software factoryCoordinate a fixed repair set with explicit selection and retained evidence.Reviewed repair results with a human merge gate.

Example policies are application choices. They establish neither general domain correctness nor a requirement that every Jig application use manual approval.

Build explains individual mechanisms. Understand explains who owns their decisions and consequences.

#Prepare the source examples

These walkthroughs follow this repository's current source. Their reporting dependency is not yet published to npm. Prepare the complete workspace rather than installing each example from the registry. The first Flow remains the smaller installed-CLI introduction.

Clone the repository:

git clone https://github.com/jiggy/jig.git jig-examples
cd jig-examples

Follow the platform-specific development-shell setup. It supplies the selected Bun version, Node, Just, and required host tools. Use Bun 1.4.4 on Linux and Mac. Build from the checkout root:

bun install
just jig::build
export PATH="$PWD/packages/jig/bin:$PATH"

The build prepares the local reporting library and Jig's dependent packages. Keep the complete checkout and its workspace links. Each walkthrough starts from this checkout root and selects its own example directory. You still need ordinary source review, execution approval, and any required Agent authentication. A successful build alone establishes none of those permissions.