Skip to content

Add paper-agent extension - #26367

Merged
raycastbot merged 10 commits into
raycast:mainfrom
galleonli:ext/paper-agent
Apr 2, 2026
Merged

raycastbot merged 10 commits into
raycast:mainfrom
galleonli:ext/paper-agent

Conversation

@galleonli

@galleonli galleonli commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer Update

Earlier issues raised in automated review have been addressed in later commits. Current status:

  • command-specific Preferences typing fixed
  • module-scope getPreferenceValues() removed
  • clipboard side effect removed
  • dead code cleaned up

All checks are passing and the extension has been re-tested locally.

Description

This pull request introduces the initial setup for the Paper Agent Raycast extension, establishing the foundational files, configuration, and documentation necessary for development, usage, and publishing. The changes include project metadata, user and developer documentation, licensing, and configuration for code style and linting.

Project Initialization and Metadata

  • Added package.json defining extension metadata, preferences, commands, dependencies, and scripts for building, developing, linting, and publishing the extension. This file also specifies all user-facing configuration options and command registrations for the Raycast platform.
  • Added LICENSE file with the MIT license for open-source usage and distribution.
  • Added .gitignore to exclude logs, coverage, build artifacts, dependency directories, and editor-specific files from version control, following common Node.js and Raycast practices.

Documentation

  • Added comprehensive README.md detailing requirements, installation steps, configuration, available commands, troubleshooting, and links to the core Paper Agent project. This serves as the main entry point for users and contributors.
  • Added CHANGELOG.md summarizing the features and capabilities included in the initial release, such as running the pipeline, browsing/searching papers, managing favorites and reading queue, and configuration options.

Development Tooling and Code Style

  • Added ESLint configuration (eslint.config.js) using Raycast’s recommended rules for code quality and consistency.
  • Added Prettier configuration (.prettierrc) to standardize code formatting across the project.## Description

Screencast

N/A for this update.

Added required Store screenshots in metadata/:

  • paper detail/actions
  • check run status
  • install daily schedule
  • reading queue
  • search papers
  • today papers

Checklist

- merge ext/paper-agent into main
- fix(paper-agent): validate env var names for schedule env export
- fix(paper-agent): validate env var names for schedule env export
@raycastbot raycastbot added new extension Label for PRs with new extensions platform: macOS labels Mar 16, 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 10-15 business days.

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

@galleonli
galleonli marked this pull request as ready for review March 16, 2026 05:49
@greptile-apps

greptile-apps Bot commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds the initial Paper Agent Raycast extension — a read/triage interface for a local Python-based arXiv paper pipeline. It provides commands to browse today's and recent papers, search the library, manage favorites and a reading queue, run the pipeline manually, and install/remove a macOS launchd schedule. The overall architecture is well-structured, with clean separation of utilities (run-utils, config-utils, paper-utils) and React hooks for state (useFavoritePapers, useReadingQueue, useReadPapers).

Key points from this review:

  • Several patterns raised in previous review rounds appear to have been addressed: today-papers.tsx, recent-papers.tsx, and check-run-status.tsx now use useEffect/useState for async subprocess calls instead of blocking the render; remove-daily-schedule.tsx correctly uses trash() from @raycast/api; and the debounce in search-papers.tsx is properly wired up.
  • One remaining new issue: the typeof rawLimit === "number" branch in recent-papers.tsx is dead code since recentLimit is a "textfield" preference and is always a string.
  • Previously flagged items not yet resolved (per open threads): install-daily-schedule.tsx still uses Preferences.RunPipeline instead of the auto-generated Preferences.InstallDailySchedule; the module-level getPreferenceValues() call in run-pipeline.tsx; and the automatic clipboard write in install-daily-schedule.tsx on core-not-found.

