Openeye

io.github.dumbspacecookie由 GitHub 帳號 dumbspacecookie 發布v0.1.1更新於 Oct 24, 2026

Procedure verification for AR/XR with memory, visual sessions, and DPO trajectory export.

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

OpenEye 是一個 alpha 階段的 MCP 伺服器,為助理提供 AR/XR 流程核驗工具:記錄場景描述、核驗步驟並檢索過往工作階段。

可以做什麼
檢索過往助理工作階段與已記錄的畫面描述,並針對目前任務調取或寫入流程技能文件。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Openeye,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

OpenEye

[npm version] [npm downloads] [license] [CI] [github stars]

alpha software. interfaces may change. file issues at github.com/dumbspacecookie/openeye.

every AR headset maker — HoloLens, Snap Spectacles, Apple, Android — ships a device that can see. none of them ship a brain. every developer building on these platforms has to figure out the intelligence layer themselves, from scratch, every time, for every device. the work doesn't compound. what one team learns on HoloLens doesn't help the team building on WebXR. every deployment is a silo.

OpenEye is the shared brain.

a thin piece of software sits on the device, captures what the camera sees, and turns it into a natural-language description of the scene. that description goes to OpenEye. OpenEye runs an AI agent with tools for verifying procedure steps, recalling prior sessions, and writing down what it learns. each session becomes structured memory the agent can search later, and an exportable training trajectory you can fine-tune on.

OpenEye doesn't ship a vision model — you bring your own. drop in Claude vision, GPT-4o, Gemini, Groq Llama vision, or a local Ollama model with moondream/llava. a working reference adapter for both cloud and local is in examples/vision-adapter/.


install

bash
npm install @dumbspacecookie/openeyepip install -r node_modules/@dumbspacecookie/openeye/sidecar/requirements.txt

the Python sidecar (FastAPI + SQLite) handles state and auto-spawns when you create an agent — you don't have to start it yourself.

prefer to hack on it locally? clone instead:

bash
git clone https://github.com/dumbspacecookie/openeye.gitcd openeye && npm install && npm run buildpip install -r sidecar/requirements.txt

quick start

typescript
import { OpenEyeAgent, setupProviders, makeStreamFn, ANTHROPIC_SONNET } from "@dumbspacecookie/openeye";import { describeFrameWithClaude } from "./examples/vision-adapter/claude-vision-adapter.js";import * as fs from "node:fs";
setupProviders();
const agent = await OpenEyeAgent.create({  model: ANTHROPIC_SONNET,  streamFn: makeStreamFn(),  systemPrompt: "You are a procedure assistant. Verify steps with precision.",  tenantId: "your-org",});
const vsId = await agent.client.createVisualSession({  deviceType: "android-tablet",  procedureId: "bolt-assembly-v1",  procedureName: "M6 Bolt Assembly",});
// 1. vision adapter (you bring this) turns a camera frame into textconst frameBytes = fs.readFileSync("./frame.jpg");const description = await describeFrameWithClaude(  frameBytes,  "Operator is installing an M6 bolt. Describe hand position, tool, and bolt state.",);
// 2. OpenEye logs the description and lets the agent verify the stepconst frameId = await agent.client.logFrame({  visualSessionId: vsId!,  sequenceNum: 1,  sceneDescription: description,  stepContext: "step-1-position-bracket",});
await agent.prompt(`Frame 1: ${description}\nVerify step-1-position-bracket.`);
await agent.client.endVisualSession(vsId!, "completed");await agent.captureAndClose({ completed: true, visualSessionId: vsId! });

no API key for the agent? run it locally with Ollama:

bash
ollama pull llama3.3
typescript
import { ollamaModel } from "@dumbspacecookie/openeye";const agent = await OpenEyeAgent.create({ model: ollamaModel("llama3.3"), streamFn: makeStreamFn() });

what this gives you

capabilityOpenEye
agent runtime + tool callingyes
persistent session memory (FTS5)yes
visual frame logging + searchyes
step verification with pass/fail/uncertain outcomesyes
training data export (ShareGPT JSONL)yes
DPO preference pair exportyes
HuggingFace dataset pushyes
MCP server (Claude Desktop, Cursor)yes
reference vision adapters (Claude + Ollama)yes
vision modelno — you bring this
hosted cloudno — bring your own ingest endpoint (contract)

