惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
B
Blog RSS Feed
美团技术团队
博客园 - 【当耐特】
C
Check Point Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
aimingoo的专栏
aimingoo的专栏
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 司徒正美
T
Tailwind CSS Blog
Last Week in AI
Last Week in AI
Google DeepMind News
Google DeepMind News
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
Vercel News
Vercel News
P
Proofpoint News Feed
IT之家
IT之家
I
InfoQ
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - Smyan1909/SoMatic: Agent-first CLI for native UI...
smyansondur · 2026-05-21 · via Hacker News - Newest: "AI"

SoMatic is an agent-first CLI for native desktop UI automation. It runs a local YOLO model to detect and number every interactive element in a screenshot, giving the agent a structured coordinate map it can ground actions against. Elements can be targeted by mark ID, by nearest-mark offset, or by direct pixel coordinate — no guessing.

Every command returns JSON. The public binary is somatic.

Demo

SoMatic desktop automation demo

Watch the higher-quality MP4 demo: docs/assets/somatic-demo.mp4.

SoMatic turns desktop screenshots into numbered action targets that agents can use across native apps, browsers, PDFs, and web tools:

PDF workflow Chess setup Browser + terminal
Annotated Acrobat PDF workflow Annotated Chess.com setup board Annotated browser and terminal workflow

Install

npm install -g @somatic-cli/cli

The npm package launches the Python core. Python 3.10+ must be available on PATH. During npm postinstall, SoMatic creates a package-local virtualenv at .venv/ and pip installs the local source with the [vision] extra (~30 MB). Opt-outs:

  • SOMATIC_SKIP_POSTINSTALL=1 — skip everything; install just the JS shim.
  • SOMATIC_SKIP_PYTHON_BOOTSTRAP=1 — skip the venv + pip install.
  • SOMATIC_SKIP_VISION=1 — install without the [vision] extra (annotated screenshots will not work; raw screenshots still do).

The [vision] extra pulls onnxruntime, numpy, and huggingface-hub. It does not pull torch or ultralytics — those are AGPL-3.0 and are kept out of the MIT distribution. The pre-converted YOLO ONNX is downloaded at runtime via somatic vision init; see Licensing below for the AGPL implications.

For Python-only installs:

# From PyPI:
pip install 'somatic-cli[vision]'          # runtime only (~30 MB)
pip install 'somatic-cli[vision,mcp]'      # add the MCP server (Claude Code, Cursor, Continue)

# From the repo:
pip install -e .[vision,mcp]

To add the SoMatic skill to Claude Code, Cursor, Copilot, and 30+ other agents:

npx skills add Smyan1909/SoMatic

This installs skills/somatic/SKILL.md into your agent's skills directory. The agent will then know the full operating loop without any further prompting.

To wire in the MCP server (inline annotated screenshots):

claude mcp add somatic -- npx @somatic-cli/cli mcp serve

See docs/mcp.md for full MCP setup and the .mcp.json snippet.

Quick Start

somatic doctor
somatic vision init
somatic screenshot --annotate
somatic click 3
somatic type "hello from SoMatic"
somatic hotkey ctrl s
somatic vision stop

somatic vision init is required before --annotate works. The first invocation downloads the OmniParser icon-detect YOLO weights and exports them to ONNX. Subsequent invocations reuse the cached file. The model stays resident in a background daemon until you call somatic vision stop.

Commands

  • somatic screenshot [--annotate]
  • somatic click <id|x,y>
  • somatic click-near <id|x,y> [--dx N] [--dy N]
  • somatic double-click <id|x,y>
  • somatic right-click <id|x,y>
  • somatic middle-click <id|x,y>
  • somatic mouse-down [id|x,y]
  • somatic mouse-up [id|x,y]
  • somatic move <id|x,y>
  • somatic drag <id|x,y>
  • somatic scroll <amount> [--target <id|x,y>]
  • somatic type "text"
  • somatic write "text"
  • somatic hotkey ctrl s
  • somatic press enter
  • somatic key-down shift
  • somatic key-up shift
  • somatic wait 1
  • somatic position
  • somatic size
  • somatic locate image.png [--all]
  • somatic center image.png
  • somatic windows active|list
  • somatic failsafe [--enable|--disable]
  • somatic pause 0.1
  • somatic doctor
  • somatic bootstrap
  • somatic vision init|stop|status
  • somatic mcp serve (stdio MCP server — see docs/mcp.md)
  • somatic skill (prints the operating-loop guidance)
  • somatic headless start|stop|status|launch (Linux only — see docs/headless.md)

Platform Notes

Windows requires an interactive desktop session. Elevated applications may require an elevated terminal or agent host.

macOS requires Accessibility and Screen Recording permissions for the terminal or host app running SoMatic.

Linux works best on X11. Wayland compositors may block screenshot or pointer control unless desktop-specific permissions are configured.

Vision

The vision daemon exposes a local HTTP API:

  • GET /health — daemon status, weights path, PID
  • POST /parse with { "image_path": "/absolute/path.png" } — runs YOLO ONNX inference, returns { marks: [...], provider: "yolo-onnx", inference_ms: ... }

Marks contain id, bbox ([x1, y1, x2, y2] in image pixels), center ([x, y]), and confidence. There are no captions or OCR text — agents act on numbered boxes and resolve coordinates via the mark id.

somatic screenshot --annotate embeds the captured PNGs as base64 in the JSON response (image_b64, annotated_image_b64) so agents can pick them up in the same call. Pass --no-image to opt out.

Tuning knobs (env vars):

  • SOMATIC_YOLO_CONF (default 0.05) — detection confidence threshold
  • SOMATIC_YOLO_IOU (default 0.45) — NMS IoU threshold
  • SOMATIC_YOLO_ONNX_REPO — Hugging Face repo holding a pre-converted ONNX
  • SOMATIC_YOLO_ONNX_PATH — point at a local ONNX file to skip download/conversion

See platform setup and release checklist.

Headless (Linux)

On Linux, SoMatic can spawn an Xvfb virtual desktop so actions run on a sandbox display rather than your real screen:

somatic headless start --launch discord --vnc
somatic screenshot --annotate    # operates on the virtual desktop
somatic headless stop

See docs/headless.md for prerequisites and the full walkthrough.

Benchmarks

SoMatic's local YOLO detection is evaluated on ScreenSpot-Pro and VenusBench-GD against two baselines: raw GPT-5.5 with no detection hints, and SoMatic detection passed as text coordinate hints only (no visual overlay).

Dataset SoMatic+marks+GPT SoMatic+coords+GPT Raw GPT Reference
ScreenSpot-Pro (n=200) 68.5% 73.0% 52.0% OmniParser + GPT-4o = 39.6%¹
VenusBench-GD (n=171) 70.2% 78.4% 59.6% No published baseline available

¹ From the ScreenSpot-Pro paper. Results here use GPT-5.5 and are subset-tier (n≈200); full-dataset numbers pending.

The coords arm (raw image + YOLO bounding boxes as text) edges out the visual overlay arm (marks) for top-tier VLMs — suggesting that for capable models the detection signal matters more than the annotation drawing. For weaker models and human-in-the-loop workflows, the visual overlay remains the recommended default.

Full per-platform and per-task-type breakdowns: benchmarks/results/RESULTS.md.

Licensing

SoMatic follows the FFmpeg licensing strategy: a strictly MIT-licensed core, with AGPL-licensed conversion tooling segregated into a separate directory so it never touches the published artifacts.

  • src/somatic/ — MIT. The CLI, MCP server, vision daemon, automation primitives, and the YOLO ONNX inference path. Zero AGPL imports. A pytest-time check (tests/test_license_boundary.py) fails CI if anyone re-adds import ultralytics here.
  • YOLO ONNX weights — AGPL-3.0. Derived from microsoft/OmniParser-v2.0's upstream YOLO checkpoint. SoMatic does not bundle the weights; somatic vision init downloads them at runtime from a separately-licensed Hugging Face repository. Run somatic license for the full notice.
  • tools/ — AGPL-3.0. The convert_yolo_to_onnx.py script imports ultralytics (AGPL-3.0) and produces an AGPL-3.0 ONNX file. This directory is excluded from both the npm tarball and the PyPI sdist/wheel. See tools/README.md.

Practically: if you pip install somatic-cli or npm install -g @somatic-cli/cli, your install is MIT. The moment you run somatic vision init you accept the AGPL-3.0 obligations on the downloaded weights. If you run anything from tools/, your derivative ONNX is also AGPL-3.0.