Skip to content

Sonny: a haiku from the sky's busiest agent (sky design, step 6) - #530

Merged
lydakis merged 60 commits into
mainfrom
claude/project-thread-hqb8h7
Oct 31, 2026
Merged

lydakis merged 60 commits into
mainfrom
claude/project-thread-hqb8h7

Conversation

@lydakis

@lydakis lydakis commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

What

Step 6 of the sky design, which George approved from the GIF. The sky's busiest agent writes a haiku.

  • Who holds the title. Busiest means the most messages and tool calls over the last 10 minutes (sky_haiku_window). The title passes only to an agent at least 50% busier (sky_haiku_margin), and only after the holder has kept it 10 minutes (sky_haiku_hold), so it doesn't flicker.
  • Who writes it. A throwaway copy of the holder writes the haiku. The copy is allowed no tools, and it folds into its maker on the sky like any other copy (Sonny: the sky fills the pane (sky design) #524).
  • How it shows. It streams in a word at a time. With the log beside the sky, it sits on top of the quiet log. Stacked or in zen, it sits at the sky's top right. The words are faint, then muted, and the signature is faint, as in the visual system. Each haiku lives an hour from when it was written.
  • Limits and sharing. sky_haikus caps it at 8 a day, and the rule is re-read from config, so /config turns haikus off or back on in an open sky. Haikus are kept per daemon in ~/.agent/sonny/haiku.json, so every open sky shows the same one and a second sky doesn't write its own. The file is shared under a lock, a claim counts only once it's saved, and a finished haiku is kept even if its pane has closed. All of this file work runs off the drawing thread.
  • All four settings are in [sonny] and in /config.

README and FEATURES are updated, and the GIF uses generic names.

a haiku streaming in on /sky

Checks

cargo fmt --all --check, cargo clippy -p sonny -p agent-client --all-targets -D warnings, and cargo test -p sonny -p agent-client all pass locally (755 sonny tests).

🤖 Generated with Claude Code

claude added 30 commits October 31, 2026 00:08
… profile in the footer, reply ↩

The composer sits on the tinted band the person's messages use, from the
row above it down, with a rule in its place without colour. Commons posts
name their model as people say it (Opus 5.5, GPT 6.1 Sol), with provider,
region and vendor prefixes left off. The footer names the profile when it
isn't the seat's own. A message under the mouse shows ↩ in place of its
bullet, and a click quotes it into the composer; margin notes have their
own ↩, and /reply picks an older reply.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
…t shows

A reply that opens with a heading has no bullet, so its first row is now
marked when it is written and the reply mark finds it; a note brought in
from a task quotes what it showed when last read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
…w reads

The composer's band now has a row above and below the words, and so do your
sent messages, so what you write looks as it will once sent and the words sit
in the middle of the band, not on its bottom edge. The footer keeps to the
conversation's column, its right edge where the band's is.

Dim over a hue (the footer's branch and agent name, a task's name in a quiet
row) fell under 3:1 in many themes. The muted look now draws a hue on a dim
row at full strength and keeps the words round it muted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
Magenta means you and blue means agents everywhere else in Sonny, but the
sky drew agent-to-agent sparks magenta, your own sparks in plain bold, and
the commons ripple green (worked). Now:

- what goes to or from you is magenta, "you" in the middle too;
- what goes between agents is blue;
- a commons post ripples in the text's own colour: the ring says it;
- who made whom and who talked are muted, in the measured gray that still
  reads in every theme, so the stars and what happens now stand out;
- names stay in the text's colour: every label on the sky is a name, so
  blue would say nothing more;
- `sonny sky` on its own asks the terminal for its theme and draws through
  the same look, so its muted gray and NO_COLOR match the conversation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
# Conflicts:
#	sonny/FEATURES.md
Hues on the sky come down to yellow for what needs you and red for what
failed, plus the cyan tool twinkle; magenta and blue leave it. Structure
takes a new faint weight, measured at about 2.2:1 against the theme's
background, so lines read without competing with marks and names.

A pair that talked in the last minute shows a faint trail that fades. A
chat log sits beside the sky when the pane is wide, newest at the bottom,
fading as it rises, with asks, approvals waiting and failures in their
colour; `?` swaps it for the legend and a few numbers (projects, leads,
agents, messages and tool calls a minute and this hour, the busiest
pair). Working stars breathe slowly, each on its own phase; idle ones
rest muted. `z` is zen: the sky alone, with only what needs you or
failed named. The commons ripple is smaller and the glow halo is gone.
Names keep a blank cell from each other and from other agents' stars.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
The list sized itself for one log line under its blank, but up to five
were drawn, so a full list pushed the newest (an approval waiting, a
failure) off the bottom.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
Tab swaps lenses on the same agents and events: live, the default; talk,
an hour of trails, denser the more a pair talked, the busiest reaching
muted, where loops and storms show; models, each model in a lead's
place with its agents round its muted name. The footer names the lens
when it isn't live.

The arrows pick a star (its name reversed, as a picker's selection is)
and Enter puts it in the middle: its maker, what it made and whoever it
talked to in the last hour on the first ring, the person included, two
hops on the next. The chat log keeps only its agent's lines and the
footer says whose sky it is. Stars glide to their new places over 0.8s
so the eye keeps its bearings. Esc lets go of the pick, then the centre,
then closes. `sonny sky --center NAME` starts centred, by name, label
or project.

The layout is one radial function now, used by the tree, the models and
the rings by hops. The keys live in `View::press`, shared by the pane
and `sonny sky`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
The sky is an ellipse that fills its canvas, two dots in from the edges,
at most twice as wide as high, so a wide pane has no empty sides; rings
stay round. Projects keep their arms in the order they started (the
daemon's ids), a lead first, so a new project takes the next place
rather than reshuffling the rest, and agents within an arm likewise.
Each arm is as wide as the square root of what is under it, so one big
project can't squeeze the others to nothing. Layout changes glide over
a third of a second.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
A message landing flashes round its star again, shrinking as it fades.
Each landing adds to the agent's heat, which halves as a glow does, and
the flash's radius follows the log of it, bounded, so an agent being
messaged a lot flashes bigger. A commons ripple spreads as far as its
thread reaches: how many other agents have read it or posted in it,
from the commons' own record. A post to an empty board stays small.
Both stay faint and unhued.

Labels keep a blank cell from their own star too, whichever cells it
covers, and the frame-time benchmark is an ignored test for step 4.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
Its work is on main as 21603c6; this joins the branch's old history so
the push fast-forwards.
The landing flash is sized in braille dots, as the star it rings is,
whatever the pane: one message's ring stands six dots off its star, and
its area grows with the heat, √2 wider each doubling (6, 8.5, 12, 17
dots). Cooling, it fades where it is instead of closing on the star.

A centred sky lays out again when a pair starts or stops talking, so
its rings stay hops through the last hour. An agent made while the sky
is open keeps its model. Too small for the sky, the arrows walk the
list, which shows the pick reversed and keeps it in view.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
With thousands of agents only the interesting are stars: who needs the
person, failed, works, glows or leads, scored by interest (Furnas's
degree of interest), as many as the pane has room for. The rest are a
faint dot each, so a cloud's density says its size; a crowd of leaves
under one agent spreads inward into a cloud. Only the biggest clouds
carry a count, at most half as many as the names.

Names keep a blank row from each other, sit beside, over or under their
star, and fill the budget in turn when one has no room; the leads of
the biggest projects are named first. The newest dozen sparks fly.

Frame times (release): 300 agents 0.9 ms, 3,000 1.6 ms, 10,000 3.2 ms
a frame (was 6.6 ms at 10,000).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
A `configured` event says only which settings changed, so when the
model is among them the sky reads the agent again and moves it to its
model's group.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
A message landing bursts round its star and shrinks into it as it
fades, halving every 0.9 s, as it did in 0.7.0, in today's muted then
faint ink. Its size is in braille dots, whatever the pane: one message
bursts as far as 0.7.0's did (5 dots), each doubling of messages at
once √2 wider (its area grows as the heat does), up to 0.7.0's commons
ripple at its widest (24 dots, about two dozen at once).

The chat log beside the sky stops at 12 lines at its foot, three plain,
six muted and three faint, ending where its fade does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
Every event now carries `written_ms`, the Unix ms it joined the store, as
history nodes do since #477; events from before schema 68 have none.
`follow` takes `since_ms` instead of `after` and starts from the first
event written at or after it, found by halving the cursor range (cursors
and times rise together), a few point reads however many events are kept.
It is the `usage` op's word for a start time. `agent follow --since 1h`
sends it; `--since` conflicts with `--after`.

This is what a client needs to replay a stretch of the past without
knowing its cursors: step 5 of the sky design, approved by George.

Schema 68, protocol 28.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
An event is written now or, should the clock have gone back, when the
event before it was, so times rise with cursors and a follow from a time
skips nothing (as a log's time index keeps them). The binary search reads
its bounds with one subquery each, which SQLite answers from the key's
ends instead of scanning. `agent follow --since` takes its time before the
snapshot of the running turn, so a turn ending in between is replayed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
…hour, dot agents, bursts both ends, a circle, m for models

Every pair that has talked keeps a curve again, past turns and live, the
last 96 pairs at 0.7.0's weight, denser and brighter the more the pair
talked this hour (past turns counted by the time the daemon wrote them).
One view: the talk and models lenses go; m colours each agent by its
model in place, the footer naming the colours. An agent at rest is a
single dot, a breathing block while it works. Sparks and bursts are
coloured where 0.7.0 coloured them, in the visual system's hues: blue
between agents, magenta to or from the person, both ends bursting, sized
by heat. The sky is a circle again. A name keeps a clear cell either
side so the denser web never runs into it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
`r` in the sky, or `sonny sky --replay [WHEN]`, plays back what happened
from an hour ago, or from WHEN (2h, 30m, 1d ago, or a time such as 02:10).
The sky starts from who is here now, less those made since, all idle, and
the daemon's events from then on play over it as they happened, eight
times as fast: the replay follows `*` from `since_ms` and plays each event
once its written time comes. Space pauses, the left and right arrows step
back and on, [ and ] halve and double the speed (1 to 512 times), and Esc
goes back to live. The footer becomes the replay's line, a bar from where
it started to now, and the chat log says when each line happened.

A jump plays every event it passes, each stamped as long ago as it would
have been had it played, so trails and counts read as playing would and
its sparks have long landed; a spark now lands when its flight ended, not
on the frame that noticed. Stepping back starts again from the start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T18:46:32.344567Z c95c5a2 New commits
🔒 Security Review ⚠️ Failed 2026-10-31T17:00:25.617494Z
We couldn’t complete this review. Comment @codex security review to try again.
28b7ab4 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d9f8aa7129

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/sky.rs Resolved
Comment thread sonny/src/sky.rs Resolved
Comment thread sonny/src/sky.rs Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 50953836fb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/sky.rs Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3bd6900ba7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/haiku.rs Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 721001cb5b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/sky.rs Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd1f6c1159

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/haiku.rs Resolved
Comment thread sonny/src/sky.rs Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 28b7ab4d02

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/sky.rs Resolved
Comment thread sonny/src/sky.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b69b2585a8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/sky.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ee961fa3c1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/sky.rs Resolved
Comment thread sonny/src/sky.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e006e80d17

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/haiku.rs Resolved
A busiest agent named near the daemon's limit made the copy's name, or
its submit's request id, invalid after the day's claim was counted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
…-hqb8h7

# Conflicts:
#	client/src/config.rs
#	sonny/FEATURES.md
#	sonny/src/config.rs
@lydakis
lydakis merged commit befadac into main Oct 31, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants