feat(nano): vision_analyze as a conditional seventh tool (PR 11) - #890
Merged
Conversation
…onfig) The TB 2.1 gap analysis attributed 4-5 of pi's exclusive wins to its TB extension's vision_analyze/websearch (16 vision calls across chess-best-move, video-processing, extract-moves-from-video, path-tracing; nano's text-only model tried PIL pixel-reading 12x on the chess board and failed). pi ships that tool precisely because text-only main models need eyes; clawcodex has the identically-named counterpart. Nano now registers vision_analyze IFF a vision model is explicitly configured (the tool's own is_enabled gate — global config vision.enabled, seeded by the adapter's --ak vision=provider:model). Unconfigured nano stays exactly six tools. Conditional REGISTRATION rather than registered-but-disabled is load-bearing: a disabled registered tool re-enters query()'s deferred-tools list and would resurrect the <available-deferred-tools> message-0 block, busting byte-stability. The prompt lists the tool only when registered (+178 est. tokens, only when configured). Tests: hermetic autouse vision-off fixture (the dev machine's real config had vision enabled — six-tool invariants must not depend on that), 7-tool + prompt-snippet cases under vision_configured. 61 pass. Runbook: matching jobs/tb21-pi-flash-max-2 requires --ak vision=openai:gpt-5.6-luna on the nano arm. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gap analysis: 4–5 of pi's exclusive TB 2.1 wins used its extension's vision tool (16 calls; nano tried PIL pixel-reading 12× on chess-best-move). Nano now registers the identically-named
vision_analyzeIFF vision is explicitly configured (--ak vision=provider:modelseeds it) — pi's own TB-extension design. Unconfigured nano stays exactly six tools; conditional registration (not registered-disabled) keeps the deferred-tools block structurally absent. Hermetic vision fixtures + 2 new tests; 61 pass.🤖 Generated with Claude Code