Skip to content

Releases

v0.30.2

Choose a tag to compare

@github-actions github-actions released this 19 Nov 11:27

What's new in 0.30.2

Clicking a scrolled file tree no longer jumps back to the top. Once the tree was long enough
to scroll, a click landed on the row that would have been under the pointer had the list started
at the top — so it selected a file near the beginning and the view leapt up to it. Clicks now pick
the row actually drawn there, and the view stays put instead of keeping the selection pinned to
its bottom edge. The shell pane's listing had the same fault and is fixed with it, for left and
right clicks alike.

What's new in 0.30.1

A tenth theme: Typist. The look of a typing test — a charcoal ground, cream text and a single
yellow for the caret, the selected row and the keywords — with grey doing the rest of the work.
Pick it from the theme button on the menu bar or View → Theme….

It is the first theme whose code colours are CleeCode's own rather than one of the stock syntax
themes: none of those is grey and yellow, so the editor now carries a syntax theme it wrote itself,
built into the binary like the others. Modified files are amber rather than the accent's yellow,
so a dirty buffer never reads as the focused one.

What's new in 0.30.0

Word wrap, for reading prose. A line too long for the pane now folds onto the rows below it,
breaking between words, and switches on and off from View ▸ Word wrap — which also says which
way it is set. Only the screen changes: the file keeps exactly the lines you typed.

The switch was there before, hidden in the settings and only half built: the text was wrapped by
the drawing library, so continuations started under the line numbers, the caret counted characters
while the text broke between words and in a paragraph landed a row too high, a click on a
continuation went to the wrong line, and the arrows jumped a whole paragraph at once.

Now there is one layout of screen rows that the drawing, the caret, the mouse and the scrolling
all read from. The line number stands on the first row and the continuations line up under the
text. ↑ and ↓ move one screen row at a time, keeping their place along it. A click on a
continuation lands where it points. And the view can start part way down a line, so a paragraph
taller than the pane can be read to its end, with the wheel scrolling it row by row.

What's new in 0.29.1

clee -e on a name that is not there now starts the file instead of refusing it. Opening a
file that does not exist gave a buffer you could not type in: the read that failed was treated as
a file that could not be decoded, which is what the read-only rule is for — a binary opened as an
empty buffer would be saved back over itself. A file that is simply not there yet is the opposite
case, and it now opens as an empty buffer under that name, writable, with the status line saying
the file will be created when you save.

Nothing is written before that save. Opening the wrong name and quitting leaves the folder exactly
as it was found — there is no touch on the way in, and the buffer does not count as unsaved work
until something is typed into it.

The folder is a different matter and is refused. clee -e notes/2026/today.md with no notes/2026
says which folder to create and stops, on the command line, before the screen is taken over:
building a path nobody asked for is a larger decision than creating the file that was named, and a
refusal after the work is typed would be the worst moment for it.

This also reaches the file tree, the quick-open and the files an agent hands over: every one of
them opens through the same door.

A quick edit stops rewriting your layout. clee -e hides the sidebar, the terminals and the
menu bar by writing those three into the settings, and the exit path already knew not to save
them. The fifteen places that write the settings during a session did not — so picking a theme
or changing a row in the settings modal inside a clee -e saved that stripped layout over the
real one, and the next ordinary launch, or the launcher in the Dock, came up with everything
switched off. A minimal session now writes nothing to the settings file at all, which is what its
own help text has always promised.

What's new in 0.29.0

A film in a pane now costs less than it did and plays at twice the rate. Measured in a real
terminal with both processes on the clock: the same clip that took forty-five per cent of a core
and reached fourteen frames a second now takes forty-three and reaches thirty. CleeCode's own
share of that fell from eighteen per cent to eight.

Three changes get there, and one of them will change how pictures look.

The frame is handed over by name instead of by value. A picture drawn by a program in a pane
used to travel to the terminal inside the escape sequence itself, base64-encoded — better than
two megabytes for a single frame of video, thirty times a second. It now goes into a
shared-memory segment and the escape carries its name: some seven hundred bytes. This is the road
mpv already uses to hand frames to CleeCode, and it is used only where the terminal says at
startup that it can read one — asked once, with a device-attributes request riding along so that
a terminal which cannot answers as quickly as one which can. Anywhere else, and over ssh,
nothing changes.

The terminal is asked to do the scaling. The kitty protocol lets a placement state how many
cells it occupies, and a host given that will fit the picture to them — on its GPU. CleeCode used
to resize every frame itself, and because a player that honours the aspect ratio can almost never
land exactly on the cell grid, it also padded every frame a pixel at a time. Both are gone.

Panes now ask for fewer pixels than the screen can show, and this one is visible. A pane
tells the programs running in it how large its cells are, and that is what a player scales to. In
a window of a hundred and seventy-eight columns the truth asks for a picture of 1392x1044 — for a
clip that is 640x480, so most of those pixels carry nothing that was in the film — and the player
is charged for every one of them. The default is now thirty-five per cent of the true cell size,
which is what makes the arithmetic at the top of this section come out: the same film, cheaper,
at thirty frames a second instead of fourteen.

What it costs is sharpness, on a picture the terminal then scales back up. If you would rather
have the pixels, the setting is Picture resolution in panes and it walks 100 → 75 → 50 → 35;
a number written into settings.toml by hand is honoured, anywhere from 25 to 100.

Cmd+C in a pane no longer types a c. The Command key reaches CleeCode because the keyboard
protocol reports it, and a chord holding it that nothing claims used to fall through to the pane
as the bare letter underneath — so pressing Cmd+C to copy put a c into whatever was running
there, most visibly in an agent's prompt. Command now produces nothing, which is what every
terminal on this platform does with it.

What's new in 0.28.5

Nothing, if you are running it. No behaviour changed, no key moved, no bug was fixed: this
release is the tree adopting rustfmt, and it is here only so that the version in the source and
the version on the shelf do not drift apart.

The formatting check had been red since it was added and was declared "reported, not enforced",
which is the polite way of saying nobody read it. The tree is now formatted, and the check is
split in two: Formatting blocks, and Lints (informational) keeps clippy, whose seventy-one
warnings are a separate change of the same kind.

One setting in rustfmt.toml, and it is not a preference. This tree was hand-formatted to about
a hundred columns — the ninety-fifth percentile of its lines sat at ninety-seven — and rustfmt's
default max_width is already that. What the defaults do not keep is the one-line guard clause,

let Some(rest) = body.strip_prefix(b"G") else { return Decoded::Nothing };

which this codebase uses everywhere and which the narrow width heuristics break into three lines
each. use_small_heuristics = "Max" lets those heuristics run to max_width, so a line that fits
stays a line: adopting rustfmt cost some ten thousand lines of churn with the defaults and under
four thousand with that one line set.

What's new in 0.28.4

Three things that only ever went wrong on Linux, and a way to find the next one without a
Linux machine.

An agent could not run a command in a terminal it had just opened. open_terminal followed
straight away by run_command — the obvious way to use the pair — was refused every time with
"that shell is busy". It was not busy: it was a shell that had not finished starting, and those
are different answers. Busy is a program the shell started holding the terminal, where there is
nothing to do but wait and the refusal is right. Not-yet-ready is a shell that will read in a
moment, and a pane already knows how to hold a line until then. Refusal is now kept for the case
that earns it.

A startup command took twelve seconds. The pane asked whether the shell was reading keys one
at a time, which is what a line editor does at its prompt — and a shell without one never does.
/bin/sh is dash on Debian and Ubuntu, so every pane there waited out the clock fallback before
typing anything. It now asks the whole question: who holds the terminal, and whether the shell is
ready.

Using quiet as a signal has a price, and it is paid in the right place. An rc waiting on a
command it started is exactly as quiet as a prompt, and a form feed sent then is not a command,
it is a character echoed back as ^L above a banner that is still arriving. What tells the two
apart is who holds the terminal — the command the rc started, not the shell — which is why the
foreground check is inside the question rather than beside it.

The pane-graphics driver could not run on Linux at all. It asked the pane for its size with
read -t 2 -d t, ...

Read more

v0.30.1

Choose a tag to compare

@github-actions github-actions released this 29 Oct 19:59

What's new in 0.30.1

A tenth theme: Typist. The look of a typing test — a charcoal ground, cream text and a single
yellow for the caret, the selected row and the keywords — with grey doing the rest of the work.
Pick it from the theme button on the menu bar or View → Theme….

It is the first theme whose code colours are CleeCode's own rather than one of the stock syntax
themes: none of those is grey and yellow, so the editor now carries a syntax theme it wrote itself,
built into the binary like the others. Modified files are amber rather than the accent's yellow,
so a dirty buffer never reads as the focused one.

What's new in 0.30.0

Word wrap, for reading prose. A line too long for the pane now folds onto the rows below it,
breaking between words, and switches on and off from View ▸ Word wrap — which also says which
way it is set. Only the screen changes: the file keeps exactly the lines you typed.

The switch was there before, hidden in the settings and only half built: the text was wrapped by
the drawing library, so continuations started under the line numbers, the caret counted characters
while the text broke between words and in a paragraph landed a row too high, a click on a
continuation went to the wrong line, and the arrows jumped a whole paragraph at once.

Now there is one layout of screen rows that the drawing, the caret, the mouse and the scrolling
all read from. The line number stands on the first row and the continuations line up under the
text. ↑ and ↓ move one screen row at a time, keeping their place along it. A click on a
continuation lands where it points. And the view can start part way down a line, so a paragraph
taller than the pane can be read to its end, with the wheel scrolling it row by row.

What's new in 0.29.1

clee -e on a name that is not there now starts the file instead of refusing it. Opening a
file that does not exist gave a buffer you could not type in: the read that failed was treated as
a file that could not be decoded, which is what the read-only rule is for — a binary opened as an
empty buffer would be saved back over itself. A file that is simply not there yet is the opposite
case, and it now opens as an empty buffer under that name, writable, with the status line saying
the file will be created when you save.

Nothing is written before that save. Opening the wrong name and quitting leaves the folder exactly
as it was found — there is no touch on the way in, and the buffer does not count as unsaved work
until something is typed into it.

The folder is a different matter and is refused. clee -e notes/2026/today.md with no notes/2026
says which folder to create and stops, on the command line, before the screen is taken over:
building a path nobody asked for is a larger decision than creating the file that was named, and a
refusal after the work is typed would be the worst moment for it.

This also reaches the file tree, the quick-open and the files an agent hands over: every one of
them opens through the same door.

A quick edit stops rewriting your layout. clee -e hides the sidebar, the terminals and the
menu bar by writing those three into the settings, and the exit path already knew not to save
them. The fifteen places that write the settings during a session did not — so picking a theme
or changing a row in the settings modal inside a clee -e saved that stripped layout over the
real one, and the next ordinary launch, or the launcher in the Dock, came up with everything
switched off. A minimal session now writes nothing to the settings file at all, which is what its
own help text has always promised.

What's new in 0.29.0

A film in a pane now costs less than it did and plays at twice the rate. Measured in a real
terminal with both processes on the clock: the same clip that took forty-five per cent of a core
and reached fourteen frames a second now takes forty-three and reaches thirty. CleeCode's own
share of that fell from eighteen per cent to eight.

Three changes get there, and one of them will change how pictures look.

The frame is handed over by name instead of by value. A picture drawn by a program in a pane
used to travel to the terminal inside the escape sequence itself, base64-encoded — better than
two megabytes for a single frame of video, thirty times a second. It now goes into a
shared-memory segment and the escape carries its name: some seven hundred bytes. This is the road
mpv already uses to hand frames to CleeCode, and it is used only where the terminal says at
startup that it can read one — asked once, with a device-attributes request riding along so that
a terminal which cannot answers as quickly as one which can. Anywhere else, and over ssh,
nothing changes.

The terminal is asked to do the scaling. The kitty protocol lets a placement state how many
cells it occupies, and a host given that will fit the picture to them — on its GPU. CleeCode used
to resize every frame itself, and because a player that honours the aspect ratio can almost never
land exactly on the cell grid, it also padded every frame a pixel at a time. Both are gone.

Panes now ask for fewer pixels than the screen can show, and this one is visible. A pane
tells the programs running in it how large its cells are, and that is what a player scales to. In
a window of a hundred and seventy-eight columns the truth asks for a picture of 1392x1044 — for a
clip that is 640x480, so most of those pixels carry nothing that was in the film — and the player
is charged for every one of them. The default is now thirty-five per cent of the true cell size,
which is what makes the arithmetic at the top of this section come out: the same film, cheaper,
at thirty frames a second instead of fourteen.

What it costs is sharpness, on a picture the terminal then scales back up. If you would rather
have the pixels, the setting is Picture resolution in panes and it walks 100 → 75 → 50 → 35;
a number written into settings.toml by hand is honoured, anywhere from 25 to 100.

Cmd+C in a pane no longer types a c. The Command key reaches CleeCode because the keyboard
protocol reports it, and a chord holding it that nothing claims used to fall through to the pane
as the bare letter underneath — so pressing Cmd+C to copy put a c into whatever was running
there, most visibly in an agent's prompt. Command now produces nothing, which is what every
terminal on this platform does with it.

What's new in 0.28.5

Nothing, if you are running it. No behaviour changed, no key moved, no bug was fixed: this
release is the tree adopting rustfmt, and it is here only so that the version in the source and
the version on the shelf do not drift apart.

The formatting check had been red since it was added and was declared "reported, not enforced",
which is the polite way of saying nobody read it. The tree is now formatted, and the check is
split in two: Formatting blocks, and Lints (informational) keeps clippy, whose seventy-one
warnings are a separate change of the same kind.

One setting in rustfmt.toml, and it is not a preference. This tree was hand-formatted to about
a hundred columns — the ninety-fifth percentile of its lines sat at ninety-seven — and rustfmt's
default max_width is already that. What the defaults do not keep is the one-line guard clause,

let Some(rest) = body.strip_prefix(b"G") else { return Decoded::Nothing };

which this codebase uses everywhere and which the narrow width heuristics break into three lines
each. use_small_heuristics = "Max" lets those heuristics run to max_width, so a line that fits
stays a line: adopting rustfmt cost some ten thousand lines of churn with the defaults and under
four thousand with that one line set.

What's new in 0.28.4

Three things that only ever went wrong on Linux, and a way to find the next one without a
Linux machine.

An agent could not run a command in a terminal it had just opened. open_terminal followed
straight away by run_command — the obvious way to use the pair — was refused every time with
"that shell is busy". It was not busy: it was a shell that had not finished starting, and those
are different answers. Busy is a program the shell started holding the terminal, where there is
nothing to do but wait and the refusal is right. Not-yet-ready is a shell that will read in a
moment, and a pane already knows how to hold a line until then. Refusal is now kept for the case
that earns it.

A startup command took twelve seconds. The pane asked whether the shell was reading keys one
at a time, which is what a line editor does at its prompt — and a shell without one never does.
/bin/sh is dash on Debian and Ubuntu, so every pane there waited out the clock fallback before
typing anything. It now asks the whole question: who holds the terminal, and whether the shell is
ready.

Using quiet as a signal has a price, and it is paid in the right place. An rc waiting on a
command it started is exactly as quiet as a prompt, and a form feed sent then is not a command,
it is a character echoed back as ^L above a banner that is still arriving. What tells the two
apart is who holds the terminal — the command the rc started, not the shell — which is why the
foreground check is inside the question rather than beside it.

The pane-graphics driver could not run on Linux at all. It asked the pane for its size with
read -t 2 -d t, which is bash and nothing else; dash has neither option. Rewritten in POSIX.

And the lever that found all of them. The test harness forced SHELL=/bin/sh, which is not
the same shell on the two systems the CI runs: bash with a line editor on macOS, dash without one
on Ubuntu. That difference has been the shape of more than one failure visible only on the Linux
runner, and there was no way to reproduce it from a Mac. CLEE_DRIVE_SHELL now points the
harness at another shell:

CLEE_DRIVE_SHELL=/bin/dash python3 scrip...
Read more

v0.30.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 10:16

What's new in 0.30.0

Word wrap, for reading prose. A line too long for the pane now folds onto the rows below it,
breaking between words, and switches on and off from View ▸ Word wrap — which also says which
way it is set. Only the screen changes: the file keeps exactly the lines you typed.

The switch was there before, hidden in the settings and only half built: the text was wrapped by
the drawing library, so continuations started under the line numbers, the caret counted characters
while the text broke between words and in a paragraph landed a row too high, a click on a
continuation went to the wrong line, and the arrows jumped a whole paragraph at once.

Now there is one layout of screen rows that the drawing, the caret, the mouse and the scrolling
all read from. The line number stands on the first row and the continuations line up under the
text. ↑ and ↓ move one screen row at a time, keeping their place along it. A click on a
continuation lands where it points. And the view can start part way down a line, so a paragraph
taller than the pane can be read to its end, with the wheel scrolling it row by row.

What's new in 0.29.1

clee -e on a name that is not there now starts the file instead of refusing it. Opening a
file that does not exist gave a buffer you could not type in: the read that failed was treated as
a file that could not be decoded, which is what the read-only rule is for — a binary opened as an
empty buffer would be saved back over itself. A file that is simply not there yet is the opposite
case, and it now opens as an empty buffer under that name, writable, with the status line saying
the file will be created when you save.

Nothing is written before that save. Opening the wrong name and quitting leaves the folder exactly
as it was found — there is no touch on the way in, and the buffer does not count as unsaved work
until something is typed into it.

The folder is a different matter and is refused. clee -e notes/2026/today.md with no notes/2026
says which folder to create and stops, on the command line, before the screen is taken over:
building a path nobody asked for is a larger decision than creating the file that was named, and a
refusal after the work is typed would be the worst moment for it.

This also reaches the file tree, the quick-open and the files an agent hands over: every one of
them opens through the same door.

A quick edit stops rewriting your layout. clee -e hides the sidebar, the terminals and the
menu bar by writing those three into the settings, and the exit path already knew not to save
them. The fifteen places that write the settings during a session did not — so picking a theme
or changing a row in the settings modal inside a clee -e saved that stripped layout over the
real one, and the next ordinary launch, or the launcher in the Dock, came up with everything
switched off. A minimal session now writes nothing to the settings file at all, which is what its
own help text has always promised.

What's new in 0.29.0

A film in a pane now costs less than it did and plays at twice the rate. Measured in a real
terminal with both processes on the clock: the same clip that took forty-five per cent of a core
and reached fourteen frames a second now takes forty-three and reaches thirty. CleeCode's own
share of that fell from eighteen per cent to eight.

Three changes get there, and one of them will change how pictures look.

The frame is handed over by name instead of by value. A picture drawn by a program in a pane
used to travel to the terminal inside the escape sequence itself, base64-encoded — better than
two megabytes for a single frame of video, thirty times a second. It now goes into a
shared-memory segment and the escape carries its name: some seven hundred bytes. This is the road
mpv already uses to hand frames to CleeCode, and it is used only where the terminal says at
startup that it can read one — asked once, with a device-attributes request riding along so that
a terminal which cannot answers as quickly as one which can. Anywhere else, and over ssh,
nothing changes.

The terminal is asked to do the scaling. The kitty protocol lets a placement state how many
cells it occupies, and a host given that will fit the picture to them — on its GPU. CleeCode used
to resize every frame itself, and because a player that honours the aspect ratio can almost never
land exactly on the cell grid, it also padded every frame a pixel at a time. Both are gone.

Panes now ask for fewer pixels than the screen can show, and this one is visible. A pane
tells the programs running in it how large its cells are, and that is what a player scales to. In
a window of a hundred and seventy-eight columns the truth asks for a picture of 1392x1044 — for a
clip that is 640x480, so most of those pixels carry nothing that was in the film — and the player
is charged for every one of them. The default is now thirty-five per cent of the true cell size,
which is what makes the arithmetic at the top of this section come out: the same film, cheaper,
at thirty frames a second instead of fourteen.

What it costs is sharpness, on a picture the terminal then scales back up. If you would rather
have the pixels, the setting is Picture resolution in panes and it walks 100 → 75 → 50 → 35;
a number written into settings.toml by hand is honoured, anywhere from 25 to 100.

Cmd+C in a pane no longer types a c. The Command key reaches CleeCode because the keyboard
protocol reports it, and a chord holding it that nothing claims used to fall through to the pane
as the bare letter underneath — so pressing Cmd+C to copy put a c into whatever was running
there, most visibly in an agent's prompt. Command now produces nothing, which is what every
terminal on this platform does with it.

What's new in 0.28.5

Nothing, if you are running it. No behaviour changed, no key moved, no bug was fixed: this
release is the tree adopting rustfmt, and it is here only so that the version in the source and
the version on the shelf do not drift apart.

The formatting check had been red since it was added and was declared "reported, not enforced",
which is the polite way of saying nobody read it. The tree is now formatted, and the check is
split in two: Formatting blocks, and Lints (informational) keeps clippy, whose seventy-one
warnings are a separate change of the same kind.

One setting in rustfmt.toml, and it is not a preference. This tree was hand-formatted to about
a hundred columns — the ninety-fifth percentile of its lines sat at ninety-seven — and rustfmt's
default max_width is already that. What the defaults do not keep is the one-line guard clause,

let Some(rest) = body.strip_prefix(b"G") else { return Decoded::Nothing };

which this codebase uses everywhere and which the narrow width heuristics break into three lines
each. use_small_heuristics = "Max" lets those heuristics run to max_width, so a line that fits
stays a line: adopting rustfmt cost some ten thousand lines of churn with the defaults and under
four thousand with that one line set.

What's new in 0.28.4

Three things that only ever went wrong on Linux, and a way to find the next one without a
Linux machine.

An agent could not run a command in a terminal it had just opened. open_terminal followed
straight away by run_command — the obvious way to use the pair — was refused every time with
"that shell is busy". It was not busy: it was a shell that had not finished starting, and those
are different answers. Busy is a program the shell started holding the terminal, where there is
nothing to do but wait and the refusal is right. Not-yet-ready is a shell that will read in a
moment, and a pane already knows how to hold a line until then. Refusal is now kept for the case
that earns it.

A startup command took twelve seconds. The pane asked whether the shell was reading keys one
at a time, which is what a line editor does at its prompt — and a shell without one never does.
/bin/sh is dash on Debian and Ubuntu, so every pane there waited out the clock fallback before
typing anything. It now asks the whole question: who holds the terminal, and whether the shell is
ready.

Using quiet as a signal has a price, and it is paid in the right place. An rc waiting on a
command it started is exactly as quiet as a prompt, and a form feed sent then is not a command,
it is a character echoed back as ^L above a banner that is still arriving. What tells the two
apart is who holds the terminal — the command the rc started, not the shell — which is why the
foreground check is inside the question rather than beside it.

The pane-graphics driver could not run on Linux at all. It asked the pane for its size with
read -t 2 -d t, which is bash and nothing else; dash has neither option. Rewritten in POSIX.

And the lever that found all of them. The test harness forced SHELL=/bin/sh, which is not
the same shell on the two systems the CI runs: bash with a line editor on macOS, dash without one
on Ubuntu. That difference has been the shape of more than one failure visible only on the Linux
runner, and there was no way to reproduce it from a Mac. CLEE_DRIVE_SHELL now points the
harness at another shell:

CLEE_DRIVE_SHELL=/bin/dash python3 scripts/drive_mcp.py target/debug/clee

Eleven drivers out of eleven pass under dash, and the Linux driver gate in CI is green again for
the first time in several releases.

What's new in 0.28.3

Video plays in a terminal pane, and ytfzf -t shows its thumbnails. Both were refused or
broken before, for four separate reasons.

A picture can live somewhere other than the escape. The kitty protocol lets a program put the
image in a file (t=f, t=t) or a POSIX shared-memory segment (t=s) and send only its name.
CleeCode refused all three on the grounds that a name written by the far end of a pty might have
been wri...

Read more

v0.29.1

Choose a tag to compare

@github-actions github-actions released this 21 Sep 22:52

What's new in 0.29.1

clee -e on a name that is not there now starts the file instead of refusing it. Opening a
file that does not exist gave a buffer you could not type in: the read that failed was treated as
a file that could not be decoded, which is what the read-only rule is for — a binary opened as an
empty buffer would be saved back over itself. A file that is simply not there yet is the opposite
case, and it now opens as an empty buffer under that name, writable, with the status line saying
the file will be created when you save.

Nothing is written before that save. Opening the wrong name and quitting leaves the folder exactly
as it was found — there is no touch on the way in, and the buffer does not count as unsaved work
until something is typed into it.

The folder is a different matter and is refused. clee -e notes/2026/today.md with no notes/2026
says which folder to create and stops, on the command line, before the screen is taken over:
building a path nobody asked for is a larger decision than creating the file that was named, and a
refusal after the work is typed would be the worst moment for it.

This also reaches the file tree, the quick-open and the files an agent hands over: every one of
them opens through the same door.

A quick edit stops rewriting your layout. clee -e hides the sidebar, the terminals and the
menu bar by writing those three into the settings, and the exit path already knew not to save
them. The fifteen places that write the settings during a session did not — so picking a theme
or changing a row in the settings modal inside a clee -e saved that stripped layout over the
real one, and the next ordinary launch, or the launcher in the Dock, came up with everything
switched off. A minimal session now writes nothing to the settings file at all, which is what its
own help text has always promised.

What's new in 0.29.0

A film in a pane now costs less than it did and plays at twice the rate. Measured in a real
terminal with both processes on the clock: the same clip that took forty-five per cent of a core
and reached fourteen frames a second now takes forty-three and reaches thirty. CleeCode's own
share of that fell from eighteen per cent to eight.

Three changes get there, and one of them will change how pictures look.

The frame is handed over by name instead of by value. A picture drawn by a program in a pane
used to travel to the terminal inside the escape sequence itself, base64-encoded — better than
two megabytes for a single frame of video, thirty times a second. It now goes into a
shared-memory segment and the escape carries its name: some seven hundred bytes. This is the road
mpv already uses to hand frames to CleeCode, and it is used only where the terminal says at
startup that it can read one — asked once, with a device-attributes request riding along so that
a terminal which cannot answers as quickly as one which can. Anywhere else, and over ssh,
nothing changes.

The terminal is asked to do the scaling. The kitty protocol lets a placement state how many
cells it occupies, and a host given that will fit the picture to them — on its GPU. CleeCode used
to resize every frame itself, and because a player that honours the aspect ratio can almost never
land exactly on the cell grid, it also padded every frame a pixel at a time. Both are gone.

Panes now ask for fewer pixels than the screen can show, and this one is visible. A pane
tells the programs running in it how large its cells are, and that is what a player scales to. In
a window of a hundred and seventy-eight columns the truth asks for a picture of 1392x1044 — for a
clip that is 640x480, so most of those pixels carry nothing that was in the film — and the player
is charged for every one of them. The default is now thirty-five per cent of the true cell size,
which is what makes the arithmetic at the top of this section come out: the same film, cheaper,
at thirty frames a second instead of fourteen.

What it costs is sharpness, on a picture the terminal then scales back up. If you would rather
have the pixels, the setting is Picture resolution in panes and it walks 100 → 75 → 50 → 35;
a number written into settings.toml by hand is honoured, anywhere from 25 to 100.

Cmd+C in a pane no longer types a c. The Command key reaches CleeCode because the keyboard
protocol reports it, and a chord holding it that nothing claims used to fall through to the pane
as the bare letter underneath — so pressing Cmd+C to copy put a c into whatever was running
there, most visibly in an agent's prompt. Command now produces nothing, which is what every
terminal on this platform does with it.

What's new in 0.28.5

Nothing, if you are running it. No behaviour changed, no key moved, no bug was fixed: this
release is the tree adopting rustfmt, and it is here only so that the version in the source and
the version on the shelf do not drift apart.

The formatting check had been red since it was added and was declared "reported, not enforced",
which is the polite way of saying nobody read it. The tree is now formatted, and the check is
split in two: Formatting blocks, and Lints (informational) keeps clippy, whose seventy-one
warnings are a separate change of the same kind.

One setting in rustfmt.toml, and it is not a preference. This tree was hand-formatted to about
a hundred columns — the ninety-fifth percentile of its lines sat at ninety-seven — and rustfmt's
default max_width is already that. What the defaults do not keep is the one-line guard clause,

let Some(rest) = body.strip_prefix(b"G") else { return Decoded::Nothing };

which this codebase uses everywhere and which the narrow width heuristics break into three lines
each. use_small_heuristics = "Max" lets those heuristics run to max_width, so a line that fits
stays a line: adopting rustfmt cost some ten thousand lines of churn with the defaults and under
four thousand with that one line set.

What's new in 0.28.4

Three things that only ever went wrong on Linux, and a way to find the next one without a
Linux machine.

An agent could not run a command in a terminal it had just opened. open_terminal followed
straight away by run_command — the obvious way to use the pair — was refused every time with
"that shell is busy". It was not busy: it was a shell that had not finished starting, and those
are different answers. Busy is a program the shell started holding the terminal, where there is
nothing to do but wait and the refusal is right. Not-yet-ready is a shell that will read in a
moment, and a pane already knows how to hold a line until then. Refusal is now kept for the case
that earns it.

A startup command took twelve seconds. The pane asked whether the shell was reading keys one
at a time, which is what a line editor does at its prompt — and a shell without one never does.
/bin/sh is dash on Debian and Ubuntu, so every pane there waited out the clock fallback before
typing anything. It now asks the whole question: who holds the terminal, and whether the shell is
ready.

Using quiet as a signal has a price, and it is paid in the right place. An rc waiting on a
command it started is exactly as quiet as a prompt, and a form feed sent then is not a command,
it is a character echoed back as ^L above a banner that is still arriving. What tells the two
apart is who holds the terminal — the command the rc started, not the shell — which is why the
foreground check is inside the question rather than beside it.

The pane-graphics driver could not run on Linux at all. It asked the pane for its size with
read -t 2 -d t, which is bash and nothing else; dash has neither option. Rewritten in POSIX.

And the lever that found all of them. The test harness forced SHELL=/bin/sh, which is not
the same shell on the two systems the CI runs: bash with a line editor on macOS, dash without one
on Ubuntu. That difference has been the shape of more than one failure visible only on the Linux
runner, and there was no way to reproduce it from a Mac. CLEE_DRIVE_SHELL now points the
harness at another shell:

CLEE_DRIVE_SHELL=/bin/dash python3 scripts/drive_mcp.py target/debug/clee

Eleven drivers out of eleven pass under dash, and the Linux driver gate in CI is green again for
the first time in several releases.

What's new in 0.28.3

Video plays in a terminal pane, and ytfzf -t shows its thumbnails. Both were refused or
broken before, for four separate reasons.

A picture can live somewhere other than the escape. The kitty protocol lets a program put the
image in a file (t=f, t=t) or a POSIX shared-memory segment (t=s) and send only its name.
CleeCode refused all three on the grounds that a name written by the far end of a pty might have
been written on another machine. That reasoning does not survive contact with the facts: the
program in the pane runs as the user reading the screen, so there is nothing it could name that
it could not have read itself and sent the direct way. What the refusal actually cost was video —
mpv --vo=kitty --vo-kitty-use-shm=yes sends around four hundred bytes a frame instead of five
megabytes, and that is the only road down which a pty carries a film at all. All three are read
now. Only regular files, so a name pointing at a fifo cannot park the reader thread in a read
that never returns; and t=t, which asks the terminal to delete the file once read, obeys only
inside a temporary directory — reading a file you own is something the program could have done
itself, deleting one is not.

mpv also marks every frame m=1 and never sends the m=0 that would close one. That is legal:
kitty honours chunking for direct transmission only. CleeCode does too now; reading it otherwise
gathered a whole film into one transmission that never ended.

The pace comes from the screen, not from a number. A fixed ceiling beats against the players
ne...

Read more

v0.29.0

Choose a tag to compare

@github-actions github-actions released this 21 Sep 12:27

What's new in 0.29.0

A film in a pane now costs less than it did and plays at twice the rate. Measured in a real
terminal with both processes on the clock: the same clip that took forty-five per cent of a core
and reached fourteen frames a second now takes forty-three and reaches thirty. CleeCode's own
share of that fell from eighteen per cent to eight.

Three changes get there, and one of them will change how pictures look.

The frame is handed over by name instead of by value. A picture drawn by a program in a pane
used to travel to the terminal inside the escape sequence itself, base64-encoded — better than
two megabytes for a single frame of video, thirty times a second. It now goes into a
shared-memory segment and the escape carries its name: some seven hundred bytes. This is the road
mpv already uses to hand frames to CleeCode, and it is used only where the terminal says at
startup that it can read one — asked once, with a device-attributes request riding along so that
a terminal which cannot answers as quickly as one which can. Anywhere else, and over ssh,
nothing changes.

The terminal is asked to do the scaling. The kitty protocol lets a placement state how many
cells it occupies, and a host given that will fit the picture to them — on its GPU. CleeCode used
to resize every frame itself, and because a player that honours the aspect ratio can almost never
land exactly on the cell grid, it also padded every frame a pixel at a time. Both are gone.

Panes now ask for fewer pixels than the screen can show, and this one is visible. A pane
tells the programs running in it how large its cells are, and that is what a player scales to. In
a window of a hundred and seventy-eight columns the truth asks for a picture of 1392x1044 — for a
clip that is 640x480, so most of those pixels carry nothing that was in the film — and the player
is charged for every one of them. The default is now thirty-five per cent of the true cell size,
which is what makes the arithmetic at the top of this section come out: the same film, cheaper,
at thirty frames a second instead of fourteen.

What it costs is sharpness, on a picture the terminal then scales back up. If you would rather
have the pixels, the setting is Picture resolution in panes and it walks 100 → 75 → 50 → 35;
a number written into settings.toml by hand is honoured, anywhere from 25 to 100.

Cmd+C in a pane no longer types a c. The Command key reaches CleeCode because the keyboard
protocol reports it, and a chord holding it that nothing claims used to fall through to the pane
as the bare letter underneath — so pressing Cmd+C to copy put a c into whatever was running
there, most visibly in an agent's prompt. Command now produces nothing, which is what every
terminal on this platform does with it.

What's new in 0.28.5

Nothing, if you are running it. No behaviour changed, no key moved, no bug was fixed: this
release is the tree adopting rustfmt, and it is here only so that the version in the source and
the version on the shelf do not drift apart.

The formatting check had been red since it was added and was declared "reported, not enforced",
which is the polite way of saying nobody read it. The tree is now formatted, and the check is
split in two: Formatting blocks, and Lints (informational) keeps clippy, whose seventy-one
warnings are a separate change of the same kind.

One setting in rustfmt.toml, and it is not a preference. This tree was hand-formatted to about
a hundred columns — the ninety-fifth percentile of its lines sat at ninety-seven — and rustfmt's
default max_width is already that. What the defaults do not keep is the one-line guard clause,

let Some(rest) = body.strip_prefix(b"G") else { return Decoded::Nothing };

which this codebase uses everywhere and which the narrow width heuristics break into three lines
each. use_small_heuristics = "Max" lets those heuristics run to max_width, so a line that fits
stays a line: adopting rustfmt cost some ten thousand lines of churn with the defaults and under
four thousand with that one line set.

What's new in 0.28.4

Three things that only ever went wrong on Linux, and a way to find the next one without a
Linux machine.

An agent could not run a command in a terminal it had just opened. open_terminal followed
straight away by run_command — the obvious way to use the pair — was refused every time with
"that shell is busy". It was not busy: it was a shell that had not finished starting, and those
are different answers. Busy is a program the shell started holding the terminal, where there is
nothing to do but wait and the refusal is right. Not-yet-ready is a shell that will read in a
moment, and a pane already knows how to hold a line until then. Refusal is now kept for the case
that earns it.

A startup command took twelve seconds. The pane asked whether the shell was reading keys one
at a time, which is what a line editor does at its prompt — and a shell without one never does.
/bin/sh is dash on Debian and Ubuntu, so every pane there waited out the clock fallback before
typing anything. It now asks the whole question: who holds the terminal, and whether the shell is
ready.

Using quiet as a signal has a price, and it is paid in the right place. An rc waiting on a
command it started is exactly as quiet as a prompt, and a form feed sent then is not a command,
it is a character echoed back as ^L above a banner that is still arriving. What tells the two
apart is who holds the terminal — the command the rc started, not the shell — which is why the
foreground check is inside the question rather than beside it.

The pane-graphics driver could not run on Linux at all. It asked the pane for its size with
read -t 2 -d t, which is bash and nothing else; dash has neither option. Rewritten in POSIX.

And the lever that found all of them. The test harness forced SHELL=/bin/sh, which is not
the same shell on the two systems the CI runs: bash with a line editor on macOS, dash without one
on Ubuntu. That difference has been the shape of more than one failure visible only on the Linux
runner, and there was no way to reproduce it from a Mac. CLEE_DRIVE_SHELL now points the
harness at another shell:

CLEE_DRIVE_SHELL=/bin/dash python3 scripts/drive_mcp.py target/debug/clee

Eleven drivers out of eleven pass under dash, and the Linux driver gate in CI is green again for
the first time in several releases.

What's new in 0.28.3

Video plays in a terminal pane, and ytfzf -t shows its thumbnails. Both were refused or
broken before, for four separate reasons.

A picture can live somewhere other than the escape. The kitty protocol lets a program put the
image in a file (t=f, t=t) or a POSIX shared-memory segment (t=s) and send only its name.
CleeCode refused all three on the grounds that a name written by the far end of a pty might have
been written on another machine. That reasoning does not survive contact with the facts: the
program in the pane runs as the user reading the screen, so there is nothing it could name that
it could not have read itself and sent the direct way. What the refusal actually cost was video —
mpv --vo=kitty --vo-kitty-use-shm=yes sends around four hundred bytes a frame instead of five
megabytes, and that is the only road down which a pty carries a film at all. All three are read
now. Only regular files, so a name pointing at a fifo cannot park the reader thread in a read
that never returns; and t=t, which asks the terminal to delete the file once read, obeys only
inside a temporary directory — reading a file you own is something the program could have done
itself, deleting one is not.

mpv also marks every frame m=1 and never sends the m=0 that would close one. That is legal:
kitty honours chunking for direct transmission only. CleeCode does too now; reading it otherwise
gathered a whole film into one transmission that never ended.

The pace comes from the screen, not from a number. A fixed ceiling beats against the players
near it: at thirty pictures a second against a thirty-frame film, the window filled once a second
and dropped the three frames it took to slide — a smooth film that hitches once a second, worse
to watch than a slower one that never does. The question asked now is whether a picture is
already waiting that nobody has drawn. If one is, the next would only replace it, and replacing
it costs the whole decode for nothing. A pane therefore decodes exactly as often as it draws.

The main loop no longer spends a whole frame asleep in one poll either: it glances at the panes
every two milliseconds, so a frame reaches the screen within two milliseconds of existing.
Measured end to end: 18.5 frames a second with 100 ms gaps, to 30.1 a second with a median gap of
33 ms, a maximum of 40, and a standard deviation of 2.6.

Where text and pictures meet, each keeps what is its own. A kitty terminal holds the two in
separate layers; a pane has one grid for both, and the old rule — any written cell ends the
picture — threw away two different situations as if they were one. A column occupied from top to
bottom is not text over the picture, it is furniture beside it: fzf draws a border down the
side of its preview window, and a picture that reached it lost every row it had. That is why
ytfzf -t showed a list and no thumbnails. Those columns are given back at the edges. A line
written across the picture is text: mpv writes its status straight over its own frame, every
frame. The text takes the rows it is on, the picture takes the longest stretch left over.

A cell written with a space covers nothing, either. vt100 counts one as contents, and fzf
blanks its preview window before filling it — so the rows a thumbnail had just been placed on
were full of spaces a frame later. Blank is blank however it got that way.

The litter is gone. mpv writes its picture to...

Read more

v0.28.5

Choose a tag to compare

@github-actions github-actions released this 20 Sep 07:38

What's new in 0.28.5

Nothing, if you are running it. No behaviour changed, no key moved, no bug was fixed: this
release is the tree adopting rustfmt, and it is here only so that the version in the source and
the version on the shelf do not drift apart.

