Repository navigation
feat(worktree): drive autonomous pipelines with the claude CLI - #644
Merged
c-vigo merged 3 commits intoJun 23, 2026
Merged
Conversation
Replace the cursor-agent invocations in the worktree recipes with the claude CLI. worktree-start/worktree-attach now launch 'claude --dangerously-skip-permissions' in the tmux session, mapping 'agent chat --yolo --approve-mcps' (autonomous, auto-approve shell and MCP prompts) onto claude's permission-bypass flag. The cursor-specific directory-trust helper and the 'tmux send-keys a' approval trigger are no longer needed and are removed. Prerequisite, auth (claude auth status/login, ANTHROPIC_API_KEY), requirements.yaml, and the generated docs now reference the claude CLI. Refs: #627
c-vigo
marked this pull request as ready for review
June 23, 2026 08:17
…' into feature/627-worktree-claude-cli # Conflicts: # CHANGELOG.md # assets/workspace/.devcontainer/CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements C2 (#627): replaces the
cursor-agentCLI with theclaudeCLI throughout the worktree pipelines. This is a functional change — the recipes now driveclaudeend-to-end.Changes
justfile.worktree(+ synced templateassets/workspace/.devcontainer/justfile.worktree, regenerated viasync-manifest):command -v agent→command -v claude(install hint →npm install -g @anthropic-ai/claude-code).agent status/agent login/CURSOR_API_KEY→claude auth status/claude auth login/ANTHROPIC_API_KEY.agent chat --yolo --approve-mcps "$PROMPT"(and no-promptagent chat --approve-mcps) →claude --dangerously-skip-permissions "$PROMPT"/claude --dangerously-skip-permissions, in all three sites (existing-worktree, new-worktree, attach-restart)._wt_ensure_trusthelper + calls and thetmux send-keys "a"approval trigger (no longer needed — see decisions).scripts/requirements.yaml:agent(cursor.com installer) entry →claudeentry (command -v claude,claude --version,npm install -g @anthropic-ai/claude-code).README.md/CONTRIBUTE.mdrecipe help regenerated;docs/templates/SKILL_PIPELINE.md.j2(and generateddocs/SKILL_PIPELINE.md) updated to describe theclauderuntime.tests/bats/worktree-claude-cli.bats: lightweight recipe-grep tests (nocursor-agent/agent chatsurvives;claudeis driven; prereq checksclaude). The fullworktree.batsfunctional rewrite is C5's (C5 — Adapt Cursor-coupled tests & keep the AI blocklist #630) — not done here.CHANGELOG.mdUnreleased / Changed entry.Decisions (flag-mapping)
--yolo(auto-approve shell commands) and--approve-mcps(auto-approve MCP servers) both map ontoclaude --dangerously-skip-permissions, which bypasses all permission and MCP approval prompts — the autonomous, no-human-at-terminal equivalent.tmux new-sessiondriving is retained (soworktree-attach, list/stop/clean lifecycle and idle/dashboard features still work). The prompt is now passed as a positional arg toclaudeat launch instead of via the interactive session, so the post-launchsend-keys "a"accept-trigger (which dismissed cursor-agent's trust prompt) is removed —--dangerously-skip-permissionsmeans there is no prompt to accept._wt_ensure_trustwrote~/.cursor/cli-config.jsontrustedDirectories, which is cursor-agent-only and unread byclaude; with--dangerously-skip-permissionsdirectory trust is moot, so it is dead code and was dropped.jqrequirement stays (still used for issue-metadata parsing)._read_model/.cursor/agent-models.tomlor.cursor/rulespaths (W1/C1's domain).Verification
grep -n 'cursor-agent\|agent chat' justfile.worktree assets/workspace/.devcontainer/justfile.worktree→ empty.scripts/requirements.yamllistsclaude, notagent.just precommit→ all hooks green (includingsync-manifest,generate-docs,shellcheck,justformat).just --listparses the worktree recipes; help text shows "launch the claude CLI".Refs: #627