A .xagt file (an AI agent file you upload to ChatGPT, Claude or Gemini) is made of nine tagged parts defined in the public .xagt Spec. This article is for buyers and curious readers, and no technical knowledge is needed. You never have to open a .xagt file to use it, but knowing the parts helps you judge a product on XGenTra.

## What are the nine parts?

The [.xagt Spec](https://xgentra.com/xagt/spec) defines nine sections, each marked by a short tag. In plain words:

| Part | Tag | What it holds |
|---|---|---|
| Basic Rules | xdf | Marks the file as xagt and declares the tags it uses, so the AI reads it without ambiguity |
| Basic Info | xhd | Name, description, author, version and execution style |
| Role and Tone | xid | What kind of expert the AI should act like and how it speaks |
| Operating Rules | xpl | Scope, refusals, required checks and cautions |
| Expert Knowledge | xkn | FAQs, examples, rules, explanations and reference notes used in answers |
| Question Sorting | xrt | Which knowledge or workflow to use for each type of question |
| Process | xwf | What to ask first, what to verify, when the task is complete |
| Calculation Rules | xcd | Optional code for exact calculations such as fees, scores or taxes |
| Answer Format | xout | Whether the answer is a table, checklist, summary or another format |

## Why does the order of the parts matter?

The spec groups the parts into three zones because, as it explains, AI models remember the beginning and end of a file more strongly. Core knowledge and rules come first, question sorting sits in the middle, and the process, calculations and answer format come last, where they are followed most closely.

## How are knowledge and calculations carried?

- Agents can carry a lot of reference material. Larger agents often come as a **.xagtx** package that includes a knowledge database. See [What is a .xagtx file?](/hc/xgentra/articles/xagtx-explained-en)
- When exact numbers matter, a file can include calculation rules so the steps are written down instead of left to the model's guess. How those rules are carried out depends on the AI service you use.

## What is not in the file?

- **Your conversations.** The file is loaded into your chat; your chat itself happens in your AI service.
- **A guarantee.** Rules steer the AI but can't make it infallible. See [What can't a .xagt agent do?](/hc/xgentra/articles/xagt-limitations-en)

## Is every copy sealed?

Yes. Copies downloaded from XGenTra carry a distribution seal so their origin can be checked on the [Authenticity check](https://xgentra.com/verify) page. The seal doesn't change how the agent works.

## Where do makers find the builder's view?

For how to fill each section when you build, see [What's inside a .xagt file (for builders)](/hc/xgentra/articles/xagt-file-structure-en). The [.xagt Spec](https://xgentra.com/xagt/spec) page also has a file skeleton and three execution modes: conversation, step-by-step guided flow, and batch processing.

**Next:** [How does a .xagt agent run?](/hc/xgentra/articles/how-xagt-runs-en)

**Related:** [What is a .xagt file?](/hc/xgentra/articles/what-is-xagt-en) · [.xagt vs. prompts, GPTs, Projects and Gems](/hc/xgentra/articles/xagt-vs-prompts-en) · [What XGenTra stands for](/hc/xgentra/articles/our-principles-en)
