Repository navigation
Sonny: a first run that sets itself up and says hello, and a Linux install script - #253
Conversation
- With no provider anywhere, sonny in a terminal asks for one (a ChatGPT plan, an Anthropic, OpenAI or OpenRouter key, or Bedrock with an AWS profile) and keeps it in ~/.agent/env, instead of failing. The CLI now names that failure provider_required, so Sonny reads the code, not text. - With no model, Sonny lists what the providers offer and keeps the pick as AGENT_MODEL in ~/.agent/env, instead of failing with model_required. - AGENT_MODEL (and the lookout's keys) count from ~/.agent/env as well as the shell, with the file first, as the daemon and approver see it. - The first start writes ~/.agent/models when there is none, and `agent stats` starts a daemon on a fresh install like `start` does. - install.sh fetches the latest Linux release tarball, checks its sha256, and links ~/.local/bin/sonny, for machines without Homebrew. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
Security findingsAdvisory findings (1)ℹ️ 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. |
…e file's own Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5267e02adc
ℹ️ 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".
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
…st time and an icon after Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
First-run setup keeps settings where #251 put them, as Codex does: the provider, the default model and the suggested lead and task efforts go in ~/.agent/config.toml (top-level provider and model, [sonny] lead_effort and task_effort), and only keys and AWS_PROFILE in ~/.agent/env. agent_client::config::set writes keys line by line so the person's comments stay. The daemon takes the config's provider after AGENT_PROVIDER, and a new bot the config's model after AGENT_MODEL. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 58fe4e7a1a
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
…itHub CLI is signed in The .sha256 comes from the same release as the tarball, so it only guards the download. With gh signed in, the installer also verifies the provenance the release workflow attests, as publish-homebrew does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
#271) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGErsjQZRay4MEvYNpr
The portrait was drawn only over a lead just made, and a small icon after the first; a reopened lead showed none. Now the portrait is the first thing in every lead's transcript: above the history when the newest page reaches the conversation's start, and once scrolling up has loaded back to it otherwise. A side chat has none. The icon and the ~/.agent/sonny/welcomed marker go, and the two stray screenshot pages from #253 with them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
…320) * Sonny: a first run that sets itself up, and a Linux install script - With no provider anywhere, sonny in a terminal asks for one (a ChatGPT plan, an Anthropic, OpenAI or OpenRouter key, or Bedrock with an AWS profile) and keeps it in ~/.agent/env, instead of failing. The CLI now names that failure provider_required, so Sonny reads the code, not text. - With no model, Sonny lists what the providers offer and keeps the pick as AGENT_MODEL in ~/.agent/env, instead of failing with model_required. - AGENT_MODEL (and the lookout's keys) count from ~/.agent/env as well as the shell, with the file first, as the daemon and approver see it. - The first start writes ~/.agent/models when there is none, and `agent stats` starts a daemon on a fresh install like `start` does. - install.sh fetches the latest Linux release tarball, checks its sha256, and links ~/.local/bin/sonny, for machines without Homebrew. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a first run also suggests lead and task efforts, never over the file's own Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * CLI: a missing provider exits 2, as the usage error it replaced did Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: welcome a new project with Sonny the robot, a portrait the first time and an icon after Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * install.sh: check the release workflow's build attestation when the GitHub CLI is signed in The .sha256 comes from the same release as the tarball, so it only guards the download. With gh signed in, the installer also verifies the provenance the release workflow attests, as publish-homebrew does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: the welcome heads every lead's history, as Claude Code's does The portrait was drawn only over a lead just made, and a small icon after the first; a reopened lead showed none. Now the portrait is the first thing in every lead's transcript: above the history when the newest page reaches the conversation's start, and once scrolling up has loaded back to it otherwise. A side chat has none. The icon and the ~/.agent/sonny/welcomed marker go, and the two stray screenshot pages from #253 with them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L --------- Co-authored-by: Claude <[email protected]>
…rest (#402) * Sonny: a first run that sets itself up, and a Linux install script - With no provider anywhere, sonny in a terminal asks for one (a ChatGPT plan, an Anthropic, OpenAI or OpenRouter key, or Bedrock with an AWS profile) and keeps it in ~/.agent/env, instead of failing. The CLI now names that failure provider_required, so Sonny reads the code, not text. - With no model, Sonny lists what the providers offer and keeps the pick as AGENT_MODEL in ~/.agent/env, instead of failing with model_required. - AGENT_MODEL (and the lookout's keys) count from ~/.agent/env as well as the shell, with the file first, as the daemon and approver see it. - The first start writes ~/.agent/models when there is none, and `agent stats` starts a daemon on a fresh install like `start` does. - install.sh fetches the latest Linux release tarball, checks its sha256, and links ~/.local/bin/sonny, for machines without Homebrew. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a first run also suggests lead and task efforts, never over the file's own Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * CLI: a missing provider exits 2, as the usage error it replaced did Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: welcome a new project with Sonny the robot, a portrait the first time and an icon after Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * install.sh: check the release workflow's build attestation when the GitHub CLI is signed in The .sha256 comes from the same release as the tarball, so it only guards the download. With gh signed in, the installer also verifies the provenance the release workflow attests, as publish-homebrew does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: the welcome heads every lead's history, as Claude Code's does The portrait was drawn only over a lead just made, and a small icon after the first; a reopened lead showed none. Now the portrait is the first thing in every lead's transcript: above the history when the newest page reaches the conversation's start, and once scrolling up has loaded back to it otherwise. A side chat has none. The icon and the ~/.agent/sonny/welcomed marker go, and the two stray screenshot pages from #253 with them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a first run that finds what the machine has and asks only the rest Setup looks before it asks: a ChatGPT sign-in of Sonny's own or Codex's (only that there is one), the keys set in the shell or ~/.agent/env, and the AWS profiles in ~/.aws/config and ~/.aws/credentials. It offers what it found first, in a list picked with the arrow keys, and Bedrock offers the profiles by name with their regions and how they sign in. A key that is set needs no question at all. The model list comes ranked, the first marked recommended so Enter takes it: models no agent runs on (embeddings, speech, images, realtime) and dated snapshots of a listed name are left out, Bedrock's global inference profiles come first, and each row shows its name and context window. A provider that will not list says how to fix it, as aws sso login for an expired session, and Enter lists again. A new config.toml starts with comments saying what each setting does, and setup ends with what it chose and any tool agents need that is missing, with the command that installs it. sonny setup asks both again, marking what is set. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: list only the chosen provider's models from a running daemon, unset AWS_PROFILE for no profile, replace a set key, fit the picker to narrow terminals, judge fine-tuned models by their base Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: with a daemon running, a new provider, key, profile or sign-in waits for its restart instead of listing the old one's models Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a new project's fallback model is the newest bot's only on a provider the daemon runs; typed spaces stay in the picker's filter Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: offer a fresh ChatGPT sign-in when asked again; fit the picker to the terminal's height Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny FEATURES: the first run's second pass Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L --------- Co-authored-by: Claude <[email protected]>
…415) * Sonny: a first run that sets itself up, and a Linux install script - With no provider anywhere, sonny in a terminal asks for one (a ChatGPT plan, an Anthropic, OpenAI or OpenRouter key, or Bedrock with an AWS profile) and keeps it in ~/.agent/env, instead of failing. The CLI now names that failure provider_required, so Sonny reads the code, not text. - With no model, Sonny lists what the providers offer and keeps the pick as AGENT_MODEL in ~/.agent/env, instead of failing with model_required. - AGENT_MODEL (and the lookout's keys) count from ~/.agent/env as well as the shell, with the file first, as the daemon and approver see it. - The first start writes ~/.agent/models when there is none, and `agent stats` starts a daemon on a fresh install like `start` does. - install.sh fetches the latest Linux release tarball, checks its sha256, and links ~/.local/bin/sonny, for machines without Homebrew. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a first run also suggests lead and task efforts, never over the file's own Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * CLI: a missing provider exits 2, as the usage error it replaced did Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: welcome a new project with Sonny the robot, a portrait the first time and an icon after Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * install.sh: check the release workflow's build attestation when the GitHub CLI is signed in The .sha256 comes from the same release as the tarball, so it only guards the download. With gh signed in, the installer also verifies the provenance the release workflow attests, as publish-homebrew does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: the welcome heads every lead's history, as Claude Code's does The portrait was drawn only over a lead just made, and a small icon after the first; a reopened lead showed none. Now the portrait is the first thing in every lead's transcript: above the history when the newest page reaches the conversation's start, and once scrolling up has loaded back to it otherwise. A side chat has none. The icon and the ~/.agent/sonny/welcomed marker go, and the two stray screenshot pages from #253 with them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a first run that finds what the machine has and asks only the rest Setup looks before it asks: a ChatGPT sign-in of Sonny's own or Codex's (only that there is one), the keys set in the shell or ~/.agent/env, and the AWS profiles in ~/.aws/config and ~/.aws/credentials. It offers what it found first, in a list picked with the arrow keys, and Bedrock offers the profiles by name with their regions and how they sign in. A key that is set needs no question at all. The model list comes ranked, the first marked recommended so Enter takes it: models no agent runs on (embeddings, speech, images, realtime) and dated snapshots of a listed name are left out, Bedrock's global inference profiles come first, and each row shows its name and context window. A provider that will not list says how to fix it, as aws sso login for an expired session, and Enter lists again. A new config.toml starts with comments saying what each setting does, and setup ends with what it chose and any tool agents need that is missing, with the command that installs it. sonny setup asks both again, marking what is set. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: list only the chosen provider's models from a running daemon, unset AWS_PROFILE for no profile, replace a set key, fit the picker to narrow terminals, judge fine-tuned models by their base Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: with a daemon running, a new provider, key, profile or sign-in waits for its restart instead of listing the old one's models Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a new project's fallback model is the newest bot's only on a provider the daemon runs; typed spaces stay in the picker's filter Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: offer a fresh ChatGPT sign-in when asked again; fit the picker to the terminal's height Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny FEATURES: the first run's second pass Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: bring MCP servers from Claude Code, Codex, OpenCode and Kiro sonny mcp import [--yes | --json], also offered by first-run setup and sonny setup: the servers other agents have, at home and in this folder, ticked to bring in. Secrets written into their entries go to ~/.agent/env, which stdio servers are now started with. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny FEATURES: name #415 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny MCP import: scrub Codex literal headers, strip JSONC comments before trailing commas, give a clashing bearer token a free variable Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny MCP import: a secret the shell already gives another value stays with its server Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny MCP import: a folder's own servers start unticked and --yes leaves them Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L --------- Co-authored-by: Claude <[email protected]>
…ew setup once (#420) * Sonny: a first run that sets itself up, and a Linux install script - With no provider anywhere, sonny in a terminal asks for one (a ChatGPT plan, an Anthropic, OpenAI or OpenRouter key, or Bedrock with an AWS profile) and keeps it in ~/.agent/env, instead of failing. The CLI now names that failure provider_required, so Sonny reads the code, not text. - With no model, Sonny lists what the providers offer and keeps the pick as AGENT_MODEL in ~/.agent/env, instead of failing with model_required. - AGENT_MODEL (and the lookout's keys) count from ~/.agent/env as well as the shell, with the file first, as the daemon and approver see it. - The first start writes ~/.agent/models when there is none, and `agent stats` starts a daemon on a fresh install like `start` does. - install.sh fetches the latest Linux release tarball, checks its sha256, and links ~/.local/bin/sonny, for machines without Homebrew. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a first run also suggests lead and task efforts, never over the file's own Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * CLI: a missing provider exits 2, as the usage error it replaced did Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: welcome a new project with Sonny the robot, a portrait the first time and an icon after Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * install.sh: check the release workflow's build attestation when the GitHub CLI is signed in The .sha256 comes from the same release as the tarball, so it only guards the download. With gh signed in, the installer also verifies the provenance the release workflow attests, as publish-homebrew does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: the welcome heads every lead's history, as Claude Code's does The portrait was drawn only over a lead just made, and a small icon after the first; a reopened lead showed none. Now the portrait is the first thing in every lead's transcript: above the history when the newest page reaches the conversation's start, and once scrolling up has loaded back to it otherwise. A side chat has none. The icon and the ~/.agent/sonny/welcomed marker go, and the two stray screenshot pages from #253 with them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a first run that finds what the machine has and asks only the rest Setup looks before it asks: a ChatGPT sign-in of Sonny's own or Codex's (only that there is one), the keys set in the shell or ~/.agent/env, and the AWS profiles in ~/.aws/config and ~/.aws/credentials. It offers what it found first, in a list picked with the arrow keys, and Bedrock offers the profiles by name with their regions and how they sign in. A key that is set needs no question at all. The model list comes ranked, the first marked recommended so Enter takes it: models no agent runs on (embeddings, speech, images, realtime) and dated snapshots of a listed name are left out, Bedrock's global inference profiles come first, and each row shows its name and context window. A provider that will not list says how to fix it, as aws sso login for an expired session, and Enter lists again. A new config.toml starts with comments saying what each setting does, and setup ends with what it chose and any tool agents need that is missing, with the command that installs it. sonny setup asks both again, marking what is set. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: list only the chosen provider's models from a running daemon, unset AWS_PROFILE for no profile, replace a set key, fit the picker to narrow terminals, judge fine-tuned models by their base Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: with a daemon running, a new provider, key, profile or sign-in waits for its restart instead of listing the old one's models Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a new project's fallback model is the newest bot's only on a provider the daemon runs; typed spaces stay in the picker's filter Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: offer a fresh ChatGPT sign-in when asked again; fit the picker to the terminal's height Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny FEATURES: the first run's second pass Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: bring MCP servers from Claude Code, Codex, OpenCode and Kiro sonny mcp import [--yes | --json], also offered by first-run setup and sonny setup: the servers other agents have, at home and in this folder, ticked to bring in. Secrets written into their entries go to ~/.agent/env, which stdio servers are now started with. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny FEATURES: name #415 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny MCP import: scrub Codex literal headers, strip JSONC comments before trailing commas, give a clashing bearer token a free variable Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny MCP import: a secret the shell already gives another value stays with its server Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny MCP import: a folder's own servers start unticked and --yes leaves them Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: after an upgrade, the first lead tells what's new and offers new setup once Sonny keeps its feature register as the person last heard of it and, when this Sonny's differs, the note it already sends the first lead after an upgrade lists the new and changed rows. Setup steps an upgrade brings carry ids and done checks; each not done is offered once and noted in ~/.agent/sonny/offered, as is one setup offers itself. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny FEATURES: name #420 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny upgrade note: an entry another Sonny claimed is not queued again before it tells Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup steps: a server Sonny cannot bring leaves the MCP import done Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L --------- Co-authored-by: Claude <[email protected]>
…nother agent, and the backup offer (#428) * Sonny: a first run that sets itself up, and a Linux install script - With no provider anywhere, sonny in a terminal asks for one (a ChatGPT plan, an Anthropic, OpenAI or OpenRouter key, or Bedrock with an AWS profile) and keeps it in ~/.agent/env, instead of failing. The CLI now names that failure provider_required, so Sonny reads the code, not text. - With no model, Sonny lists what the providers offer and keeps the pick as AGENT_MODEL in ~/.agent/env, instead of failing with model_required. - AGENT_MODEL (and the lookout's keys) count from ~/.agent/env as well as the shell, with the file first, as the daemon and approver see it. - The first start writes ~/.agent/models when there is none, and `agent stats` starts a daemon on a fresh install like `start` does. - install.sh fetches the latest Linux release tarball, checks its sha256, and links ~/.local/bin/sonny, for machines without Homebrew. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a first run also suggests lead and task efforts, never over the file's own Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * CLI: a missing provider exits 2, as the usage error it replaced did Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: welcome a new project with Sonny the robot, a portrait the first time and an icon after Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * install.sh: check the release workflow's build attestation when the GitHub CLI is signed in The .sha256 comes from the same release as the tarball, so it only guards the download. With gh signed in, the installer also verifies the provenance the release workflow attests, as publish-homebrew does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: the welcome heads every lead's history, as Claude Code's does The portrait was drawn only over a lead just made, and a small icon after the first; a reopened lead showed none. Now the portrait is the first thing in every lead's transcript: above the history when the newest page reaches the conversation's start, and once scrolling up has loaded back to it otherwise. A side chat has none. The icon and the ~/.agent/sonny/welcomed marker go, and the two stray screenshot pages from #253 with them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a first run that finds what the machine has and asks only the rest Setup looks before it asks: a ChatGPT sign-in of Sonny's own or Codex's (only that there is one), the keys set in the shell or ~/.agent/env, and the AWS profiles in ~/.aws/config and ~/.aws/credentials. It offers what it found first, in a list picked with the arrow keys, and Bedrock offers the profiles by name with their regions and how they sign in. A key that is set needs no question at all. The model list comes ranked, the first marked recommended so Enter takes it: models no agent runs on (embeddings, speech, images, realtime) and dated snapshots of a listed name are left out, Bedrock's global inference profiles come first, and each row shows its name and context window. A provider that will not list says how to fix it, as aws sso login for an expired session, and Enter lists again. A new config.toml starts with comments saying what each setting does, and setup ends with what it chose and any tool agents need that is missing, with the command that installs it. sonny setup asks both again, marking what is set. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: list only the chosen provider's models from a running daemon, unset AWS_PROFILE for no profile, replace a set key, fit the picker to narrow terminals, judge fine-tuned models by their base Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: with a daemon running, a new provider, key, profile or sign-in waits for its restart instead of listing the old one's models Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: a new project's fallback model is the newest bot's only on a provider the daemon runs; typed spaces stay in the picker's filter Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: offer a fresh ChatGPT sign-in when asked again; fit the picker to the terminal's height Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny FEATURES: the first run's second pass Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: bring MCP servers from Claude Code, Codex, OpenCode and Kiro sonny mcp import [--yes | --json], also offered by first-run setup and sonny setup: the servers other agents have, at home and in this folder, ticked to bring in. Secrets written into their entries go to ~/.agent/env, which stdio servers are now started with. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny FEATURES: name #415 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny MCP import: scrub Codex literal headers, strip JSONC comments before trailing commas, give a clashing bearer token a free variable Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny MCP import: a secret the shell already gives another value stays with its server Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny MCP import: a folder's own servers start unticked and --yes leaves them Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny: after an upgrade, the first lead tells what's new and offers new setup once Sonny keeps its feature register as the person last heard of it and, when this Sonny's differs, the note it already sends the first lead after an upgrade lists the new and changed rows. Setup steps an upgrade brings carry ids and done checks; each not done is offered once and noted in ~/.agent/sonny/offered, as is one setup offers itself. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny FEATURES: name #420 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny upgrade note: an entry another Sonny claimed is not queued again before it tells Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup steps: a server Sonny cannot bring leaves the MCP import done Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: flags and --json, the sonny-setup skill, and a hand-off to another agent `sonny setup` with flags sets the provider (a key set or on stdin, an AWS profile), the model and MCP servers to bring without asking, and --json prints what the machine has and what is set. The sonny-setup skill tells any agent how. With no way to reach a model ready, first-run setup offers each of Claude Code, Codex, OpenCode or Kiro on PATH to set Sonny up with the person, in a session of its own, and goes on once a provider is set. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: offer the git backup last in first-run setup and once after an upgrade Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * FEATURES: #428 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: --key-stdin at a terminal reads the key without echo Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: the backup step names no host; the lead makes the repo where the machine keeps its own Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup flags: --json keeps stdout for JSON, another provider clears its model, --import-mcp reads only the named agents Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: the masked key prompt goes to stderr, so --json stdout stays one value Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L * Sonny setup: a backup restored at first run keeps the provider and model just chosen Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L --------- Co-authored-by: Claude <[email protected]>
This comes from an install report on ARM Linux, where Homebrew doesn't run. The person got Sonny working, but only by reading the source. This PR fixes each place where they had to do that, and gives a new project a welcome.
Settings and keys are kept the way Codex keeps them, following #251. Settings go in
~/.agent/config.tomland keys go in~/.agent/env(mode 600).First run, no provider
sonnyin a terminal now asks how agents reach a model. It used to fail withno provider: pass --provider .... Codex and Claude Code do the same thing by asking for a sign-in before the first turn.agent login chatgpt.~/.agent/env.chatgptorbedrock) is written as the top-levelproviderinconfig.toml. The daemon now takesconfig.toml'sproviderwhenAGENT_PROVIDERisn't set, and falls back to key variables after that.The CLI now names this failure
provider_required. It wasusage, and it still exits 2, so Sonny matches on the code and not the text. Outside a terminal Sonny still fails, and the message says to run it in one.First run, no model
Sonny looks for a model in this order: the project file, the role,
AGENT_MODEL,config.toml'smodel, then the newest agent. When none of them gives one, Sonny lists what the providers offer. You can type part of a name to narrow the list, a number to pick, or a wholePROVIDER/MODELeven if it isn't listed. The pick is kept asmodelinconfig.toml. This replacesmodel_required: no agent has run yet.A new bot from the CLI (
agent run --new,sonny --new) also falls back toconfig.toml'smodelafterAGENT_MODEL.AGENT_MODELitself stays a runtime variable: the daemon sets it for each bot's tools, and that is how tasks inherit their model.Either step also suggests
[sonny] lead_effort = "medium"andtask_effort = "high", which are #251's keys and George's picks. They are written only when the file doesn't already set them.agent_client::config::setwrites line by line, so the person's comments and ordering stay. It writes nothing that the reader would refuse.A welcome
A new project's empty transcript opens with Sonny, the robot from I, Robot that the client is named after. It's drawn in half blocks from shapes.
~/.agent/sonny/welcomed.Keys in
~/.agent/envagent_client::env_file::varreturns a key's value from the file first and from the shell second, which is how child processes see it. The lookout uses it for its Decisions key.env_file::setreplaces only the keys it's given and keeps every other line.Quiet fresh install
~/.agent/modelsin the background when the file doesn't exist. It holds whatagent models --discoverwrites, so an agent'sagent modelsisn't empty. If a provider won't list its models, nothing is written and the next start tries again. The atomic write moved intoagent_client::models::install, which the CLI shares.agent statsstarts a daemon the waystartdoes, so it answers on a fresh install. It used to givestore_not_foundthere. Commands on bots still never create a store.Linux without Homebrew
install.shdoes the following:sonny-VERSION-linux-ARCH.tar.gzand checks it against the release's.sha256.~/.local/opt/sonny-VERSION-linux-ARCH.~/.local/opt/sonnyand~/.local/bin/sonnyto it.PREFIXandSONNY_VERSIONoverride the location and version.It's documented in README and sonny/README. I ran it against v0.4.1 on x86_64, and both
sonny --versionandsonny agent --versionanswered from the install.Testing
config::set(replaces a key in place, adds keys at the end of their table or the top level, keeps comments, refuses unknown keys).AGENT_PROVIDER, then the config, then keys).env_file::set.cargo test --workspacepasses, except three task tests that need FUSE (fusermount3). They fail the same way on main in this container, and CI installs fuse3.test_cli(49 tests) passes against a release build. It covers: a fresh install namesprovider_requiredwith exit 2,statsstarts a daemon and makes its store, andinspectstill givesstore_not_found.devwroteprovider,modeland the two efforts toconfig.toml. OnlyAWS_PROFILEwent toenv(0600). The daemon started with--provider bedrockfrom the config, and the lead opened at medium.providerinconfig.toml, the list, narrowing and pick all worked, andmodelwas kept.cargo clippy --workspace --all-targets -D warningsandcargo fmt --checkare clean.🤖 Generated with Claude Code