The formatting check had been red since it was added and was declared "reported, not enforced",
which is the polite way of saying nobody read it. The tree is now formatted, and the check is
split in two: Formatting blocks, and Lints (informational) keeps clippy, whose seventy-one
warnings are a separate change of the same kind.

One setting in rustfmt.toml, and it is not a preference. This tree was hand-formatted to about
a hundred columns — the ninety-fifth percentile of its lines sat at ninety-seven — and rustfmt's
default max_width is already that. What the defaults do not keep is the one-line guard clause,

let Some(rest) = body.strip_prefix(b"G") else { return Decoded::Nothing };

which this codebase uses everywhere and which the narrow width heuristics break into three lines
each. use_small_heuristics = "Max" lets those heuristics run to max_width, so a line that fits
stays a line: adopting rustfmt cost some ten thousand lines of churn with the defaults and under
four thousand with that one line set.

What's new in 0.28.4

Three things that only ever went wrong on Linux, and a way to find the next one without a
Linux machine.

An agent could not run a command in a terminal it had just opened. open_terminal followed
straight away by run_command — the obvious way to use the pair — was refused every time with
"that shell is busy". It was not busy: it was a shell that had not finished starting, and those
are different answers. Busy is a program the shell started holding the terminal, where there is
nothing to do but wait and the refusal is right. Not-yet-ready is a shell that will read in a
moment, and a pane already knows how to hold a line until then. Refusal is now kept for the case
that earns it.

A startup command took twelve seconds. The pane asked whether the shell was reading keys one
at a time, which is what a line editor does at its prompt — and a shell without one never does.
/bin/sh is dash on Debian and Ubuntu, so every pane there waited out the clock fallback before
typing anything. It now asks the whole question: who holds the terminal, and whether the shell is
ready.

Using quiet as a signal has a price, and it is paid in the right place. An rc waiting on a
command it started is exactly as quiet as a prompt, and a form feed sent then is not a command,
it is a character echoed back as ^L above a banner that is still arriving. What tells the two
apart is who holds the terminal — the command the rc started, not the shell — which is why the
foreground check is inside the question rather than beside it.

The pane-graphics driver could not run on Linux at all. It asked the pane for its size with
read -t 2 -d t, which is bash and nothing else; dash has neither option. Rewritten in POSIX.

And the lever that found all of them. The test harness forced SHELL=/bin/sh, which is not
the same shell on the two systems the CI runs: bash with a line editor on macOS, dash without one
on Ubuntu. That difference has been the shape of more than one failure visible only on the Linux
runner, and there was no way to reproduce it from a Mac. CLEE_DRIVE_SHELL now points the
harness at another shell:

CLEE_DRIVE_SHELL=/bin/dash python3 scripts/drive_mcp.py target/debug/clee

Eleven drivers out of eleven pass under dash, and the Linux driver gate in CI is green again for
the first time in several releases.

What's new in 0.28.3

Video plays in a terminal pane, and ytfzf -t shows its thumbnails. Both were refused or
broken before, for four separate reasons.

A picture can live somewhere other than the escape. The kitty protocol lets a program put the
image in a file (t=f, t=t) or a POSIX shared-memory segment (t=s) and send only its name.
CleeCode refused all three on the grounds that a name written by the far end of a pty might have
been written on another machine. That reasoning does not survive contact with the facts: the
program in the pane runs as the user reading the screen, so there is nothing it could name that
it could not have read itself and sent the direct way. What the refusal actually cost was video —
mpv --vo=kitty --vo-kitty-use-shm=yes sends around four hundred bytes a frame instead of five
megabytes, and that is the only road down which a pty carries a film at all. All three are read
now. Only regular files, so a name pointing at a fifo cannot park the reader thread in a read
that never returns; and t=t, which asks the terminal to delete the file once read, obeys only
inside a temporary directory — reading a file you own is something the program could have done
itself, deleting one is not.

mpv also marks every frame m=1 and never sends the m=0 that would close one. That is legal:
kitty honours chunking for direct transmission only. CleeCode does too now; reading it otherwise
gathered a whole film into one transmission that never ended.

The pace comes from the screen, not from a number. A fixed ceiling beats against the players
near it: at thirty pictures a second against a thirty-frame film, the window filled once a second
and dropped the three frames it took to slide — a smooth film that hitches once a second, worse
to watch than a slower one that never does. The question asked now is whether a picture is
already waiting that nobody has drawn. If one is, the next would only replace it, and replacing
it costs the whole decode for nothing. A pane therefore decodes exactly as often as it draws.

The main loop no longer spends a whole frame asleep in one poll either: it glances at the panes
every two milliseconds, so a frame reaches the screen within two milliseconds of existing.
Measured end to end: 18.5 frames a second with 100 ms gaps, to 30.1 a second with a median gap of
33 ms, a maximum of 40, and a standard deviation of 2.6.

Where text and pictures meet, each keeps what is its own. A kitty terminal holds the two in
separate layers; a pane has one grid for both, and the old rule — any written cell ends the
picture — threw away two different situations as if they were one. A column occupied from top to
bottom is not text over the picture, it is furniture beside it: fzf draws a border down the
side of its preview window, and a picture that reached it lost every row it had. That is why
ytfzf -t showed a list and no thumbnails. Those columns are given back at the edges. A line
written across the picture is text: mpv writes its status straight over its own frame, every
frame. The text takes the rows it is on, the picture takes the longest stretch left over.

A cell written with a space covers nothing, either. vt100 counts one as contents, and fzf
blanks its preview window before filling it — so the rows a thumbnail had just been placed on
were full of spaces a frame later. Blank is blank however it got that way.

The litter is gone. mpv writes its picture to stdout and its status line to stderr, two
buffers in front of one pty, and every so often the second lands inside the first — eight times
in five hundred megabytes, measured in a bare pty with no CleeCode involved. Every terminal then
prints the rest of the frame, because base64 is printable text and the command framing it is
gone; that is the litter you see around a picture in a terminal. In a pane it was worse than
litter: a screen full of base64 is a screen with nowhere left to put a picture, so one corrupted
frame ended the film and every frame after it was decoded perfectly and dropped for want of an
empty cell. The tail of a broken transmission is now treated as what it is, which is not text,
and the decoder lets go of what it had gathered instead of reading the next frame as more of it.

Worth knowing about the cost: turning a frame into pixels a terminal can take is processor work,
there is no graphics card at the end of a pty, and the player does most of it. Measured on the
same clip: mpv --vo=null 4% of a core, mpv --vo=kitty 33%, and --hwdec moves that to 31% —
it offloads the decoding, which was never the expensive part. A smaller pane is the lever that
works.

What's new in 0.28.2

A pane no longer locks up after a video. Running mpv --vo=kitty in a terminal pane is
refused on purpose — a pane decodes thumbnails, not film — but when mpv exited it left a frame
stuck over the pane that nothing shifted: clear did not remove it, typing did not cover it, and
the prompt never came back.

mpv signs off with ESC _ G a=d ; — "forget every image" — and writes no terminator for it, then
immediately sends the escapes that leave the alternate screen and bring the cursor back. Reading
those as more of the unterminated command swallowed every one of them, so the pane stayed on the
alternate screen showing a grid the shell was no longer writing to, with an image placed on that
screen still legitimately drawn over it.

An ESC inside a string sequence that is not its terminator now ends the sequence, which is what
the parser the rest of a pane runs on already does, and what terminals do. The half-written
command is dropped rather than guessed at: a kitty payload is base64 and cannot contain an ESC,
so nothing well-formed is lost.

Worth knowing if you want video in a terminal at all: outside CleeCode, mpv --vo=kitty pushes
around 140 MB a second down a full-size terminal, which is why it stutters. --vo-kitty-use-shm=yes
sends the name of a shared-memory segment per frame instead, and the same two seconds cost 2.5 KB.
Lowering the resolution with --vo-kitty-width/--vo-kitty-height is the weaker second lever.

What's new in 0.28.1

Check for updates offers the update again, instead of only announcing it. On macOS a
Homebrew install read as "instal...

Read more

v0.28.4

Choose a tag to compare

@github-actions github-actions released this 20 Sep 07:07

What's new in 0.28.4

Three things that only ever went wrong on Linux, and a way to find the next one without a
Linux machine.

An agent could not run a command in a terminal it had just opened. open_terminal followed
straight away by run_command — the obvious way to use the pair — was refused every time with
"that shell is busy". It was not busy: it was a shell that had not finished starting, and those
are different answers. Busy is a program the shell started holding the terminal, where there is
nothing to do but wait and the refusal is right. Not-yet-ready is a shell that will read in a
moment, and a pane already knows how to hold a line until then. Refusal is now kept for the case
that earns it.

A startup command took twelve seconds. The pane asked whether the shell was reading keys one
at a time, which is what a line editor does at its prompt — and a shell without one never does.
/bin/sh is dash on Debian and Ubuntu, so every pane there waited out the clock fallback before
typing anything. It now asks the whole question: who holds the terminal, and whether the shell is
ready.

Using quiet as a signal has a price, and it is paid in the right place. An rc waiting on a
command it started is exactly as quiet as a prompt, and a form feed sent then is not a command,
it is a character echoed back as ^L above a banner that is still arriving. What tells the two
apart is who holds the terminal — the command the rc started, not the shell — which is why the
foreground check is inside the question rather than beside it.

The pane-graphics driver could not run on Linux at all. It asked the pane for its size with
read -t 2 -d t, which is bash and nothing else; dash has neither option. Rewritten in POSIX.

And the lever that found all of them. The test harness forced SHELL=/bin/sh, which is not
the same shell on the two systems the CI runs: bash with a line editor on macOS, dash without one
on Ubuntu. That difference has been the shape of more than one failure visible only on the Linux
runner, and there was no way to reproduce it from a Mac. CLEE_DRIVE_SHELL now points the
harness at another shell:

CLEE_DRIVE_SHELL=/bin/dash python3 scripts/drive_mcp.py target/debug/clee

Eleven drivers out of eleven pass under dash, and the Linux driver gate in CI is green again for
the first time in several releases.

What's new in 0.28.3

Video plays in a terminal pane, and ytfzf -t shows its thumbnails. Both were refused or
broken before, for four separate reasons.

