24 points ambewas 1 hour ago 9 comments

I've been developing applications for a long time and have turned to game development as well lately. One of the things that frustrated me the most was that using AI agents for game development is very annoying in the art department. Your only options right now are to either use an image genAI model and roll the dice every time you want to make an edit, or have your agent draw with something like vectors.

I was looking for an application that would allow me to ask an agent to make a first draft of whatever art I needed with actual brushes, and then be able to go in myself and edit every last stroke or layer that it created.

Klad is that application. Written in Rust, it can be fully controlled by an agent through the CLI, and every function is available in a nice UI as well: a brush engine, frame-by-frame animation (and bones/IK), vectors, text layers, colours, layer effects, infinite undo (even after re-opening the file!),…

Why I think it's useful for a wider audience: Adobe showed agents editing Photoshop files at MAX this week, with a private beta planned for early 2027.

Klad is built on the same core idea, with editable paint strokes as core architecture, and it works today.

Clone the repo to try it out: https://github.com/klad-app/klad

You can basically point Claude to the repo, ask it to build it, and pick up the drawing skills. Then ask it to make any drawing you want! (After that, you or the agent can change absolutely every brush stroke in the app again, which makes edits a breeze.)

The quality of the drawings really depends on the agent you use. I have tried it with Claude Fable 5.2 since it came out on Monday, and the drawings are already quite impressive. I'm confident that this will only improve.

I use it every day on Mac, so that definitely works well. It builds on Linux too (tablet pen pressure still needs some work there). Windows builds in CI, I haven't used it there myself yet but I have some reports that it works perfectly fine.

Coming up next is support for pixel art. I'm in the testing phase with this right now, and I expect it to go live in the repo sometime this weekend.

Klad is source-available rather than open source: free to build and use for individuals and small companies, and I plan to sell pre-built binaries later, the way Aseprite does. The file format, CLI reference and agent skill are MIT.

What I want to hear from people who try it: Can your agent work out the CLI without help, and where does it get confused? Can you go in and change one of its strokes easily?

The command reference and guides are available at https://klad.studio

I'll be here answering any questions about the technical side as well, as it's a pretty interesting challenge to build a performant engine with editable brush strokes that render as paint.

chaostheory 51 minutes ago | parent

In the future, I wonder if agents will still try to leave some sort of hard to detect “watermark” using this new generation of tools?

This is a really great tool that solves a specific pain point with image models though

ambewas 20 minutes ago | parent

I was so incredibly tired of trying to get an actual "usable" result through a generative image model. Its always impressive results, but the fact that they're just pixel blobs, makes them entirely unpractical.

I have no idea how an agent would leave a watermark in Klad. It's got no agent inside, and every mark that an agent made would have possibly been made by a human as well. I guess they would have to really specifically target Klad to be able to make a watermark happen...

geooff_ 45 minutes ago | parent

Very cool. Can't wait to try this!

ambewas 21 minutes ago | parent

please do, and since it's so early, I am very eager for your feedback!

tamimio 21 minutes ago | parent

This looks very interesting, so the outputs are svg? Will definitely give it a try

ambewas 18 minutes ago | parent

Nope, you can output an image file. Right now png, but other formats are easy to add.

The underlying engine is not just vectors: a brush stroke is saved as data, and everything is rendered on the fly into pixels. This means that things like smudging and paint blending is possible, all the while being able to edit even the very first stroke you made.

The best mental model I have right now is: it's the editibility of vectors, with the flexibility of a digital paint brush

arjgoel30 9 minutes ago | parent

Hmm this is interesting, perhaps you could pair it with image gen and add code to seperate the layers instead of individual brush strokes. Could be very token costly. Will try though

ambewas 2 minutes ago | parent

I thought of it as well, but have not gone and tried it. The model would have to first redraw the entire thing in Klad I think.

If you try, definitely report back! I'm still figuring out what the best way is for an agent to use this tool

rchrp 6 minutes ago | parent

The project looks really cool. Do you have an average measure of the time taken for a generation and the number of tool calls?