# Editing blocks for AI agents: one technique, one folder

> In Kodecz, every editing technique (captions, zoom, transition, title card, chart) is a block: a folder with a plain text file that says what it is, when to use it and which parameters it takes, plus a right and a wrong example. The AI agent reads the index, opens only the block it needs and stops reinventing the technique on every video.

Pedro Henrique Lahr, Konecz, 2026-12-02. https://konecz.com/en/blog/blocos-de-edicao-para-agentes

An editing block is a ready technique kept in a folder: word-by-word captions, the zoom that holds to the end of the sentence, the transition, the title card, the bar chart. In Kodecz, each block carries a plain text file (`KODECZ.md`) saying what it is, when to use it, which parameters it takes and how to check it, plus a right and a wrong example. The AI agent reads the index, opens only the block it will use and applies a technique that was already approved, instead of inventing a new one for every video.

## Why does an agent need blocks?

Because without them, every video is written from scratch. And from scratch, the agent falls into the same traps: captions that wrap to two lines, a zoom that goes back mid-sentence, a transition with a white flash. When we looked at the 27 defects that showed up in our own videos before delivery, several were exactly that: the right technique existed, but the agent wrote a different one.

A block keeps the technique that already passed approval. The caption in block H01 is the one from Konecz's approved edits; so is the zoom in H02. The agent does not need to rediscover what works.

## What is inside a block?

| File | Purpose |
|---|---|
| `KODECZ.md` | what it is, when to use it, when not to, parameters with default and range, where it came from |
| `bloco.css` | the look and the motion |
| `bloco.html` | the snippet to paste into the page |
| `conferencia.json` | the checks the block enforces |
| `exemplo.html` | the right use and the wrong one |

`KODECZ.md` is plain Markdown, so any agent can read it. The zoom's, for example, says: a slow push from 1 to 1.04 across the take; a 12 % punch-in on the emphasis word, with a spring that settles in about 0.5 s; and it holds until the cut, never going back early. It also says when not to use it: two emphases in one take (split the take) or a shot already tight on the face.

## Which blocks are there?

The index has 18 ready blocks, numbered H01 to H19 (H03 is reserved):

1. **Structure:** scene (hard cut), the cut from the approved edits, fade, wipe and slide.
2. **Text:** title with subtitle, full-color title card, lower third with name and role, one-line captions, topic strip.
3. **Camera:** zoom to the end of the sentence.
4. **Data:** bar chart, line chart, count-up, height ruler, SVG diagram.
5. **Closing and special scenes:** a signature with the logo, and liquid poured into a glass.

H03, text that avoids the face, is reserved: it depends on the face box, which today comes from the automatic checks.

## How does the agent use them without burning context?

The rule sits at the top of the index: read the whole index and open the `KODECZ.md` of only the block you will use. Each block states its own context cost: the zoom takes about 1,400 tokens, the caption about 1,900. Reading all of them at once would fill the context for nothing.

In practice:

1. The agent reads `blocos/INDICE.md`, one line per block.
2. It picks the block by what the video needs.
3. It opens only that `KODECZ.md`.
4. It uses the block: pastes the snippet into the page, or names it in the JSON edit.
5. It checks: the block's checks run on their own, and each finding says what to change.

`kodecz blocks` lists the blocks one line each; with a name, it prints the parameters and an item ready to paste.

## Which rules does every block follow?

- **Declared animation only:** CSS `@keyframes` or `element.animate()`. No clock, no randomness, nothing timed by the real world, so frame N is always the same.
- **No GSAP inside blocks**, because its license is incompatible with Apache-2.0.
- **No blurred `box-shadow`**, because it can vary by up to 2 color levels between renders.
- **No loose colors in the CSS:** colors and fonts come from the brand, as variables. The same block serves different brands.
- **A number that counts up is done in CSS**, not with text swapped by a script.

## Does this show up in Konecz videos?

It shows up in the method, not in one specific video. The Konecz profiles are very different: drinks on Ratomix, wine on Vinhedo Digital, public money on Vigia Pix. What changes between them is the brand, the topic and the script. One-line captions, the cut and the closing follow the same approved technique, in each profile's colors. That is how 108 videos (as of 11/19/2026) keep a standard without anyone rewriting the technique for each one.

## Frequently asked questions

**Is the agent required to use blocks?**
No. It can write any page. But the Kodecz method says to reuse a block before inventing one.

**Are the blocks in Portuguese?**
The block docs are still in Portuguese. The Kodecz commands already use English names.

**Can I create a new block?**
Yes, in the same format: `KODECZ.md`, CSS, snippet, checks and a right and a wrong example.

More on the [Kodecz page](/kodecz) and in [Kodecz: an open-source video editor for AI agents](/en/blog/lancamento-kodecz). Want the videos ready on your profile, in the approved standard? [Talk to Konecz](/en/contact).
