Skip to content

feat(nano): vision_analyze as a conditional seventh tool (PR 11) - #890

Merged
agentforce314 merged 1 commit into
mainfrom
feat/nano-vision
Aug 16, 2026
Merged

feat(nano): vision_analyze as a conditional seventh tool (PR 11)#890
agentforce314 merged 1 commit into
mainfrom
feat/nano-vision

Conversation

@agentforce314

Copy link
Copy Markdown
Owner

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_analyze IFF vision is explicitly configured (--ak vision=provider:model seeds 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

…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>
@agentforce314
agentforce314 merged commit f9249db into main Aug 16, 2026
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