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

推荐订阅源

博客园 - 叶小钗
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
N
Netflix TechBlog - Medium
博客园 - 聂微东
Y
Y Combinator Blog
罗磊的独立博客
博客园_首页
小众软件
小众软件
有赞技术团队
有赞技术团队
爱范儿
爱范儿
F
Fortinet All Blogs
C
Check Point Blog
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
aimingoo的专栏
aimingoo的专栏

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - think41/extrasuite: Token-efficient pull/edit/push workflow for AI agents editing Google Workspace files (Sheets, Docs, Slides, Forms) GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw
Add safari/agent-harness — Safari browser automation via ...
yuh-yang · 2026-04-11 · via Hacker News: Show HN
Brings safari-mcp (https://github.com/achiya-automation/safari-mcp)
to CLI-Anything as a schema-driven harness. Every one of the 84 MCP
tools is auto-generated as a Click command from the bundled tool
schema (resources/tools.json) — guaranteed 1:1 parity with the
upstream server.

Architecture highlights:
- Schema-driven CLI generation via scripts/extract_tools.py (offline
  parser of safari-mcp's Zod schemas with depth-aware modifier
  detection for nested z.array(z.object(...)).describe() patterns)
- Dynamic Click command registration at import time from tools.json
- TestCLISubprocess with _resolve_cli() per HARNESS.md Phase 5
- URL validation with scheme blocking and optional private-network
  lockdown (utils/security.py)
- 95 tests: 16 unit + 36 security + 24 parity + 19 E2E (all pass
  against real Safari; SAFARI_E2E=1 to enable live tests)

Honest positioning:
The harness is STRICTLY slower than using safari-mcp directly for
MCP-compatible agents (Claude Code, Cursor, Cline). Per-call
latency: 119ms (persistent MCP session) vs 3,023ms (CLI subprocess
spawn). See HARNESS.md "Performance Tradeoffs" for the full
benchmark — MCP wins by ~25× on latency. The CLI is optimized for
a different audience:
- Agents that do not speak MCP (Codex CLI, GitHub Copilot CLI)
- Bash scripting and jq pipelines
- CI/CD and cron jobs
- Long-running Opus sessions where tool-definition token overhead
  (~8K tokens per API call with MCP vs ~100 with CLI) dominates cost

Both paths return byte-identical output (verified live with Unicode
titles via list_tabs).

Files:
- safari/agent-harness/HARNESS.md         architecture deep-dive
- safari/agent-harness/SAFARI.md          software-specific SOP
- safari/agent-harness/setup.py           PyPI package metadata
- safari/agent-harness/scripts/
    extract_tools.py                      offline Zod parser → tools.json
- safari/agent-harness/cli_anything/safari/
    safari_cli.py                         Click CLI with dynamic tool group
    core/session.py                       in-memory REPL state
    utils/safari_backend.py               sync MCP stdio client wrapper
    utils/security.py                     URL validation + DOM sanitization
    utils/tool_registry.py                loads tools.json, kebab↔camel
    utils/repl_skin.py                    copied verbatim from plugin
    resources/tools.json                  84-tool schema bundle (safari-mcp 2.7.8)
    skills/SKILL.md                       agent discovery manifest
    README.md                             user-facing docs
    tests/                                11/36/24/19 test files + TEST.md
…anguage

- Remove unused `sanitize_dom_text` and `_PROMPT_INJECTION_PATTERNS`
  from security.py (and 11 corresponding tests). The function was
  never called in the CLI pipeline.
- Add explicit `return` after `_handle_error` in `_validate_url_or_exit`
  so control flow is unambiguous if `sys.exit` is mocked.
- Replace manual `__name__`/`__doc__` copy with `functools.wraps` in
  `handle_error` decorator.
- Document `asyncio.run()` limitation in `call()` docstring.
- Add `safari` entry to `_ACCENT_COLORS` in repl_skin.py (was falling
  back to default).
- Add conflict-of-interest disclosure to HARNESS.md and SAFARI.md.
- Strip promotional language, cost comparisons, and benchmark tables
  from HARNESS.md, SAFARI.md, SKILL.md, and README.md. Keep factual
  per-call overhead note; remove dollar-amount positioning.
- Remove DOMShell comparison table from HARNESS.md.

All 49 non-E2E tests pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts:
#	.gitignore

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