Skip to content

Add capd extension - #29979

Merged
raycastbot merged 4 commits into
raycast:mainfrom
jamiedavenport:ext/capd
Aug 21, 2026
Merged

raycastbot merged 4 commits into
raycast:mainfrom
jamiedavenport:ext/capd

Conversation

@jamiedavenport

@jamiedavenport jamiedavenport commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds Capd, an extension for Capd — an open-source, local-first macOS app for capturing web pages, selected text, links, notes, and images and finding them again with full-text search.

Two commands:

  • Search — full-text search across titles, extracted page text, selections, notes, and OCR'd image text. The search bar takes Capd's own filters (site:, tag:, after:, before:); an empty search bar lists recent captures. Results can be opened, copied as a URL/title/Markdown, or deleted.
  • Capture — saves a link or text from the command argument, the current selection, or the clipboard. Works well as a fallback command. Re-capturing something already saved updates the existing entry rather than duplicating it, and the confirmation says so.

How it talks to Capd

The extension shells out to the capd CLI that ships inside the user's own capd.app bundle, using its documented JSON output and exit codes. Worth calling out up front, since the guidelines ask about binaries:

  • Nothing is bundled or downloaded. No binary is committed, fetched, or executed from a remote source. The extension only invokes a binary the user has already installed themselves.
  • It resolves the app, not a path. getApplications() locates the dev.jxd.capd bundle, so it works wherever the user keeps capd.app and needs nothing on PATH. A preference exists as an escape hatch.
  • execFile, never a shell, so search text can't be interpreted as a command.
  • No credentials, no Keychain, no network requests, no analytics. The extension has no account concept at all — everything stays on the user's Mac.
  • Capd is open source (MIT) and distributed as a notarized .dmg and a Homebrew cask: github.com/jamiedavenport/capd.

Testing it

Capd requires macOS 26 or later. To try the extension:

brew install jamiedavenport/tap/capd
capd add https://react.dev

Then run Capd: Search and type site:react.dev. If Capd isn't installed, both commands show an actionable empty state linking to the install guide rather than failing silently.

Docs: capd.jxd.dev · CLI and Raycast reference · Privacy

Screencast

Search results, with favicons, snippets, tags, hosts, and capture dates:

Search

The same search narrowed with a site: filter:

Filtered search

Actions available on a result:

Actions

Checklist

