Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

open-agent-workspace

Latest version: v0.4.7

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
PyPI package Publisher: yangyifei
0 Stars
0 Forks
11 Versions
651 Downloads
Python Repo language

Scan summary

open-agent-workspace was last scanned on 26 Nov 2026 at version 0.4.7. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest 5 were published within 3 days (24–26 Nov 2026).
  • Findings: No rules fired in version 0.4.7.
  • Downloads: 651 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.7 LATEST 26 Nov 2026 No rules fired
0.4.6 26 Nov 2026 No rules fired
0.4.5 26 Nov 2026 No rules fired
0.4.4 26 Nov 2026 Not shown
0.4.3 24 Nov 2026 Not shown

No rules fired in 0.4.7

Findings

Findings for v0.4.7. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.4.7; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Agent Workspace

桌面上的 Agent 工作区:用户攒程序(番茄钟、心情日记、记账…),每个程序都有自己的助手; 智能全在远端 aaas-service,本进程只做四件事 —— 落盘、执行被点名的那一个、广播、传话。

内核不含一克智能。 它不选工具、不决定下一步、不重试、不兜底。 判据:本仓库里出现的每个分支,都只回答「参数/状态是否合法」,不回答「接下来做什么」。

谱系

道      = Agent(aaas-service,唯一的智能,不在本进程)
一      = 内核(本仓库 agentworkspace/:一个目录约定、一条 dispatch、一条事件流、一份能力面)
二      = 双入口(人走本地 HTTP,agent 走 invokeFunction,落到同一个 dispatch)
三      = 程序三要素(backend.py 能力 / ui 页面 / data 状态)
万物    = 工作区(用户攒出来的程序)

九个模块,各管一件事:

文件 它是谁
kernel.py 一:目录约定 / 唯一 dispatch() / 事件总线 / 能力面(按 pid 隔离)
link.py 道:aaas 接线(connect / declare / send / 转发被点名的那一个),每个程序一条会话
server.py 二之一:人的门(本地 HTTP + SSE)
shell.py 窗口壳:pywebview(--browser 是它的退化形态)
native.py 原生程序宿主:不是第二条执行路径,是「人的门」的第三种壳
main.py 入口:装配,没有第四样东西
pluginvcs.py 旁路:每个程序就地一个 git 仓(可用 /api/p/<pid>/versions,也可被 agent 的四动词调用)
web/index.html 工作区视图 + 对话 + 能力面板(单文件,无构建步骤)

配套:settings.py(唯一一项设置:aaas-service 地址)、devtools.py(开发者模式那双手)、 assistant.py(内核唯一内置的程序:小助理)、toolbox.py(小助理的手)、 selftest.py / qa.py / uiprobe.py(三层的自检:逻辑 / 真窗口 / 真浏览器)。

装

pip install open-agent-workspace

