> ## Documentation Index
> Fetch the complete documentation index at: https://termmate.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Artifacts

> Inspect generated files, review inline diffs, and jump directly to edited code from the TermMate chat.

When an agent edits or creates files during a conversation, TermMate renders a structured **File Changes Artifact** directly in the chat view upon completion of the turn.

## File Changes Summary

The artifact displays an overview of all files modified by the agent, including the number of additions (`+`) and deletions (`-`):

```text theme={null}
▣ 2 files changed
    src/foo.py  +12 -3
    src/bar.py  +5 -1
```

* **Jump to File**: Click on any file path in the artifact list to open that file directly in your active editor.
* **Agent Data Exclusion**: Internal housekeeping files (such as agent memory or config files) are automatically excluded so only your project code is listed.

***

## Inline Foldable Diffs

To keep your chat clean and readable, diffs are folded by default or when they exceed size limits:

* **Expand Diffs**: Click the gutter arrow (`▶`) next to any folded diff block to expand the unified diff inline.
* **Line Navigation**: Double-click on diff lines or hunk headers to jump directly to that location in the target file.

***

## Configuration Settings

You can customize diff folding and table rendering behaviors in `Preferences → Package Settings → TermMate → Settings`:

| Setting              | Default  | Description                                                                                                                                              |
| :------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `diff_fold_limit`    | `200`    | Automatically folds a diff when it contains more than this number of lines. Set to `0` to always keep diffs expanded.                                    |
| `diff_preview_lines` | `5`      | Number of initial diff lines shown as a preview when a diff is folded. Set to `0` to fold the entire diff block.                                         |
| `table_style`        | `"html"` | Controls how Markdown tables are rendered in the Chat View: `"html"` (minihtml phantoms), `"bordered"` (horizontal borders), or `"markdown"` (raw text). |

### Example Settings

```json theme={null}
{
  "diff_fold_limit": 200,
  "diff_preview_lines": 5,
  "table_style": "html"
}
```
