aws / aws/amazon-q-developer-cli

Feature Request: Add /cd command to change working directory

Open
#3,303 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

I'd like to suggest adding a `/cd` command to the Q CLI that allows users to change the current working directory during an active chat session.

**Current Pain Point:**
When working with Amazon Q CLI, switching between directories requires:
1. Closing the current Q session
2. Navigating to the new directory in the terminal
3. Starting a new Q session from that directory

This workflow is disruptive and breaks the conversation flow, especially when working across multiple repositories or project directories.

**Proposed Solution:**
Add a `/cd ` command (similar to existing commands like `/quit`, `/save`, etc.) that:
- Changes the working directory for all subsequent queries in the current session
- Updates the system context to reflect the new directory
- Automatically loads contextual information from the new directory (README files, project structure, etc.)

**Benefits:**
1. **Seamless workflow**: Stay in the same conversation while switching between directories
2. **Context preservation**: Maintain chat history and context while working across multiple repos
3. **Better UX**: Eliminates the need to restart sessions just to change dir

**Example Usage:**
User: /cd /path/to/another-repo
Q: Working directory changed to /path/to/another-repo
User: [continues working in the new directory context]

This would significantly improve productivity when working on multi-repository projects or when needing to reference code across different directories during a single
conversation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.