# Read the program files

> Open the read-only program files of the commit you have open, search a file, and see which files the builder has changed but not yet pushed.

- Source: https://www.aui.io/help/agent-program/read-program-files
- Section: The agent's program
- Last updated: November 23, 2026

The Program files view shows the files that make up your agent, exactly as the commit you have open holds them. Use it when you want to see how a rule is written, check what the builder changed, or copy a file to share with a developer.

The view is read-only. To change the program, ask the [Agent Builder](https://www.aui.io/help/building/change-your-agents-behavior) or edit the files from the [CLI](https://www.aui.io/help/agent-program/work-from-the-cli), so every change is validated and saved as a commit.

## Open the program files

1. In the Agent Builder header, click the **Program files** button (`</>`). Its tooltip names the commit you have open. The view opens over the builder conversation, with the commit tag and **Read only** in its header.
2. In the **Source** tree on the left, click a file to open it. Until you pick one, the view shows `program.yaml`.
3. To go back to the builder conversation, click **Program files** again or close the view.

![The Playground in dark mode for the ACME Air Rebooking Agent on the commit tagged v0.2. The Agent Builder pane shows the Program files view with a Read only label. The Source tree lists build/ and src/, with src/ open to capabilities/, policies/ and several .yaml files, and program.yaml is open beside it showing the agent's id, caller, context and voice settings. The Apollo-1 Runtime pane is empty.](https://www.aui.io/assets/help/agent-program/read-program-files/program-files-open.png)

*The Source tree on the left, the open file beside it.*

## Find your way around

The tree has two top-level folders:

- `src/` is the program itself: what the agent runs. See [What the agent's program is](https://www.aui.io/help/agent-program/what-is-the-agent-program) for what each file declares.
- `build/` holds the material the builder plans and checks against: the spec with the agent's capability cards and test callers, the scripted cases a regression replays, a log of decisions, and any documents the agent was built from. None of it is served to customers.

Controls in the view:

| Control | What it does |
|---|---|
| **Expand all** / **Collapse all** (above the tree) | Opens or closes every folder in the tree. |
| **Search** | Finds text in the open file and highlights every match. Press <kbd>Enter</kbd> to jump to the next one. |
| **Hide the file tree** / **Show the file tree** | Gives the open file the full width, or brings the tree back. |
| **Copy file contents** | Copies the whole open file to your clipboard. |
| **Expand all** / **Collapse all** (above the file) | Folds or unfolds every section of the open file, so you can scan a long file by its top-level entries. |
| **Download** | Appears instead of the file's text for an attached document, such as a PDF the agent was built from. |

## See what the builder has changed

The view shows the commit you have open with the builder's unsaved changes laid over it, so you can read an edit before you push it. While there are unsaved changes:

- the header shows how many, for example **2 unsaved changes**
- each changed file carries a letter in the tree: **U** for a new file, **M** for a modified one, **D** for a file being deleted (shown struck through)
- a folder carries the strongest change of the files inside it

Nothing marked here is saved or live yet. See [Unsaved changes and Push](https://www.aui.io/help/building/unsaved-changes-and-push).

![The Program files view in dark mode with a 6 unsaved changes chip beside the title and an Unsaved changes chip in the Agent Builder header. In the Source tree, derivations.yaml, sources.yaml and vocabulary.yaml each carry an amber M, and the build/, src/ and capabilities/ folders show amber dots with counts. A conversation and the Reasoning pane are open on the right.](https://www.aui.io/assets/help/agent-program/read-program-files/unsaved-markers.png)

*Files the builder has changed but you have not pushed are marked in the tree.*

## Read another commit

The view always shows the commit you have open, the one in the branch pill of the top bar. To read an older commit or another branch, open it from the **Branches** window, then open the program files again. See [Work on another branch, start a draft, and compare commits](https://www.aui.io/help/branches/work-on-another-branch).

> [!NOTE]
> Opening another branch or commit also changes what your next message in the Apollo-1 Runtime pane runs against.

## Ask instead of reading

If you are looking for where a behavior comes from, it is often faster to ask. Switch the builder to **Ask** and ask, for example, "Which policy adds the $15 convenience fee to a cancellation?" The builder reads the program and answers with the file and rule. See [Build, Ask and Plan modes](https://www.aui.io/help/building/builder-modes).
