Skip to content

feat(cline): add Cline, an AI coding agent (bot.cline.app) - #815

Merged
jing2uo merged 1 commit into
flatpark:mainfrom
3ddruck12:add/bot.cline.app
Oct 24, 2026
Merged

jing2uo merged 1 commit into
flatpark:mainfrom
3ddruck12:add/bot.cline.app

Conversation

@3ddruck12

Copy link
Copy Markdown
Contributor

What

Cline (bot.cline.app), the desktop AI coding agent from https://github.com/cline/cline. This is the upstream app id.

Packaging

Official Linux build, unmodified: Cline_0.0.48_amd64.deb from the desktop-v0.0.48 release (2026-10-17), as extra-data. There is no Linux tar.gz; the .deb is the Linux artifact upstream publishes. apply_extra unpacks it with bsdtar --no-same-owner and keeps usr/bin next to usr/lib/Cline, which is the relative path Tauri uses for the desktop backend.

Runtime is org.gnome.Platform//51 because the binary links WebKitGTK 4.1 and GTK 3. The tray dlopens libayatana-appindicator3.so.1, supplied by the shared ayatana-stack prebuilt. The wrapper only execs the upstream binary and sets WEBKIT_DISABLE_DMABUF_RENDERER so the window is not blank. cline-cli from the same deb is on PATH.

The resolver walks recent GitHub releases and takes the newest non-draft asset named Cline_<version>_amd64.deb, so CLI and SDK releases without that file are skipped.

Sandbox

Granted: display, GPU, network (sign-in, model APIs, marketplace), the tray, and ~/.cline (Cline stores its own account and settings there, not in an XDG dir).

Not granted: the rest of home. Projects outside ~/.cline stay out of reach until flatpak override --user --filesystem=home bot.cline.app, as written in the metainfo. Commands the agent starts run inside the sandbox.

Tested

  • check-apply-extra, descriptor audit, AppStream validate, and the resolver (0.0.48).
  • Built with flatpak-builder, installed from the local repo. appstreamcli compose printed Success.
  • cline-cli --version printed 3.0.73. ldd on cline-app and cline-cli reported no missing libraries.
  • The window opened on “Set up Cline”. Sign-in with Cline completed through the host browser (device code, then SSO). No agent task was run, and no project was edited.

Flathub

Not on Flathub.

Made with Cursor

@jing2uo

jing2uo commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Review: Cline (bot.cline.app)

Recommendation: PASS. Provenance checks out, the payload is unmodified, and nothing suspicious turned up. A few non-blocking suggestions are at the end. This review recommends only; a maintainer merges.

The review was static, following docs/reviewers/review-runbook.md. Nothing from the PR or the artifact was executed. The .deb was downloaded as bytes into an isolated directory and listed before extraction, then extracted with --no-same-owner --no-same-permissions and inspected with file, readelf, objcopy, strings and grep.

Checks

Legend: ✅ pass · ❌ fail · ⚠️ warn · 👤 needs-human · ➖ N/A

