aws / aws/amazon-q-developer-cli

Feature Request: Improve context file management with fuzzy find and CLI commands

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

Description

### Checks

- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again

### Operating system

Linux 5.10.234-206.921.amzn2int.x86_64 - Amazon Linux 2

### Expected behaviour

Amazon Q CLI should support:
1. Fuzzy find functionality to insert filenames inline (similar to Claippy's ctrl-u feature)
2. Command-line options to add/remove context files (e.g., `q context add --project myproject myfile`)

### Actual behaviour

Currently, Amazon Q CLI lacks the fuzzy find functionality that Claippy supports with `fzf`/`skim` integration. It also doesn't support managing context files directly from the command line, making it difficult to incorporate context changes into existing shell workflows.

```
[chat-transcript]
> /help

> !ls

> !'ls'

> !'ls .'

> !fzf

> !fzf

> !fzf

> /context !fzf

> /issue help

I'd be happy to help you report an issue or make a feature request for Amazon Q. Let me guide you through the process.

You can use the built-in `report_issue` tool to open a pre-filled GitHub issue template. This will include your conversation transcript and relevant context to help the team understand your feedback.

Would you like to:
1. Report a bug you've encountered
2. Request a new feature
3. Provide general feedback

Please let me know which option you prefer, and provide some details about the issue or feature request you'd like to submit. This will help me create an appropriate title and pre-fill the GitHub issue template with relevant information.
[Tool uses: none]

> I would like less friction adding context files. Two features that claippy supports that Q CLI does not are: >
- fuzzy find to insert a filename inline within a command (i.e., the file should be inserted into the prompt). `fzf` provides the functionality in bash, and the rust crate `skim` also implements it. Possibly a more general way to do this would be to support e.g. `/context add !!{fzf}` or something. In claippy ctrl-u just opens a skim dialog.>
- somewhat similarly, supporrt adding/removing context from the command line, e.g. `q context add --project myproject myfile`, so that context changes can be incorporated into existing shell workflows

Thank you for sharing these feature requests for improving context file management in Amazon Q CLI. Let me submit this feedback using the report_issue tool.
[Tool uses: report_issue]
```

### Steps to reproduce

N/A - This is a feature request for new functionality

### Environment

```yaml
(redacted amazon internal info)
```

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.