Repository navigation
Sonny: offer a merge when an upgrade meets an edited skill or role - #357
Conversation
A project's profile/threads_profile, else the config's [sonny] lead_profile/task_profile, name the profile a lead runs as and the one every other agent is told, with lead and task the defaults. Any profile can build on another with extends (its own name builds on the file it shadows, down to the one Sonny ships) and carry skills whole with skills, Claude Code's subagent key. Variants of lead or task are not offered as peer roles. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEEJYxYSGKW4TF3BrX
…ants of variants Address the first Codex round on #296: a profile chain and the skills it carries read no more than still fits in a bot's instructions; a carried skill with an unclosed --- head fails like a profile's; a profile that extends a lead variant is hidden from the index too; and --profile naming the task profile keeps its model and tools while its body is told once. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEEJYxYSGKW4TF3BrX
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEEJYxYSGKW4TF3BrX
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEEJYxYSGKW4TF3BrX
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEEJYxYSGKW4TF3BrX
A lead runs as it only when its project sets profile = "superlead". It extends lead: the folder holds other projects, so the lead subscribes to their leads and routes between them as between tasks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEEJYxYSGKW4TF3BrX
Carried from lead.md (#295 drops it there): the folder's projects' leads report to it, and it hears them through one subscription naming each lead exactly with updates on. Routing itself is the lead's. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEEJYxYSGKW4TF3BrX
…d skill or role Sonny never writes over a skill or role (lead.md, task.md) the person edited, so an edited one quietly stopped getting Sonny's changes. Now Sonny sets its new text beside the edit, in ~/.agent/sonny/upgrades, keeps whole what it last wrote in ~/.agent/sonny/shipped (what an edit started from), and queues a note to the first bot it opens after the upgrade. The bot tells the person and offers to bring Sonny's changes into their copy. Each new text is told once; the transcript shows the note as one quiet row. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEEJYxYSGKW4TF3BrX
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3bfadaa22c
ℹ️ 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".
…one bot tells them Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEEJYxYSGKW4TF3BrX
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 82394652b2
ℹ️ 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".
…o a fresh folder Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEEJYxYSGKW4TF3BrX
What
Sonny never writes over a skill or role (
lead.md,task.md,superlead.md) that the person edited. Before this PR, an edited file just stopped getting Sonny's changes, and nothing said so. Now:~/.agent/sonny/upgrades/agents/NAME.mdorupgrades/skills/NAME/. Sonny also adds an empty file namedKIND NAMEto theupgrades/pending/folder.~/.agent/sonny/shipped. That copy is what an edit started from, so a merge can tell the person's changes apart from Sonny's.upgrades/claims/PID. So when several Sonnys start at once, only one of them tells its bot.pending/. A claim older than 2 minutes, left by a Sonny that stopped, is taken back.delivery: "queue",origin: "sonny.upgrade").↳ Sonny upgraded · lead role edited · plan skill edited.This is client-only. The daemon is unchanged.
Tests
sonnys_new_text_goes_beside_an_edit_for_the_next_bot_to_offercovers:sonnys_upgrade_note_reads_as_one_quiet_rowcovers the transcript row.cargo test -p sonnypasses: 395 passed, 1 ignored. Clippy is clean.No live run: the submit follows the same path as the lookout's notes, but it hasn't been exercised against a real daemon with a model here.
🤖 Generated with Claude Code