# Phase Check Tier Verdict Evidence
0 Safety Static-only; nothing executed; isolated dir ★ ✅ .deb fetched with curl -o into a scratch dir; bsdtar -tvf / tar -tvzf listing before extraction; extracted --no-same-owner --no-same-permissions; no script, binary or resolver run
1.1 Scope Classification ★ ✅ New app: 9 files, all under registry/bot.cline.app/ (git diff --stat origin/main...pr815)
1.2 Scope High-scrutiny surface ★ ✅ No .github/, scripts/, config/ or signing changes. resolve-update.sh is in a brand-new app dir (routine)
2.1 Provenance Submitter ★ ✅ 3ddruck12: account from 2021-05-17, 34 public repos, 5 merged FlatPark PRs (#581, #582, #629, #634, #793)
2.2 Provenance Source repo ★ ✅ cline/cline, created 2024-07-06, ~70.8k stars, owner cline
2.3 Provenance Commit identity ★ ✅ d7c6960 3ddruck <[email protected]>: well-formed
2.4 Provenance Timeline ★ ✅ Release desktop-v0.0.48 was published 2026-10-17 by github-actions[bot] as part of a regular desktop series (v0.0.46 10-13, v0.0.47 10-16). The PR was opened 2026-10-23
2.5 Provenance Trust tier ★ ✅ Established
2.6 Provenance Artifact tier ★ ✅ Tier 1: open source (Apache-2.0), official upstream build
3.1 Manifest Source types ★ ✅ One extra-data with sha256 + size 170534396 (bot.cline.app.yml:51-57); archive only for ayatana-stack; the rest are local file sources; no git
3.1b Manifest Bytes in /app ★ ✅ Only ayatana-stack-ayatana-v2-gnome-51-x86_64.tar.xz sha256 1051a537…6fdc, the same pin already used by AeroFTP, dbx, CC Switch and others. The app payload is extra-data
3.2 Manifest finish-args ★ ✅ ipc, wayland, fallback-x11, dri, network, SNI watcher, xdg-run/tray-icon:create, ~/.cline:create (bot.cline.app.yml:14-28). No escape permissions, no home/host, no --device=all
3.3 Manifest policy: honest ★ ✅ proprietary: false (Apache-2.0); dangerous_permissions: [] matches
3.4 Manifest build-commands install-only ★ ✅ bot.cline.app.yml:43-48: install only. apply_extra.sh unpacks data.tar* with bsdtar, moves usr/ and chmod +x the two existing binaries; no patch. The wrapper only sets WEBKIT_DISABLE_DMABUF_RENDERER (overridable) and execs
3.4b Manifest packaging: declarations ★ ✅ Nothing to declare (env-only wrapper; ayatana is support-files, derived). node scripts/audit-descriptor.mjs registry/bot.cline.app/flatpark.yml exits 0
3.5 Manifest Source URLs genuine ★ ✅ https://github.com/cline/cline/releases/download/desktop-v0.0.48/Cline_0.0.48_amd64.deb
3.6 Manifest app-id ★ ✅ bot.cline.app is upstream's own id: the .deb ships usr/share/metainfo/bot.cline.app.metainfo.xml with <id>bot.cline.app
3.7 Manifest update.command ★ ✅ ./resolve-update.sh
3.8 Manifest Download host ★ ✅ github.com/cline (upstream org), not the submitter's account
3.9 Manifest Optional capabilities opt-in ★ ✅ Home access is not pre-granted; the metainfo documents flatpak override --user --filesystem=home bot.cline.app. ~/.cline is the app's own config dir
3.10 Manifest Test record ★ ✅ The PR body lists the build, install, launch, sign-in through the host browser, cline-cli --version → 3.0.73 and ldd, and says no agent task was run
4.1 Runtime No fetch-and-exec ★ ✅ Wrappers and apply_extra.sh contain no downloads. The app has a Tauri updater: the compiled-in endpoint is …/releases/download/desktop-latest/latest.json with a minisign pubkey, and its feed lists linux-x86_64-deb. That is the vendor's own updater and is not patched. It cannot replace /app/extra (read-only) and has no dpkg/pkexec in the sandbox (see suggestion 1)
4.2 Runtime Resolver reviewed as code ★ ✅ resolve-update.sh: curl against api.github.com/repos/cline/cline/releases (≤4 pages), jq filter for non-draft, non-prerelease ^Cline_[0-9.]+_amd64\.deb$, picks the newest published_at, prints JSON. No eval, no writes; the token idiom is the same as in 159 other resolvers
4.3 Runtime Endpoints / fs×network ★ ✅ index.js references api.cline.bot, model providers (OpenAI, Anthropic, OpenRouter, z.ai, DashScope …) and posthog.com (telemetry). Network plus ~/.cline only; no broad filesystem grant
5.1 Artifact sha256 == pin ★ ✅ 72cb599004b4cbba2643b0a0344ddde3fe8d8569b1f59de6f3d559561b42a520, 170534396 bytes: matches the manifest and GitHub's asset digest
5.2 Artifact Inspected per type ★ ✅ deb: debian-binary, control.tar.gz (control, md5sums only, no maintainer scripts), data.tar.gz with 168 entries under usr/; no symlinks, hardlinks, setuid/setgid or ../absolute paths
5.3 Artifact Nothing injected (Tier 1) 1 ✅ No preload, no file replaced; the wrapper is env + exec
5.4 Artifact Shipped == official ★ ✅ Re-fetched from the official URL and hash-compared (5.1). apply_extra only relocates usr/. The icon in the PR (52ac5f9a…) is byte-identical to upstream usr/share/icons/hicolor/256x256@2/apps/cline-app.png
5.5 Artifact Bundled runtimes ★ ✅ usr/bin/cline-cli (and remote-helpers/cline-x86_64-unknown-linux-gnu, same BuildID) is a Bun 1.4.2 single-file executable. BuildID 5afca266…a5f, .text and .rodata are identical to the official oven-sh/bun bun-v1.4.2/bun-linux-x64.zip binary; the app code is in the .bun section. cline-app is the Tauri binary (links system WebKitGTK 4.1 / GTK 3 / libsoup 3 only)
5.6 Artifact IOC scan ★ ✅ xmrig, stratum+tcp, /dev/tcp/, nc -e, crontab, systemctl --user enable, LD_PRELOAD: 0 hits across cline-app, desktop-backend/index.js and extensions/. The "autostart" hits are a connector log string in @cline/core. IPs found: 127.0.0.1, ASN.1 OIDs and the AWS SDK metadata addresses (169.254.169.254 / 169.254.170.2). ELFs: only the 4 listed above. No RPATH/RUNPATH
6.1 Compliance Purpose ★ ✅ AI coding agent from Cline Bot Inc.; the metainfo says it is a community package, unaffiliated
6.2 Compliance Non-FOSS not a reason ★ ➖ Apache-2.0
7.1 Verdict Overall ★ ✅ PASS
7.2 Verdict Hard-fail triggers ★ ✅ None
7.3 Verdict Recommends only ★ ✅ A human merges

Files read

  • bot.cline.app.yml: runtime GNOME 51, finish-args, ayatana-stack, managed extra-data block
  • flatpark.yml: x86_64 only, category AI, proprietary: false
  • apply_extra.sh: bsdtar unpack and layout checks, no patching
  • cline-wrapper, cline-cli-wrapper: env + exec
  • resolve-update.sh: see 4.2
  • bot.cline.app.desktop, bot.cline.app.metainfo.xml: community-package notice, permission text, override command
  • bot.cline.app.png: the upstream icon (5.4)

Reproduce

mkdir cline && cd cline
curl -fsSL -o cline.deb https://github.com/cline/cline/releases/download/desktop-v0.0.48/Cline_0.0.48_amd64.deb
sha256sum cline.deb; stat -c %s cline.deb
bsdtar -tvf cline.deb
bsdtar -xOf cline.deb control.tar.gz | tar -tvzf -
mkdir data && bsdtar -xOf cline.deb data.tar.gz | tar -xzf - -C data --no-same-owner --no-same-permissions
readelf -n data/usr/bin/cline-cli | grep 'Build ID'
# compare against https://github.com/oven-sh/bun/releases/download/bun-v1.4.2/bun-linux-x64.zip
objcopy -O binary --only-section=.text data/usr/bin/cline-cli /dev/stdout | sha256sum

Suggestions (non-blocking)

  1. In-app updater. latest.json lists linux-x86_64-deb, so the Tauri updater will look for new versions and cannot install them in Flatpak. It has no off switch, and patching it out of an open-source app is not allowed (sandboxes-and-updaters). One line in the metainfo saying updates come through flatpak update would help users.
  2. StartupWMClass. Upstream's desktop file has cline-app; this PR has Cline-app. Please confirm against the app id you measured while the app was running.
  3. aarch64. Upstream publishes Cline_0.0.48_arm64.deb, but flatpark/prebuilt has no aarch64 GNOME 51 ayatana-stack yet, so x86_64 only is right for now. A comment in the manifest saying so would help the next person.
  4. Telemetry (optional). The backend includes PostHog; a sentence in the metainfo would make that visible.

Not covered

  • The app was not run. The PR's test record above is the evidence for runtime behaviour.
  • The upstream source and the JS bundles (desktop-backend/index.js, extensions/node_modules) were scanned for IOCs, not audited.
  • pr-checks has not run yet (fork PR waiting for workflow approval).

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