what makes this useful is the loop: a session generates pass/fail outcomes against real procedure steps, those outcomes become a reward signal, and the full conversation gets packaged as a ShareGPT trajectory ready for DPO training in TRL, LLaMA-Factory, or Axolotl. you supply the fine-tuning pipeline — OpenEye supplies the data.


how it works

when a frame arrives from a device, your vision adapter describes it in plain language. that description goes to the AI agent. the agent has access to a set of tools:

toolwhat it does
search_memoryFTS5 search across all past agent sessions
search_framesFTS5 search across all past frame descriptions
recall_skillretrieve relevant procedural skills for the current task
write_skillpersist a new skill doc after completing a complex task
start_visual_sessionbegin a tracked AR/XR session
end_visual_sessionclose a visual session
log_framerecord a frame's scene description
verify_steprecord a step result — pass / fail / uncertain

step verifications become the reward signal: reward = (passes + 0.5 × uncertain) / total. at the end of a session the whole conversation gets packaged into a ShareGPT trajectory, ready for any DPO-compatible trainer.

important: the reward signal reflects the agent's own judgments against scene descriptions, not external ground truth. to use this as real RL data, you should periodically validate trajectories against a human-labeled subset, or use it as supervised data rather than treating it as objective truth. fine-tuning on this raw signal alone risks training the model to be confidently wrong.


use cases

lead use cases (production-ready):

manufacturing & assembly — bolt installation verification, equipment pre-operation checks, assembly sequence compliance, visual QC at line stations. android tablet or AR overlay over the work area. low regulatory burden, B2B procurement appetite.

training & onboarding — any procedure where a trainee needs a second set of eyes that remembers everything it's ever seen. apprentice mechanics, new line operators, lab technicians. mistakes during training don't cost much, which makes this the safest first deployment.

field service & inspection — lockout/tagout compliance, PPE verification, pre-job safety checklists, equipment inspection. technicians already carry phones. a sample skill file for LOTO ships in skills/field-service/.

not yet recommended:

medical / surgical — the technical pieces work, but anything influencing surgical decisions is subject to FDA 510(k)/De Novo review. the example skills in skills/medical/ are illustrative starting points written by an engineer, not validated clinical protocols. don't use them as compliance baselines without independent medical and regulatory review.


training data and HuggingFace

typescript
// export training trajectoriesconst count = await agent.exportTrajectories("./trajectories.jsonl");
// export DPO preference pairs (TRL/Axolotl-compatible)const pairs = await agent.exportDPOPairs("./dpo_pairs.jsonl");
// push directly to HuggingFaceconst result = await agent.pushToHub("myuser/my-procedure-runs", {  tags: ["procedure-verification", "bolt-assembly"],});console.log(`published ${result.pushed} trajectories to ${result.url}`);

MCP server

use OpenEye's tools from Claude Desktop, Cursor, Windsurf, or any MCP-compatible client:

json
{  "mcpServers": {    "openeye": {      "command": "python3",      "args": ["sidecar/mcp_server.py"],      "env": { "ANTHROPIC_API_KEY": "sk-ant-..." }    }  }}

all 8 tools are available immediately.


supported agent models

swap with one line, no other code changes:

providerenv var
Anthropic (Claude Opus, Sonnet, Haiku)ANTHROPIC_API_KEY
Groq (Llama 3.3 — fastest, free tier)GROQ_API_KEY
Ollama (local, no key, no cost)just ollama pull llama3.3
OpenAI, Google, Mistral, Bedrock, OpenRoutersee src/models.ts
Any OpenAI-compatible endpointpass baseUrl + apiKey to customModel()

data and privacy

raw frame pixels never leave the device only if your vision adapter runs on-device. the Ollama adapter in examples/vision-adapter/ keeps pixels local; the Claude/OpenAI/Gemini cloud adapters do not. pick the right one for your deployment.

what OpenEye itself stores is the natural-language description of what your vision adapter saw — not the image. opt-in cloud sync is off by default and configurable per data type. every record is scoped to a tenant ID so a single deployment can serve multiple organisations with complete data isolation between them.

opting into cloud sync? OpenEye doesn't run a hosted backend — you operate the receiving endpoint. see docs/cloud-sync.md for the HTTP contract, retry semantics, idempotency requirements, and row schemas.

sharing data back to Context (loud opt-in)

OpenEye is built by Context. To make procedure-verification models better over time, OpenEye can ship opted-in trajectory data — completed sessions with their reward signals — to Context for training. This is off by default. Nothing leaves your machine until you set:

bash
export OPENEYE_CONTEXT_OPTIN=trueexport OPENEYE_CONTEXT_API_KEY=ctx-...

What gets shipped: trajectory ID, model used, reward signal, procedure tag, and the agent conversation (with system prompts stripped). What never gets shipped: tenant IDs, user IDs, system prompts, visual session IDs, skill files, or any raw frame descriptions.

Full disclosure including EU/GDPR notes and revocation procedure: docs/context-data.md.

Check status anytime:

bash
curl http://127.0.0.1:7770/context/status

deploy

local (default — sidecar starts automatically as a subprocess):

bash
git clone https://github.com/dumbspacecookie/openeye.gitcd openeye && npm install && npm run buildpip install -r sidecar/requirements.txt

Docker:

bash
docker run -d -p 7770:7770 -v openeye-data:/data \  -e ANTHROPIC_API_KEY=sk-ant-... \  --name openeye openeye/sidecar

configuration

env vardefaultdescription
OPENEYE_HOME~/.openeyedata directory (SQLite DB + skills + consent marker)
OPENEYE_PORT7770sidecar HTTP port
OPENEYE_BIND_HOST127.0.0.1sidecar bind address (don't change unless you read docs/security.md)
OPENEYE_SIDECAR_TOKEN—optional shared secret for sidecar HTTP auth — required on shared hosts
OPENEYE_PYTHONpython3Python executable
OPENEYE_WORKERS1uvicorn workers — leave at 1 unless you've moved off SQLite
OPENEYE_LOG_LEVELINFOsidecar log level
OPENEYE_CLOUD_URL—your cloud endpoint for opt-in sync (cloud-sync.md)
OPENEYE_CLOUD_KEY—bearer token for cloud sync
OPENEYE_SYNC_INTERVAL60cloud sync interval in seconds
OPENEYE_SYNC_MAX_RETRIES4retry attempts per batch on transient failure
OPENEYE_CONTEXT_OPTIN—set true to enable Context training-data sharing (context-data.md)
OPENEYE_CONTEXT_API_KEY—your Context API key
OPENEYE_CONTEXT_CONSENT_CONFIRMED—set true (CI only) to skip the consent attestation prompt
OPENEYE_CONTEXT_SYNC_INTERVAL300Context sync interval in seconds
OLLAMA_BASE_URLhttp://localhost:11434Ollama endpoint for local vision/agent

tests

bash
# Python sidecar tests (56 passing)python -m pytest tests/ -v
# TypeScript integration testsnpm test
# TypeScript typechecknpm run typecheck
# Validate community skillspython sidecar/validate_skill.py skills/

project structure

openeye/├── src/                  # TypeScript source (agent, client, models, tools)├── sidecar/              # Python backend (FastAPI server, SQLite state, skills)├── skills/               # Example skill protocols (manufacturing, field-service, medical*)├── examples/             # Reference adapters and end-to-end demos│   └── vision-adapter/   # Claude + Ollama vision adapters├── eval/                 # Evaluation benchmark├── docs/                 # Operator docs (cloud-sync contract, etc.)├── schemas/              # JSON Schema for skill front matter├── tests/                # Python + TypeScript tests├── dist/                 # Compiled TypeScript output├── package.json├── tsconfig.json└── Dockerfile

*medical skills are illustrative engineering examples, not validated clinical protocols. see "use cases" above.


license

MIT — built on pi-mono (MIT) and hermes-agent (MIT).


— dumbspacecookie

來源:README.md,提交 b190d2b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分