Add LLM invocable change directory tool
- Dominant language
- Shell
- Stars
- 11.2k
- Forks
- 1.9k
- Avg merge
- 14h 16m
- Merged PRs (30d)
- 6
Description
### Describe the feature or problem you'd like to solve
Keep the pwd up to date in the status bar when copilot switches to another worktree
### Proposed solution
Currently the user can run `/cd` to move directories and the status line gets updated and all tool invocations are then run in that directory.
The LLM doesn't have a corresponding tool. Often I'll tell it to go checkout a specific branch and PR into a new/existing worktree and it will do it but then I have to stop it and get the path and manually run /cd to that path so visually I can see the directory/branch name/PR in the status line.
### Example prompts or workflows
Checkout branch X into a worktree and then cd into that worktree and begin addressing the feedback.
### Additional context
_No response_
Contributor guide
Research direction
Start by tracing the existing /cd command, its status-bar update, and how tool invocations use the current directory; the issue names no specific files or tests. Done means the LLM can change into a worktree so the status line shows the new path, branch, or PR and later tool invocations run there.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, shell
- Domain
- cli, developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100