# Your agent writes. You keep the pen.

> Your agent says in the editor that it is writing a post, and holds off while you have the post open. Every change it makes is a version you can undo.

When your agent starts on a post, the PixelGlass editor says so by name. **While you have the post open, the agent cannot write to it**, and every change it makes is a version you can see and undo.

## By hand, in the admin

1. Ask your agent to work on a post. It marks the post first, and the editor names it: “Claude is writing this post for Ana.”
2. Open the post in the editor to read along. While it is open, every write the agent tries is refused with your name.
3. Close the editor, or switch to another tab, and the agent may write again.
4. Open the clock in the editor for Post history. Each agent write is a version of its own, labelled Via an agent.
5. Pick one and press **Restore this version** to take an agent's change back.

## With your agent

> Tighten the introduction of my post “Why we close on Mondays”, then tell me when you are done.

> Fix the spelling in my draft about the ferry timetable, and change nothing else.

> Rewrite the last section of the open-day post in a warmer voice, and send me the preview link.

The tools it calls: `start_editing_post`, `get_post`, `edit_post`, `replace_post`, `finish_editing_post`.

## Examples

- **Proofreading while she sleeps.** A novelist asks her agent to proofread a chapter post at night. In the morning **every fix is one version** in Post history.
- **Hands off while he types.** A gallery owner opens a post to add a quote while his agent works on it. The agent stops, tells him who has the post open, and waits.
- **Two people and an agent.** Two editors and their agents work on one site. The editor names everyone at a post, people and agents both.

## Questions

### How do I know my agent is writing a post on PixelGlass?

The editor says so. An agent marks the post with start_editing_post before it plans a change, and the editor names the agent and the person it works for.

### Can my agent overwrite what I am typing?

No. While a person has the post open in the PixelGlass editor, every write to it through the agent door is refused with that person's name.

### How do I undo a change my agent made?

Open Post history in the editor. Each agent write is a version labelled Via an agent; pick the one before it and press Restore this version.

### How long does the agent's mark stay on a post?

Until the agent calls finish_editing_post, or ten minutes after its last write.

### Whose name is on my agent's changes?

Yours. An agent acts as the person who connected it, inside that person's role, so its versions carry your name.

## See also

- [Restore an earlier version](https://pixelglass.co/guides/restore-an-earlier-version): Post history keeps the last 50 versions of every post. See what changed, who changed it, and restore any version in the editor.
- [Know what an agent may do](https://pixelglass.co/guides/what-an-agent-may-do): An agent on PixelGlass works as the person who connected it, inside that person's role. See what each role allows, and what the agent refuses.
- [Connect Claude](https://pixelglass.co/guides/connect-claude): Add your PixelGlass site to Claude as a custom connector and sign in. Claude then writes, publishes and designs as you, on web, desktop and mobile.
- [The editor](https://pixelglass.co/features/editor): A calm editor for serious writing: cards for images, video, callouts and buttons, autosave, a history of 50 versions, scheduling and meta data.
- [MCP server](https://pixelglass.co/features/mcp-server): Every PixelGlass site is an MCP server with 68 tools. Claude, ChatGPT, Cursor and more write posts, design themes and run your publication.
- [Every guide](https://pixelglass.co/guides)
- [Pricing](https://pixelglass.co/pricing): every feature on every plan, 14 days free
- [Create your site](https://pixelglass.co/signup)