- feat: add Raycast extension for search and capture (#55)
- Fix resilient full-library retagging (#54)
- chore: bump version to 0.0.5
- feat: add manual retag trigger (#53)
- Fix capture HUD being replaced after saving a page (#52)
- chore: correct version to 0.0.4
- chore: bump version to 0.1.0
- feat: add contextual revisit reminders (#51)
- feat: add Ask Cap answers with capture citations (#50)
- chore: bump version to 0.0.3
- docs: add note capture demo
- Add import from Pinboard (#49)
- Add icons and help links to the menu bar menu (#48)
- chore: bump version to 0.0.2
- Add cinematic first-run onboarding (#47)
- docs: add search window demo
- docs: add drag-to-capture demo
- docs: add capture-to-search demo
- chore: reset Capd version to 0.0.1
- feat: guide Apple Intelligence setup during onboarding (#42)
- fix(ci): invalidate caches after repo rename
- fix(ci): use Wrangler 4 for docs deployment
- refactor: rename Cap to Capd and refresh documentation (#46)
- fix: cycle tags backward with Shift+Tab (#45)
- chore: bump version to 0.0.9
- feat: move tag filters to a clickable row below the search bar (#43)
- docs: update banner
- feat: serve captures over MCP with cap mcp (#41)
- chore: bump version to 0.0.8
- feat: capture from the macOS share sheet (#40)
- feat: auto-tag captures on device with Tab-cycled tag filters (#39)
- feat: adaptive light backing for dark favicons (#38)
- feat: show a Copied to clipboard toast in the HUD (#37)
- docs: add banner
- fix(docs): use logo.svg for the Blume site logo (#36)
- chore: bump version to 0.0.7
- Extract views into a CapAppUI library target (#34)
- feat: add logo, app icon, and menu-bar glyph (#35)
- feat: show site favicons on link captures (#33)
- feat: add hotkey to note the last capture (#32)
- docs: remove redundant documentation
- docs: record capture-matrix QA run results
- chore: bump version to 0.0.6
- fix: hold notch HUD drop target across mouse-up so drops are delivered (#31)
- chore: bump version to 0.0.5
- feat: drag & drop capture — menu-bar icon and notch HUD drop targets (#30)
- ci: parallelize lint, tests, and release perf gate (#29)
- fix: move search delete to ⌘⇧⌫ and open results on single click (#28)
- chore: bump version to 0.0.4
- feat: dark design language with notch-style capture HUD (#27)
- fix: make ⌘⌫ delete work in the search window (#26)
- chore: bump version to 0.0.3
- feat: unify HUD and search bar under a Raycast-style design language (#25)
- test: add pre-dogfood capture-accuracy matrix worksheet
- chore: bump version to 0.0.2
- feat: end-user docs site (Blume) deploying to cap.jxd.dev (#24)
- feat: capture HUD polish — animation, placement, explicit dismissal (#23)
- feat: Gecko browser link capture via Accessibility (#22)
- fix: sign the .dmg itself (#21)
- feat: release CI — universal binary, sign, notarize, staple, tap bump (#20)
- feat: AX permission-loss detection + re-grant prompt (#19)
- feat: first-run onboarding + launchd install flow (#18)
- feat: diagnostics — cap status + cap doctor (CAP-13) (#17)
- docs: gate criterion, privacy statement, sandbox posture (CAP-24) (#16)
- feat: enrichment agent — launchd, actor queue, crash isolation (CAP-10) (#13)
- feat: Spotlight-style search window (CAP-15) (#15)
- feat: weekly version check + settings surface (CAP-18) (#14)
- feat: test harness — golden corpus + escaping matrix (CAP-7) (#10)
- feat: app shell — hotkey capture path + HUD toast (CAP-14) (#12)
- docs: pin the CLI output contract with golden-file tests (CAP-12) (#11)
- feat: add CLI core commands (CAP-11) (#9)
- feat: add tab-first body extraction with network fallback (CAP-8) (#8)
- feat: add Vision OCR processing step and enrichment runner (CAP-9) (#7)
- feat: dedupe on re-capture + enrichment merge (#6)
- feat: add secure-input and AX-subrole capture guards (CAP-4) (#5)
- feat: add SearchService with query parsing, bm25, snippets, and filters (CAP-6) (#4)
- chore: update CLAUDE.md
- feat: add CaptureService.ingest single write path (CAP-3) (#3)
- chore: update CLAUDE.md
- feat: add the v0.1 capture schema and migration 001 (CAP-2) (#2)
- feat: scaffold SPM workspace and CI skeleton (CAP-1) (#1)
- docs: record eng review decisions for cap v0.1
- docs: add v0.1 design decision record, wireframe, and TODOS from office-hours + CEO review
- chore: add gstack skill routing rules to CLAUDE.md
@raycastbot raycastbot added new extension Label for PRs with new extensions platform: macOS labels Aug 4, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@greptile-apps

greptile-apps Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds a new Capd extension that invokes the locally installed Capd CLI to capture content and search saved items.

  • Adds Search and Capture commands with installation guidance and configurable CLI resolution.
  • Adds CLI contract parsing, result actions, tests, metadata, documentation, and extension configuration.
  • The previously reported fixture, generated-type, and Prettier configuration issues are resolved.

Confidence Score: 5/5

The PR appears safe to merge because no blocking failure remains from the previous review threads.

The fixture-dependent tests now skip when the external fixture directory is absent, source code uses generated manifest types, and the Prettier configuration explicitly includes the required options.

Important Files Changed

Filename Overview
extensions/capd/src/capd.ts Resolves the installed Capd executable and wraps its search, capture, and removal CLI operations.
extensions/capd/src/search.tsx Implements the searchable capture list, result actions, deletion flow, and missing-installation state.
extensions/capd/src/capture.ts Captures explicit arguments, fallback text, selected text, or clipboard content and reports the CLI outcome.
extensions/capd/src/contract.ts Defines Capd exit-code handling, error messages, duplicate detection, and JSON result parsing.
extensions/capd/test/contract.test.ts Makes external golden-fixture tests conditional while retaining self-contained contract and helper coverage.
extensions/capd/package.json Declares the extension metadata, commands, preferences, dependencies, and development scripts.
extensions/capd/.prettierrc Now includes both required repository-standard Prettier options.

Reviews (4): Last reviewed commit: "Update CHANGELOG.md and optimise images" | Re-trigger Greptile

Comment thread extensions/capd/test/contract.test.ts Resolved
Comment thread extensions/capd/src/capd.ts Resolved
Comment thread extensions/capd/.prettierrc Resolved
@jamiedavenport
jamiedavenport marked this pull request as ready for review August 4, 2026 21:09
@0xdhrv 0xdhrv self-assigned this Aug 21, 2026
- Parse blank, invalid, and non-array search responses safely
- Show failure toasts for search errors
- Improve empty-state messaging and rename Reload to Refresh
- Update Raycast dependencies and add parser coverage

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved ✅

@raycastbot
raycastbot merged commit ddd92c8 into raycast:main Aug 21, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@jamiedavenport).

Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants