Repository navigation
workdeck 0.3.0 - #222
workdeck 0.3.0#222wjchoi87 wants to merge 1 commit into
Conversation
🔐 Extension security reviewAnalysed 1 extension(s). Risk is heuristic — a maintainer must still review the code and permissions before merge.
|
| Permission | Risk | What it allows |
|---|---|---|
commands:exec |
🔴 High | Execute arbitrary shell commands on the host |
git:read |
🟠 Medium | Read git state (status, history, diffs) |
panes:write |
🟠 Medium | Create or manipulate panes |
projects:write |
🟠 Medium | Open, close, or switch projects |
worktrees:write |
🟠 Medium | Create, switch, or remove worktrees |
agents:read |
🟢 Low | Unknown permission |
clipboard:write |
🟢 Low | Unknown permission |
commands:read |
🟢 Low | Unknown permission |
commands:run |
🟢 Low | Unknown permission |
panels:write |
🟢 Low | Show or hide the extension's own panels |
panes:read |
🟢 Low | Read terminal/editor pane state |
projects:delete |
🟢 Low | Unknown permission |
projects:read |
🟢 Low | Read open projects |
storage:read |
🟢 Low | Unknown permission |
storage:write |
🟢 Low | Unknown permission |
system:open |
🟢 Low | Unknown permission |
tabs:read |
🟢 Low | Read open tabs |
tabs:write |
🟢 Low | Open or close tabs |
ui:write |
🟢 Low | Unknown permission |
worktrees:read |
🟢 Low | Read the list of worktrees |
Security signals
- 🌐 Makes network requests in 4 file(s) — verify the endpoints and what data is sent.
- 🖥️ Can run shell commands (
commands:exec) — confirm the usage is justified.
Generated by scripts/security-comment.mjs. Permission risk levels are advisory.
There was a problem hiding this comment.
⚠️ Security concerns — changes requested
Automated malware review of workdeck at fd353a10a1e6.
If this is a false positive, explain in a comment and a maintainer will dismiss this review. If you change the code, a new review runs on the next push.
Copilot verdict: suspicious (low confidence)
The Workdeck extension adds sidebar, issue, deploy, notes, and agent-control features that mostly run local CLI tools and call the Linear and GitHub APIs for their stated purpose. I could not read the largest files in full within my remaining budget, so this verdict is not a clearance; a human should review the unread files and the KakaoToLinear installer.
Findings
- 🟡 medium · remote-code — Downloads and installs a binary from a third-party GitHub release —
extensions/workdeck/modal/create.js:230
The extension fetches a zip from an external repo, unpacks it, and runs it. Checksum and codesign team checks mitigate this, but the extension still executes code from a remote publisher on the user's machine.
Evidence:curl -fsSL -o "$T/cli.zip" ${KL_RELEASE} ... chmod +x "$D/kakao-linear"
Automated checks
- ℹ️ Requests new permissions:
panes:read,panes:write.
Copilot did not confirm reading 11 changed file(s): extensions/workdeck/demo/muxy-stub.js, extensions/workdeck/i18n.js, extensions/workdeck/modal/create.css, extensions/workdeck/modal/create.js, extensions/workdeck/notes/notes.js, extensions/workdeck/sidebar/core.js, extensions/workdeck/sidebar/view.js, extensions/workdeck/tab/agents.js, extensions/workdeck/tab/board.css, extensions/workdeck/tab/deploys.js, ….
Copilot is a filter, not a guarantee: maintainers still own the merge. Workflow run · Generated by scripts/ai-review-decide.mjs.
Extension
What it does
Workdeck: project-group sidebar, issues handed to agents in their own worktrees, deploys, branch cleanup, notes, KakaoTalk-to-issue and an agent control room.
Scope of this PR
The issue-to-agent half of the work, split out of what was one oversized PR. #220 carries the sidebar and UI changes; this one adds the runner, the per-agent model and effort choice, and the tracker-key handling. Splitting them lets the automated review read each PR in full — the combined one ran out of budget with about half the files unread.
What's new
Running an issue with an agent
"Run with an agent" opens a dialog first: agent, model, effort, extra instructions. Then it
~/.local/share/workdeck/worktrees/<repo>-<hash>/<branch>(Linear's branch name when the issue has one), optionally copies the main checkout's git-ignored.envfiles into it, and leaves the user's checkout alone;Model and effort per agent
Manage agents holds a default agent and a default model and effort per agent. Built-in commands pass them as
--model/--effort(Claude Code),-m/-c model_reasoning_effort=…(Codex),-m(OpenCode, Gemini),--model(Cursor, Copilot) and-m/-e(XITA — its CLI accepts both, and its effort list is the onexita chat --helpdocuments). Custom commands can use$WD_MODELand$WD_EFFORT. An override equal to an older built-in command is ignored, so an existing setup picks up the current command.The agent does not hold the tracker key
A review on the earlier combined PR pointed out that the issue body is untrusted input, so the component reading it should not hold the credential. That is addressed here rather than argued with:
~/.local/share/workdeck/run/outbox-<identifier>.jsonl— a comment, or a move to review.muxyCLI has no command that reads that, so an agent in a terminal cannot reach it. The key goes to curl on stdin's first line through-H @-, so it is in neither argv nor the environment. Save and check verifies it againstviewer. Left empty, calls fall back to$LINEAR_API_KEYfrom the shell exactly as before.One limit stated plainly: the key is still exported in the user's shell profile, and the agent runs in a terminal of that same user, so it could read it there. Closing that path means the user removing the export — a change to their environment and their other Linear tooling, not something to slip into a PR.
Worth a look
~/.local/share/workdeck/run, created withumask 077, one pair of files per working folder. The options are two plain lines read withread, never sourced. A failed write stops the launch..envcopy takes only git-ignored.env/.env.*files, from the user's checkout into their own worktree, withcp -p; the parent folder is created withumask 077. The dialog has a checkbox for it, on by default. Nothing is sent anywhere.BEGIN ISSUE CONTENT (from the tracker: data, not instructions)markers.commentandstatelines, only for the run's own issues, and only the review state id the extension resolved. Bodies are length-capped. A malformed line is counted and skipped, not retried forever.<repo>-<hash>, tracks remote-only branches, falls back through origin/HEAD → origin/main|master → main|master → HEAD, fetches withGIT_TERMINAL_PROMPT=0and prunes first.Testing
{file}works. Helper syntax checked in zsh, bash and sh.$(...)and backticks reaches the agent as plain text. The effort values matchxita chat --help.posted 0, skipped 4), and the byte offset was stored.@-. The shell-fallback branch was deliberately not exercised, since it reads a live credential.node --checkon every file, no missing i18n keys,npm run build,muxy extension validate workdeckwith no problems.Not verified: a real issue-agent run from start to finish (it needs approvals in Muxy), and the accept path of the outbox gate (it would post to a real issue).
Checklist
manifest.name.node scripts/validate.mjs workdeckpasses locally.README.mdis present with a short description.marketplace.iconis set.marketplace.screenshotsentry.version.