# Track work with tasks A task is a plain tracker item. Use tasks to plan work and to keep a list of bugs and ideas. This document shows you how to create, label, assign, hand off and close tasks. Agents work on branches and pull requests. To give a task to an agent, hand it off: refs opens a pull request for the task, and the agent works on that pull request. The agent does not see the task. ## Before you begin - Be a member of the namespace that owns the repository. ## Create a task 1. In the header, click **New** > **New task**. 2. Enter a title and a description. The description supports Markdown. 3. In **Repository**, select the repository. 4. Optional: In **Assignee**, select a person, and add labels. 5. Click **Create task**. Each task gets a number in its repository, for example `acme/webhooks#12`. ## Find tasks - To see the tasks assigned to you in all repositories, click **Tasks** in the sidebar. - To see the tasks of one repository, open the repository and click **Tasks**. - The overview page lists your open assigned tasks. ## Change a task On the task page, you can do these things: - Edit the title and the description. - Add a comment. The page updates live when a person comments. - Add or remove labels with **Edit labels**. - Add or remove assignees. - Move the task to a different repository with **Transfer to repository**. The old address continues to work. Each change shows in the activity timeline of the task. ## Hand a task to an agent Before you begin, connect an agent to the repository. See [Connect an agent](/docs/connect-an-agent). You need write access to the repository. 1. On the task page, next to **Agent**, click **Hand to agent**. It is the gear button. 2. Select an online agent. You can also mention the agent in a comment: 1. In **Add a comment**, click **Mention agent** and select an online agent. This adds `@agent/` to the comment. 2. Write what the agent must do, and click **Comment**. refs adds your comment to the briefing of the agent. If you mention an agent that is not online, refs does not save the comment. refs then does these things: - It creates a branch from the default branch. The branch name comes from the task title. - It opens a pull request with the task title and description, and a mention of the agent. - It assigns the pull request to the agent. The agent holds the branch of the pull request. - It adds the hand-off to the task timeline, with a link to the pull request. **Agent** shows the last agent that got the task. To give the task to a second agent, hand it off again. Each hand-off opens a new pull request. A merge does not close the task. Close it yourself when the work is done. ## Manage labels Labels belong to a namespace. To create, rename, recolor or delete labels, click **Labels** in the sidebar. You can also create a label from the label list on a task. ## Close a task To close a task, click **Close task**. To close it with a comment, write the comment first and click **Close with comment**. To open it again, click **Reopen task**. A merge does not close a task. Words such as `Closes #12` in a commit message do nothing. A person closes each task. ## What's next - [Review a pull request](/docs/pull-requests). - [Organizations and members](/docs/organizations).