Skip to content

feat(openwork): add OpenWork, a desktop app for AI agents (com.differentai.openwork) - #852

Merged
jing2uo merged 2 commits into
flatpark:mainfrom
3ddruck12:add/com.differentai.openwork
Oct 26, 2026
Merged

jing2uo merged 2 commits into
flatpark:mainfrom
3ddruck12:add/com.differentai.openwork

Conversation

@3ddruck12

Copy link
Copy Markdown
Contributor

Summary

  • Adds OpenWork 0.18.62 (com.differentai.openwork), the desktop app where AI agents work on local files.
  • The payload is the official openwork-linux-x64-0.18.62.tar.gz, unpacked with bsdtar --no-same-owner. It runs on org.freedesktop.Platform//26.08 with org.electronjs.Electron2.BaseApp//26.08 through zypak-wrapper. The Linux build is not rebuilt.
  • The resolver takes only openwork-linux-x64-<version>.tar.gz. Cloud, enterprise, and AppImage assets on the same release are skipped.

Sandbox

  • Shared: IPC, network (model providers, optional sign-in, MCP), Wayland with X11 fallback, GPU, PulseAudio, notifications, and the Secret Service.
  • ELECTRON_RUN_AS_NODE is unset. There is no filesystem grant. Settings stay in the per-app data directory, and file picking goes through the portal.
  • Working in a real project directory is opt-in, documented in the metainfo: flatpak override --user --filesystem=~/Projects com.differentai.openwork.

Tested

  • Descriptor audit, appstreamcli validate --no-net, and the resolver (0.18.62, the x64 tarball URL). check-apply-extra unpacked the archive as root with no capabilities.
  • publish.sh --verify built the app and installed it from the local signed repo. ldd on the binary reported no missing libraries.
  • The window opened with title OpenWork and WM_CLASS com.differentai.openwork. The bundled engine answered on localhost (GET /workspaces 200), and the session composer was on screen.
  • Sign-in and an agent run against a project directory were not exercised.

Flathub

Not published on Flathub. com.differentai.openwork returns 404 from the Flathub appstream API.

Made with Cursor

@jing2uo

jing2uo commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Review: OpenWork 0.18.62 (com.differentai.openwork)

Verdict: HOLD. No hard-fail hit. Provenance and packaging check out; the listing waits until the main feature (an agent run on a real directory) is tested.

Static review only. Nothing from the PR or the payload was executed. Artifacts were downloaded as bytes into an isolated dir and extracted with --no-same-owner --no-same-permissions.