一条命令就够:pywebview 是默认依赖,装完就有桌面窗口,不需要再补一个 [gui]。 需要 Python 3.10+,以及一个能连上的 aaas-service(地址在设置里改,默认 ws://localhost:8888)。

想让每个程序的改动留下历史、并且能退回去,再装一个 extra:

pip install "open-agent-workspace[vcs]"

[vcs] 带来 pure-python-git(纯 Python,不需要系统里有 git)。它故意不在默认依赖里: 版本化是旁路 —— 没装它,写入照旧,只是不记历史、版本面板显示「未启用」。

这个内核曾以 agent-workspace-desktop 0.1.0 发布过一版,是同一份东西。现在叫 open-agent-workspace。两个包提供同一个顶层模块 agentworkspace,装新的之前先 pip uninstall agent-workspace-desktop,否则会互相覆盖(先装的赢,后装的留下空壳)。

跑

open-agent-workspace                # 桌面窗口
open-agent-workspace --browser      # 换成浏览器(pywebview 起不来时的形态)
open-agent-workspace --cli          # 命令行:跟小助理说一句
open-agent-workspace --cli -m "做个番茄钟"        # 同上
open-agent-workspace --cli --as pomodoro -m "开始 25 分钟"   # 跟某个程序自己的助手说

工作区默认就是你敲命令时所在的目录(没有会自动新建),所以它落在「你正在做的事」那里:

cd D:\我的项目
open-agent-workspace                          # 工作区 = D:\我的项目
open-agent-workspace --workspace D:\别处      # 也可以显式指定(不存在同样自动建)

--cli 是验收形态:connect → declare → sendInput → invokeFunction → 本地执行 → functionResult → 模型续写 → turn.completed。这条不通,界面做得再漂亮也是空壳。

工作区长什么样

工作区(默认 = 启动时的当前目录,--workspace 可换)是运行时,不在本仓库里:

workspace/
  plugins/<pid>/         程序:plugin.json + backend.py + ui/index.html + data/store.json
    .git/                该程序自己的历史(有 [vcs] 才有)
  logs/events.jsonl      谁做了什么、谁点的(事件流)
  prompts/               每个程序的指令
  config.json            设置(只有一项:aaas-service 地址)
  dev.json               开发者模式开关(**只属于人**:程序写它一律被拒)

内核没有任何内置的领域能力:番茄钟、日记、记账都是工作区里长出来的程序, 所以它们不在这个仓库里 —— 这里只有内核。

契约(写程序的人关心这几条)

  1. 公开函数 = 能力;_ 前缀 = 私有;wire name = <pid>_<fn>
  2. 约束只写一处:Annotated[int, {"minimum": 1}] → schema / 表单 / 校验同源
  3. 双面返回:dict 含 "text" → 文本给模型,其余进 data 给界面
  4. 状态走 ctx.get/set → data/store.json(代码目录与数据目录分离)
  5. 事件总线:call.ok / call.error / call.rejected / state.changed

隔离只写一处:Runtime.capabilities_of(pid)。别的程序在结构上就拿不到 plugin_write。

版本化([vcs])

每个程序的代码目录就地一个 git 仓,每次 plugin_write 之后自动提交一版:

  • 舞台上的版本按钮:列表 + 「退回去」(回退 = 再提交一版,不 reset、不删历史)
  • 开发者模式下的 agent 拿到四个动词:dev_versions / dev_show / dev_diff / dev_revert
  • 没有 pid 参数:碰别人的仓在签名上就不存在;data/ 连只读都不给

data/ 永不进历史、.backup/ 不进历史、[vcs] 缺失时整条旁路关掉而写入不受影响。 细节见 docs/plugin-versioning.md。

开发者模式

一个开关(设置面板里拨),打开后当前程序多拿到一把只够改自己的手:

有 没有
dev_tree / dev_read / dev_search plugin_list(「有哪些程序」本身就是权限地图)
dev_write(普通文件) plugin_call(能绕开别人的隔离)
dev_plugin_write(没有 pid 参数) plugin_delete / shell
dev_versions / dev_show / dev_diff / dev_revert 任何远程操作(push / fetch / remote)

想改别人,在签名上就无从下手;dev.json 由人掌握,程序写它一律被拒。 细节见 docs/dev-mode.md。

自检

python -m agentworkspace.selftest     # 逻辑层(内存里跑完整链路)
python tests/selftest_with_fixtures.py  # 同上,但先造 fixtures(真工作区里没有示例程序时用这个)
python -m agentworkspace.qa all       # 真窗口
python -m agentworkspace.uiprobe      # 真浏览器(拖动 / 折叠 / 设置 / 图标)
node tests/turn.test.js               # 对话状态机(忙时禁发 / 停得下)
node tests/md.test.js                 # 消息渲染 Markdown

三层缺一不可:selftest 只能断言「文件里有这行字」,CSS 优先级、事件绑定、 重绘时机任何一处错了都拦不住 —— 那要靠后两层。

文档

  • docs/vision.md —— 道 / 一 / 二 / 三 / 万物
  • docs/desktop-workspace-plan.md —— 方案与三层分界
  • docs/plugin-mechanism.md —— 程序三要素与契约五条
  • docs/agent-per-program.md —— 每个程序一个智能体
  • docs/dev-mode.md —— 开发者模式的边界
  • docs/plugin-versioning.md —— 程序的版本化与回退
  • docs/settings-and-icon.md —— 设置与窗口图标
  • docs/shell-and-native.md —— 窗口壳与原生程序

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases open-agent-workspace

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229