A picture can live somewhere other than the escape. The kitty protocol lets a program put the
image in a file (t=f, t=t) or a POSIX shared-memory segment (t=s) and send only its name.
CleeCode refused all three on the grounds that a name written by the far end of a pty might have
been written on another machine. That reasoning does not survive contact with the facts: the
program in the pane runs as the user reading the screen, so there is nothing it could name that
it could not have read itself and sent the direct way. What the refusal actually cost was video —
mpv --vo=kitty --vo-kitty-use-shm=yes sends around four hundred bytes a frame instead of five
megabytes, and that is the only road down which a pty carries a film at all. All three are read
now. Only regular files, so a name pointing at a fifo cannot park the reader thread in a read
that never returns; and t=t, which asks the terminal to delete the file once read, obeys only
inside a temporary directory — reading a file you own is something the program could have done
itself, deleting one is not.

mpv also marks every frame m=1 and never sends the m=0 that would close one. That is legal:
kitty honours chunking for direct transmission only. CleeCode does too now; reading it otherwise
gathered a whole film into one transmission that never ended.

The pace comes from the screen, not from a number. A fixed ceiling beats against the players
near it: at thirty pictures a second against a thirty-frame film, the window filled once a second
and dropped the three frames it took to slide — a smooth film that hitches once a second, worse
to watch than a slower one that never does. The question asked now is whether a picture is
already waiting that nobody has drawn. If one is, the next would only replace it, and replacing
it costs the whole decode for nothing. A pane therefore decodes exactly as often as it draws.

The main loop no longer spends a whole frame asleep in one poll either: it glances at the panes
every two milliseconds, so a frame reaches the screen within two milliseconds of existing.
Measured end to end: 18.5 frames a second with 100 ms gaps, to 30.1 a second with a median gap of
33 ms, a maximum of 40, and a standard deviation of 2.6.

Where text and pictures meet, each keeps what is its own. A kitty terminal holds the two in
separate layers; a pane has one grid for both, and the old rule — any written cell ends the
picture — threw away two different situations as if they were one. A column occupied from top to
bottom is not text over the picture, it is furniture beside it: fzf draws a border down the
side of its preview window, and a picture that reached it lost every row it had. That is why
ytfzf -t showed a list and no thumbnails. Those columns are given back at the edges. A line
written across the picture is text: mpv writes its status straight over its own frame, every
frame. The text takes the rows it is on, the picture takes the longest stretch left over.

A cell written with a space covers nothing, either. vt100 counts one as contents, and fzf
blanks its preview window before filling it — so the rows a thumbnail had just been placed on
were full of spaces a frame later. Blank is blank however it got that way.

The litter is gone. mpv writes its picture to stdout and its status line to stderr, two
buffers in front of one pty, and every so often the second lands inside the first — eight times
in five hundred megabytes, measured in a bare pty with no CleeCode involved. Every terminal then
prints the rest of the frame, because base64 is printable text and the command framing it is
gone; that is the litter you see around a picture in a terminal. In a pane it was worse than
litter: a screen full of base64 is a screen with nowhere left to put a picture, so one corrupted
frame ended the film and every frame after it was decoded perfectly and dropped for want of an
empty cell. The tail of a broken transmission is now treated as what it is, which is not text,
and the decoder lets go of what it had gathered instead of reading the next frame as more of it.

Worth knowing about the cost: turning a frame into pixels a terminal can take is processor work,
there is no graphics card at the end of a pty, and the player does most of it. Measured on the
same clip: mpv --vo=null 4% of a core, mpv --vo=kitty 33%, and --hwdec moves that to 31% —
it offloads the decoding, which was never the expensive part. A smaller pane is the lever that
works.

What's new in 0.28.2

A pane no longer locks up after a video. Running mpv --vo=kitty in a terminal pane is
refused on purpose — a pane decodes thumbnails, not film — but when mpv exited it left a frame
stuck over the pane that nothing shifted: clear did not remove it, typing did not cover it, and
the prompt never came back.

mpv signs off with ESC _ G a=d ; — "forget every image" — and writes no terminator for it, then
immediately sends the escapes that leave the alternate screen and bring the cursor back. Reading
those as more of the unterminated command swallowed every one of them, so the pane stayed on the
alternate screen showing a grid the shell was no longer writing to, with an image placed on that
screen still legitimately drawn over it.

An ESC inside a string sequence that is not its terminator now ends the sequence, which is what
the parser the rest of a pane runs on already does, and what terminals do. The half-written
command is dropped rather than guessed at: a kitty payload is base64 and cannot contain an ESC,
so nothing well-formed is lost.

Worth knowing if you want video in a terminal at all: outside CleeCode, mpv --vo=kitty pushes
around 140 MB a second down a full-size terminal, which is why it stutters. --vo-kitty-use-shm=yes
sends the name of a shared-memory segment per frame instead, and the same two seconds cost 2.5 KB.
Lowering the resolution with --vo-kitty-width/--vo-kitty-height is the weaker second lever.

What's new in 0.28.1

Check for updates offers the update again, instead of only announcing it. On macOS a
Homebrew install read as "installed from somewhere we cannot name", so anybody using one was
told a new version exists and never offered the one command that fetches it.

The offer itself was never broken: the question goes up whenever there is a command safe enough
to run unattended, and for Homebrew there is — brew upgrade clee. It was the recognition that
went wrong a step earlier. CleeCode reads the install method off its own executable's path,
looking for a Cellar component; but on macOS that path comes back exactly as the program was
invoked, symlinks and all — and a Homebrew install is exactly that, /opt/homebrew/bin/clee
pointing into ../Cellar/clee/<version>/bin/clee. Unresolved there is no Cellar in it, so the
method fell through to the case that deliberately offers nothing. Linux never showed this,
because there the path is already resolved — which is why it went unnoticed on the platform where
Homebrew is the ordinary way to install.

The path is resolved before it is read now. A path that will not resolve falls back to the
unresolved one, which is no worse than before.

What's new in 0.28.0

A terminal pane draws. Two things a program in a pane writes used to be dropped on the floor,
and neither of them said so.

