Skip to content

feat(agents): agy bots get images, context and a model picker - #245

Merged
httpsphl merged 2 commits into
mainfrom
feat/agy-model-context
Oct 10, 2026
Merged

httpsphl merged 2 commits into
mainfrom
feat/agy-model-context

Conversation

@httpsphl

@httpsphl httpsphl commented Oct 9, 2026

Copy link
Copy Markdown
Owner

On top of #244 (its commit shows until that merges). Three things an agy bot was missing, found by using it:

Images. agy's stream input accepts text blocks only; an image block failed the whole turn. The turn now goes as text, and the image reaches the bot as the path the courier already lists; the bot opens it with view_file (checked with the real agy: it answered the colour of a test PNG).

Context. agy has no usage request. The usage of the last response (input + cache_read + output) is what the conversation holds, with the window taken from the model family (gemini 1M, claude 200k, others 128k) and the panel saying it is an estimate. No Compact for these bots.

Model. bots.agent_model (migration 0027), bots.setAgentModel, and agents.models (runs agy models, cached 10 minutes). The picker under the message box lists the agent's models; the effort is part of each id/name, so there is no separate effort picker. Passed as --model.

Tests: agy_bot.rs (model to the next process, context from usage), agentBot.test.tsx, unit tests for the turn encoding and the model list; fmt, clippy -D warnings, cargo test --workspace and pnpm check pass.

system.status lists enabledAgents. The new-bot dialog offers the agent when
there is more than one, with the experimental warning and no model choice for
non-Claude agents; the model, effort and context meter under the message box
show only for Claude bots.
agy's input takes text blocks only, so images go as the saved file's path
(the bot opens it with view_file). The usage of its last response sizes the
context meter, estimated by model family, without Compact. bots.agent_model
(migration 0027), bots.setAgentModel and agents.models; the app lists the
agent's models under the message box, whose names carry the effort.
@httpsphl
httpsphl merged commit d9b8de6 into main Oct 10, 2026
4 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.

1 participant