Skip to content
Chonk. Docs

Working with your agent

You can connect your agent to discuss the changes you are reviewing, the existing codebase, or earlier commits.

To start a discussion, comment on code anywhere in Changes, Files, or Commits. All threads show up on the Discussion page, where you can also add top-level comments. Comments belong to the current worktree and are only stored locally.

Connect your agent

To let your agent read and reply to these comments, send it the connect prompt. You can copy it from Connect agent in the bottom-right corner after you leave your first comment, or from the Discussion page.

Run `chonk agent` for instructions (if you haven't), then listen for my comments in the background.

The Chonk CLI must be installed, and the agent must be running in the same worktree you have open in Chonk. Once connected, a listening indicator appears in Chonk.

When the agent connects, it reads the existing unresolved threads. It then automatically receives any new comments and replies you post.

A code comment and the agent reply, with Resolve and the listening indicator

Only one agent listens per worktree. If you want to switch agents, open the listening agent's menu and select Disconnect first. This ends its Chonk connection while leaving its own session open.

If replies stop, check that the agent is still listening in the worktree you have open in Chonk. You can paste the connect prompt again to ask it to reconnect.

Work through feedback

The agent can make changes based on your feedback and reply in the same thread. Its edits appear under Unreviewed for you to check. You can also ask it to review code and leave comments.

When you are done with a thread, click Resolve. Recently resolved threads are listed under Discussion → Resolved in case you need to have another look.

Comments on working files and changing diffs follow the code as it is edited. If the commented code changes, you will see Code changed. If its location is no longer available, you will see Detached, along with the original snippet. Comments on a specific commit stay with that commit.

Review requests

The agent can let you know when its changes are ready for review. Add these instructions to your global AGENTS.md file:

Once you finish working on new code, run `chonk agent` for instructions (if you haven't), and request a review from me. When you apply feedback from my comments in Chonk, reply in those threads instead of requesting another review.

When the agent requests a review, Chonk opens it in the background. If you have enabled system notifications under Cmd T → Settings → Notifications, it also sends a notification.

Copy feedback

If you prefer to discuss changes in your agent's chat, choose Copy and resolve from the arrow menu next to Connect agent in the bottom-right corner. Then click the button to copy all unresolved threads, including their code context, to the clipboard and mark them resolved. You can then paste them into the agent's chat.