The first was the cursor. vt100 implements CUP (ESC [ y ; x H) and n...

Read more

v0.28.3

Choose a tag to compare

@github-actions github-actions released this 19 Sep 21:58

What's new in 0.28.3

Video plays in a terminal pane, and ytfzf -t shows its thumbnails. Both were refused or
broken before, for four separate reasons.

A picture can live somewhere other than the escape. The kitty protocol lets a program put the
image in a file (t=f, t=t) or a POSIX shared-memory segment (t=s) and send only its name.
CleeCode refused all three on the grounds that a name written by the far end of a pty might have
been written on another machine. That reasoning does not survive contact with the facts: the
program in the pane runs as the user reading the screen, so there is nothing it could name that
it could not have read itself and sent the direct way. What the refusal actually cost was video —
mpv --vo=kitty --vo-kitty-use-shm=yes sends around four hundred bytes a frame instead of five
megabytes, and that is the only road down which a pty carries a film at all. All three are read
now. Only regular files, so a name pointing at a fifo cannot park the reader thread in a read
that never returns; and t=t, which asks the terminal to delete the file once read, obeys only
inside a temporary directory — reading a file you own is something the program could have done
itself, deleting one is not.

mpv also marks every frame m=1 and never sends the m=0 that would close one. That is legal:
kitty honours chunking for direct transmission only. CleeCode does too now; reading it otherwise
gathered a whole film into one transmission that never ended.

The pace comes from the screen, not from a number. A fixed ceiling beats against the players
near it: at thirty pictures a second against a thirty-frame film, the window filled once a second
and dropped the three frames it took to slide — a smooth film that hitches once a second, worse
to watch than a slower one that never does. The question asked now is whether a picture is
already waiting that nobody has drawn. If one is, the next would only replace it, and replacing
it costs the whole decode for nothing. A pane therefore decodes exactly as often as it draws.

The main loop no longer spends a whole frame asleep in one poll either: it glances at the panes
every two milliseconds, so a frame reaches the screen within two milliseconds of existing.
Measured end to end: 18.5 frames a second with 100 ms gaps, to 30.1 a second with a median gap of
33 ms, a maximum of 40, and a standard deviation of 2.6.

Where text and pictures meet, each keeps what is its own. A kitty terminal holds the two in
separate layers; a pane has one grid for both, and the old rule — any written cell ends the
picture — threw away two different situations as if they were one. A column occupied from top to
bottom is not text over the picture, it is furniture beside it: fzf draws a border down the
side of its preview window, and a picture that reached it lost every row it had. That is why
ytfzf -t showed a list and no thumbnails. Those columns are given back at the edges. A line
written across the picture is text: mpv writes its status straight over its own frame, every
frame. The text takes the rows it is on, the picture takes the longest stretch left over.

A cell written with a space covers nothing, either. vt100 counts one as contents, and fzf
blanks its preview window before filling it — so the rows a thumbnail had just been placed on
were full of spaces a frame later. Blank is blank however it got that way.

The litter is gone. mpv writes its picture to stdout and its status line to stderr, two
buffers in front of one pty, and every so often the second lands inside the first — eight times
in five hundred megabytes, measured in a bare pty with no CleeCode involved. Every terminal then
prints the rest of the frame, because base64 is printable text and the command framing it is
gone; that is the litter you see around a picture in a terminal. In a pane it was worse than
litter: a screen full of base64 is a screen with nowhere left to put a picture, so one corrupted
frame ended the film and every frame after it was decoded perfectly and dropped for want of an
empty cell. The tail of a broken transmission is now treated as what it is, which is not text,
and the decoder lets go of what it had gathered instead of reading the next frame as more of it.

Worth knowing about the cost: turning a frame into pixels a terminal can take is processor work,
there is no graphics card at the end of a pty, and the player does most of it. Measured on the
same clip: mpv --vo=null 4% of a core, mpv --vo=kitty 33%, and --hwdec moves that to 31% —
it offloads the decoding, which was never the expensive part. A smaller pane is the lever that
works.

What's new in 0.28.2

A pane no longer locks up after a video. Running mpv --vo=kitty in a terminal pane is
refused on purpose — a pane decodes thumbnails, not film — but when mpv exited it left a frame
stuck over the pane that nothing shifted: clear did not remove it, typing did not cover it, and
the prompt never came back.

mpv signs off with ESC _ G a=d ; — "forget every image" — and writes no terminator for it, then
immediately sends the escapes that leave the alternate screen and bring the cursor back. Reading
those as more of the unterminated command swallowed every one of them, so the pane stayed on the
alternate screen showing a grid the shell was no longer writing to, with an image placed on that
screen still legitimately drawn over it.

An ESC inside a string sequence that is not its terminator now ends the sequence, which is what
the parser the rest of a pane runs on already does, and what terminals do. The half-written
command is dropped rather than guessed at: a kitty payload is base64 and cannot contain an ESC,
so nothing well-formed is lost.

Worth knowing if you want video in a terminal at all: outside CleeCode, mpv --vo=kitty pushes
around 140 MB a second down a full-size terminal, which is why it stutters. --vo-kitty-use-shm=yes
sends the name of a shared-memory segment per frame instead, and the same two seconds cost 2.5 KB.
Lowering the resolution with --vo-kitty-width/--vo-kitty-height is the weaker second lever.

What's new in 0.28.1

Check for updates offers the update again, instead of only announcing it. On macOS a
Homebrew install read as "installed from somewhere we cannot name", so anybody using one was
told a new version exists and never offered the one command that fetches it.

The offer itself was never broken: the question goes up whenever there is a command safe enough
to run unattended, and for Homebrew there is — brew upgrade clee. It was the recognition that
went wrong a step earlier. CleeCode reads the install method off its own executable's path,
looking for a Cellar component; but on macOS that path comes back exactly as the program was
invoked, symlinks and all — and a Homebrew install is exactly that, /opt/homebrew/bin/clee
pointing into ../Cellar/clee/<version>/bin/clee. Unresolved there is no Cellar in it, so the
method fell through to the case that deliberately offers nothing. Linux never showed this,
because there the path is already resolved — which is why it went unnoticed on the platform where
Homebrew is the ordinary way to install.

The path is resolved before it is read now. A path that will not resolve falls back to the
unresolved one, which is no worse than before.

What's new in 0.28.0

A terminal pane draws. Two things a program in a pane writes used to be dropped on the floor,
and neither of them said so.

The first was the cursor. vt100 implements CUP (ESC [ y ; x H) and not HVP
(ESC [ y ; x f), which the standard says is the same instruction — and btop uses only the
second, 556 times in three seconds of running. Every absolute move it made was discarded, which
is why its panels arrived as one long wrapped stream with the box-drawing characters scattered
through the numbers. mpv positions the same way. Both are fixed.

The second was pictures. A pane now reads the kitty graphics protocol out of its own output,
decodes the image and draws it at the cell the program put it at — so chafa -f kitty works in a
pane, and so do the thumbnails ytfzf -t puts beside its list. CleeCode draws them itself rather
than forwarding the escapes, which means real pixels where the host terminal has a protocol,
coloured half-blocks where it has none, and over ssh either way. A picture goes when the text
it was printed among scrolls past, when the screen is cleared, or when something is written over
the cells it covers — which is what a preview pane scrolling its list does.

It is for thumbnails, not film: past eight pictures a second a pane stops decoding and says so,
because mpv --vo=kitty is megabytes a second and no pane can keep up. For video, open a
terminal window of its own.

A pane stops claiming to be a terminal it is not. TERM_PROGRAM, KITTY_WINDOW_ID,
WEZTERM_PANE, ITERM_SESSION_ID and their like are inherited from the terminal CleeCode is
displayed in, and inside a pane every one of them is false — which is the whole reason
mpv --vo=kitty in a pane could be heard and not seen, and why chafa left to itself chose a
graphics protocol and printed a megabyte into a blank pane. They are removed. CLEECODE=1 is set
instead, and is documented as the name to test for in an rc file or a script. A pane also answers
the three size questions — CSI 18 t, CSI 16 t, CSI 14 t — so a program turning pixels into
cells no longer has to wait for a timeout and then guess square cells.

Agents can drive your terminals. Three new MCP tools: terminals lists your shells with
their tab names, open_terminal opens one with a name on it so a long-running job gets a
window you can find again, and run_command types a line into one of them and runs it — or
leaves it at the prompt for you to read and press Enter on yourself. Both waiting tools tell the
agent what actually happened, so it cannot b...

Read more

v0.28.2

Choose a tag to compare

@github-actions github-actions released this 19 Sep 14:08

What's new in 0.28.2

A pane no longer locks up after a video. Running mpv --vo=kitty in a terminal pane is
refused on purpose — a pane decodes thumbnails, not film — but when mpv exited it left a frame
stuck over the pane that nothing shifted: clear did not remove it, typing did not cover it, and
the prompt never came back.

mpv signs off with ESC _ G a=d ; — "forget every image" — and writes no terminator for it, then
immediately sends the escapes that leave the alternate screen and bring the cursor back. Reading
those as more of the unterminated command swallowed every one of them, so the pane stayed on the
alternate screen showing a grid the shell was no longer writing to, with an image placed on that
screen still legitimately drawn over it.

An ESC inside a string sequence that is not its terminator now ends the sequence, which is what
the parser the rest of a pane runs on already does, and what terminals do. The half-written
command is dropped rather than guessed at: a kitty payload is base64 and cannot contain an ESC,
so nothing well-formed is lost.

Worth knowing if you want video in a terminal at all: outside CleeCode, mpv --vo=kitty pushes
around 140 MB a second down a full-size terminal, which is why it stutters. --vo-kitty-use-shm=yes
sends the name of a shared-memory segment per frame instead, and the same two seconds cost 2.5 KB.
Lowering the resolution with --vo-kitty-width/--vo-kitty-height is the weaker second lever.

What's new in 0.28.1

Check for updates offers the update again, instead of only announcing it. On macOS a
Homebrew install read as "installed from somewhere we cannot name", so anybody using one was
told a new version exists and never offered the one command that fetches it.

The offer itself was never broken: the question goes up whenever there is a command safe enough
to run unattended, and for Homebrew there is — brew upgrade clee. It was the recognition that
went wrong a step earlier. CleeCode reads the install method off its own executable's path,
looking for a Cellar component; but on macOS that path comes back exactly as the program was
invoked, symlinks and all — and a Homebrew install is exactly that, /opt/homebrew/bin/clee
pointing into ../Cellar/clee/<version>/bin/clee. Unresolved there is no Cellar in it, so the
method fell through to the case that deliberately offers nothing. Linux never showed this,
because there the path is already resolved — which is why it went unnoticed on the platform where
Homebrew is the ordinary way to install.

The path is resolved before it is read now. A path that will not resolve falls back to the
unresolved one, which is no worse than before.

What's new in 0.28.0

A terminal pane draws. Two things a program in a pane writes used to be dropped on the floor,
and neither of them said so.

The first was the cursor. vt100 implements CUP (ESC [ y ; x H) and not HVP
(ESC [ y ; x f), which the standard says is the same instruction — and btop uses only the
second, 556 times in three seconds of running. Every absolute move it made was discarded, which
is why its panels arrived as one long wrapped stream with the box-drawing characters scattered
through the numbers. mpv positions the same way. Both are fixed.

The second was pictures. A pane now reads the kitty graphics protocol out of its own output,
decodes the image and draws it at the cell the program put it at — so chafa -f kitty works in a
pane, and so do the thumbnails ytfzf -t puts beside its list. CleeCode draws them itself rather
than forwarding the escapes, which means real pixels where the host terminal has a protocol,
coloured half-blocks where it has none, and over ssh either way. A picture goes when the text
it was printed among scrolls past, when the screen is cleared, or when something is written over
the cells it covers — which is what a preview pane scrolling its list does.

It is for thumbnails, not film: past eight pictures a second a pane stops decoding and says so,
because mpv --vo=kitty is megabytes a second and no pane can keep up. For video, open a
terminal window of its own.

A pane stops claiming to be a terminal it is not. TERM_PROGRAM, KITTY_WINDOW_ID,
WEZTERM_PANE, ITERM_SESSION_ID and their like are inherited from the terminal CleeCode is
displayed in, and inside a pane every one of them is false — which is the whole reason
mpv --vo=kitty in a pane could be heard and not seen, and why chafa left to itself chose a
graphics protocol and printed a megabyte into a blank pane. They are removed. CLEECODE=1 is set
instead, and is documented as the name to test for in an rc file or a script. A pane also answers
the three size questions — CSI 18 t, CSI 16 t, CSI 14 t — so a program turning pixels into
cells no longer has to wait for a timeout and then guess square cells.

Agents can drive your terminals. Three new MCP tools: terminals lists your shells with
their tab names, open_terminal opens one with a name on it so a long-running job gets a
window you can find again, and run_command types a line into one of them and runs it — or
leaves it at the prompt for you to read and press Enter on yourself. Both waiting tools tell the
agent what actually happened, so it cannot believe it started a server that never started. A
shell that is busy is refused rather than typed into, and an agent's own shell is never on the
list.

Menus read as menus. The keyboard shortcut beside a menu entry now sits one tone back from
the entry itself. At the same weight the whole dropdown was one undifferentiated band of text; a
shortcut is a reminder, and the thing you opened the menu to find should be the thing you see. A
setting's value in that same column keeps its weight, because that one is what you came to
read.

What's new in 0.27.1

Follow mode takes the view to what arrived. A file you already had open, rewritten from
outside while you were reading somewhere else in it, lit the lines that changed and left them
where nobody was looking — a light switched on in a room you are not in. Now it goes to the first
of them. The lines were never the hard part: a reload already works out which ones arrived, by
comparing the text leaving with the text coming in, and that is where the green line numbers come
from. Nothing has to be asked of git.

It is the cursor that moves rather than the view alone, because the view would be dragged
straight back to wherever the cursor still was — and because it is already what an agent's
edit_buffer does when it changes a buffer through the front door. A change that arrived through
the filesystem instead is the same event from the other side. Nothing is lost by moving it: a
buffer with unsaved edits is never reloaded in the first place. With follow mode off the lines
still light up and nothing moves.

What's new in 0.27.0

The sidebar knows where your shell is. Under the project tree there is now a second half,
listing the folder the terminal you were last typing in is sitting in — the ls you would
otherwise keep typing, and before that the only way to see where a shell is at all without asking
it. It follows every cd on its own: a shell that emits OSC 7 has already said where it is, and
one that says nothing is asked of the process table instead — which is not the exotic case but
the ordinary one, since the block macOS ships for zsh and bash only sends it inside Terminal.app.
Inside ssh the half stays put, because the folder being announced is on another machine.

Enter on a folder does not walk the listing on its own: it types the cd at that shell's prompt
and moves once the shell says it has, so the two can never end up in different folders. Not into a
shell that is running something, though — at a prompt that line is a command, inside vim it is
four characters in somebody's buffer.

The project tree above never moves for any of this. Right-click offers Show in the tree, which
opens the rows down to a folder and leaves the project root exactly where it is, beside Open as
project
, which moves the root with everything that implies — two rows, always both, so the
heavier of the two never arrives unannounced. View › Shell pane puts the half away and leaves
its name on the sidebar's bottom border to bring it back; its top border is a seam you can drag.

Check for updates, under the CleeCode menu. The version check has always run on its own —
six seconds after startup, once a day, once per version, never on a build from source — and all
of that restraint left nowhere to ask. This is the asking: it goes now, skips the rules that
belong to the notice rather than to you, and always answers, which the quiet one deliberately
does not. The answer arrives in a dialog of its own, saying so while it is still out asking, and
"could not reach GitHub" is kept apart from "nothing is newer" — those are different facts, and
reporting the second for the first is how a machine that cannot see tells you the road is clear.

A wrapped pane scrolls far enough to show the cursor. With word wrap on, the view was moved
by counting whole lines while the screen was counting rows, so a line twice the pane's width
counted once and took two — and the line the view was moving for ended up just past the bottom
edge. A change made by an agent could arrive highlighted and invisible: the view did scroll, only
not far enough, and from the outside those look the same.

What's new in 0.26.3

.. leads somewhere again. A session started as clee . — which is how you open the folder
you are standing in, and how the launcher and every shell alias open one — arrived at a project
that could not be left: the drawer showed its .. row, and following it emptied the tree and took
the row away with it, so the sidebar sat blank with no way back into the folder. A root spelled
relatively is the right folder under a name that cannot say what is above...

Read more

v0.28.1

Choose a tag to compare

@github-actions github-actions released this 19 Sep 13:36

What's new in 0.28.1

Check for updates offers the update again, instead of only announcing it. On macOS a
Homebrew install read as "installed from somewhere we cannot name", so anybody using one was
told a new version exists and never offered the one command that fetches it.

The offer itself was never broken: the question goes up whenever there is a command safe enough
to run unattended, and for Homebrew there is — brew upgrade clee. It was the recognition that
went wrong a step earlier. CleeCode reads the install method off its own executable's path,
looking for a Cellar component; but on macOS that path comes back exactly as the program was
invoked, symlinks and all — and a Homebrew install is exactly that, /opt/homebrew/bin/clee
pointing into ../Cellar/clee/<version>/bin/clee. Unresolved there is no Cellar in it, so the
method fell through to the case that deliberately offers nothing. Linux never showed this,
because there the path is already resolved — which is why it went unnoticed on the platform where
Homebrew is the ordinary way to install.

The path is resolved before it is read now. A path that will not resolve falls back to the
unresolved one, which is no worse than before.

What's new in 0.28.0

A terminal pane draws. Two things a program in a pane writes used to be dropped on the floor,
and neither of them said so.

The first was the cursor. vt100 implements CUP (ESC [ y ; x H) and not HVP
(ESC [ y ; x f), which the standard says is the same instruction — and btop uses only the
second, 556 times in three seconds of running. Every absolute move it made was discarded, which
is why its panels arrived as one long wrapped stream with the box-drawing characters scattered
through the numbers. mpv positions the same way. Both are fixed.

The second was pictures. A pane now reads the kitty graphics protocol out of its own output,
decodes the image and draws it at the cell the program put it at — so chafa -f kitty works in a
pane, and so do the thumbnails ytfzf -t puts beside its list. CleeCode draws them itself rather
than forwarding the escapes, which means real pixels where the host terminal has a protocol,
coloured half-blocks where it has none, and over ssh either way. A picture goes when the text
it was printed among scrolls past, when the screen is cleared, or when something is written over
the cells it covers — which is what a preview pane scrolling its list does.

It is for thumbnails, not film: past eight pictures a second a pane stops decoding and says so,
because mpv --vo=kitty is megabytes a second and no pane can keep up. For video, open a
terminal window of its own.

A pane stops claiming to be a terminal it is not. TERM_PROGRAM, KITTY_WINDOW_ID,
WEZTERM_PANE, ITERM_SESSION_ID and their like are inherited from the terminal CleeCode is
displayed in, and inside a pane every one of them is false — which is the whole reason
mpv --vo=kitty in a pane could be heard and not seen, and why chafa left to itself chose a
graphics protocol and printed a megabyte into a blank pane. They are removed. CLEECODE=1 is set
instead, and is documented as the name to test for in an rc file or a script. A pane also answers
the three size questions — CSI 18 t, CSI 16 t, CSI 14 t — so a program turning pixels into
cells no longer has to wait for a timeout and then guess square cells.

Agents can drive your terminals. Three new MCP tools: terminals lists your shells with
their tab names, open_terminal opens one with a name on it so a long-running job gets a
window you can find again, and run_command types a line into one of them and runs it — or
leaves it at the prompt for you to read and press Enter on yourself. Both waiting tools tell the
agent what actually happened, so it cannot believe it started a server that never started. A
shell that is busy is refused rather than typed into, and an agent's own shell is never on the
list.

Menus read as menus. The keyboard shortcut beside a menu entry now sits one tone back from
the entry itself. At the same weight the whole dropdown was one undifferentiated band of text; a
shortcut is a reminder, and the thing you opened the menu to find should be the thing you see. A
setting's value in that same column keeps its weight, because that one is what you came to
read.

What's new in 0.27.1

Follow mode takes the view to what arrived. A file you already had open, rewritten from
outside while you were reading somewhere else in it, lit the lines that changed and left them
where nobody was looking — a light switched on in a room you are not in. Now it goes to the first
of them. The lines were never the hard part: a reload already works out which ones arrived, by
comparing the text leaving with the text coming in, and that is where the green line numbers come
from. Nothing has to be asked of git.

It is the cursor that moves rather than the view alone, because the view would be dragged
straight back to wherever the cursor still was — and because it is already what an agent's
edit_buffer does when it changes a buffer through the front door. A change that arrived through
the filesystem instead is the same event from the other side. Nothing is lost by moving it: a
buffer with unsaved edits is never reloaded in the first place. With follow mode off the lines
still light up and nothing moves.

What's new in 0.27.0

The sidebar knows where your shell is. Under the project tree there is now a second half,
listing the folder the terminal you were last typing in is sitting in — the ls you would
otherwise keep typing, and before that the only way to see where a shell is at all without asking
it. It follows every cd on its own: a shell that emits OSC 7 has already said where it is, and
one that says nothing is asked of the process table instead — which is not the exotic case but
the ordinary one, since the block macOS ships for zsh and bash only sends it inside Terminal.app.
Inside ssh the half stays put, because the folder being announced is on another machine.

Enter on a folder does not walk the listing on its own: it types the cd at that shell's prompt
and moves once the shell says it has, so the two can never end up in different folders. Not into a
shell that is running something, though — at a prompt that line is a command, inside vim it is
four characters in somebody's buffer.

The project tree above never moves for any of this. Right-click offers Show in the tree, which
opens the rows down to a folder and leaves the project root exactly where it is, beside Open as
project
, which moves the root with everything that implies — two rows, always both, so the
heavier of the two never arrives unannounced. View › Shell pane puts the half away and leaves
its name on the sidebar's bottom border to bring it back; its top border is a seam you can drag.

Check for updates, under the CleeCode menu. The version check has always run on its own —
six seconds after startup, once a day, once per version, never on a build from source — and all
of that restraint left nowhere to ask. This is the asking: it goes now, skips the rules that
belong to the notice rather than to you, and always answers, which the quiet one deliberately
does not. The answer arrives in a dialog of its own, saying so while it is still out asking, and
"could not reach GitHub" is kept apart from "nothing is newer" — those are different facts, and
reporting the second for the first is how a machine that cannot see tells you the road is clear.

A wrapped pane scrolls far enough to show the cursor. With word wrap on, the view was moved
by counting whole lines while the screen was counting rows, so a line twice the pane's width
counted once and took two — and the line the view was moving for ended up just past the bottom
edge. A change made by an agent could arrive highlighted and invisible: the view did scroll, only
not far enough, and from the outside those look the same.

What's new in 0.26.3

.. leads somewhere again. A session started as clee . — which is how you open the folder
you are standing in, and how the launcher and every shell alias open one — arrived at a project
that could not be left: the drawer showed its .. row, and following it emptied the tree and took
the row away with it, so the sidebar sat blank with no way back into the folder. A root spelled
relatively is the right folder under a name that cannot say what is above it, and the parent of
. is not a directory at all. The folder typed on the command line is now resolved once, where it
is decided, so everything built on it — the tree's way up, git, the project settings, the root a
workspace writes down — is given a path that can be climbed. The same goes for clee src and any
other relative name. And the .. row is now only drawn where it leads somewhere, whoever handed
the tree its root.

What's new in 0.26.2

A workspace can be opened where you are standing. A saved workspace remembers the project
it was saved in, and clee -w work still goes back to it — that is what makes a workspace a
way to return to a project. What was missing was the other half: clee -w work . now opens
that set-up here, in the directory you typed the command in. The shape comes over — the
frames, the terminal windows and each shell's startup command, the agent drawer — and the
saved project's files stay behind, because they are files in a folder you are not in. The
directory can go in either position: clee . -w work is the same request. Until now the path
was only read as the first argument, so anything typed alongside a flag was silently ignored
and the workspace's own root always won.

What's new in 0.26.1

Menus wear the carousel. The row under the cursor — in the bar's dropdowns, the
right-click menu, the theme picker, Extras and the run menu — is now painted with one of the
six stripes the agent drawer's handle alrea...

Read more