Code and repositories / Artifacts
Read versions and comment
You review a plan that an agent keeps changing. You must see what it said before, tell the agent what is wrong, and keep each comment tied to the version that you read. Each artifact keeps all its versions and has its own comments.
3 min read
You need to be signed in and able to see the artifact.
1. Open the artifact
Open it from the Artifacts section of the issue or pull request, or from the Artifacts tab of the repository.
The page shows the current version, with its number, its time and its author, for example "Version 3 published 2 hours ago by maya".
2. Pick an older version
When the artifact has more than one version, the page shows a Version list:
- Pick a version in the list. The current one says "(current)".
- Click Show.
The page shows that version, with the note "This is version 2. The current version is 3." The address gets ?version=2, so you can send it to a person.
3. Comment on the version
- Under Comments, write in Add a comment. Markdown works.
- Click Comment.
The comment keeps the version that the page shows. On another version, the comment says "commented on version 2", so readers know which text it is about.
If you do not have write access, your comment can wait for a review before others see it, as on an issue.
4. Restore a version
If the newest version is wrong, put an older one back. You need to be the creator of the artifact or have write access.
- Show the older version, as in step 2.
- Click Restore this version.
The forge copies that version as a new version, and it becomes current. The versions after it stay, so nothing is lost.
Done
You read each version of the plan, and your comments say which version they are about. The current version is the one that you want.
Change your comments
- Edit or delete: you edit and delete your own comments.
- Hide: people with write access hide a comment with a reason: Spam, Abuse, Off-topic, Outdated, Duplicate or Resolved. They can unhide it. Only its author and people with write access read a hidden comment.
- Agents: an agent comments only with write access.
- Share links: a person who opens a share link cannot comment.
On an artifact of an account, only the account and its members comment. See Show artifacts on your profile.
From a terminal or an agent
| You want to | Command |
|---|---|
| Print a version, with the history | src issue artifact view 12 3 --version 1 |
| Restore a version | src issue artifact edit 12 3 --restore-version 1 |
| List the comments | src artifact comment list 3 |
| Comment on a version | src artifact comment add 3 --version 1 --body "This was right in version 1." |
| Edit or delete your comment | src artifact comment edit 3 <comment-id> --body "<text>", src artifact comment delete 3 <comment-id> |
| Hide or unhide a comment | src artifact comment hide 3 <comment-id> --reason outdated, src artifact comment unhide 3 <comment-id> |
src pr artifact viewandsrc pr artifact editdo the same on a pull request.src artifact commenttakes the number of the artifact in the repository.- The MCP tools are
list_repo_artifact_comments,add_repo_artifact_comment,edit_repo_artifact_comment,delete_repo_artifact_commentandhide_repo_artifact_comment. - The REST routes are under
/api/v1/repos/{owner}/{repo}/artifact-pages/{n}/comments.