Skip to content

feat(devcontainer): install cursor-agent CLI in image - #114

Merged
c-vigo merged 5 commits into
devfrom
feature/108-install-cursor-agent-cli
Feb 20, 2026
Merged

c-vigo merged 5 commits into
devfrom
feature/108-install-cursor-agent-cli

Conversation

@gerchowl

Copy link
Copy Markdown
Contributor

Pull Request

Description

Install the cursor-agent CLI (agent command) in the devcontainer image so that worktree recipes (just worktree-start, etc.) work out of the box without manual installation.

Original Containerfile change contributed by @nacholiya in PR #110 (commit authorship preserved). Maintainer added PATH fix, image test, and CHANGELOG entry.

Related Issue(s)

Closes #108

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • CI / Build change
  • Test updates

Changes Made

  • Containerfile: Added cursor-agent installation step via curl -fsSL https://cursor.com/install | bash, with ENV PATH for ~/.local/bin and agent --version verification
  • tests/test_image.py: Added test_cursor_agent_installed to verify agent --version succeeds in the built image
  • CHANGELOG.md: Added entry under ### Added in ## Unreleased

Changelog Entry

Added

  • cursor-agent CLI pre-installed in devcontainer image (#108)
    • Enables just worktree-start to work out of the box without manual installation

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  1. just build — image builds successfully with cursor-agent installed
  2. just test-image — test_cursor_agent_installed passes (agent --version returns rc 0)
  3. just test — full suite passes (234 pytest + 209 BATS, 0 failures)

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

  • The cursor-agent installer places the binary in ~/.local/bin. The original PR feat: install cursor-agent CLI in devcontainer image #110 didn't include this in PATH, causing the build to fail. Fixed by adding ENV PATH="/root/.local/bin:${PATH}" before the install step, matching the pattern used for cargo-binstall.
  • No version pinning — cursor-agent uses a rolling install script per the issue's proposed solution.

nacholiya and others added 5 commits February 20, 2026 14:13
The cursor-agent installer places the binary in ~/.local/bin which
is not in PATH during the Docker build. Add ENV PATH directive
before the install step, matching the pattern used for cargo-binstall.

Refs: #108
@gerchowl
gerchowl requested a review from c-vigo as a code owner February 20, 2026 13:35
@c-vigo
c-vigo merged commit 16d3b68 into dev Feb 20, 2026
11 checks passed
@c-vigo
c-vigo deleted the feature/108-install-cursor-agent-cli branch February 20, 2026 13:59
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.

3 participants