Vai al contenuto principale
D

deepseekeyes

dttxorg/deepseekeyes

Auditable vision and cross-platform Computer Use runtime for DeepSeek Harness with source-preserving evidence.

Installazione

dsh plugin --profile web add github:dttxorg/deepseekeyes

README

DeepSeekEyes — vision evidence flows through a trusted bridge into DeepSeek reasoning

DeepSeekEyes logo

DeepSeekEyes

Give DeepSeek sight without leaving the conversation.

An auditable vision and cross-platform Computer Use runtime for DeepSeek Harness.

简体中文 · Live screenshots · Quick start · How it works · Computer Use · Token accounting · X / @lucars2026

Follow @lucars2026 on X Latest release npm version CI status DeepSeek Harness plugin Node.js >= 22.19 MIT License

DeepSeek's strongest text models can reason about code, documents and interfaces, but they do not consume image pixels. DeepSeekEyes is the DSH runtime that makes those pixels auditable: it selects and health-checks visual routes, validates every nested evidence field, binds evidence to original bytes, records failover, and keeps DeepSeek as the reasoning model.

No window switching. No manual transcription. No lossy screenshot relay.

This is not another captioning window. It is the DSH auditable vision and Computer Use runtime for image evidence, Browser automation and native Windows/macOS control.

See it in action

These are real DeepSeek Harness captures, not product mockups. They show the two complete loops DeepSeekEyes adds to a normal DeepSeek conversation:

  • Image understanding: paste an image → the configured multimodal model reads the original pixels → DeepSeek receives validated evidence and answers in the same task.
  • Browser control: ask DeepSeek to open a page → Browser Computer Use observes, opens, scrolls and clicks → every action returns a fresh state so DeepSeek can verify the result or recover from a missing target.
One visible DeepSeekEyes route
The model picker exposes the DeepSeek final-answer model and its multimodal “Eyes” model as one selectable route.

DeepSeek Harness model picker showing a DeepSeekEyes route with a DeepSeek final model and a multimodal Eyes model
Harness-native visual routing
Select both Provider/model pairs, inspect the live route, enable automatic capability detection, randomized pixel probing, health checks and failover.

DeepSeekEyes settings card configuring final-answer and background-vision providers and models
Understand a pasted screenshot
The image stays in the current task while DeepSeek returns a structured description of layout, navigation and visible content.

DeepSeek describing the contents and layout of a pasted website screenshot in the same conversation
Control and verify a browser
The agent opens the site, inspects the live page, scrolls, follows the correct navigation path, clicks Login and verifies the resulting authentication page.

DeepSeek using Browser Computer Use open scroll and click actions and verifying the destination page

Why DeepSeekEyes

RequirementWhat DeepSeekEyes does
One conversationImage → vision evidence → DeepSeek reasoning → optional visual follow-up all happen inside the current Harness task.
Original pixels stay authoritativeUser images are not resized, converted or recompressed. Every reread references the original content-addressed attachment.
The models can communicateDeepSeek can request a precise region or detail instead of depending on one oversized first description.
No surprise text overheadPure-text turns keep the direct model path: no visual call, no Computer Use tool and no DeepSeekEyes usage entry.
The eye is verifiedStatic image-capability metadata is followed by an optional randomized 3×3 pixel probe. A text-only model cannot silently pose as the eye.
Routes fail over visiblyOrdered visual routes, health TTL, circuit cooldown and bounded attempts are persisted without prompt/image contents.
Evidence is a contractOne public JSON Schema drives strict Ajv validation; bounded local canonicalization repairs only known structure/scalar formats and audits every change.
Automation is built inBrowser Computer Use plus native Windows/macOS desktop control can observe, act, verify and preserve evidence.
Usage is visibleThe native settings card separates exact Provider usage, estimated bridge input and normal final-answer usage.

Quick start

1. Install, upgrade or diagnose

npx -y @dttxorg/deepseekeyes@latest install
npx -y @dttxorg/deepseekeyes@latest upgrade
npx -y @dttxorg/deepseekeyes@latest doctor

These commands work in macOS/Linux shells and Windows PowerShell. Use --profile NAME when the DSH profile is not web. Restart dsh web once after installation or upgrade.

2. Configure entirely in Harness

  1. Open Settings → Models and add the text Provider/model and multimodal Provider/model you already use.
  2. Open Settings → Plugins → DeepSeekEyes.
  3. Select:
    • Final answer Provider + model — the DeepSeek model that reasons and replies;
    • Background vision Provider + model — the multimodal model that reads pixels.
  4. Keep the randomized pixel probe enabled for the first real image.
  5. Save, then select the DeepSeekEyes model entry in the conversation model picker.

Custom OpenAI-compatible gateways can be declared image-capable from the same card; the plugin writes the exact Harness defaultInput: [text, image] setting without replacing sibling Provider fields.

3. Paste an image

Ask normally:

Read this screenshot, identify the failure, and tell me the next action.

DeepSeekEyes automatically reads the new image, gives DeepSeek structured evidence, and preserves the original for later targeted questions.

How it works

flowchart LR
    A["Original image attachment"] --> B["DeepSeekEyes bridge"]
    B --> C["Ordered routes + health check"]
    C --> C2["Verified multimodal model"]
    C2 --> D["Strict schema-valid, hash-bound evidence"]
    D --> E["DeepSeek final-answer model"]
    E -->|needs one more detail| F["Precise visual question"]
    F --> C
    E --> G["Answer in the same conversation"]
    B -. preserves .-> H["Original bytes + append-only event"]

The first read is deliberately not the end of the visual conversation. DeepSeek may emit a bounded private clarification request naming the image SHA-256, one exact question and an optional normalized region. The eye rereads the original pixels and returns targeted evidence; DeepSeek then continues reasoning.

Historical images are compacted into bounded SHA-256 pointers. They cause no automatic reread, but the session-scoped deepseekeyes_look tool can recover one preserved original on demand—even after switching to a native text-only model.

Capability matrix

CapabilityStatusNotes
Native pasted-image bridgeOriginal Harness attachment stays in the append-only session log.
DeepSeek ↔ vision clarificationBounded, precise questions against the same original image.
Vision-model capability probeMetadata gate plus randomized pixel test.
Canonical evidence JSON SchemaOne source drives prompts and rejects invalid nested fields.
Route health and failover auditPriority, health TTL, circuit cooldown and bounded attempts.
Custom multimodal gatewaysOpenAI-compatible routes can be declared from the GUI.
Browser Computer UseOpen, observe, click, type, select, wait, assert, report and close.
Windows desktop Computer UseWindow capture + UI Automation elements/actions + user32 input.
macOS desktop Computer UseWindow capture + Accessibility elements/actions + CoreGraphics input.
Lossless oversized screenshotsRecompressed without pixel changes, then tiled only when the Host's 5 MB limit requires it.
Local Token accountingExact Provider usage plus clearly labelled bridge estimates.
Public visual evalScreenshot, dense text, chart, UI and prompt-injection cases with accuracy/latency/Token output.
Pure-text isolationNo visual call, screenshot or Computer Use prompt when none is needed.

Computer Use

Both automation modes are off by default and are enabled independently from Settings → Plugins → DeepSeekEyes.

The control cycle follows the same core shape as the official OpenAI Computer use loop: observe the current UI, execute a typed action, capture the resulting state, and continue. DeepSeekEyes implements that cycle as auditable DSH tools and additionally exposes native accessibility elements when the operating system provides them.

Browser Computer Use

The Playwright-powered browser loop returns a fresh screenshot and semantic element references after every action. Mutations require the latest stateId, stale actions are rejected, and an assertion/report loop turns the same feature into an automatic test runner.

Supported operations include navigation, observation, click, type, select, check, keyboard input, wait, visual assertions, evidence reports and session close.

Windows / macOS Desktop Computer Use

The native computer tool can:

  • discover the desktop, then observe only the target window to reduce irrelevant pixels;
  • return stable windowRef and elementRef identities, semantic roles, names, values, bounds and available actions;
  • move, click and drag the pointer;
  • click or invoke semantic elements, assign control values, type Unicode text and send keyboard shortcuts;
  • scroll, wait, launch and focus applications;
  • move, resize and close windows;
  • return a screenshot/window/element stateDelta after every step;
  • preserve a fresh lossless PNG after every step while avoiding a visual-model call when semantic/action evidence is sufficient;
  • run native element/window/screen assertions, fall back to visual assertions for pixel-only facts, and save v2 evidence reports.

launch is stateless: it can run before observe, and macOS accepts a display name, a renamed alias resolvable by Launch Services, a bundle ID, or a full .app path. Focus by application/title is also stateless. Mutations based on pixels or refs remain bound to the newest screenshot state; read-only observe may reuse the current windowRef without repeating stateId.

Since 0.5.8, desktop text entry is target-bound instead of trusting whichever control happens to own keyboard focus. The vision model grounds pixel-only controls in the exact delivered screenshot, DeepSeek supplies the plan and text, and the native runtime performs one guarded transaction: focus the intended window → click/focus the intended control → verify the foreground window/modal state → enter text → capture the result. type therefore requires either elementRef or complete x/y coordinates; coordinate input also binds to windowRef or the latest window-scoped observation. A targetless call is rejected before mutation unless allowFocusedTarget: true explicitly opts into the compatibility path.

TARGET_FOCUS_MISMATCH, DESKTOP_MODAL_TARGET_BLOCKED, DESKTOP_COORDINATE_SPACE_MISMATCH and DESKTOP_TYPE_COORDINATE_OUTSIDE_WINDOW all mean that text was not sent. Observe again, handle the modal or reground the control in the new screenshot, then retry with the new stateId. On Windows the helper uses atomic focus/click plus SendInput; on macOS semantic text uses Accessibility selected-text insertion, while coordinate-only Unicode input uses a full pasteboard snapshot/restore transaction.

Every action captures and preserves another lossless PNG. The default desktopVisualMode: auto routes complete semantic observations and successful mutations directly to the final text model, so those steps make zero visual-model calls. Sparse/disabled accessibility states still receive pixels automatically for observe, launch and wait; the model can request exact current pixels on any call with includeScreenshot: true. always retains full per-step visual auditing, while manual delivers pixels only on explicit requests. Omitting pixels from a model turn never deletes or recompresses the stored screenshot.

A known target remains window-scoped; an explicit application/title always overrides the previous capture. On macOS, the runtime prefers the focused/main usable window over tiny auxiliary dialogs and walks Accessibility children under both the configured element bound and a helper-time budget, avoiding an unbounded Electron tree scan. semanticStatus reports availability, truncation/limit reason and elapsed semantic time. timings reports native round-trip, semantic collection, screenshot processing and total tool time; visualDelivery explains whether vision was invoked or bypassed. Coordinates are relative to a delivered image and are mapped back to native desktop coordinates. Native Desktop Computer Use is implemented for Windows and macOS; Browser Computer Use remains available wherever the configured Chromium runtime is available.

On Windows, the native helper consumes and emits UTF-8 JSON under Windows PowerShell 5.1 and converts screenshot-relative coordinates through scalar screen origins before calling user32. Window-scoped clicks therefore honor negative/multi-monitor origins without the PowerShell System.Object[] / op_Addition failure. Cross-platform CI parses the PowerShell helper and executes the real Windows coordinate path rather than only testing JavaScript simulation.

If every bounded visual route fails for a computer screenshot, the original PNG, hash and route attempts stay preserved and DeepSeek continues from the adjacent native state (actionResult, windows, accessibility elements and stateDelta). The fallback explicitly states that pixels were not decoded. Pasted user images and explicit pixel-dependent reads remain strict and still fail when no validated evidence exists.

Computer Use model calls are isolated from unrelated long-task history by a default 32,768-token automation context budget. Only the model-facing copy is bounded: the newest direct user instruction, atomic tool-call/result tail, full DSH task, screenshots and reports remain preserved. A second guard stops after 32 final-model calls for one user instruction. Both limits accept custom values and explicit 0 unlimited mode. Ordinary text and non-automation image turns never enter this guard.

Token accounting

The native plugin card exposes Token usage statistics without making a statistics model call.

CounterMeaning
Exact additional TokensProvider-reported pixel probe, initial read, targeted reread, visual clarifications and every DeepSeek call caused by Browser/Desktop Computer Use.
Estimated bridge inputEvidence/protocol/tool text injected by the plugin, estimated with the Harness fixed-density rule.
Estimated plugin totalExact additional usage plus estimated bridge input.
Final model visual-turn usageThe single ordinary visual-turn final answer is recorded separately; automation final-model calls are included above.
Automation protectionProtected user instructions, context compactions, limit stops and estimated replay input avoided.
Operational countersVisual turns, original-image rereads and vision-cache hits.

Statistics refresh/reset uses the loopback-only /deepseekeyes RPC. Data is atomically stored at $DSH_HOME/deepseekeyes/usage-stats.json with mode 0600 and a 50-session detail limit. A temporary write failure keeps counting in memory and does not interrupt the user's turn.

Disable collection in the GUI or use:

export DEEPSEEKEYES_USAGE_STATS=false

Data integrity by design

  • User images pass through ctx.attachments.readImage() as the original Harness ImageBlock.
  • Original MIME type, byte length, dimensions and SHA-256 are recorded with the evidence.
  • Visual evidence is validated against the public schemas/visual-evidence.schema.json before DeepSeek sees it; a compact example is generated from that source, reasoning-prefixed outputs select the final matching evidence object, and every nested object still rejects extra fields.
  • Missing empty lists and common numeric confidence/bbox forms are canonicalized locally with a field-level audit. One recognizable incomplete SSE stream may retry once on the same route; both call usages are counted.
  • Common model coordinate conventions (normalized/pixel xywh, normalized/pixel xyxy, and Qwen 0–1000 xyxy) are deterministically normalized and audited without another model call.
  • A targeted reread references original pixels—not a thumbnail, JPEG copy or summary of a summary.
  • Failed direct-image reads, invalid evidence and exhausted clarification bounds stop the visual turn instead of inviting a guess. Desktop tool screenshots alone may fall back to their explicit native semantic state, never to invented pixel claims.
  • Browser/Desktop screenshots carry content-addressed state and stale-action protection.
  • Typed text, assigned values and launch arguments are hashed in persisted Computer Use reports.

Configuration reference

The common route and automation settings are available in the GUI. Headless deployments may use the same fields in cordis.patch.yml or environment variables.

AreaImportant fields
Model routingupstreamProvider, upstreamModel, visionProvider, visionModel
Vision validationautoDetectVision, activeProbe, maxClarifications
Route reliabilityvisionRoutePriority, visionHealthCheck, visionFailoverAttempts, health TTL/cooldown and attempt retention
Visual budgetsbaseMaxTokens, targetMaxTokens0 delegates the limit to the Provider
Automation spend guardautomationContextMaxTokens (default 32768) and automationMaxCallsPerTurn (default 32); 0 disables either limit
History boundshistoryImageLimit, historySummaryChars, browserHistoryLimit, desktopHistoryLimit
BrowserbrowserComputerUse, channel/executable, viewport, timeout and observation bounds
DesktopdesktopComputerUse, desktopVisualMode, desktopSemantic, desktopMaxElements, timeout, settle delay, display, PowerShell and evidence directory
UsageusageStats, usageStatsPath

See the complete Chinese configuration reference for every field and default.

Verification

npm ci
npm run check
npm run eval:fixture
npm run test:coverage
npm run test:browser
npm run test:desktop
npm audit --omit=dev

The release is continuously checked on Ubuntu, macOS and Windows. Native helper parsing/compilation and desktop observation run on their respective CI hosts.

Run a real multimodal Provider against the public suite with npm run eval:live; see evals/README.md. The committed fixture-oracle result validates 5 cases and 30 assertions while remaining explicitly separate from a model benchmark.

Runtime documentation

Community

Built something with DeepSeekEyes, found an edge case, or want a new Computer Use action?

  • Open a GitHub issue.
  • Follow and message @lucars2026 on X for release notes and project updates.
  • Star the repository if the bridge saves you a window switch—the next developer will find it faster.

License

MIT

Plugin correlati