Skip to content

[FEATURE] Install cursor-agent CLI in devcontainer image #108

Closed

Description

@gerchowl

Description

Install the cursor-agent CLI (agent command) in the devcontainer image so that worktree recipes (just worktree-start, etc.) can run autonomously inside the container without manual installation.

Problem Statement

The worktree workflow (justfile.worktree) depends on the agent CLI for launching autonomous cursor-agent sessions in tmux. Currently, agent is not installed in the container image nor in any lifecycle script. Running just worktree-start fails immediately with:

[ERROR] cursor-agent CLI is not installed.

Users must manually install it each time a container is created, which breaks the autonomous workflow.

Proposed Solution

Add a cursor-agent installation step to the Containerfile, similar to how gh, just, and uv are installed — fetching the latest release with checksum verification:

RUN curl https://cursor.com/install -fsSL | bash

Verify with agent --version after install.

Alternatives Considered

  • Install in post-create.sh: Works but adds network dependency at container creation time and is slower than baking it into the image.
  • Leave as manual step: Current state — breaks the autonomous worktree workflow.

Impact

  • All users of the worktree workflow benefit — just worktree-start works out of the box.
  • Backward compatible — no existing functionality is changed.

Changelog Category

Added

Activity

  1. added
    feature
    area:image
    effort:small
    semver:minor
    on Feb 20, 2026
  2. self-assigned this
    on Feb 20, 2026
  3. gerchowl commented on Feb 20, 2026

    @gerchowl
    ContributorAuthor

    Implementation Plan

    Issue: #108
    Branch: feature/108-install-cursor-agent-cli

    Context

    The Containerfile change was contributed externally in PR #110 (by @nacholiya, commit preserved with original authorship). CHANGELOG entry and Refs: #108 added by maintainer. TDD order is inverted because we adopted an external contribution — the test commit retroactively closes the gap.

    Tasks

    • Task 1: Add failing test for agent CLI presence — tests/test_image.py — verify: just test-image (expect fail, image not yet rebuilt with change)
    • Task 2: Rebuild image and confirm test passes — verify: just build && just test-image

    Notes

    • Build revealed the cursor-agent installer puts the binary in ~/.local/bin which wasn't in PATH during docker build. Fixed by adding ENV PATH="/root/.local/bin:${PATH}" before the install step, matching the cargo-binstall pattern. Also simplified the RUN step (removed redundant command -v check since set -e already catches failures).
  4. nacholiya commented on Feb 20, 2026

    @nacholiya
    Contributor

    Thanks for integrating the change and preserving authorship — appreciate it!

  5. added a commit that references this issue on Feb 20, 2026
    16d3b68
  6. added a commit that references this issue on Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:imageeffort:smallfeaturesemver:minor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions