Repository navigation
feat(cline): add Cline, an AI coding agent (bot.cline.app) - #815
Merged
Merged
Conversation
Collaborator
Review: Cline (
|
| # | 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 blockflatpark.yml: x86_64 only, category AI,proprietary: falseapply_extra.sh: bsdtar unpack and layout checks, no patchingcline-wrapper,cline-cli-wrapper: env + execresolve-update.sh: see 4.2bot.cline.app.desktop,bot.cline.app.metainfo.xml: community-package notice, permission text, override commandbot.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 | sha256sumSuggestions (non-blocking)
- In-app updater.
latest.jsonlistslinux-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 throughflatpak updatewould help users. StartupWMClass. Upstream's desktop file hascline-app; this PR hasCline-app. Please confirm against the app id you measured while the app was running.- aarch64. Upstream publishes
Cline_0.0.48_arm64.deb, butflatpark/prebuilthas 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. - 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-checkshas not run yet (fork PR waiting for workflow approval).
This was referenced Oct 26, 2026
This was referenced Nov 8, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.debfrom thedesktop-v0.0.48release (2026-10-17), as extra-data. There is no Linux tar.gz; the.debis the Linux artifact upstream publishes.apply_extraunpacks it withbsdtar --no-same-ownerand keepsusr/binnext tousr/lib/Cline, which is the relative path Tauri uses for the desktop backend.Runtime is
org.gnome.Platform//51because the binary links WebKitGTK 4.1 and GTK 3. The tray dlopenslibayatana-appindicator3.so.1, supplied by the sharedayatana-stackprebuilt. The wrapper only execs the upstream binary and setsWEBKIT_DISABLE_DMABUF_RENDERERso the window is not blank.cline-clifrom the same deb is onPATH.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
~/.clinestay out of reach untilflatpak 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).flatpak-builder, installed from the local repo.appstreamcli composeprinted Success.cline-cli --versionprinted3.0.73.lddoncline-appandcline-clireported no missing libraries.Flathub
Not on Flathub.
Made with Cursor