GitHub - klad-app/klad: A drawing app built for agent/human collaboration
A drawing app built for agent/human collaboration. Contribute to klad-app/klad development by creating an account on GitHub.
A drawing app built for agent/human collaboration. Contribute to klad-app/klad development by creating an account on GitHub.
Give your agent real brushes. klad is a 2D painting and animation app you share with a coding agent. You paint in the editor with a pen. The agent paints through the klad command line, with the same brushes, on the same drawing, and each of you sees the other's strokes instantly.
Don't want to build it? Sign up for the pre-built app release at klad.studio.
There is no image model in klad. Your agent (Claude Code, Codex, anything that can run commands) decides what to paint; klad gives it brushes, layers and a timeline. Whatever either of you puts down stays what it was: a stroke with its path, pressure, brush and colour, a shape with its points, a fill with its region. So there's no rerolling and hoping for the best: if one leaf looks off, you fix that leaf.
![]() |
![]() |
Drawings made with Claude Fable 5.2: the creature, the scene and the prop kit were painted stroke by stroke through the klad command line.
An image generator hands you pixels, and the only edit left is another roll of the dice. klad keeps every stroke and every fill as data: where it went, how hard it was pressed, its brush and its colour. Pick any of them hours later, yours or the agent's, and recolour it, bend it, move it or delete it.
klad command line, and its strokes show up in your editor as it works.The prompt to start with is under Try it. klad comes with three agent skills, all in docs/skill/ and all MIT, so use them with any agent and any tool:
klad skill: the tool. How to look at a drawing, change it and check the result.klad skill drawing: the craft. Planning a picture, light on form, values, edges, colour, materials and how to judge the result.klad skill pixel: the same for pixel art, and for animating a sprite.What an agent paints depends on the agent and on how much you steer it. The skills teach it the tool and some craft; the pen in your hand does the rest.
Everything you can do in the editor has a klad command too, so a script or an agent works on the same drawing you have open. It reads strokes as JSON, changes any of them by its address and applies batches of edits as JSON ops.
| To | In the editor | From a script or an agent |
|---|---|---|
| Paint | B and a pen with pressure | klad stroke art.klad l4 --brush oil --path 'M100 400 C 300 200 500 600 700 400' |
| Change a stroke later | S to pick it, then recolour, resize or move; A bends its path | klad set art.klad c4:s12 size=3.5 color=#3355aa |
| Read what is there | Point at it with S | klad strokes art.klad l4 --json |
| Flat colour | G, filling against the lines layer | klad fill art.klad l2 --at 820,640 --ref lines --gap 4 --color skin |
| Pixels | B on a pixel layer | klad pixel sprite.klad l1 --grid sprite.txt |
| Point at something | N pins a note, S selects | klad notes art.klad, klad selection art.klad |
| In-betweens | The in-between window | klad inbetween art.klad --layers lines,colour --from 0 --to 6 |
| Export | cmd E, or export to Godot from a clip | klad export art.klad --godot ../game/art |
| Undo | cmd Z, or the History pane | klad undo art.klad |
The file format is documented down to the byte under the MIT licence (docs/format.md), so other apps and engines can read and write klad drawings with or without klad.
Props, characters, backgrounds and frame-by-frame animation. Draw the key poses and klad makes the drawings in between, part by part; it checks the arcs (a foot that slides, a part that sinks under the ground), colours every drawing from the first one, and exports sprite sheets or a Godot SpriteFrames scene with each clip's timing.
klad inbetween creature.klad --layers lines,colour --from 3 --to 5 --spacing in-out klad arcs creature.klad --track 'lines:near leg' --clip walk --check klad export creature.klad --godot ../game/art
A pixel layer holds whole pixels, each one bound to a palette colour: change the colour and every pixel drawn with it follows. The editor zooms in whole steps, shows a grid between the pixels and keeps a panel with the sprite at its real size.
A knight of 64 pixels, drawn pixel by pixel by an agent, with a walk of eight drawings and an idle of five. Below it the pixel samples that come with klad: sprout, 32 pixels with a walk and an idle, and ground, twelve tiles of 16 pixels.
klad check marks stray pixels, doubled corners, jagged lines, banding and colours outside the palette.TileSet.An agent draws a sprite from text, one character per pixel, and reads it back the same way:
klad new sprite.klad --pixel 32x32 klad pixel sprite.klad l1 --grid sprite.txt # a legend of colours, then rows of characters klad pixels sprite.klad l1 # the layer as text again klad check sprite.klad klad export sprite.klad --gif --scale 8 klad export ground.klad --tileset ../game/art # a drawing cut into tiles, as a Godot TileSet
The steps in the editor are in Drawing pixel art.
There are no installers yet, so you build klad yourself. It takes about ten minutes the first time.
Build it and open the editor:
git clone https://github.com/klad-app/klad && cd klad just compile target/release/klad open # on Linux: target/linux/release/klad open
The editor opens on its start window: make a drawing and start painting, open a sample, or take first steps (Help > First steps).
What you build is for your own use, or your company's if it had less than 500,000 euros in revenue last year (see Licence).
Start your coding agent (Claude Code, Codex, or anything else that can run commands) in the folder where the drawing should go, and paste:
klad samples lists them and copies one out. just samples builds every drawing in samples/ from its generator; the eight in samples/shipped.json go into every build.docs/guide/ shows how to paint, select, fill, draw pixel art, animate, rig and export in the editor, one recipe at a time, starting with Getting started.just app makes klad.app and a disk image in dist/; just dist packs this machine's build as an archive. Each machine builds for itself: a Mac builds the Mac version, Linux the Linux one.docs/format.md: the file format of a drawing, enough to read and write one from any program.docs/cli.md: every command with its options (klad <command> --help prints the same).crates/client: klad-client, a small Rust crate that runs klad commands, applies edits as JSON ops and reads drawings back.docs/DESIGN.md: how klad is built: the CLI, the brush engine, rendering, the editor, the dependencies.CONTRIBUTING.md: building, testing, the code rules and how to send a change.samples/: generators that make drawings from scratch, the best place to see the ops in use.just compile # release build of the klad CLI and the editor (plain `just` does the same) just test # every test, and the drawkit check just lint # rustfmt and clippy, warnings as errors just audit # licences, RustSec advisories, sources, and the notices are current just samples # build the sample drawings
klad is source-available, not open source, copyright Indicode BV.
LICENSE): you may use it for your own personal purposes, building it from source free of charge, as well as inside your company; you may send changes to Indicode BV to propose them as contributions; and the drawings you make with it are yours to share, with the brush settings and pictures klad copies into them. The limit: a company (counted with the companies it controls or is controlled by) that had 500,000 euros or more in revenue in its last tax year needs a bought licence for each person who uses klad for it. You may build it and change it for those uses; you may not distribute it, from source or as a build.LICENSE-MIT), so any program or agent can work with klad drawings: docs/format.md (the file format), docs/cli.md (the command reference), docs/skill/ (the agent skills) and crates/client/ (the klad-client crate).CLA.md); see CONTRIBUTING.md.klad is built on open source libraries, fonts and Skia; their licences are in THIRD-PARTY-NOTICES.md, also shown by klad licences and in the editor's About window.
Texto de github.com tal como lo publicó, leído de su página y mostrado aquí con el formato de El Autómata. El original, en github.com · Volver a la noticia de El Autómata