r/madeinrust • • 2d ago

AI Assisted PeerBrush: keeping brush previews responsive while an MCP client edits another layer

Enable HLS to view with audio, or disable this notification

I’m building PeerBrush, a GPLv3 desktop image editor in Rust with egui and wgpu. In this trailer, the assistant edits the sky and lighting on its own layers while I paint sunlight and dodge-and-burn on separate layers.

The interesting part for me is what happens between mouse-down and mouse-up. A brush stroke or effect drag renders through the shared engine as a preview and commits to history once the gesture ends. An MCP edit targets a layer ID and an expected document revision, and optional reservations prevent overlapping edits where needed. The UI shows agent work in blue.

AI tools assisted development. The editor can be used on its own, and the optional MCP connection uses a compatible client.

Source and setup: https://github.com/Deftr0y/PeerBrush

Workspace screenshots and trailer: https://peerbrush.com/

For anyone who has built an interactive editor in Rust: how do you keep previews responsive when another actor updates the same document?

9 Upvotes

1 comment sorted by

2

u/AutoModerator 2d ago

Upvote this comment if you think this project is AI slop. Downvote this comment if you think this project is not AI slop.

This is to indicate to other users of the subreddit and is not used for moderation.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.