Skip to content

feat: install cursor-agent CLI in devcontainer image - #110

Closed
nacholiya wants to merge 1 commit into
vig-os:devfrom
nacholiya:feature/install-cursor-agent
Closed

nacholiya wants to merge 1 commit into
vig-os:devfrom
nacholiya:feature/install-cursor-agent

Conversation

@nacholiya

Copy link
Copy Markdown
Contributor

Summary

Installs the cursor-agent CLI inside the devcontainer image so that
just worktree-start works without requiring manual installation.

Changes

  • Added cursor-agent installation step to Containerfile
  • Verified installation with agent --version
  • Fails build if installation fails

Impact

  • Fixes: [ERROR] cursor-agent CLI is not installed.
  • Enables autonomous worktree workflow out of the box
  • No breaking changes

@nacholiya
nacholiya force-pushed the feature/install-cursor-agent branch from 961e6d1 to 15f7efd Compare February 20, 2026 10:46
@gerchowl
gerchowl changed the base branch from main to dev February 20, 2026 13:12
@gerchowl
gerchowl requested a review from c-vigo as a code owner February 20, 2026 13:12
@gerchowl

Copy link
Copy Markdown
Contributor

Thanks for the contribution, @nacholiya! The Containerfile change is exactly right.

I've adopted your commit (preserving your authorship) onto the branch feature/108-install-cursor-agent-cli which follows our branch naming convention (<type>/<issue>-<summary>) and targets dev instead of main per our branching strategy. I also added the CHANGELOG entry and Refs: #108 reference.

Closing this in favor of the new PR — your commit and authorship are fully preserved there. Thanks again!

@gerchowl gerchowl closed this Feb 20, 2026
c-vigo added a commit that referenced this pull request Feb 20, 2026
## 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)
- [x] 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
- [x] 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](#108))
- Enables `just worktree-start` to work out of the box without manual
installation

## Testing

- [x] Tests pass locally (`just test`)
- [x] 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

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

## Additional Notes

- The cursor-agent installer places the binary in `~/.local/bin`. The
original PR #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.

Refs: #108
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.

2 participants