Confidence Score: 3/5

  • Not yet safe to merge — several items flagged in previous review rounds remain unresolved in the codebase.
  • The overall code quality is good and the architecture is sound. Several previously flagged blocking concerns (sync subprocess in render body, missing trash() usage) have been fixed. However, open threads remain unresolved: wrong Preferences type in install-daily-schedule.tsx, module-level getPreferenceValues() in run-pipeline.tsx, and the automatic clipboard write on core-not-found. A new minor dead code issue was also found in recent-papers.tsx.
  • install-daily-schedule.tsx (wrong Preferences type + automatic clipboard write), run-pipeline.tsx (module-level getPreferenceValues), recent-papers.tsx (dead code branch)

Important Files Changed

Filename Overview
extensions/paper-agent/package.json Extension metadata, preferences, and commands all look well-structured. Preference titles use Title Case correctly. Categories (Developer Tools, Productivity) are valid. Platforms is macOS-only which matches the launchd usage throughout the codebase.
extensions/paper-agent/src/paper-list.tsx Contains the shared PaperListView, FavoritePapersView, and ReadingQueueView components. The auto-read-after-5s timer via useEffect is clean. State management for favorites, reading queue, and read status all delegate to appropriate hooks.
extensions/paper-agent/src/today-papers.tsx Correctly uses async useEffect + useState pattern for loading papers and checking core availability. The cancellation flag prevents stale state updates. The Python subprocess is not terminated when cancelled but that's acceptable given the debounce-free nature of this command.
extensions/paper-agent/src/recent-papers.tsx Uses async useEffect pattern correctly. Contains one minor dead code branch: typeof rawLimit === "number" can never be true since recentLimit is a textfield preference and always returns a string.
extensions/paper-agent/src/search-papers.tsx Correctly implements 250ms debounce via a dedicated useEffect. Search results load asynchronously. In-flight Python processes are not terminated on debounce cancellation, but with 250ms debounce this is acceptable.
extensions/paper-agent/src/check-run-status.tsx Now correctly uses useEffect + useState with async isLaunchAgentLoaded. Shows a loading Detail while status is fetched. Clean implementation.
extensions/paper-agent/src/remove-daily-schedule.tsx Correctly imports and uses trash() from @raycast/api for file removal. Properly handles launchd unload before file deletion.
extensions/paper-agent/src/install-daily-schedule.tsx Uses Preferences.RunPipeline type instead of the correctly auto-generated Preferences.InstallDailySchedule. The automatic clipboard write on core-not-found is also a UX concern.
extensions/paper-agent/src/run-utils.ts Well-structured utility module. Process spawning, env management, and config merging are sound. The detached spawn pattern for background pipeline runs is correct. getActiveRunLockPid validates process state before returning a PID.
extensions/paper-agent/src/config-utils.ts YAML config helpers are clean. Temp config files written to os.tmpdir() are cleaned up in finally blocks. unlinkSync is acceptable here for temp file cleanup (not user files). Both sync and async variants are provided.
extensions/paper-agent/src/run-pipeline.tsx Calls getPreferenceValues() at module scope (line 14), outside of any React component or command function. This can cause issues if the module is imported before Raycast's environment is initialized. The same pattern appears in several other command files.

Last reviewed commit: "docs: enhance README..."

Comment thread extensions/paper-agent/package.json Resolved
- chore: standardize titles in configuration and documentation
- refactor: improve preference handling and async operations across components
@galleonli

Copy link
Copy Markdown
Contributor Author

@greptile-apps please re-review latest commit

@galleonli

Copy link
Copy Markdown
Contributor Author

@greptile-apps please re-review latest commit

- refactor: streamline state management and error handling in paper components
- refactor: update error messaging in install-daily-schedule
@galleonli

Copy link
Copy Markdown
Contributor Author

@greptile-apps please re-review latest commit :)

@galleonli

Copy link
Copy Markdown
Contributor Author

@greptile-apps please re-review latest commit

- feat: enhance run status reporting and daily schedule management
- docs: update README with troubleshooting guidance for pipeline errors
@galleonli

Copy link
Copy Markdown
Contributor Author

@greptile-apps please re-review latest commit

@galleonli

Copy link
Copy Markdown
Contributor Author

