Skip to content

[FEATURE] Bake agent-CLI toolkit + Claude Code into image (rg/fd/bat/eza/delta/lazygit/zoxide/starship/freeze/expect/nvim + IS_SANDBOX=1) #545

Closed

Description

@gerchowl

Description

Bundle the modern-CLI + TUI-debug + Claude Code toolkit into the devcontainer image so AI-assisted development sessions land in a fully-equipped environment without per-project tool installs.

Problem Statement

Claude / cursor-agent sessions inside the devcontainer hit the same gaps repeatedly:

  1. Modern CLI absent. rg/fd (which agents reach for on every code search), bat/eza/delta (pretty inspection), lazygit (git TUI), zoxide/starship (navigation/prompt) — none in the image. Agents fall back to slower POSIX tools or fail outright.
  2. TUI debugging tooling absent. Agents working with TUI apps (k9s, htop, vim, etc.) need tmux capture-pane for screen sampling, expect for prompt automation, freeze for rendering colored output as PNG (claude reads images natively). None present.
  3. Claude Code itself not baked. Each container session starts with no claude binary; first launch requires npm install or curl install.sh | bash (~20s) every time.
  4. --dangerously-skip-permissions blocked under root. Claude refuses with "uid 0" check unless IS_SANDBOX=1. Container is the trust boundary; this should be set globally.
  5. No cc / cld aliases. Users repeat claude --dangerously-skip-permissions constantly.

Proposed Solution

Single Containerfile commit that adds:

apt block extension (TUI + modern CLI essentials):

  • expect, neovim, ripgrep, fd-find, bat, fzf
  • Symlinks /usr/local/bin/{fd,bat} → Debian's fdfind/batcat

Binary release downloads (not in apt for bookworm):

  • eza, delta, lazygit, zoxide, starship, charm-freeze

Claude Code baked in:

  • Install via official installer with 3-attempt retry (mirrors cursor-agent pattern)
  • Symlinked to /usr/local/bin/claude
  • ENV IS_SANDBOX=1 — bypasses uid-0 check for --dangerously-skip-permissions (container = trust boundary, this is the documented escape hatch)
  • Aliases cc=claude and cld='claude --dangerously-skip-permissions' in /root/.bashrc

Validation

Image builds (linux/arm64); all 14 added tools resolve on PATH; IS_SANDBOX=1 set; aliases written. Image size delta ~+200MB.

Out of Scope

  • Tailscale (separate issue, in-flight)
  • Claude Code auth injection (separate issue, in-flight)
  • ZSH integration / shell hooks (defer)

Changelog Category

Added

Activity

  1. added
    feature
    priority:medium
    area:image
    semver:minor
    on May 15, 2026
  2. c-vigo commented on Jun 23, 2026

    @c-vigo
    Contributor

    Re-scoped by the Nix migration epic #625: the install mechanism (apt/curl) is replaced by the Nix devTools path (#631 / #634); the tool list is absorbed into devTools (#631), and the image-level requirements (claude on PATH, IS_SANDBOX=1, cc/cld aliases) carry into #634. Suggest treating this as a requirements checklist consumed by #631 / #634 / #627 / #628.

  3. c-vigo commented on Jul 2, 2026

    @c-vigo
    Contributor

    Delivered via #631 (on dev through PR #670): the agent-CLI toolkit (rg/fd/bat/eza/delta/lazygit/zoxide/starship/freeze/expect/nvim) plus claude, IS_SANDBOX=1, and the cc/cld aliases are baked into the flake devTools/image (flake.nix:110-150, 715-716, 878). Two minor gaps to track as follow-ups: fzf was not carried over, and there is no image test asserting these tools / IS_SANDBOX. Closing the core deliverable.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:imagefeaturepriority:mediumsemver:minor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions