With agents
Working with agents
How a coding agent reads your notes, replies to comments and closes them.
You write comments in a review, and an agent works through them. It replies to each, you answer or close it, and the code changes in between.
Pointing an agent at archr
archr skill prints a skill file that tells an agent when to use archr.
just install writes it to ~/.claude/skills/archr/SKILL.md.
archr agent prints everything an agent needs: the commands, the fields, and then the project's own conventions from .archr/agent.md.
archr's guide holds archr's facts only.
How you want agents to work on a project goes in that project's agent.md.
What an agent can do
Agents use these commands, run from inside the project, and never read or write archr's files directly.
archr reviews [--closed] open reviews, most recently changed first
archr list [SPEC] annotations, and the comments of open reviews
archr list --annotations only annotations
archr list --comments [SPEC] only comments
archr list --closed closed comments too
archr list --status S[,S...] only comments in these statuses
archr show ID one annotation or comment in full
archr reply [--as NAME] ID TEXT
reply to a comment; TEXT - reads stdin
archr close [--as NAME] ID [TEXT]
close a comment, TEXT a last reply
archr close [--as NAME] [--force] [SPEC]
close a review, WORKTREE by default
archr tour new < tour.json save a tour; prints its id
archr tours the tours, newest first
All of them print JSON.
NAME, or the ARCHR_AGENT environment variable, is shown on what the agent writes or closes.
A comment's status
| Status | Means |
|---|---|
| open | Waiting for an agent |
| answered | An agent has replied, and it waits for you |
| closed | The talk about it is over |
A reply from an agent makes a comment answered, and a reply from you makes it open again.
In the tree, ↩ counts the comments waiting for you.
archr reloads when notes change on disk, so an agent's reply appears while you are reading.
What agents may not do
- An annotation is yours to change.
replyandcloserefuse one. - A closed review is read-only.
replyandcloserefuse its comments. - Closing a review refuses while any of its comments is not closed, listing them, unless
--force.
What an agent sees
archr list gives annotations, then each review's comments, each in the tree's order.
| Field | Holds |
|---|---|
id |
Eight lowercase letters and digits |
type |
annotation or comment |
review |
A comment's spec |
places |
What it is on, the first where it is drawn |
text |
What you wrote |
commit |
HEAD when it was written |
status |
A comment's status |
replies |
Each with who wrote it, when and the text |
A place has on (project, folder, file or lines), a path, and for lines start_line and end_line, 1-based.
archr show adds quote, the lines' text when the note was written, and code, the lines on disk now.