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

# What Agent Golf Imports from Linear

> The Linear data that Agent Golf keeps, where and for how long, what each import choice includes, and how the data stays current.

Agent Golf imports four kinds of Linear items from the teams that you choose: initiatives, projects, milestones, and issues. It keeps only the fields that the roadmap needs, keeps the data in its cloud, and never writes to Linear.

## What Agent Golf keeps

| Data | Contents | Kept until |
| - | - | - |
| The connection | The Linear workspace ID, name, and URL key, for example `linear.app/acme`. The scopes that Linear gave. The user who connected Linear, and when. The import choice. | The data is [deleted](https://docs.agent.golf/linear/connect.md#delete-the-data). |
| Access tokens | The Agent Golf app's access token and refresh token in Linear, encrypted. Only the Agent Golf service that reads Linear can use them. | A disconnect. Agent Golf gives the access back to Linear and deletes the tokens when Linear confirms it. |
| Teams | Each Linear team that the app can read or could read earlier: the name, the key, and whether the team is private. The teams of each item. | The data is deleted. |
| Imported items | The fields in [Item fields](#item-fields), with the hierarchy of the items. | The data is deleted. A disconnect keeps them. |
| Pull-request links | The URL of each GitHub pull request that Linear attached to an imported issue. See [Pull-Request Links](https://docs.agent.golf/linear/pull-request-links.md). | The data is deleted. |
| Follow lists | The initiatives and projects that each user follows in each workspace. | The user leaves the workspace, the workspace is deleted, or the data is deleted. |
| Change events | The kind and ID of the changed item, the action, and the IDs and times of the event. See [Change events](#change-events). | 7 days. An event that Agent Golf could not process moves to a separate store and stays there 30 days more, at most 37 days in all. |

### Item fields

| Item | Fields |
| - | - |
| Initiative | Name, URL, status, target date, priority, completion time, archive time, and the parent initiative. |
| Project | Name, URL, status, target date, priority, completion time, archive time, its initiatives, and its teams. |
| Milestone | Name, status, target date, order, and its project. |
| Issue | Identifier (for example `PLAT-142`), title, URL, status, team, completion time, archive time, project, parent issue, milestone, and pull-request links. |

Agent Golf also keeps the time of the last change of each item, and the creation time of each initiative, project, and issue.

The priority of an initiative or a project is **Urgent**, **High**, **Medium**, **Low**, or **No Priority**. An issue counts under the priority of its project. Agent Golf does not use the priority of an issue.

The import does not ask Linear for descriptions, comments, labels, assignees, estimates, cycles, documents, or the people of your Linear workspace.

### Change events

Linear sends Agent Golf an event for each change. Each event holds the full changed item, for example an issue with its description, the earlier values of the changed fields, and the name and email of the Linear user who made the change.

When an event arrives, Agent Golf checks its signature. Then it keeps only the item's kind, the action, the item's ID, the Linear workspace ID, the webhook ID, and the times of the event. It drops the other contents before it stores the event, and it does not write them to its database or its logs. Then Agent Golf reads the item from Linear again.

Agent Golf keeps each event for 7 days. An event that Agent Golf could not process moves to a separate store within those 7 days and stays there for 30 days, so it is deleted at most 37 days after it arrives.

Before the release that added this step, Agent Golf kept each event as Linear sent it. These full events expire by the same limits, so the last of them is deleted within 37 days after that release, by early January 2027.

## Where Agent Golf keeps the data

Agent Golf keeps the Linear data in its cloud. Linear sends its events to Agent Golf directly. Linear data never passes through Uplink, and Uplink never calls Linear.

The organization that connected Linear owns the data. Each workspace of the organization sees the items of every imported team. See [Teams](https://docs.agent.golf/linear/connect.md#teams).

The imported data counts in **Pull Request Storage**. See [Meters](https://docs.agent.golf/account/usage.md#meters). No retention window applies to it. See [What stays, and for how long](https://docs.agent.golf/account/data-retention.md#what-stays-and-for-how-long).

To delete the data, see [Delete the data](https://docs.agent.golf/linear/connect.md#delete-the-data).

## Choose what to import

Agent Golf imports nothing from a new connection until an admin chooses the teams and the work. Until then, it also ignores the changes that Linear sends. To make the choice, see [Choose the import](https://docs.agent.golf/linear/connect.md#choose-the-import).

### Teams

Two settings choose the teams. In Linear, the admin who installs the app chooses the teams that the app can read. In Agent Golf, the import mode chooses which of these teams Agent Golf imports:

| Mode | What Agent Golf imports |
| - | - |
| **All Teams** | Every team that the Linear app can read, including a team that Linear adds later. |
| **Specific Teams** | Only the teams that you select. A new team waits until you select it. |

From the imported teams, Agent Golf imports the issues that the [work choice](#work) includes, each project with at least one imported team, and the milestones of these projects. An initiative has no team in Linear, so Agent Golf imports every initiative that the app can read and that the [work choice](#work) includes. A workspace sees an initiative only when a project below it, or below one of its sub-initiatives, has an imported team.

A team that leaves the import, because you cleared it or a Linear admin removed it from the app, stops getting updates. Agent Golf keeps its items and hides them from every workspace. When the team comes back, the same items, follows, and pull-request links show again.

When a Linear admin changes the teams of the app, Linear tells Agent Golf, and Agent Golf reads the teams again.

### Work

| Choice | What Agent Golf imports |
| - | - |
| **Active Work** | The initiatives that are not completed, and the projects that are not completed or canceled. All issues of these projects, in every state. The open issues with no project that link a pull request. No archived item. |
| **All Work, with History** | Every initiative, project, and issue, including completed, canceled, and archived items. The issues with no project that link a pull request. |

An issue with no project and no pull-request link adds nothing to the roadmap, so neither choice imports it. The choice has no time window: **All Work, with History** imports the full history of your Linear workspace.

The choice applies to the items that Agent Golf adds. After Agent Golf imports an item, it keeps the item current in every state. For example, a project that you complete stays on the roadmap.

You can change the choice later in **Import** on the Linear page. A change from **Active Work** to **All Work, with History** imports again and adds the older items. A change back to **Active Work** removes nothing.

## The first import

After you choose, Agent Golf imports in two steps:

1. The initiatives, the projects, and their milestones. The Linear page and the roadmap show "Importing initiatives and projects from Linear".
2. The issues of each project, one project at a time: the projects in progress first, then the most recently updated projects, then the issues with no project. The Linear page shows "Importing from Linear: N of M projects".

The roadmap tables fill in while the import runs. A large Linear workspace can take some time. Linear limits the reads of each app in each hour. When less than 20% of that limit is left, Agent Golf waits until Linear resets the limit, for at most one hour, and then continues.

## Live updates

Linear sends Agent Golf an event when an initiative, a project, an issue, or an issue attachment is created, changed, or removed. Agent Golf then reads the changed item from Linear and updates its copy. A change usually shows in Agent Golf within a few minutes.

When you archive or delete an item in Linear, Agent Golf marks its copy as archived. An archived item does not show on the roadmap, and its pull requests no longer count for it.

## Recovery passes

Linear can fail to deliver an event. Two passes find what the events missed:

* Every 10 minutes, Agent Golf reads the items that changed in Linear since the last pass.
* Every 20 minutes, Agent Golf checks that each item that it keeps still exists in Linear. It archives each item that Linear archived or deleted, and removes each pull-request link whose attachment is gone.

The **Sync** line on the Linear page shows the time of the last sync and of the last event from Linear: "Last sync … · webhooks received …".


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.