> 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.

# Build with code and Agents

Jig lets your application call reusable methods that use code, Agent judgment, or both.
You choose their powers, review the source, and handle their results.

Start with one method called a **Flow**.
Run it locally, call it from an application, then add the Agent work your task needs.

## Start with a working result

| Your starting point               | Follow this path                                                  | You will have                                                 |
| --------------------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------- |
| New to Jig                        | [Run your first Flow](https://jig.md/start/index.md)              | A greeting method you can review, run, and change.            |
| Ready to use a method in software | [Call from your application](https://jig.md/start/application.md) | A program that invokes the same method and checks its result. |
| Ready to add intelligence         | [Add an Agent](https://jig.md/build/agents.md)                    | An Agent method using your chosen API or native client.       |
| Already have several methods      | [Compose methods](https://jig.md/build/compose.md)                | A caller that invokes children through reviewed dependencies. |

The first two tutorials use the same project and need no Agent credentials.
Check the [supported host requirements](https://jig.md/start/index.md#supported-host) before installing.

## Choose the guide for your task

| I want to…                                | Read                                                           |
| ----------------------------------------- | -------------------------------------------------------------- |
| Adapt a Skill or write instructions       | [Markdown methods](https://jig.md/build/markdown.md)           |
| Supply files and receive artifacts        | [Working with files](https://jig.md/build/files.md)            |
| Import libraries or share local packages  | [Dependencies](https://jig.md/build/dependencies.md)           |
| Show progress and application views       | [Live progress](https://jig.md/build/channels.md)              |
| Give a method bounded network access      | [Delegate HTTP access](https://jig.md/build/http.md)           |
| Revise an answer with the same Agent      | [Conversations](https://jig.md/build/conversations.md)         |
| Understand an execution result            | [Results](https://jig.md/build/results.md)                     |
| Diagnose an error or recover from failure | [Troubleshooting](https://jig.md/reference/troubleshooting.md) |
| Choose responsibilities and configuration | [Project design](https://jig.md/build/design.md)               |

Browse [Build](https://jig.md/build/index.md) for the complete task map.
Read [How Jig works](https://jig.md/understand/index.md) for the division between methods, applications, operators, and the host.

## See the pieces working together

[Preview unfamiliar contacts](https://jig.md/examples/contact-import.md) follows one caller across code, Agent, and mixed implementations.
[Handle a disputed charge](https://jig.md/examples/support-case.md) shows Agent interpretation followed by application checks.
Neither example turns an Agent answer into permission to act.

See [Examples](https://jig.md/examples/index.md) for complete applications, including checked code repairs.
Each example states its assumptions and prerequisites.

## Find an exact answer

[Reference](https://jig.md/reference/index.md) routes you to settings, limits, troubleshooting, terminology, APIs, and specifications.
Guides explain tasks. Specifications define exact requirements.
The separate [Research](https://jig.md/research/index.md) area records hypotheses and evaluation criteria.
Research does not establish current support.

Search, **View Markdown**, and [For agents](https://jig.md/for-agents.md) remain available throughout the docs.
Agent readers use the same canonical guides and contracts as people.