# Check Verdict Evidence
0 Static only, isolated dir ✅ tar listed before extract; nothing run
1.1 Scope ✅ New app, 8 files under registry/com.differentai.openwork/ only
1.2 High-scrutiny surface ✅ None touched; resolver is in a brand-new app dir
2.1 Submitter ✅ 3ddruck12, account 2021-05, 34 repos; 6 merged app PRs here (#815, #793, #634, #629, #582, #581)
2.2 Upstream repo ✅ different-ai/openwork, created 2026-01, ~24k stars, active releases
2.3 Commit identity ✅ 3ddruck <[email protected]> + Cursor co-author; well-formed
2.4 Timeline ✅ Release 2026-10-23, PR 2026-10-25
2.5 Trust tier ✅ Established contributor
2.6 Artifact tier ✅ Tier 1. Root LICENSE is MIT outside /ee; the desktop bundle carries no EE code (no Enterprise Edition / /ee/ strings in app.asar), so project_license: MIT and proprietary: false hold
3.1 Source types ✅ One extra-data with sha256 + size 335646078; rest are local file
3.1b Bytes landing in /app ✅ Only wrapper, desktop, metainfo, icon, apply_extra
3.2 finish-args ✅ ipc, network, wayland, fallback-x11, dri, pulseaudio, Notifications, secrets; no filesystem, no escape perms
3.3 policy: ✅ proprietary: false, dangerous_permissions: [] match
3.4 build-commands ✅ install only; payload untouched
3.4b packaging: ➖ Nothing injected, no host commands, sandbox on; block not needed
3.5 Source URL ✅ github.com/different-ai/openwork/releases/download/v0.18.62/...
3.6 App id ✅ com.differentai.openwork is upstream's own electron-builder appId (apps/desktop/electron-builder.yml)
3.7 update.command ✅ ./resolve-update.sh
3.8 Download host ✅ Upstream GitHub releases
3.9 Optional caps opt-in ✅ Project-dir access documented as flatpak override --filesystem=~/Projects in metainfo
3.10 What was tested ⚠️ Honest, but the main feature (agent run on a project dir) was not exercised. See below
4.1 Runtime fetch-and-exec ✅ electron-updater is bundled (resources/app-update.yml, provider github) but its AppImageUpdater.isUpdaterActive() returns false without $APPIMAGE, and /app/extra is read-only. OpenCode plugin installs are the app's agent feature, into the per-app data dir
4.2 Resolver as code ✅ curl + jq to the GitHub API, read-only; strict asset regex ^openwork-linux-x64-[0-9.]+\.tar\.gz$ excludes cloud/enterprise/AppImage and prerelease suffixes; drafts/prereleases skipped; JSON via jq -n --arg
4.3 Endpoints ✅ Model providers, GitHub (updater check), Sentry (openwork-sentry.json, tracesSampleRate: 0.01); no filesystem grant
5.1 sha256 == pin ✅ 05f3f2a0a1a1aeb2afe950a665f66b40edc34a5996aab4d804db4872ef657966, 335646078 bytes; GitHub asset digest agrees
5.2 Archive inspection ✅ 839 entries, one top dir openwork-linux-x64-0.18.62/; no symlinks, no .., no setuid/setgid
5.3 Nothing injected ✅
5.4 Shipped == official ✅ Re-fetched and hashed (5.1); build doesn't touch it
5.5 Bundled runtimes ✅ Electron 43.7.7: openwork is byte-identical to electron from electron-v43.7.7-linux-x64.zip (build-id dae4f2a4…), as are chrome-sandbox, chrome_crashpad_handler, libffmpeg.so, libEGL.so, libGLESv2.so, libvk_swiftshader.so, libvulkan.so.1. opencode 1.18.33 sidecar == opencode in anomalyco/opencode v1.18.33 opencode-linux-x64.tar.gz (0abbb7c3…). opencode2 2.0.26 sidecar == package/bin/opencode in npm @opencode/[email protected] (ff4c0648…; tarball sha512 matches upstream's pin in apps/server/src/opencode-v2-artifacts.json)
5.6 IOC scan ✅ No xmrig/stratum+tcp//dev/tcp/nc -e/autostart/LD_PRELOAD. Hits on crontab (Sentry cron instrumentation), .bashrc (yargs completion template, an env-import comment), curl … | sh (dotenv README, a shell-parser doc comment) are benign. Only RPATH is Electron's stock $ORIGIN
6.1 Purpose ✅ AI agent desktop app
6.2 Non-FOSS not a reason ➖
7.1 Verdict — HOLD pending main-feature test
7.2 Hard fails — None

Blocking

  1. Main feature not tested. The testing playbook holds the listing until the main feature has been used. Here that is an agent run against a real directory, and it doesn't need an OpenWork account: a provider API key or a local model server works. Please test this path and report the result:
    • Pick a workspace folder through the file chooser portal (no override). The agent then works under /run/user/$UID/doc/…. Check that it reads files, writes a new file, and the file shows up on the host.
    • Repeat with flatpak override --user --filesystem=~/Projects and a project under it.
    • Run a task that makes the agent use its shell tool (ls, git status). The sandbox only has what org.freedesktop.Platform//26.08 ships, so say which of these work, and add a line to the metainfo if a common one (git, node, python3) is missing.
    • Confirm a saved provider key lands in the Secret Service (playbook "Saved passwords").

Suggestions (non-blocking)

  1. aarch64. Upstream ships openwork-linux-arm64-0.18.62.tar.gz in the same release, with the same tree layout. Consider arches: [x86_64, aarch64], a second extra-data source with only-arches: [aarch64] and the same filename, and the resolver emitting one source per arch with "arch" (basics). Fine to leave for a follow-up if you can't test arm.
  2. flatpark.yml: the tag AI repeats category: AI; other AI-category apps don't tag it.
  3. Metainfo: the paragraph ending "To let an agent work in a directory of yours:" followed by "Grant a project directory with …" says the same thing twice; one sentence is enough.
  4. Metainfo could note that the build sends crash reports to Sentry (upstream's openwork-sentry.json) and checks GitHub for updates, which do nothing in the Flatpak.
  5. Wrapper: --ozone-platform-hint=auto is very likely already Electron 43's default; harmless.

What this review doesn't cover

The app was not run. App source was not audited beyond the bundled updater and the IOC grep. app.asar was grepped as raw bytes, not unpacked. CI checks had not run on the branch at review time.

Reproduce

curl -fsSLO https://github.com/different-ai/openwork/releases/download/v0.18.62/openwork-linux-x64-0.18.62.tar.gz
sha256sum openwork-linux-x64-0.18.62.tar.gz     # 05f3f2a0…7966
tar -tvzf openwork-linux-x64-0.18.62.tar.gz | awk '{print $1}' | sort | uniq -c
curl -fsSLO https://github.com/electron/electron/releases/download/v43.7.7/electron-v43.7.7-linux-x64.zip
unzip -p electron-v43.7.7-linux-x64.zip electron | sha256sum   # == openwork-linux-x64-0.18.62/openwork
curl -fsSL https://github.com/anomalyco/opencode/releases/download/v1.18.33/opencode-linux-x64.tar.gz | tar -xzO opencode | sha256sum   # 0abbb7c3…
curl -fsSL https://registry.npmjs.org/@opencode/cli-linux-x64-baseline/-/cli-linux-x64-baseline-2.0.26.tgz | tar -xzO package/bin/opencode | sha256sum   # ff4c0648…

Reviewer recommends only; a maintainer merges.

OpenWork hard-codes its default workspace at ~/OpenWork Chat. Without a
grant it sat on the sandbox tmpfs, so every file the agent wrote there was
lost on exit while the session history survived. Grant that one folder.

The metainfo now says where the default workspace is and that git, node
and other host tools aren't available to the agent inside the sandbox.
@jing2uo

jing2uo commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Test results (maintainer, local build of b9c7e30)

Built and installed from a local signed repo (FLATPARK_VERIFY_KEEP=1 ./scripts/publish.sh --verify), run on a private X display (:99) and driven over CDP.

Check Result Notes
audit-descriptor.mjs ✅
check-apply-extra.sh ✅ apply_extra OK as root with no capabilities
publish.sh --verify ✅ installs from the local repo
Starts and draws ✅ Composer, sidebar and model picker render
Window class ✅ Main window WM_CLASS = com.differentai.openwork, matches StartupWMClass
Bus names ✅ No Filtering lines with --log-session-bus; no tray
Main feature: agent run, no account ✅ "Auto" (OpenWork anonymous inference) works without sign-in. The agent created a file and ran shell commands
Shell tools in the sandbox ⚠️ python3, bash, curl present; git and node missing (/bin/sh: git: command not found). Not in org.freedesktop.Platform
Default workspace survives a restart ❌ See below
Granted project dir ✅ With --filesystem=<dir>, the agent read README.md, appended a line and created notes/summary.md; all visible on the host. OpenWork drops an opencode.jsonc into every workspace it opens (upstream behaviour)
Nothing new in the home folder ✅ Only the directories granted for the test
Folder picker through the portal ➖ Dialog opens on the real desktop, not on :99; not tested
Provider key in Secret Service ➖ No provider key used; not tested
Sign-in to OpenWork Cloud ➖ Not tested

The default workspace is lost on every exit

On first start OpenWork creates its default workspace at path.join(os.homedir(), "OpenWork Chat") (hard-coded in app.asar). Without a grant, ~/OpenWork Chat is on the sandbox's tmpfs:

$ flatpak enter <instance> findmnt -T "/home/$USER/OpenWork Chat"
TARGET FSTYPE SOURCE
/      tmpfs  tmpfs[/newroot]

The agent wrote flatpark-test.txt there; after flatpak kill and a restart the file and the workspace's .opencode/ were gone, while the session history (in ~/.var/app/…/data/opencode/opencode.db) was still listed. A user sees their conversations but loses every file the agent made.

Relaunching with --filesystem=~/OpenWork Chat:create fixed it: the file landed in the host's ~/OpenWork Chat and survived the restart.

Fix pushed to this branch

  • finish-args: --filesystem=~/OpenWork Chat:create, the app's own default folder, same place as a native install.
  • Metainfo: says where the default workspace is, and that git, node and other host tools aren't available to the agent inside the Flatpak sandbox (a known Flatpak limitation); folds the duplicated override sentence into one.

@jing2uo

jing2uo commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

CI note: the lint-and-test failure on 49b6490 comes from the link and test issues already on main, not from this PR. It doesn't block the merge. The package itself passed audit-descriptor, appstreamcli validate, check-apply-extra and publish.sh --verify locally with the fix, and build-changed (aarch64) and guard-infra are green.

@jing2uo
jing2uo merged commit 64f3e18 into flatpark:main Oct 26, 2026
jing2uo added a commit that referenced this pull request Oct 26, 2026
…the PR touches (#860)

com.analog.LTspice (#849) merged from a branch that predated the exec-bit
guardrail in #857, so its resolve-update.sh landed 100644 and the
catalog-wide audit step failed every PR since (e.g. #852).

The audit still runs over every descriptor, but a hard failure on an app the
PR does not touch is now a warning; a PR that changes the auditor itself
stays strict catalog-wide.

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants