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 or edit the files from the CLI, so every change is validated and saved as a commit.
#Open the program files
- 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. - In the Source tree on the left, click a file to open it. Until you pick one, the view shows
program.yaml. - To go back to the builder conversation, click Program files again or close the view.
#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 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 Enter 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.
#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.
#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.