Repository navigation
feat(grounding): add Meta SAM 3.1 visual UI grounding (nerve_ground + nerve_tap prompt) - #1
Closed
andreBurnt wants to merge 1 commit into
Closed
andreBurnt wants to merge 1 commit into
andreBurnt wants to merge 1 commit into
Conversation
… nerve_tap prompt)
Contributor
Author
|
Closing direct mirror PR — releasing via canonical linc-nerve -> linc-publish pipeline. |
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.
Summary (Meta Global AI Developer Hackathon — Oct 26–Nov 4, 2026)
Adds Meta SAM 3.1 Promptable Concept Segmentation (
POST https://api.meta.ai/v1/responses) as a native visual grounding fallback inlinc-nervefor screens whereuiautomator dumpreturns an empty or unlabelled UI hierarchy (custom Compose/Flutter/WebView canvases, games, and Wear OS watch surfaces).What was built during the Hackathon window (after tag
pre-hackathon-2026-10-26)src/linc_nerve/core/grounding.py:ground_visual_targets(image_bytes, prompt, screen_size, api_key): Callssam-3.1on Stage-1 screenshots, parses wire records viameta-sam-parser==0.1.0, decodes 1-bit masks to compute true mask center-of-mass, and scales coordinates into native device tap space (1080x2340phone,432x432Wear OS watch, iOS logical points).render_grounded_overlay(...): Renders translucent green bounding box + red centroid crosshair + confidence badge for visual verification.should_suggest_visual_grounding(...): Detects empty trees, failed dumps, or unlabelled clickableCanvascontrols.src/linc_nerve/mcp/ui_tools.py: Newnerve_ground(device, prompt, annotate=False)MCP tool + automaticvisual_grounding_hintonnerve_elementsandnerve_state.src/linc_nerve/mcp/input_tools.py&src/linc_nerve/mcp/_core.py: Semanticnerve_tap(device, prompt=...)resolution integrated before coordinate guards and action logging.tests/test_grounding.py: Unit and contract tests against livesam-3.1wire output.