# Comments

> Leave comment threads on collections, folders and requests in the API client, pin them to parts like Params or Body, and share them through Git.

Source: https://docs.subcloak.com/cloak-proxy/api-client/comments/

Comments let you leave notes, questions and reviews on a collection, folder or request, the way you'd comment on a pull request. A comment can be about the whole item or one part of it, such as its **Params** or **Body**. Threads have replies and can be resolved and reopened. They're saved in the workspace, so teammates see them when they pull from Git.

## Add a comment

1. Open a saved request, a folder or a collection.
2. Click the speech-bubble button in its header. A number next to it counts the open threads.
3. In **On**, choose what the comment is about: **The whole item**, or one part of it.
4. Type in **Add a comment… (@name to mention)** and click **Comment**, or press <kbd>⌘</kbd> <kbd>↩</kbd>.

Comments are only on saved items. An unsaved request tab has no comments button until you save it.

*[Screenshot: The Comments popover with a thread by Ada Lovelace pinned to Params asking whether petId should accept slugs and mentioning @linus, a reply from Linus Torvalds, Reply, Resolve and Delete buttons, a Resolved (1) checkbox, and a field to add a comment on the whole item. A thread pinned to a request's Params, with a reply.]*

### Parts you can comment on

| Item | Choices in **On** |
|---|---|
| HTTP and GraphQL request | **The whole item**, **URL**, **Params**, **Authorization**, **Headers**, **Body**, **Scripts**, **Docs**, **Response** |
| Request of another protocol | **The whole item**, **URL**, **Message**, **Scripts**, **Docs** |
| Collection | **The whole item**, **Overview**, **Authorization**, **Scripts**, **Variables** |
| Folder | **The whole item**, **Overview**, **Authorization**, **Scripts** |

The part appears as a label next to the author's name.

## Work with threads

| Action | How |
|---|---|
| Reply | Click **Reply** under the thread, type, then click **Reply**. Replies are indented under the first comment. |
| Resolve | Click **Resolve**. The thread dims, gets a green **Resolved** label and is hidden. |
| Show resolved threads | Turn on **Resolved (n)** at the top of the panel. |
| Reopen | Show resolved threads and click **Reopen**. |
| Delete | Click **Delete**. The thread and all its replies are removed, without confirmation and without going to Recently Deleted. |

Threads are listed oldest first. Each comment shows the author's initials in a colored circle, their name and how long ago it was written.

### Mentions

Write `@name` to point a comment at someone, for example `@linus`. Mentions are highlighted in the accent color. Cloak Proxy has no accounts, so a mention doesn't send a notification; teammates see it when they pull and open the item.

## Who comments are signed by

Comments are signed with your Git name, from `git config --global user.name`. If that isn't set, the app uses your macOS account's full name. The panel shows the name it's using at the bottom: "Signed as Ada Park."

To change it, set your Git name in Terminal and restart Cloak Proxy:

```bash title="Terminal"
git config --global user.name "Ada Park"
```

## Share comments through Git

Comments are saved in `comments.json` at the top of the [workspace folder](https://docs.subcloak.com/cloak-proxy/api-client/workspace-and-git/), sorted by when they were written. When there are no comments, the file is removed.

1. Comment on a request.
2. Commit and push the workspace from the [Git view](https://docs.subcloak.com/cloak-proxy/api-client/workspace-and-git/#version-the-workspace-with-git). `comments.json` is one of the changed files.
3. A teammate pulls. Their app reloads the workspace and the comment count appears on the request.

Each comment records the ID of the item it's on, so comments stay attached when the item is renamed or moved.

> **Comments are shared with everyone who can read the repository:**
> Don't paste tokens, passwords or customer data into comments. They're plain text in `comments.json` and stay in the Git history even after you delete them.

AI assistants connected through the [MCP server](https://docs.subcloak.com/cloak-proxy/automation/mcp-server/) can read and add comments too. See [MCP tools reference](https://docs.subcloak.com/cloak-proxy/automation/mcp-tools-reference/).

## Related

  - [Workspace and Git](https://docs.subcloak.com/cloak-proxy/api-client/workspace-and-git/): Commit, pull and push the workspace.
  - [Collections and requests](https://docs.subcloak.com/cloak-proxy/api-client/collections-and-requests/): The items you can comment on.
  - [Examples and docs](https://docs.subcloak.com/cloak-proxy/api-client/examples-and-docs/): Document requests for readers.