@greptile-apps please re-review latest commit

@0xdhrv 0xdhrv self-assigned this Mar 25, 2026
@galleonli

Copy link
Copy Markdown
Contributor Author

Hi @0xdhrv, thanks for picking this up.

Just to clarify: the earlier issues raised by Greptile were fixed in subsequent commits, so the current PR state is ahead of some of the older review comments.

Resolved items include:

  • corrected command-specific Preferences typing
  • removed module-scope getPreferenceValues() usage
  • removed the automatic clipboard side effect
  • cleaned up the dead code in recent-papers.tsx

I also re-ran npm run build, and all checks are currently passing.

Would appreciate a review whenever it reaches the queue.

0xdhrv added 2 commits April 2, 2026 12:10
- Updated README to clarify project purpose and repository links.
- Added Raycast-related files to .gitignore for better management.
- Minor formatting adjustments in changelog for consistency.
- Refactored import statements in install-daily-schedule and run-utils for cleaner code.
- Simplified the assignment of pythonBin in recent-papers, search-papers, and today-papers components.
- Used optional chaining and nullish coalescing for cleaner code.

@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 23ee8a8 into raycast:main Apr 2, 2026
2 checks passed
@github-actions

github-actions Bot commented Apr 2, 2026

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 (@galleonli).

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

@galleonli
galleonli deleted the ext/paper-agent branch April 2, 2026 09:40
@galleonli
galleonli restored the ext/paper-agent branch April 2, 2026 09:42
ariesly15 pushed a commit to ariesly15/raycast-extensions that referenced this pull request Apr 10, 2026
- feat[extensions/qq-mail]: 添加QQ邮箱扩展及配置文件
- Merge branch \'raycast:main\' into main
- Update CODEOWNERs (9944a1b)
- [XKCD Comics] Add viewing history (raycast#26704)
- refactor: 增加useCallback并更新tsconfig配置
- Update CODEOWNERs (9b7c8a4)
- Add Kafka UI extension (raycast#26259)
- Merge branch \'raycast:main\' into main
- refactor: 简化 Action.CopyToClipboard 组件调用 (url-parse.tsx)
- chore: 移除 delink 扩展中的图标配置项
- chore: 删除图标文件并更新配置引用新图标
- Update CODEOWNERs (756e9da)
- Update ascii-art-wallpaper extension (raycast#26707)
- Update CODEOWNERs (23ee8a8)
- Add paper-agent extension (raycast#26367)
- Merge branch \'raycast:main\' into main
- chore: 更新 delink 扩展变更日志并移除旧版本记录
- Update CODEOWNERs (768930b)
- Add nocal extension (raycast#26482)
- Update CODEOWNERs (7c0e492)
- Add caaals extension (raycast#26443)
- Merge branch \'raycast:main\' into main
- docs: 更新 delink 扩展文档及快捷键说明
- Update CODEOWNERs (41a12f0)
- Update mirror-displays extension (raycast#26445)
- chore: 更新 delink 扩展的版本信息为初始发布版
- docs: 调整 delink 扩展快捷键说明顺序
- Merge branch \'raycast:main\' into main
- feat:up
- Update CODEOWNERs (2134dff)
- Update hetzner extension (raycast#26705)
- Update CODEOWNERs (840e5a9)
- Add ram-prices extension (raycast#26564)
- Update CODEOWNERs (45fad15)
- Add habitica-todos extension (raycast#26446)
- Update CODEOWNERs (3e686e1)
- Add Bundles extension (raycast#25680)
- Update CODEOWNERs (f6261fd)
- Update tmux-cheatsheet extension (raycast#26379)
- Changelog Alignment (raycast#26824)
- Update prism-launcher extension (raycast#26816)
- Merge branch \'raycast:main\' into main
- feat: add metadata folder and language setting
- Update picgo extension (raycast#26818)
- Update CODEOWNERs (bd7023d)
- Add clockodo extension (raycast#26432)
- feat: add raycast extension delink
- Update CODEOWNERs (868aef4)
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